text
stringlengths 3
1.05M
|
|---|
var searchData=
[
['get_5fparameter',['get_parameter',['../namespacextd.html#classxtd_1_1get__parameter',1,'xtd']]],
['get_5fparameter_3c_200_2c_20_5freturnt_28_5fheadt_2c_20_5ftailt_2e_2e_2e_29_3e',['get_parameter< 0, _return_t(_head_t, _tail_t...)>',['../classxtd_1_1get__parameter_3_010_00_01___return_t_07___head_t_00_01___tail_t_8_8_8_08_4.html',1,'xtd']]],
['get_5fparameter_3c_20_5fparamnum_2c_20_5freturnt_28_5fheadt_2c_20_5ftailt_2e_2e_2e_29_3e',['get_parameter< _ParamNum, _return_t(_head_t, _tail_t...)>',['../classxtd_1_1get__parameter_3_01___param_num_00_01___return_t_07___head_t_00_01___tail_t_8_8_8_08_4.html',1,'xtd']]]
];
|
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
#turno
path('nuevo_turno', views.nuevo_turno, name='nuevo_turno'),
path('modificar_turno/<int:id>', views.modificar_turno, name='modificar_turno'),
path('eliminar_turno/<int:id>', views.eliminar_turno, name='eliminar_turno'),
path('lista_turno', views.lista_turno, name='lista_turno'),
#usuario
path('register', views.register, name='register'),
path('login', views.login_view, name='login'),
path('logout', views.logout_view, name='logout'),
#pedidos
path('lista_pedidos', views.lista_pedidos, name='lista_pedidos'),
path('nuevo_pedido', views.nuevo_pedido, name='nuevo_pedido'),
path('ver_pedido/<id>', views.ver_pedido, name='ver_pedido')
]
|
/**
* Main application file:
*/
// Info about current and allowed environments.
const environments = require('#configs/envinorments');
// Middleware for parsing requests bodies.
const bodyParser = require('body-parser');
// Express.
const express = require('express');
const http = require('http');
// Mild security.
const helmet = require('helmet');
// Cross-origin requests middleware.
const cors = require('cors');
// Server configuration:
// ORM.
const DB = require('#services/db.service');
// Port info.
const serverConfig = require('#configs/server');
// Server configuration\
// Express application.
const app = express();
// HTTP server (Do not use HTTPS, manage TLS with some proxy, like Nginx).
const server = http.Server(app);
// Routes.
const routes = require('#routes/');
global.__basedir = __dirname + '/..';
// Allow cross origin requests
// (configure to only allow requests from certain origins).
app.use(cors({
origin: ["http://localhost:3000", process.env.CORS_URL]
}));
// Set views path.
app.set('views', __dirname + '/views');
// Set template engine (Pug by default).
app.set('view engine', 'pug');
// Set folder for static contents.
app.use(express.static('public'));
// Secure express app.
app.use(helmet({
dnsPrefetchControl: false,
frameguard: false,
ieNoOpen: false,
}));
// Parsing the request bodies.
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
// Setup routes.
app.use(routes({ app }));
// Reference to the active database connection.
let db;
// Initialize server:
(async function () {
if (environments.allowed.indexOf(environments.current) === -1) {
console.error(`NODE_ENV is set to ${environments.current}, but only ${environments.allowed.toString()} are valid.`);
process.exit(1);
}
// Start ORM.
db = await DB.service(environments.current).start();
})()
.then(() => {
server.listen(serverConfig.port, () => {
// Server is up!
console.info(`Server is running on port: ${serverConfig.port}`);
return db;
});
});
// Initialize server\
function _gracefulShutdown(exit = false) {
console.warn('Received SIGINT or SIGTERM. Shutting down gracefully...');
const exitCode = exit ? 1 : 0;
server.close(() => {
console.info('Closed out remaining connections.');
process.exit(exitCode);
});
// Force stop after 5 seconds:
setTimeout(() => {
console.error('Could not close connections in time, forcefully shutting down');
process.exit(exitCode);
}, 5 * 1000);
}
process.on('unhandledRejection', (reason, p) => {
console.error(reason, 'Unhandled Rejection at Promise', p);
});
process.on('uncaughtException', err => {
console.error(err, 'Uncaught Exception thrown');
_gracefulShutdown(true);
});
|
import React, { useEffect } from 'react';
import queryString from 'query-string';
import io from 'socket.io-client';
import Rules from './Gamecomponents/Rules.js';
import PointDisplay from './Gamecomponents/PointDisplay.js';
import Playbutton from './Gamecomponents/PlayButton.js';
import Scoreboard from './Gamecomponents/Scoreboard.js';
import AlertDialog from './Gamecomponents/AlertDialog.js'
import './game.css';
const Game = ({location}) => {
const endpoint = 'https://vj-painikepeli.herokuapp.com/'
const socket = io.connect(endpoint);
/*EMIT EVENTS*/
function send_username(username){
socket.emit('username', {
username: username
});
}
/*LISTEN EVENTS*/
socket.on('userClick', function(gameRound){
console.log(gameRound);
});
useEffect(() => {
const data = queryString.parse(location.search);
const username = data.username;
console.log('Nimimerkki:' + data.username);
send_username(username);
}, [endpoint, location.search]);
return (
<div id = "ui_container">
<div id="rules">
<Rules />
</div>
<div id="app_container">
<div id="game_container">
<PointDisplay socket={socket} />
<Playbutton socket={socket}/>
</div>
<div id="scoreboard_container">
<Scoreboard socket={socket}/>
</div>
</div>
<div id="footer">
<p id="footer_text">Made by Ville Jaatinen 2020</p>
</div>
<AlertDialog socket ={socket}/>
</div>
)
}
export default Game;
|
# -*- coding: utf-8 -*-
import codecs
from datetime import date
import sys
from config_cwr.accessor import CWRConfiguration
from cwr.acknowledgement import AcknowledgementRecord, MessageRecord
from cwr.file import CWRFile, FileTag
from cwr.group import Group, GroupHeader, GroupTrailer
from cwr.interested_party import IPTerritoryOfControlRecord
from cwr.parser.encoder.file import default_file_encoder
from cwr.record import TransactionRecord
from cwr.transmission import Transmission, TransmissionTrailer, TransmissionHeader
from cwr.utils.printer import CWRPrinter
from cwr.validation.common import ValidationStatus, NPValidationStatus
from cwr.validation.transaction import ValidationTransaction
"""
Class generate acknowledgement file"
"""
__author__ = 'Yaroslav O. Golub'
__license__ = 'MIT'
__status__ = 'Development'
class SequenceGenerator:
def __init__(self, start=0):
self._sequence = self.generator(start)
@staticmethod
def generator(start):
num = start
while True:
yield num
num += 1
def get(self):
return self._sequence.__next__()
class AcknowledgeFile(object):
_acknowledge = None
config = None
def __init__(self, config, sequence_n, reciver):
self.config = config
tag = FileTag(self._year(), sequence_n, self._sender(), reciver, self._version())
transmission = AcknowledgeTransmission(self.config['sender_id'],
self.config['sender_name'],
self.config['sender_type'])
self._acknowledge = CWRFile(tag, transmission)
@staticmethod
def _year():
return date.today().year
def _sender(self):
return self.config['sender_name']
@staticmethod
def _version():
return "2.1"
def validate_tis(self, transaction):
tis_number = self.config['tis'].values()
for record in transaction:
if isinstance(record, IPTerritoryOfControlRecord):
if record.tis_numeric_code in tis_number:
return True
return False
def validate(self, transaction):
validation = ValidationTransaction(self.config)
return validation.validate(transaction)
def validate_transaction(self, transaction):
if self.validate_tis(transaction):
return self.validate(transaction)
else:
return NPValidationStatus()
def acknowledge_cwr_file(self, cwr_file):
assert isinstance(cwr_file, CWRFile)
for group in cwr_file.transmission.groups:
ack_group = AcknowledgeGroup(group)
for transaction in group.transactions:
status = self.validate_transaction(transaction)
ack_transaction = AcknowledgeTransaction(group.group_header.group_id, transaction, status.code, status.message)
ack_group.append_transaction(ack_transaction)
self._acknowledge.transmission.append_group(ack_group)
def print(self, path):
output = codecs.open(path + '.ack.parsed', 'w', 'latin-1')
printer = CWRPrinter()
printer.print_file(self._acknowledge, output)
def encode(self, path):
output = codecs.open(path + '.ack', 'w', 'latin-1')
out_old = sys.stdout
sys.stdout = output
file_encoder = default_file_encoder()
result = file_encoder.encode(self._acknowledge.transmission)
print(result)
sys.stdout = out_old
class AcknowledgeTransmission(Transmission):
group_sequence = SequenceGenerator(0)
def __init__(self, sender_id, sender_name, sender_type):
record_type = 'HDR'
creation_date_time = date.today()
transmission_date = date.today()
header = TransmissionHeader(record_type=record_type,
sender_id=sender_id,
sender_name=sender_name,
sender_type=sender_type,
creation_date_time=creation_date_time,
transmission_date=transmission_date)
trailer = TransmissionTrailer(record_type='TRL')
super(AcknowledgeTransmission, self).__init__(header=header, trailer=trailer)
def append_group(self, group):
assert isinstance(group, AcknowledgeGroup)
if self.groups is None:
self.groups = []
group.group_header.group_id = self.group_sequence.get()
group.group_trailer.group_id = self.group_sequence.get()
self.groups.append(group)
self.trailer.group_count += 1
self.trailer.transaction_count += group.group_trailer.transaction_count
self.trailer.record_count += group.group_trailer.record_count
class AcknowledgeGroup(Group):
transactions_sequence = SequenceGenerator(0)
def __init__(self, original_group):
header = GroupHeader(record_type='GRH',
transaction_type='ACK',
batch_request_id=original_group.group_header.batch_request_id)
trailer = GroupTrailer(record_type='GRT')
super(AcknowledgeGroup, self).__init__(group_header=header, group_trailer=trailer)
def append_transaction(self, transaction):
assert isinstance(transaction, AcknowledgeTransaction)
transaction.transaction_sequence_n = self.transactions_sequence.get()
self.transactions.append(transaction.records)
self.group_trailer.transaction_count += 1
self.group_trailer.record_count += len(transaction.records)
class AcknowledgeTransaction(object):
record_sequence = SequenceGenerator(0)
_transaction_sequence_n = 0
def __init__(self, original_group_id, transaction, status, message=''):
self._records = []
original_transaction = transaction[0]
ack = AcknowledgementRecord(record_type='ACK',
record_sequence_n=self.record_sequence.get(),
original_group_id=original_group_id,
original_transaction_sequence_n=original_transaction.transaction_sequence_n,
original_transaction_type=original_transaction.record_type,
transaction_status=status,
creation_date_time=date.today(),
processing_date=date.today(),
creation_title=original_transaction.title,
submitter_creation_n='',
recipient_creation_n='')
self._records.append(ack)
#if message:
# records.append(MessageRecord())
for rec in transaction:
self._records.append(rec)
@property
def transaction_sequence_n(self):
return self._transaction_sequence_n
@transaction_sequence_n.setter
def transaction_sequence_n(self, value):
for record in self._records:
record.transaction_sequence_n = value
self._transaction_sequence_n = value
@property
def records(self):
return self._records
@records.setter
def records(self, value):
self._records = value
def example_acknowledge_file(sequence_n, reciver):
config = CWRConfiguration()
return AcknowledgeFile(config.load_acknowledge_config('example'), sequence_n, reciver)
|
import math
import navx
class NavX:
"""Wrapper around RobotPy NavX to match our coordinate system."""
def __init__(self):
self.ahrs = navx.AHRS.create_spi(update_rate_hz=50)
self.pidsource = self.PIDSourceType.kDisplacement
def getAngle(self) -> float:
"""Get the current yaw in radians.
Angles are in the interval [-pi, pi], anticlockwise positive.
"""
raw = self.ahrs.getYaw()
return -math.radians(raw)
def resetHeading(self):
"""Zero the yaw."""
self.ahrs.reset()
def getHeadingRate(self):
"""Get the rate of change of yaw in radians per second."""
# multiply by update freq because NavX does not normalise per timestep
return math.radians(-self.ahrs.getRate()) * 50
|
#include "./dequeue.h"
int main(){
node *front, *rear;
front = rear = NULL;
addq_at_end(&front, &rear, 1);
addq_at_end(&front, &rear, 2);
addq_at_end(&front, &rear, 3);
addq_at_end(&front, &rear, 4);
displayq(front);
addq_at_start(&front, &rear, 5);
addq_at_start(&front, &rear, 6);
addq_at_start(&front, &rear, 7);
addq_at_start(&front, &rear, 8);
displayq(front);
printf("Deleting at end %d\n", delq_at_end(&front, &rear));
printf("Deleting at end %d\n", delq_at_end(&front, &rear));
displayq(front);
printf("Deleting at start %d\n", delq_at_start(&front, &rear));
printf("Deleting at start %d\n", delq_at_start(&front, &rear));
displayq(front);
printf("Number of elements remaining %d\n", countq(front));
displayq(front);
return 0;
}
|
/**
* sso.service.js
* Single Sign On Service
*/
import AWSSPMetadata from '@/assets/saml/aws-metadata.xml';
import IDPMetadata from '@/assets/saml/ccu-metadata.xml';
import { IDPApi } from '@/utils/api';
import Logger from '@/utils/log';
import axios from 'axios';
import * as saml from 'samlify';
const Log = Logger({
name: 'sso.service',
middlewares: [
(result) => {
result.unshift('[SSO] ');
return result;
},
],
});
// When SAML is revisited, setup the validator
// saml.setSchemaValidator(validator);
saml.setSchemaValidator({
validate: () => new Promise(),
});
export const SP = saml.ServiceProvider({
metadata: AWSSPMetadata,
relayState: `https://us-east-1.console.aws.amazon.com/connect/federate/${process.env.VUE_APP_CCP_INSTANCE}?destination=%2Fconnect%2Fccp#/`,
});
export const fetchMetadata = async () => {
const content = await axios.get(IDPApi('metadata/'));
Log.debug('fetched IDP metadata: ', content);
return content.data;
};
export const IDP = (metadata) =>
saml.IdentityProvider({
metadata,
});
export const authenticate = async (token) => {
let metadata;
try {
metadata = await fetchMetadata();
} catch (e) {
Log.warn('failed to fetch metadata, using local...', e);
metadata = IDPMetadata;
}
const idp = IDP(metadata);
const { context } = await SP.createLoginRequest(idp, 'redirect');
const url = `${context}&jwt=${token}`;
console.log(url);
return url;
};
|
# -*- coding: utf-8 -*-
from collections import OrderedDict
# Sorted Dict, OrderedDict是alphabetical,这道题要key sort by numerical
class MyCalendarThree(object):
def __init__(self):
self.calendar = OrderedDict()
def book(self, start, end):
self.calendar[start] = self.calendar.get(start, 0) + 1
self.calendar[end] = self.calendar.get(end, 0) - 1
res = 0
curr = 0
for key, val in self.calendar.items():
res = max(res, curr + val)
# print self.calendar
return res
class Node:
def __init__(self, l, r, count):
self.l = l
self.m = -1
self.r = r
self.count = count
self.left = None
self.right = None
# Segment Tree
class MyCalendarThree2:
def __init__(self):
self.root = Node(0, 10 ** 9, 0)
self.max = 0
def book(self, start, end):
self.add(start, end, self.root)
return self.max
def add(self, start, end, root):
if root.m != -1:
if end <= root.m:
self.add(start, end, root.left)
elif start >= root.m:
self.add(start, end, root.right)
else:
self.add(start, root.m, root.left)
self.add(root.m, end, root.right)
return
if start == root.l and end == root.r:
root.count += 1
self.max = max(self.max, root.count)
elif start == root.l:
root.m = end
root.left = Node(start, root.m, root.count + 1)
root.right = Node(root.m, root.r, root.count)
self.max = max(self.max, root.count + 1)
elif end == root.r:
root.m = start;
root.left = Node(root.l, root.m, root.count)
root.right = Node(root.m, root.r, root.count + 1)
self.max = max(self.max, root.count + 1)
else:
root.m = start
root.left = Node(root.l, root.m, root.count)
root.right = Node(root.m, root.r, root.count)
self.add(start, end, root.right)
obj = MyCalendarThree()
print obj.book(10, 20)
print obj.book(50, 60)
print obj.book(10, 40)
print obj.book(5, 15)
print obj.book(5, 10)
print obj.book(25, 55)
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Kevin Schuetz
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
const _ = require('lodash'),
MoveCandidate = require('./MoveCandidate');
function generateMoves(gameState, squarePrefs, player, pvMove) {
let result = [],
len = squarePrefs.length;
//pvMove = -1;
if(pvMove >= 0 && gameState.isSquareEmpty(pvMove)) {
result.push(pvMove);
for(let i = 0; i < len; i += 1) {
let square = squarePrefs[i];
if(square !== pvMove && gameState.isSquareEmpty(square)) {
result.push(square);
}
}
} else {
for(let i = 0; i < len; i += 1) {
let square = squarePrefs[i];
if(gameState.isSquareEmpty(square)) {
result.push(square);
}
}
}
return result;
}
function moveSort1(moveA, moveB) {
let result = moveB.balance - moveA.balance;
if(result === 0) {
result = moveB.affinity - moveA.affinity;
}
return result;
}
function moveSort2(moveA, moveB) {
let result = moveA.balance - moveB.balance;
if(result === 0) {
result = moveB.affinity - moveA.affinity;
}
return result;
}
function generateMovesSorted(gameState, squarePrefScores, player, pvMove) {
let moves = [],
firstMove = null;
for(let square = 0; square < 64; square += 1) {
if(gameState.isSquareEmpty(square)) {
let state = gameState.placePiece(square, player),
move = new MoveCandidate({
state,
square,
balance: state.balance,
value: player * state.balance,
affinity: squarePrefScores[square]
});
if(pvMove === square) {
firstMove = move;
} else {
moves.push(move);
}
}
}
let moveCount = moves.length,
best = Number.NEGATIVE_INFINITY,
bestIndex = -1;
for(let i = 0; i < moveCount; i += 1) {
let move = moves[i];
if(move.value > best) {
best = move.value;
bestIndex = i;
}
}
if(bestIndex >= 0) {
let move = moves[bestIndex];
moves.splice(bestIndex, 1);
moves.unshift(move);
}
// sort
let sortFn = player > 0 ? moveSort1 : moveSort2;
moves = _.sortBy(moves, sortFn);
if(firstMove) {
moves.unshift(firstMove);
}
return moves; //.map(m => m.square);
}
function Ply(props) {
let host = props.host,
pv = host.pv,
squarePrefScores = host.squarePrefScores,
root = !!props.root,
left = root || !!props.left;
this.root = root;
this.left = left;
this.player = props.player;
this.host = host;
let pvMove = -1;
if(left) {
pvMove = pv.getBestMove(props.ply);
}
this.depth = props.depth;
this.gameState = props.gameState;
if(root) {
this.moves = generateMovesSorted(props.gameState, squarePrefScores, this.player, pvMove);
//console.log('move sorted:');
//console.log(this.moves);
} else {
this.moves = generateMovesSorted(props.gameState, squarePrefScores, this.player, pvMove);
}
this.moveCount = this.moves.length;
this.nextMovePtr = 0;
if(root) {
this.alpha = Number.NEGATIVE_INFINITY;
this.beta = Number.POSITIVE_INFINITY;
this.parent = host;
this.ply = 0;
} else {
this.alpha = props.alpha;
this.beta = props.beta;
this.parent = props.parent;
this.ply = props.ply;
}
}
Ply.prototype.process = function() {
if(this.nextMovePtr >= this.moveCount) {
return this.parent.answer(this.alpha);
}
let candidate = this.moves[this.nextMovePtr],
move = candidate.square;
this.lastMove = move;
this.nextMovePtr += 1;
let newState = candidate.state; //this.gameState.placePiece(move, this.player);
if(newState.gameOver || this.depth <= 0) {
let value = this.player * newState.balance;
if(value >= this.beta) {
this.host.betaCutoffCount += 1;
return this.parent.answer(this.beta);
}
if(value > this.alpha) {
this.alpha = value;
this.host.alphaCutoffCount += 1;
this.host.pv.updateBestMove(this.ply, move);
}
return this;
}
// TODO: null window search?
let nextPly = new Ply({
host: this.host,
parent: this,
gameState: newState,
left: this.left && this.nextMovePtr === 1,
depth: this.depth - 1,
ply: this.ply + 1,
player: -this.player,
alpha: -this.beta,
beta: -this.alpha
});
return nextPly.process();
};
Ply.prototype.answer = function(value) {
value = -value;
if(value >= this.beta) {
return this.parent.answer(this.beta);
}
if(value > this.alpha) {
this.alpha = value;
this.host.pv.updateBestMove(this.ply, this.lastMove);
}
return this;
};
module.exports = Ply;
|
imports.gi.versions.Gtk = imports.gi.GLib.getenv("GTK");
(function (GLib, Gio) {
'use strict';
const connection = Gio.DBus.session;
const serviceName = 'org.freedesktop.portal.Desktop';
const interfaceName = 'org.freedesktop.portal.Request';
const objectPath = '/org/freedesktop/portal/desktop';
async function getServiceProxy(extensionPath) {
const path = extensionPath + '/org.freedesktop.portal.Screenshot.xml';
const [ok, data] = GLib.file_get_contents(path);
if (!ok) {
throw new Error('could not read interface file');
}
const ifaceXml = imports.byteArray.toString(data);
const Proxy = Gio.DBusProxy.makeProxyWrapper(ifaceXml);
return new Promise((resolve, reject) => {
new Proxy(connection, serviceName, objectPath, (init, err) => {
if (err) {
reject(err);
}
else {
resolve(init);
}
});
});
}
async function getResponseParams(requestPath) {
return new Promise((resolve) => {
connection.signal_subscribe(serviceName, interfaceName, 'Response', requestPath, null, Gio.DBusSignalFlags.NONE, (connection, sender, path, iface, signal, params) => {
resolve(params);
});
});
}
async function portalScreenshot(service) {
const [requestPath] = service.ScreenshotSync('', {
interactive: GLib.Variant.new_boolean(true),
});
const params = await getResponseParams(requestPath);
const [responseCode, dict] = params.deepUnpack();
switch (responseCode) {
case 0:
return dict.uri.deepUnpack();
case 1:
throw new Error('cancelled by user');
default:
throw new Error(`unexpected responseCode ${responseCode}`);
}
}
if (window['ARGV']) {
const loop = GLib.MainLoop.new(null, false);
(async () => {
await portalScreenshot(await getServiceProxy('./res/'));
})()
.then(() => console.log('done'))
.catch((err) => console.error(err))
.finally(() => loop.quit());
loop.run();
}
}(imports.gi.GLib, imports.gi.Gio));
|
import React from "react";
import {
View,
Text,
StyleSheet,
Image,
StatusBar,
TouchableOpacity,
Animated,
Easing,
PanResponder,
ScrollView,
Dimensions,
Platform,
Permissions
} from "react-native";
// import { MapView, LinearGradient, Location, Permissions } from "expo";
if (Platform.OS != "dom") {
var LinearGradient = require("react-native-linear-gradient").default;
} else {
var LinearGradient = require("../components/LinearGradient").default;
}
import CardProfile from "./CardProfile";
import CardCoach from "./CardCoach";
import CardHistory from "./CardHistory";
if (Platform.OS != "dom") {
var MapView = require("react-native-maps").default;
} else {
var MapView = () => {
return (
<Image
source={require("../images/mapmain.png")}
resizeMode="cover"
style={{ width: "100%", height: "100%", flex: 1 }}
/>
);
};
}
const windowWidth = Dimensions.get("window").width;
class HomeScreen extends React.Component {
constructor(props) {
super(props);
this.state = {
pan: new Animated.ValueXY(),
scale: new Animated.Value(1),
pulse: new Animated.Value(0),
carousel: false,
marker: {
latitude: 1.277936,
longitude: 103.852667
},
region: {
latitude: 1.277936,
longitude: 103.852667,
latitudeDelta: 0.02,
longitudeDelta: 0.02
}
};
}
isDropZone(gesture) {
return gesture.moveY > 0 && gesture.moveY < 350;
}
componentWillMount() {
this.mover = Animated.event([null, { dy: this.state.pan.y }]);
this._panResponder = PanResponder.create({
onMoveShouldSetResponderCapture: () => {
return true;
},
onMoveShouldSetPanResponderCapture: () => {
if (!this.state.carousel) {
return true;
}
return false;
},
onPanResponderGrant: (e, gestureState) => {
if (!this.state.carousel) {
this.state.pan.setOffset({
x: this.state.pan.x._value,
y: this.state.pan.y._value
});
this.state.pan.setValue({ x: 0, y: 0 });
}
},
onPanResponderMove: (e, gesture) => {
if (this.state.carousel) {
return;
}
return this.mover(e, gesture);
},
onPanResponderRelease: (e, gesture) => {
// Set the initial value to the current state
if (this.isDropZone(gesture)) {
Animated.spring(this.state.pan, { toValue: { x: 0, y: -280 } }).start(
() => {
this.state.pan.flattenOffset();
}
);
this.setState({
carousel: true
});
} else {
Animated.spring(this.state.pan, { toValue: { x: 0, y: 0 } }).start();
this.setState({
carousel: false
});
}
}
});
this._panResponder2 = PanResponder.create({
onMoveShouldSetResponderCapture: () => {
return true;
},
onMoveShouldSetPanResponderCapture: () => {
return true;
},
// Initially, set the value of x and y to 0 (the center of the screen)
onPanResponderGrant: (e, gestureState) => {
this.state.pan.setValue({ x: 0, y: -280 });
},
onPanResponderMove: (e, gesture) => {
if (this.state.carousel) {
return;
}
return this.mover(e, gesture);
},
onPanResponderRelease: (e, gesture) => {
if (!this.isDropZone(gesture)) {
Animated.spring(this.state.pan, { toValue: { x: 0, y: 0 } }).start();
this.setState({
carousel: false
});
}
}
});
}
componentDidMount() {
setInterval(() => {
Animated.sequence([
Animated.spring(this.state.pulse, { toValue: 1, friction: 1 }),
Animated.spring(this.state.pulse, { toValue: 0.8 })
]).start();
}, 2000);
}
onRegionChange = region => {
this.setState({ region });
};
onBegin = () => {
this.props.navigation.push("BeginRun");
};
onHistory = () => {
this.props.navigation.push("History");
};
render() {
let { pan, scale } = this.state;
let [translateX, translateY] = [pan.x, pan.y];
console.log("Platform", Platform.OS);
return (
<View style={styles.container}>
<StatusBar backgroundColor="white" barStyle="dark-content" />
<MapView
style={{ flex: 1, marginBottom: 120 }}
region={this.state.region}
onRegionChange={this.onRegionChange}
>
<MapView.Marker coordinate={this.state.marker} title={"My Location"}>
<Animated.View
style={{
position: "absolute",
top: -20,
left: -20,
width: 40,
height: 40,
backgroundColor: "rgba(98,186,85,0.4)",
borderRadius: 20,
transform: [{ scale: this.state.pulse }]
}}
/>
<Animated.View
style={{
position: "absolute",
top: -40,
left: -40,
width: 80,
height: 80,
backgroundColor: "rgba(98,186,85,0.2)",
borderRadius: 40,
transform: [{ scale: this.state.pulse }]
}}
/>
<Animated.View
style={{
position: "absolute",
top: -10,
left: -10,
width: 20,
height: 20,
backgroundColor: "rgba(98,186,85,1)",
borderColor: "#fff",
borderWidth: 2,
borderRadius: 10,
transform: [{ scale: this.state.pulse }]
}}
/>
</MapView.Marker>
</MapView>
<View style={styles.toolbar}>
<LinearGradient
colors={[
"rgba(255,255,255,1)",
"rgba(255,255,255,0.8)",
"rgba(255,255,255,0)"
]}
style={{
height: 50,
position: "absolute",
top: 0,
left: 0,
right: 0
}}
/>
<View
style={{ flex: 1, justifyContent: "center", alignItems: "center" }}
>
<Image
source={require("../images/left-icon.png")}
style={styles.logoicon}
/>
</View>
<View
style={{ flex: 3, justifyContent: "center", alignItems: "center" }}
>
<Image
source={require("../images/logonike.png")}
style={styles.logosmall}
/>
</View>
<View
style={{ flex: 1, justifyContent: "center", alignItems: "center" }}
>
<Image
source={require("../images/right-icon.png")}
style={styles.logoicon}
/>
</View>
</View>
<View style={styles.content}>
<Animated.View
style={{
transform: [
{ translateX },
{ translateY },
{ rotate: "0deg" },
{ scale }
],
marginBottom: -180
}}
{...this._panResponder.panHandlers}
>
<ScrollView
horizontal={true}
snapToInterval={windowWidth}
snapToAlignment={"center"}
decelerationRate={0}
scrollEnabled={this.state.carousel}
automaticallyAdjustInsets={false}
>
<Animated.View {...this._panResponder2.panHandlers}>
<TouchableOpacity onPress={this.onHistory}>
<CardProfile />
</TouchableOpacity>
</Animated.View>
<Animated.View {...this._panResponder2.panHandlers}>
<TouchableOpacity onPress={this.onHistory}>
<CardCoach />
</TouchableOpacity>
</Animated.View>
<Animated.View {...this._panResponder2.panHandlers}>
<TouchableOpacity onPress={this.onHistory}>
<CardHistory />
</TouchableOpacity>
</Animated.View>
</ScrollView>
</Animated.View>
</View>
<View style={styles.footer}>
<LinearGradient
pointerEvents="none"
colors={[
"rgba(255,255,255,0)",
"rgba(255,255,255,0.8)",
"rgba(255,255,255,1)",
"rgba(255,255,255,1)"
]}
style={{
height: 200,
position: "absolute",
bottom: 0,
left: 0,
right: 0
}}
/>
<TouchableOpacity
style={styles.buttonRedWrapper}
onPress={this.onBegin}
>
<View
style={styles.buttonRed}
shadowColor={"#f02733"}
shadowOffset={{ width: 0, height: 10 }}
shadowOpacity={0.4}
shadowRadius={20}
>
<Text style={styles.buttonRedText}>BEGIN RUN</Text>
</View>
</TouchableOpacity>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff"
},
logosmall: {
width: 40,
height: 15
},
logoicon: {
height: 30,
width: 30
},
toolbar: {
position: "absolute",
top: 0,
left: 0,
right: 0,
paddingTop: 25,
flexDirection: "row",
backgroundColor: "transparent",
height: 50
},
footer: {
padding: 30,
position: "absolute",
bottom: 0,
left: 0,
right: 0,
paddingHorizontal: 60
},
content: {
padding: 30,
position: "absolute",
bottom: 0,
left: 0,
right: 0,
paddingHorizontal: 0
},
buttonRed: {
backgroundColor: "#f02733",
borderRadius: 30,
height: 60,
justifyContent: "center",
alignItems: "center"
},
buttonRedText: {
color: "#fff",
fontFamily: "BebasNeue",
textAlign: "center",
fontSize: 24
}
});
export default HomeScreen;
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"/8Fb":function(e,t,n){var r=n("XKFU"),a=n("UExd")(!0);r(r.S,"Object",{entries:function(e){return a(e)}})},"0mN4":function(e,t,n){"use strict";n("OGtf")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},"1KeF":function(e,t,n){"use strict";n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g}));var r=n("vOnD"),a=n("Wbzz");function i(){var e=f(["\n ",";\n"]);return i=function(){return e},e}function o(){var e=f(["\n ",";\n"]);return o=function(){return e},e}function l(){var e=f(["\n color: var(--color-scale-0);\n"]);return l=function(){return e},e}function u(){var e=f(["\n color: var(--color-scale-0);\n"]);return u=function(){return e},e}function c(){var e=f(["\n color: var(--color-scale-0);\n text-decoration: none;\n"]);return c=function(){return e},e}function s(){var e=f(["\n color: var(--color-scale-0);\n text-decoration: none;\n"]);return s=function(){return e},e}function f(e,t){return t||(t=e.slice(0)),e.raw=t,e}var d=Object(r.b)(a.Link)(s()),p=r.b.a(c()),h=(r.b.h1(u()),r.b.p(l())),m=Object(r.b)(h)(o(),{"@media (min-width: 640px)":{fontSize:"1.125rem"},"@media (min-width: 768px)":{fontSize:"1.25rem"}}),g=Object(r.b)(h)(i(),{marginTop:"0",textDecoration:"underline",textAlign:"center","@media (min-width: 640px)":{fontSize:"1.5rem"},"@media (min-width: 768px)":{fontSize:"1.875rem"}})},"1eu9":function(e,t,n){"use strict";n("a1Th"),n("Btvt"),n("pIFo"),n("0mN4");var r=n("TqRt");t.__esModule=!0,t.default=void 0;var a=r(n("8OQS")),i=r(n("pVnL")),o=r(n("PJYZ")),l=r(n("VbXa")),u=r(n("lSNA")),c=r(n("q1tI")),s=r(n("17x9")),f=r(n("yBBL")),d=n("uXx/"),p=n("EFel"),h=n("vD7z"),m=n("BfiH"),g=n("perC"),y=n("NVWv"),v=n("QxZ1"),b=n("oFdo"),w=function(e){function t(t){var n;n=e.call(this,t)||this,(0,u.default)((0,o.default)(n),"cleanUpListeners",void 0),(0,u.default)((0,o.default)(n),"intersectionListener",(function(){var e=(0,h.inImageCache)(n.props);n.state.isVisible||"function"!=typeof n.props.onStartLoad||n.props.onStartLoad({wasCached:e}),n.imageRef=(0,m.activatePictureRef)(n.imageRef,n.props,n.selfRef),n.setState((function(e){return{isVisible:!0,imageState:e.imageState+1}}),(function(){n.setState((function(t){return{imgLoaded:e,imgCached:!!n.imageRef.currentSrc,imageState:t.imageState+1}}))}))}));var r=(0,d.convertProps)(t),a=!0,l=!1,c=r.fadeIn,s=(0,h.inImageCache)(r);!s&&"undefined"!=typeof window&&window.IntersectionObserver&&(a=!1,l=!0),"undefined"==typeof window&&(a=!1),r.critical&&(a=!0,l=!1);var p=!(r.critical&&!c),v=(0,y.fixClassName)(r)[0];return n.state={isVisible:a,imgLoaded:!1,IOSupported:l,fadeIn:c,hasNoScript:p,seenBefore:s,imageState:0,currentClassNames:v},n.backgroundStyles=(0,y.presetBackgroundStyles)((0,f.default)(r.className)),n.handleImageLoaded=n.handleImageLoaded.bind((0,o.default)(n)),n.handleRef=n.handleRef.bind((0,o.default)(n)),n.imageRef=(0,m.createPictureRef)((0,i.default)({},r,{isVisible:a}),n.handleImageLoaded),n.bgImage=(0,g.initialBgImage)(r),n.selfRef=null,n}(0,l.default)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.backgroundStyles=(0,y.presetBackgroundStyles)((0,f.default)(this.props.className)),this.state.isVisible&&"function"==typeof this.props.onStartLoad&&this.props.onStartLoad({wasCached:(0,h.inImageCache)(this.props)}),this.props.critical&&(0,p.imageReferenceCompleted)(this.imageRef)&&this.handleImageLoaded();var e=(0,y.fixClassName)(this.props)[0];this.setState({currentClassNames:e})},n.componentDidUpdate=function(e){var t=this;if((0,p.imagePropsChanged)(this.props,e)){var n=(0,d.convertProps)(this.props),r=(0,h.inImageCache)(n),a=(0,y.fixClassName)(n)[0];this.setState({isVisible:r||n.critical,imgLoaded:r,currentClassNames:a},(function(){t.bgImage=(0,p.getCurrentFromData)({data:t.imageRef,propName:"currentSrc",returnArray:!0})||(0,p.getCurrentFromData)({data:t.imageRef,propName:"src",returnArray:!0}),t.imageRef=(0,m.createPictureRef)((0,i.default)({},n,{isVisible:t.state.isVisible}),t.handleImageLoaded)}))}},n.componentWillUnmount=function(){this.imageRef&&(Array.isArray(this.imageRef)?this.imageRef.forEach((function(e){return e.onload=null})):this.imageRef.onload=null),this.cleanUpListeners&&this.cleanUpListeners()},n.handleRef=function(e){this.selfRef=e,this.state.IOSupported&&e&&(this.cleanUpListeners=(0,b.listenToIntersections)(e,this.intersectionListener,this.props.rootMargin))},n.handleImageLoaded=function(){(0,h.activateCacheForImage)(this.props),this.setState((function(e){return{imgLoaded:!0,imageState:e.imageState+1}})),this.state.seenBefore&&this.setState({fadeIn:!1}),this.props.onLoad&&this.props.onLoad()},n.render=function(){var e=(0,y.fixOpacity)((0,d.convertProps)(this.props),this.props.preserveStackingContext),t=e.className,n=e.style,r=void 0===n?{}:n,o=e.fluid,l=e.fixed,u=e.backgroundColor,s=e.durationFadeIn,f=e.Tag,h=e.children,m=e.classId,b=void 0===m?t?"":Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,7)+"_depr":m,w=(0,a.default)(e,["className","style","fluid","fixed","backgroundColor","durationFadeIn","Tag","children","classId"]),A=(0,d.stripRemainingProps)(w),E="boolean"==typeof u?"lightgray":void 0!==u?u:"",S=!0===this.state.fadeIn&&!this.state.imgCached||"soft"===this.props.fadeIn,k=this.state.imgLoaded?s+"ms":"0.25s",T=(0,i.default)({position:"relative"},r);this.props.preserveStackingContext||(T.opacity=.99);var x=(0,p.getCurrentSrcData)({fluid:o,fixed:l,returnArray:!0}),C=(0,p.getCurrentSrcData)({fluid:o,fixed:l});if(!o&&!l)return null;l&&(T.width=x.width,T.height=x.height,T.display="inline-block","inherit"===r.display&&delete T.display);var O=(0,g.switchImageSettings)({image:x,bgImage:this.bgImage,imageRef:this.imageRef,state:this.state});this.bgImage=O.nextImageArray||O.nextImage||this.bgImage;var P=(0,v.createPseudoStyles)((0,i.default)({classId:b,className:this.state.currentClassNames,transitionDelay:k,bgColor:E,backgroundStyles:this.backgroundStyles,style:r,fadeIn:S},O)),_=(0,v.createNoScriptStyles)({image:x,bgColor:E,classId:b,className:this.state.currentClassNames,backgroundStyles:this.backgroundStyles,style:r}),I=""+(o&&"fluid")+(l&&"fixed")+"-"+JSON.stringify(C.srcSet);return c.default.createElement(f,(0,i.default)({className:""+(this.state.currentClassNames||"")+(b&&" gatsby-background-image-"+b)+" gatsby-image-wrapper",style:(0,i.default)({},T,{},this.backgroundStyles),ref:this.handleRef,key:I},A),c.default.createElement("style",{dangerouslySetInnerHTML:{__html:P}}),this.state.hasNoScript&&c.default.createElement("noscript",null,c.default.createElement("style",{dangerouslySetInnerHTML:{__html:_}})),h)},t}(c.default.Component);w.defaultProps={critical:!1,fadeIn:!0,durationFadeIn:500,Tag:"div",preserveStackingContext:!1,rootMargin:"200px"};var A=s.default.shape({width:s.default.number.isRequired,height:s.default.number.isRequired,src:s.default.string.isRequired,srcSet:s.default.string.isRequired,base64:s.default.string,tracedSVG:s.default.string,srcWebp:s.default.string,srcSetWebp:s.default.string,media:s.default.string}),E=s.default.shape({aspectRatio:s.default.number.isRequired,src:s.default.string.isRequired,srcSet:s.default.string.isRequired,sizes:s.default.string.isRequired,base64:s.default.string,tracedSVG:s.default.string,srcWebp:s.default.string,srcSetWebp:s.default.string,media:s.default.string});w.propTypes={resolutions:s.default.oneOfType([A,s.default.arrayOf(A),s.default.arrayOf(s.default.oneOfType([A,s.default.string]))]),sizes:s.default.oneOfType([E,s.default.arrayOf(E),s.default.arrayOf(s.default.oneOfType([E,s.default.string]))]),fixed:s.default.oneOfType([A,s.default.arrayOf(A),s.default.arrayOf(s.default.oneOfType([A,s.default.string]))]),fluid:s.default.oneOfType([E,s.default.arrayOf(E),s.default.arrayOf(s.default.oneOfType([E,s.default.string]))]),fadeIn:s.default.oneOfType([s.default.string,s.default.bool]),durationFadeIn:s.default.number,className:s.default.oneOfType([s.default.string,s.default.object]),critical:s.default.bool,crossOrigin:s.default.oneOfType([s.default.string,s.default.bool]),style:s.default.oneOfType([s.default.object,s.default.array]),backgroundColor:s.default.oneOfType([s.default.string,s.default.bool]),onLoad:s.default.func,onError:s.default.func,onStartLoad:s.default.func,Tag:s.default.oneOfType([s.default.string,s.default.func]),classId:s.default.string,preserveStackingContext:s.default.bool,rootMargin:s.default.string};var S=w;t.default=S},"2SVd":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"2rMq":function(e,t,n){var r;!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},"4fRq":function(e,t,n){n("NO8f"),n("2Spj");var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var a=new Uint8Array(16);e.exports=function(){return r(a),a}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},"4qRI":function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},"5oMp":function(e,t,n){"use strict";n("pIFo"),e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"6Wpt":function(e,t,n){"use strict";var r=n("TqRt");t.__esModule=!0,t.default=void 0;var a=r(n("YvMK")).default;t.default=a},"7DDg":function(e,t,n){"use strict";if(n("nh4g")){var r=n("LQAc"),a=n("dyZX"),i=n("eeVq"),o=n("XKFU"),l=n("D4iV"),u=n("7Qtz"),c=n("m0Pp"),s=n("9gX7"),f=n("RjD/"),d=n("Mukb"),p=n("3Lyj"),h=n("RYi7"),m=n("ne8i"),g=n("Cfrj"),y=n("d/Gc"),v=n("apmT"),b=n("aagx"),w=n("I8a+"),A=n("0/R4"),E=n("S/j/"),S=n("M6Qj"),k=n("Kuth"),T=n("OP3Y"),x=n("kJMx").f,C=n("J+6e"),O=n("ylqs"),P=n("K0xU"),_=n("CkkT"),I=n("w2a5"),N=n("69bn"),R=n("yt8O"),M=n("hPIQ"),j=n("XMVh"),L=n("elZq"),F=n("Nr18"),D=n("upKx"),z=n("hswa"),U=n("EemH"),V=z.f,B=U.f,H=a.RangeError,q=a.TypeError,W=a.Uint8Array,G=Array.prototype,K=u.ArrayBuffer,$=u.DataView,Q=_(0),Y=_(2),X=_(3),J=_(4),Z=_(5),ee=_(6),te=I(!0),ne=I(!1),re=R.values,ae=R.keys,ie=R.entries,oe=G.lastIndexOf,le=G.reduce,ue=G.reduceRight,ce=G.join,se=G.sort,fe=G.slice,de=G.toString,pe=G.toLocaleString,he=P("iterator"),me=P("toStringTag"),ge=O("typed_constructor"),ye=O("def_constructor"),ve=l.CONSTR,be=l.TYPED,we=l.VIEW,Ae=_(1,(function(e,t){return xe(N(e,e[ye]),t)})),Ee=i((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Se=!!W&&!!W.prototype.set&&i((function(){new W(1).set({})})),ke=function(e,t){var n=h(e);if(n<0||n%t)throw H("Wrong offset!");return n},Te=function(e){if(A(e)&&be in e)return e;throw q(e+" is not a typed array!")},xe=function(e,t){if(!(A(e)&&ge in e))throw q("It is not a typed array constructor!");return new e(t)},Ce=function(e,t){return Oe(N(e,e[ye]),t)},Oe=function(e,t){for(var n=0,r=t.length,a=xe(e,r);r>n;)a[n]=t[n++];return a},Pe=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},_e=function(e){var t,n,r,a,i,o,l=E(e),u=arguments.length,s=u>1?arguments[1]:void 0,f=void 0!==s,d=C(l);if(null!=d&&!S(d)){for(o=d.call(l),r=[],t=0;!(i=o.next()).done;t++)r.push(i.value);l=r}for(f&&u>2&&(s=c(s,arguments[2],2)),t=0,n=m(l.length),a=xe(this,n);n>t;t++)a[t]=f?s(l[t],t):l[t];return a},Ie=function(){for(var e=0,t=arguments.length,n=xe(this,t);t>e;)n[e]=arguments[e++];return n},Ne=!!W&&i((function(){pe.call(new W(1))})),Re=function(){return pe.apply(Ne?fe.call(Te(this)):Te(this),arguments)},Me={copyWithin:function(e,t){return D.call(Te(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(Te(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Te(this),arguments)},filter:function(e){return Ce(this,Y(Te(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Z(Te(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Te(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Q(Te(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Te(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Te(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Te(this),arguments)},lastIndexOf:function(e){return oe.apply(Te(this),arguments)},map:function(e){return Ae(Te(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return le.apply(Te(this),arguments)},reduceRight:function(e){return ue.apply(Te(this),arguments)},reverse:function(){for(var e,t=Te(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e){return X(Te(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return se.call(Te(this),e)},subarray:function(e,t){var n=Te(this),r=n.length,a=y(e,r);return new(N(n,n[ye]))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,m((void 0===t?r:y(t,r))-a))}},je=function(e,t){return Ce(this,fe.call(Te(this),e,t))},Le=function(e){Te(this);var t=ke(arguments[1],1),n=this.length,r=E(e),a=m(r.length),i=0;if(a+t>n)throw H("Wrong length!");for(;i<a;)this[t+i]=r[i++]},Fe={entries:function(){return ie.call(Te(this))},keys:function(){return ae.call(Te(this))},values:function(){return re.call(Te(this))}},De=function(e,t){return A(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},ze=function(e,t){return De(e,t=v(t,!0))?f(2,e[t]):B(e,t)},Ue=function(e,t,n){return!(De(e,t=v(t,!0))&&A(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?V(e,t,n):(e[t]=n.value,e)};ve||(U.f=ze,z.f=Ue),o(o.S+o.F*!ve,"Object",{getOwnPropertyDescriptor:ze,defineProperty:Ue}),i((function(){de.call({})}))&&(de=pe=function(){return ce.call(this)});var Ve=p({},Me);p(Ve,Fe),d(Ve,he,Fe.values),p(Ve,{slice:je,set:Le,constructor:function(){},toString:de,toLocaleString:Re}),Pe(Ve,"buffer","b"),Pe(Ve,"byteOffset","o"),Pe(Ve,"byteLength","l"),Pe(Ve,"length","e"),V(Ve,me,{get:function(){return this[be]}}),e.exports=function(e,t,n,u){var c=e+((u=!!u)?"Clamped":"")+"Array",f="get"+e,p="set"+e,h=a[c],y=h||{},v=h&&T(h),b=!h||!l.ABV,E={},S=h&&h.prototype,C=function(e,n){V(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[f](n*t+r.o,Ee)}(this,n)},set:function(e){return function(e,n,r){var a=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),a.v[p](n*t+a.o,r,Ee)}(this,n,e)},enumerable:!0})};b?(h=n((function(e,n,r,a){s(e,h,c,"_d");var i,o,l,u,f=0,p=0;if(A(n)){if(!(n instanceof K||"ArrayBuffer"==(u=w(n))||"SharedArrayBuffer"==u))return be in n?Oe(h,n):_e.call(h,n);i=n,p=ke(r,t);var y=n.byteLength;if(void 0===a){if(y%t)throw H("Wrong length!");if((o=y-p)<0)throw H("Wrong length!")}else if((o=m(a)*t)+p>y)throw H("Wrong length!");l=o/t}else l=g(n),i=new K(o=l*t);for(d(e,"_d",{b:i,o:p,l:o,e:l,v:new $(i)});f<l;)C(e,f++)})),S=h.prototype=k(Ve),d(S,"constructor",h)):i((function(){h(1)}))&&i((function(){new h(-1)}))&&j((function(e){new h,new h(null),new h(1.5),new h(e)}),!0)||(h=n((function(e,n,r,a){var i;return s(e,h,c),A(n)?n instanceof K||"ArrayBuffer"==(i=w(n))||"SharedArrayBuffer"==i?void 0!==a?new y(n,ke(r,t),a):void 0!==r?new y(n,ke(r,t)):new y(n):be in n?Oe(h,n):_e.call(h,n):new y(g(n))})),Q(v!==Function.prototype?x(y).concat(x(v)):x(y),(function(e){e in h||d(h,e,y[e])})),h.prototype=S,r||(S.constructor=h));var O=S[he],P=!!O&&("values"==O.name||null==O.name),_=Fe.values;d(h,ge,!0),d(S,be,c),d(S,we,!0),d(S,ye,h),(u?new h(1)[me]==c:me in S)||V(S,me,{get:function(){return c}}),E[c]=h,o(o.G+o.W+o.F*(h!=y),E),o(o.S,c,{BYTES_PER_ELEMENT:t}),o(o.S+o.F*i((function(){y.of.call(h,1)})),c,{from:_e,of:Ie}),"BYTES_PER_ELEMENT"in S||d(S,"BYTES_PER_ELEMENT",t),o(o.P,c,Me),L(c),o(o.P+o.F*Se,c,{set:Le}),o(o.P+o.F*!P,c,Fe),r||S.toString==de||(S.toString=de),o(o.P+o.F*i((function(){new h(1).slice()})),c,{slice:je}),o(o.P+o.F*(i((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!i((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Re}),M[c]=P?O:_,r||P||d(S,he,_)}}else e.exports=function(){}},"7EsY":function(e,t,n){"use strict";var r=n("TqRt");t.__esModule=!0,t.default=void 0;var a=r(n("cJVi")),i=function(e){return(0,a.default)("displayName",e)};t.default=i},"7Qtz":function(e,t,n){"use strict";var r=n("dyZX"),a=n("nh4g"),i=n("LQAc"),o=n("D4iV"),l=n("Mukb"),u=n("3Lyj"),c=n("eeVq"),s=n("9gX7"),f=n("RYi7"),d=n("ne8i"),p=n("Cfrj"),h=n("kJMx").f,m=n("hswa").f,g=n("Nr18"),y=n("fyDq"),v="prototype",b="Wrong index!",w=r.ArrayBuffer,A=r.DataView,E=r.Math,S=r.RangeError,k=r.Infinity,T=w,x=E.abs,C=E.pow,O=E.floor,P=E.log,_=E.LN2,I=a?"_b":"buffer",N=a?"_l":"byteLength",R=a?"_o":"byteOffset";function M(e,t,n){var r,a,i,o=new Array(n),l=8*n-t-1,u=(1<<l)-1,c=u>>1,s=23===t?C(2,-24)-C(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=x(e))!=e||e===k?(a=e!=e?1:0,r=u):(r=O(P(e)/_),e*(i=C(2,-r))<1&&(r--,i*=2),(e+=r+c>=1?s/i:s*C(2,1-c))*i>=2&&(r++,i/=2),r+c>=u?(a=0,r=u):r+c>=1?(a=(e*i-1)*C(2,t),r+=c):(a=e*C(2,c-1)*C(2,t),r=0));t>=8;o[f++]=255&a,a/=256,t-=8);for(r=r<<t|a,l+=t;l>0;o[f++]=255&r,r/=256,l-=8);return o[--f]|=128*d,o}function j(e,t,n){var r,a=8*n-t-1,i=(1<<a)-1,o=i>>1,l=a-7,u=n-1,c=e[u--],s=127&c;for(c>>=7;l>0;s=256*s+e[u],u--,l-=8);for(r=s&(1<<-l)-1,s>>=-l,l+=t;l>0;r=256*r+e[u],u--,l-=8);if(0===s)s=1-o;else{if(s===i)return r?NaN:c?-k:k;r+=C(2,t),s-=o}return(c?-1:1)*r*C(2,s-t)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function F(e){return[255&e]}function D(e){return[255&e,e>>8&255]}function z(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function U(e){return M(e,52,8)}function V(e){return M(e,23,4)}function B(e,t,n){m(e[v],t,{get:function(){return this[n]}})}function H(e,t,n,r){var a=p(+n);if(a+t>e[N])throw S(b);var i=e[I]._b,o=a+e[R],l=i.slice(o,o+t);return r?l:l.reverse()}function q(e,t,n,r,a,i){var o=p(+n);if(o+t>e[N])throw S(b);for(var l=e[I]._b,u=o+e[R],c=r(+a),s=0;s<t;s++)l[u+s]=c[i?s:t-s-1]}if(o.ABV){if(!c((function(){w(1)}))||!c((function(){new w(-1)}))||c((function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name}))){for(var W,G=(w=function(e){return s(this,w),new T(p(e))})[v]=T[v],K=h(T),$=0;K.length>$;)(W=K[$++])in w||l(w,W,T[W]);i||(G.constructor=w)}var Q=new A(new w(2)),Y=A[v].setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||u(A[v],{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},!0)}else w=function(e){s(this,w,"ArrayBuffer");var t=p(e);this._b=g.call(new Array(t),0),this[N]=t},A=function(e,t,n){s(this,A,"DataView"),s(e,w,"DataView");var r=e[N],a=f(t);if(a<0||a>r)throw S("Wrong offset!");if(a+(n=void 0===n?r-a:d(n))>r)throw S("Wrong length!");this[I]=e,this[R]=a,this[N]=n},a&&(B(w,"byteLength","_l"),B(A,"buffer","_b"),B(A,"byteLength","_l"),B(A,"byteOffset","_o")),u(A[v],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return L(H(this,4,e,arguments[1]))},getUint32:function(e){return L(H(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return j(H(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return j(H(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){q(this,1,e,F,t)},setUint8:function(e,t){q(this,1,e,F,t)},setInt16:function(e,t){q(this,2,e,D,t,arguments[2])},setUint16:function(e,t){q(this,2,e,D,t,arguments[2])},setInt32:function(e,t){q(this,4,e,z,t,arguments[2])},setUint32:function(e,t){q(this,4,e,z,t,arguments[2])},setFloat32:function(e,t){q(this,4,e,V,t,arguments[2])},setFloat64:function(e,t){q(this,8,e,U,t,arguments[2])}});y(w,"ArrayBuffer"),y(A,"DataView"),l(A[v],o.VIEW,!0),t.ArrayBuffer=w,t.DataView=A},"8+s/":function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}n("V+eJ"),n("bWfx"),n("f3/d"),n("/SS/"),n("hHhE");var a=n("q1tI"),i=r(a),o=r(n("2rMq")),l=r(n("Gytx"));e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u=[],c=void 0;function s(){c=e(u.map((function(e){return e.props}))),f.canUseDOM?t(c):n&&(c=n(c))}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.peek=function(){return c},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,u=[],e},t.prototype.shouldComponentUpdate=function(e){return!l(e,this.props)},t.prototype.componentWillMount=function(){u.push(this),s()},t.prototype.componentDidUpdate=function(){s()},t.prototype.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),s()},t.prototype.render=function(){return i.createElement(r,this.props)},t}(a.Component);return f.displayName="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",f.canUseDOM=o.canUseDOM,f}}},"9LMJ":function(e,t,n){"use strict";var r=n("TqRt");t.__esModule=!0,t.default=void 0;var a=r(n("VbXa")),i=n("q1tI"),o=(r(n("7EsY")),r(n("hBwV")),function(e){return function(t){var n=(0,i.createFactory)(t);return function(t){function r(){return t.apply(this,arguments)||this}(0,a.default)(r,t);var i=r.prototype;return i.shouldComponentUpdate=function(t){return e(this.props,t)},i.render=function(){return n(this.props)},r}(i.Component)}});t.default=o},"9rSQ":function(e,t,n){"use strict";n("8+KV");var r=n("xTJ+");function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},"9uj6":function(e,t,n){"use strict";var r=n("4qRI"),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=Object(r.a)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=i},AphP:function(e,t,n){"use strict";var r=n("XKFU"),a=n("S/j/"),i=n("apmT");r(r.P+r.F*n("eeVq")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=a(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},BfiH:function(e,t,n){"use strict";n("0mN4"),t.__esModule=!0,t.activateMultiplePictureRefs=t.activatePictureRef=t.createMultiplePictureRefs=t.createPictureRef=void 0;var r=n("uXx/"),a=n("EFel"),i=n("K9wq"),o=n("lOcZ"),l=function(e,t,n,l){void 0===l&&(l=!1);var s=(0,r.convertProps)(e);if((0,o.isBrowser)()&&(void 0!==s.fluid||void 0!==s.fixed)){if((0,a.hasImageArray)(s)&&!(0,i.hasArtDirectionArray)(s)&&!l)return u(e,t);var f=new Image;return f.onload=function(){return t()},f.complete||"function"!=typeof s.onLoad||f.addEventListener("load",s.onLoad),"function"==typeof s.onError&&f.addEventListener("error",s.onError),s.crossOrigin&&(f.crossOrigin=s.crossOrigin),!s.critical&&!s.isVisible||l?f:c(f,s,n,l)}return null};t.createPictureRef=l;var u=function(e,t){var n=(0,r.convertProps)(e),a=(n.fluid||n.fixed).map((function(e,r){return l(n,t,r,!0)}));return n.critical||n.isVisible?c(a,n):a};t.createMultiplePictureRefs=u;var c=function(e,t,n,l,u){void 0===n&&(n=null),void 0===l&&(l=0),void 0===u&&(u=!1);var c=(0,r.convertProps)(t);if((0,o.isBrowser)()&&(void 0!==c.fluid||void 0!==c.fixed)){var f=(0,a.hasImageArray)(c)&&!(0,i.hasArtDirectionArray)(c);if(f&&!u)return s(e,t,n);var d=document.body.cloneNode(!0),p=f?(0,a.getSelectedImage)(c,l):(0,a.getCurrentSrcData)(c);if((0,a.hasPictureElement)()){var h=document.createElement("picture");if(n&&(h.width=e.width=n.offsetWidth,h.height=e.height=n.offsetHeight),(0,i.hasArtDirectionArray)(c))(0,i.createArtDirectionSources)(c).reverse().forEach((function(e){return h.appendChild(e)}));if(p.srcSetWebp){var m=document.createElement("source");m.type="image/webp",m.srcset=p.srcSetWebp,m.sizes=p.sizes,h.appendChild(m)}h.appendChild(e),d.appendChild(h)}else n&&(e.width=n.offsetWidth,e.height=n.offsetHeight);return e.srcset=p.srcSet?p.srcSet:"",e.src=p.src?p.src:"",e}return null};t.activatePictureRef=c;var s=function(e,t,n){return e.map((function(e,r){return c(e,t,n,r,!0)}))};t.activateMultiplePictureRefs=s},Bl7J:function(e,t,n){"use strict";var r=n("ixUY"),a=n("q1tI"),i=n.n(a),o=n("vOnD"),l=n("1KeF");function u(){var e=s(["\n ",";\n"]);return u=function(){return e},e}function c(){var e=s(["\n background-color: transparent;\n ",";\n"]);return c=function(){return e},e}function s(e,t){return t||(t=e.slice(0)),e.raw=t,e}var f=o.b.header(c(),{margin:"1.5rem",marginTop:"0",textAlign:"center","@media (min-width: 768px)":{textAlign:"left"}}),d=o.b.div(u(),{marginLeft:"auto",marginRight:"auto",maxWidth:"100%",paddingLeft:"1.25rem",paddingRight:"1.25rem",paddingTop:"1rem",paddingBottom:"1.5rem"}),p=function(e){var t=e.siteTitle;return i.a.createElement(f,null,i.a.createElement(d,null,i.a.createElement("h1",{style:{margin:0}},i.a.createElement(l.e,{to:"/"},t))))};p.defaultProps={siteTitle:""};var h=p;function m(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n body {\n margin: 0;\n font-weight: normal;\n word-wrap: break-word;\n font-kerning: normal;\n font-feature-settings: 'kern', 'liga', 'clig', 'calt';\n font-family: georgia, serif;\n }\n h1, h2, h3, h4, h5, h6 {\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,\n Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;\n margin-left: 0;\n margin-right: 0;\n margin-top: 0;\n }\n h1 {\n ",";\n }\n h2 {\n ",";\n }\n h3 {\n ",";\n }\n h4 {\n ",";\n }\n h5 {\n ",";\n }\n h6 {\n ",";\n }\n :root {\n --color-scale-0: rgb(242,242,242);\n --color-scale-0-alpha-1: rgba(242,242,242,0.3);\n --color-scale-0-alpha-2: rgba(242,242,242,0.5);\n --color-scale-0-alpha-3: rgba(242,242,242,0.8); \n --color-scale-1: rgb(173,222,222);\n --color-scale-1-alpha-1: rgba(173,222,222,0.3);\n --color-scale-1-alpha-2: rgba(173,222,222,0.5);\n --color-scale-1-alpha-3: rgba(173,222,222,0.8);\n --color-scale-2: rgb(149,191,191);\n --color-scale-2-alpha-1: rgba(149,191,191,0.3);\n --color-scale-2-alpha-2: rgba(149,191,191,0.5);\n --color-scale-2-alpha-3: rgba(149,191,191,0.8);\n --color-scale-3: rgb(103,162,168);\n --color-scale-3-alpha-1: rgba(103,162,168,0.3);\n --color-scale-3-alpha-2: rgba(103,162,168,0.5);\n --color-scale-3-alpha-3: rgba(103,162,168,0.8);\n --color-scale-4: rgb(81,140,153);\n --color-scale-4-alpha-1: rgba(81,140,153,0.3);\n --color-scale-4-alpha-2: rgba(81,140,153,0.5);\n --color-scale-4-alpha-3: rgba(81,140,153,0.8); \n --color-scale-5: rgb(86,135,140);\n --color-scale-5-alpha-1: rgba(86,135,140,0.3);\n --color-scale-5-alpha-2: rgba(86,135,140,0.5);\n --color-scale-5-alpha-3: rgba(86,135,140,0.8);\n --color-scale-6: rgb(61,105,115);\n --color-scale-6-alpha-1: rgba(61,105,115,0.3);\n --color-scale-6-alpha-2: rgba(61,105,115,0.5);\n --color-scale-6-alpha-3: rgba(61,105,115,0.8);\n --color-scale-7: rgb(33,62,74);\n --color-scale-7-alpha-1: rgba(33,62,74,0.3);\n --color-scale-7-alpha-2: rgba(33,62,74,0.5);\n --color-scale-7-alpha-3: rgba(33,62,74,0.8);\n --color-scale-8: rgb(34,61,64);\n --color-scale-8-alpha-1: rgba(34,61,64,0.3);\n --color-scale-8-alpha-2: rgba(34,61,64,0.5);\n --color-scale-8-alpha-3: rgba(34,61,64,0.8);\n }\n ::selection {\n background-color: var(--color-scale-8-alpha-1);\n }\n"]);return m=function(){return e},e}var g=Object(o.a)(m(),{fontSize:"2.25rem","@media (min-width: 768px)":{fontSize:"3rem"}},{fontSize:"1.875rem","@media (min-width: 768px)":{fontSize:"2.25rem"}},{fontSize:"1.5rem","@media (min-width: 768px)":{fontSize:"1.875rem"}},{fontSize:"1.25rem","@media (min-width: 768px)":{fontSize:"1.5rem"}},{fontSize:"1.125rem","@media (min-width: 768px)":{fontSize:"1.25rem"}},{fontSize:"1rem","@media (min-width: 768px)":{fontSize:"1.125rem"}}),y=n("KhFd"),v=n("1eu9"),b=n.n(v);function w(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n position: static;\n z-index: -1;\n"]);return w=function(){return e},e}Object(o.b)(b.a)(w());var A=function(e){var t=e.children,n=(e.img,y.data);return i.a.createElement(b.a,{fluid:n.desktop.childImageSharp.fluid},t)};function E(){var e=T(["\n text-align: center;\n color: var(--color-scale-0);\n"]);return E=function(){return e},e}function S(){var e=T(["\n margin: 0 auto;\n max-width: 1600px;\n ",";\n"]);return S=function(){return e},e}function k(){var e=T(["\n min-height: 70vh;\n"]);return k=function(){return e},e}function T(e,t){return t||(t=e.slice(0)),e.raw=t,e}var x=o.b.main(k()),C=o.b.div(S(),{"@media (min-width: 640px)":{padding:"0"},"@media (min-width: 768px)":{padding:"1rem"}}),O=o.b.footer(E());t.a=function(e){var t=e.children,n=(e.location,e.show),a=void 0===n||n,o=r.data;return i.a.createElement(A,null,i.a.createElement("div",{style:{minHeight:"100vh"}},i.a.createElement(g,null),a&&i.a.createElement(h,{siteTitle:o.site.siteMetadata.title}),i.a.createElement(C,null,i.a.createElement(x,null,t),a&&i.a.createElement(O,null,"© ",(new Date).getFullYear(),", Built by"," ",i.a.createElement(l.c,{style:{fontWeight:"bold"},href:"https://spencerranney.com"},"Spencer Ranney")))))}},Cfrj:function(e,t,n){var r=n("RYi7"),a=n("ne8i");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=a(t);if(t!==n)throw RangeError("Wrong length!");return n}},CgaS:function(e,t,n){"use strict";n("pIFo"),n("8+KV"),n("VRzm"),n("Btvt");var r=n("xTJ+"),a=n("MLWZ"),i=n("9rSQ"),o=n("UnBK"),l=n("SntB");function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=l(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,a){return this.request(r.merge(a||{},{method:e,url:t,data:n}))}})),e.exports=u},D4iV:function(e,t,n){for(var r,a=n("dyZX"),i=n("Mukb"),o=n("ylqs"),l=o("typed_array"),u=o("view"),c=!(!a.ArrayBuffer||!a.DataView),s=c,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=a[d[f++]])?(i(r.prototype,l,!0),i(r.prototype,u,!0)):s=!1;e.exports={ABV:c,CONSTR:s,TYPED:l,VIEW:u}},DW2E:function(e,t,n){var r=n("0/R4"),a=n("Z6vF").onFreeze;n("Xtr8")("freeze",(function(e){return function(t){return e&&r(t)?e(a(t)):t}}))},DfZB:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},ECyS:function(e,t,n){"use strict";n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("Z2Ku"),n("L9s1"),n("DNiP"),n("ioFf"),n("8+KV"),n("HAE/"),n("f3/d"),n("a1Th"),n("h7Nl");function r(e){return Object.prototype.toString.call(e).slice(8,-1)}function a(e){return"Object"===r(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function i(e){return"Array"===r(e)}function o(e){return"Symbol"===r(e)}function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,a++)r[a]=i[o];return r}function u(e,t,n,r){var a=r.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===a&&(e[t]=n),"nonenumerable"===a&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,c=e;return a(e)&&e.extensions&&1===Object.keys(e).length&&(c={},r=e.extensions),t.reduce((function(e,t){return function e(t,n,r){if(!a(n))return r&&i(r)&&r.forEach((function(e){n=e(t,n)})),n;var c={};return a(t)&&(c=l(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t)).reduce((function(e,r){var a=t[r];return(!o(r)&&!Object.getOwnPropertyNames(n).includes(r)||o(r)&&!Object.getOwnPropertySymbols(n).includes(r))&&u(e,r,a,t),e}),{})),l(Object.getOwnPropertyNames(n),Object.getOwnPropertySymbols(n)).reduce((function(o,l){var c=n[l],s=a(t)?t[l]:void 0;return r&&i(r)&&r.forEach((function(e){c=e(s,c)})),void 0!==s&&a(c)&&(c=e(s,c,r)),u(o,l,c,n),o}),c)}(e,t,r)}),c)}},EFel:function(e,t,n){"use strict";n("bHtr"),n("INYr"),n("0mN4"),t.__esModule=!0,t.imageLoaded=t.imageReferenceCompleted=t.createDummyImageArray=t.imageArrayPropsChanged=t.imagePropsChanged=t.getUrlString=t.getSelectedImage=t.getCurrentSrcData=t.getImageSrcKey=t.getCurrentFromData=t.hasImageArray=t.hasPictureElement=void 0;var r=n("K9wq"),a=n("lOcZ");t.hasPictureElement=function(){return"undefined"!=typeof HTMLPictureElement||"undefined"==typeof window};var i=function(e){return Boolean(e.fluid&&Array.isArray(e.fluid)||e.fixed&&Array.isArray(e.fixed))};t.hasImageArray=i;t.getCurrentFromData=function(e){var t=e.data,n=e.propName,i=e.addUrl,u=void 0===i||i,s=e.returnArray,f=void 0!==s&&s,d=e.checkLoaded,p=void 0===d||d;if(!t||!n)return"";var h="tracedSVG"===n;if(Array.isArray(t)&&!(0,r.hasArtDirectionArray)({fluid:t})){var m=t.map((function(e){return"currentSrc"===n||"src"===n?p?c(e)&&e[n]||"":e[n]:"CSS_STRING"===n&&(0,a.isString)(e)?e:e[n]||""}));return l({imageString:m,tracedSVG:h,addUrl:u,returnArray:f})}if((0,r.hasArtDirectionArray)({fluid:t})&&("currentSrc"===n||"src"===n)){var g=o({fluid:t});return n in g?l({imageString:g[n],tracedSVG:h,addUrl:u}):""}return("currentSrc"===n||"src"===n)&&n in t?l({imageString:p?c(t)&&t[n]||"":t[n],addUrl:u}):n in t?l({imageString:t[n],tracedSVG:h,addUrl:u}):""};t.getImageSrcKey=function(e){var t=e.fluid,n=e.fixed,r=o({fluid:t,fixed:n});return r&&r.src||null};var o=function(e,t){var n=e.fluid,o=e.fixed,l=e.returnArray;void 0===t&&(t=0);var u=n||o;if(i({fluid:n,fixed:o})){if(l)return u;if((0,a.isBrowser)()&&(0,r.hasArtDirectionArray)({fluid:n,fixed:o})){var c=u.slice().reverse(),s=c.findIndex(r.matchesMedia);if(-1!==s)return c[s]}return u[t]}return u};t.getCurrentSrcData=o;t.getSelectedImage=function(e,t){var n=e.fluid,r=e.fixed;void 0===t&&(t=0);var a=n||r;return i({fluid:n,fixed:r})?a[t]:a};var l=function(e){var t=e.imageString,n=e.tracedSVG,r=void 0!==n&&n,i=e.addUrl,o=void 0===i||i,l=e.returnArray,u=void 0!==l&&l,c=e.hasImageUrls,s=void 0!==c&&c;if(Array.isArray(t)){var f=t.map((function(e){if(e){var t=-1!==e.indexOf("base64"),n=s||"http"===e.substr(0,4),a=e&&r?'"'+e+'"':e&&!t&&!r&&n?"'"+e+"'":e;return o&&e?"url("+a+")":a}return e}));return u?f:(0,a.filteredJoin)(f)}var d=-1!==t.indexOf("base64"),p=s||"http"===t.substr(0,4),h=t&&r?'"'+t+'"':t&&!d&&!r&&p?"'"+t+"'":t;return t?o?"url("+h+")":h:""};t.getUrlString=l;t.imagePropsChanged=function(e,t){return e.fluid&&!t.fluid||e.fixed&&!t.fixed||u(e,t)||e.fluid&&t.fluid&&e.fluid.src!==t.fluid.src||e.fixed&&t.fixed&&e.fixed.src!==t.fixed.src};var u=function(e,t){var n=Array.isArray(e.fluid),r=Array.isArray(t.fluid),a=Array.isArray(e.fixed),i=Array.isArray(t.fixed);return!!(n&&!r||a&&!i||!n&&r||!a&&i)||(n&&r?e.fluid.length!==t.fluid.length||e.fluid.some((function(e,n){return e.src!==t.fluid[n].src})):a&&i?e.fixed.length!==t.fixed.length||e.fixed.some((function(e,n){return e.src!==t.fixed[n].src})):void 0)};t.imageArrayPropsChanged=u;t.createDummyImageArray=function(e){var t=l({imageString:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});return Array(e).fill(t)};t.imageReferenceCompleted=function(e){return e?Array.isArray(e)?e.every((function(e){return c(e)})):c(e):(0,a.isString)(e)};var c=function(e){return!!e&&(e.complete&&0!==e.naturalWidth&&0!==e.naturalHeight)};t.imageLoaded=c},EH9Q:function(e){e.exports=JSON.parse('{"data":{"site":{"siteMetadata":{"title":"Deep Dive Into ES6","description":"A deep dive into ES6 features. Providing surprising and interesting code examples that will help you discover the beauty of JavaScript all over again.","author":"@js_bacon_and_me"}}}}')},EenI:function(e,t,n){"use strict";var r=n("q1tI"),a=n("vDqi"),i=n.n(a),o=function(e,t){return"successful"===t.type?{loading:!1,error:void 0,response:t.data}:"loading"===t.type?{loading:!0,error:void 0,response:[]}:"error"===t.type?{loading:!1,error:t.data,response:[]}:void 0};t.a=function(e){var t=Object(r.useReducer)(o,{response:[],error:void 0,loading:!1}),n=t[0],a=n.response,l=n.error,u=n.loading,c=t[1];return Object(r.useEffect)((function(){c({type:"loading"}),i.a.get("http://mylearningposts-api.herokuapp.com/"+e).then((function(e){c({type:"successful",data:e.data})})).catch((function(e){c({type:"error",data:e.data})}))}),[e]),[a,l,u]}},Gytx:function(e,t,n){n("2Spj"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var c=i[u];if(!l(c))return!1;var s=e[c],f=t[c];if(!1===(a=n?n.call(r,s,f,c):void 0)||void 0===a&&s!==f)return!1}return!0}},HSsa:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},I2ZF:function(e,t,n){n("a1Th"),n("h7Nl"),n("Btvt");for(var r=[],a=0;a<256;++a)r[a]=(a+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,a=r;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}},I59i:function(e,t,n){var r=n("UfPM");function a(e,t){var n=new r(e,t);return function(e){return n.convert(e)}}a.BIN="01",a.OCT="01234567",a.DEC="0123456789",a.HEX="0123456789abcdef",e.exports=a},IFaA:function(e,t,n){"use strict";e.exports={abbr:"abbr",accept:"accept",acceptCharset:"accept-charset",accessKey:"accesskey",action:"action",allowFullScreen:"allowfullscreen",allowTransparency:"allowtransparency",alt:"alt",async:"async",autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",cellPadding:"cellpadding",cellSpacing:"cellspacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"class",className:"class",cols:"cols",colSpan:"colspan",command:"command",content:"content",contentEditable:"contenteditable",contextMenu:"contextmenu",controls:"controls",coords:"coords",crossOrigin:"crossorigin",data:"data",dateTime:"datetime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",encType:"enctype",for:"for",form:"form",formAction:"formaction",formEncType:"formenctype",formMethod:"formmethod",formNoValidate:"formnovalidate",formTarget:"formtarget",frameBorder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hrefLang:"hreflang",htmlFor:"for",httpEquiv:"http-equiv",icon:"icon",id:"id",inputMode:"inputmode",isMap:"ismap",itemId:"itemid",itemProp:"itemprop",itemRef:"itemref",itemScope:"itemscope",itemType:"itemtype",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxLength:"maxlength",media:"media",mediaGroup:"mediagroup",method:"method",min:"min",minLength:"minlength",multiple:"multiple",muted:"muted",name:"name",noValidate:"novalidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radioGroup:"radiogroup",readOnly:"readonly",rel:"rel",required:"required",role:"role",rows:"rows",rowSpan:"rowspan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellCheck:"spellcheck",src:"src",srcDoc:"srcdoc",srcSet:"srcset",start:"start",step:"step",style:"style",tabIndex:"tabindex",target:"target",title:"title",translate:"translate",type:"type",typeMustMatch:"typemustmatch",useMap:"usemap",value:"value",width:"width",wmode:"wmode",wrap:"wrap"}},INYr:function(e,t,n){"use strict";var r=n("XKFU"),a=n("CkkT")(6),i="findIndex",o=!0;i in[]&&Array(1)[i]((function(){o=!1})),r(r.P+r.F*o,"Array",{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("nGyu")(i)},J6Zb:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){for(var n={},r=0;r<t.length;r++){var a=t[r];e.hasOwnProperty(a)&&(n[a]=e[a])}return n};t.default=r},JEQr:function(e,t,n){"use strict";(function(t){n("8+KV"),n("a1Th"),n("h7Nl"),n("Btvt");var r=n("xTJ+"),a=n("yK9s"),i={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={adapter:(void 0!==t&&"[object process]"===Object.prototype.toString.call(t)?l=n("tQ2B"):"undefined"!=typeof XMLHttpRequest&&(l=n("tQ2B")),l),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u}).call(this,n("8oxB"))},JhMR:function(e,t,n){"use strict";e.exports=n("KqkS")},K9wq:function(e,t,n){"use strict";n("0mN4");var r=n("TqRt");t.__esModule=!0,t.matchesMedia=t.hasArtDirectionArray=t.hasArtDirectionFixedArray=t.hasArtDirectionFluidArray=t.createArtDirectionSources=t.groupByMedia=void 0;var a=r(n("auJE")),i=n("lOcZ");t.groupByMedia=function(e){var t=[],n=(0,a.default)(e,"media");return n.forEach((function(e){return!e.media&&t.push(e)})),t.length,n};t.createArtDirectionSources=function(e){var t=e.fluid,n=e.fixed;return(t||n).reduce((function(e,t){if(!t.media)return e;var n=document.createElement("source");return n.srcset=t.srcSet,n.media=t.media,t.sizes&&(n.sizes=t.sizes),t.srcSetWebp&&(n.type="image/webp",n.srcSetWebp=t.srcSetWebp),n.media=t.media,e.push(n),e}),[])};var o=function(e){return e.fluid&&Array.isArray(e.fluid)&&e.fluid.some((function(e){return void 0!==e.media}))};t.hasArtDirectionFluidArray=o;var l=function(e){return e.fixed&&Array.isArray(e.fixed)&&e.fixed.some((function(e){return void 0!==e.media}))};t.hasArtDirectionFixedArray=l;t.hasArtDirectionArray=function(e){return o(e)||l(e)};t.matchesMedia=function(e){var t=e.media;return!!t&&((0,i.isBrowser)()&&window.matchMedia(t).matches)}},KhFd:function(e){e.exports=JSON.parse('{"data":{"desktop":{"childImageSharp":{"fluid":{"base64":"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAANABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAUCAwT/xAAXAQADAQAAAAAAAAAAAAAAAAAAAQID/9oADAMBAAIQAxAAAAGnQpnWbQWCP//EABsQAAICAwEAAAAAAAAAAAAAAAABAgMRExQh/9oACAEBAAEFAowFWaz0y0dVsT//xAAVEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAgBAwEBPwGI/8QAFREBAQAAAAAAAAAAAAAAAAAAABH/2gAIAQIBAT8BV//EABgQAAMBAQAAAAAAAAAAAAAAAAABMRAR/9oACAEBAAY/AtpTiZ//xAAbEAACAgMBAAAAAAAAAAAAAAAAAREhUWFxkf/aAAgBAQABPyEpDkTa5CvpvTAO0f/aAAwDAQACAAMAAAAQMD//xAAVEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAgBAwEBPxAt/8QAFREBAQAAAAAAAAAAAAAAAAAAEBH/2gAIAQIBAT8Qo//EABkQAQEBAQEBAAAAAAAAAAAAAAERACExof/aAAgBAQABPxAGc9wCAKezLuPiueN1wdfYu5g5ByC/Tf/Z","aspectRatio":1.5098039215686274,"src":"/static/1b45701523f8ed576c8771e54114b5e8/654ed/background.jpg","srcSet":"/static/1b45701523f8ed576c8771e54114b5e8/50ef4/background.jpg 480w,\\n/static/1b45701523f8ed576c8771e54114b5e8/3d63d/background.jpg 960w,\\n/static/1b45701523f8ed576c8771e54114b5e8/654ed/background.jpg 1920w,\\n/static/1b45701523f8ed576c8771e54114b5e8/7fff2/background.jpg 2880w,\\n/static/1b45701523f8ed576c8771e54114b5e8/b8f3f/background.jpg 3840w,\\n/static/1b45701523f8ed576c8771e54114b5e8/e3854/background.jpg 4928w","srcWebp":"/static/1b45701523f8ed576c8771e54114b5e8/67803/background.webp","srcSetWebp":"/static/1b45701523f8ed576c8771e54114b5e8/04b66/background.webp 480w,\\n/static/1b45701523f8ed576c8771e54114b5e8/976d5/background.webp 960w,\\n/static/1b45701523f8ed576c8771e54114b5e8/67803/background.webp 1920w,\\n/static/1b45701523f8ed576c8771e54114b5e8/c99a3/background.webp 2880w,\\n/static/1b45701523f8ed576c8771e54114b5e8/2185d/background.webp 3840w,\\n/static/1b45701523f8ed576c8771e54114b5e8/653c5/background.webp 4928w","sizes":"(max-width: 1920px) 100vw, 1920px"}}}}}')},KqkS:function(e,t,n){"use strict";var r,a,i,o,l;if(n("eM6i"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,s=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},a=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},o=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var v=!1,b=null,w=-1,A=5,E=0;o=function(){return t.unstable_now()>=E},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):A=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,k=S.port2;S.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();E=e+A;try{b(!0,e)?k.postMessage(null):(v=!1,b=null)}catch(n){throw k.postMessage(null),n}}else v=!1},r=function(e){b=e,v||(v=!0,k.postMessage(null))},a=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){m(w),w=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),a=e[r];if(!(void 0!==a&&0<O(a,t)))break e;e[r]=t,e[n]=a,n=r}}function x(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,o=e[i],l=i+1,u=e[l];if(void 0!==o&&0>O(o,n))void 0!==u&&0>O(u,o)?(e[r]=u,e[l]=n,r=l):(e[r]=o,e[i]=n,r=i);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],_=[],I=1,N=null,R=3,M=!1,j=!1,L=!1;function F(e){for(var t=x(_);null!==t;){if(null===t.callback)C(_);else{if(!(t.startTime<=e))break;C(_),t.sortIndex=t.expirationTime,T(P,t)}t=x(_)}}function D(e){if(L=!1,F(e),!j)if(null!==x(P))j=!0,r(z);else{var t=x(_);null!==t&&a(D,t.startTime-e)}}function z(e,n){j=!1,L&&(L=!1,i()),M=!0;var r=R;try{for(F(n),N=x(P);null!==N&&(!(N.expirationTime>n)||e&&!o());){var l=N.callback;if(null!==l){N.callback=null,R=N.priorityLevel;var u=l(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?N.callback=u:N===x(P)&&C(P),F(n)}else C(P);N=x(P)}if(null!==N)var c=!0;else{var s=x(_);null!==s&&a(D,s.startTime-n),c=!1}return c}finally{N=null,R=r,M=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=l;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,o){var l=t.unstable_now();if("object"==typeof o&&null!==o){var u=o.delay;u="number"==typeof u&&0<u?l+u:l,o="number"==typeof o.timeout?o.timeout:U(e)}else o=U(e),u=l;return e={id:I++,callback:n,priorityLevel:e,startTime:u,expirationTime:o=u+o,sortIndex:-1},u>l?(e.sortIndex=u,T(_,e),null===x(P)&&e===x(_)&&(L?i():L=!0,a(D,u-l))):(e.sortIndex=o,T(P,e),j||M||(j=!0,r(z))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=x(P);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||o()},t.unstable_requestPaint=V,t.unstable_continueExecution=function(){j||M||(j=!0,r(z))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_Profiling=null},LYNF:function(e,t,n){"use strict";var r=n("OH9c");e.exports=function(e,t,n,a,i){var o=new Error(e);return r(o,t,n,a,i)}},Lmem:function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},ME5O:function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},MLWZ:function(e,t,n){"use strict";n("V+eJ"),n("jqX0"),n("8+KV"),n("a1Th"),n("h7Nl"),n("Btvt"),n("pIFo");var r=n("xTJ+");function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},NO8f:function(e,t,n){n("7DDg")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},NVWv:function(e,t,n){"use strict";n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("pIFo"),n("Oyvg");var r=n("TqRt");t.__esModule=!0,t.presetBackgroundStyles=t.fixOpacity=t.setTransitionStyles=t.kebabifyBackgroundStyles=t.escapeClassNames=t.fixClassName=void 0;var a=r(n("pVnL")),i=r(n("8OQS")),o=r(n("gv3/")),l=n("uXx/"),u=n("YWaw"),c=n("EFel"),s=n("lOcZ");t.fixClassName=function(e){var t=e.className,n=(0,i.default)(e,["className"]),r=(0,l.convertProps)(n),a=(0,u.inComponentClassCache)(t),f=(0,c.getCurrentSrcData)(r),d=o.default.generate(),p=" gbi-"+(0,s.hashString)(f&&f.srcSet||t)+"-"+d,h=(""+(t||"")+((a?p:"")||"")).trim();return a||(0,u.activateCacheForComponentClass)(t),[h]};t.escapeClassNames=function(e){if(e){var t=(0,s.isBrowser)()&&window._gbiSpecialChars?window._gbiSpecialChars:"undefined"!=typeof __GBI_SPECIAL_CHARS__?__GBI_SPECIAL_CHARS__:":/",n=new RegExp("["+t+"]","g");return e.replace(n,"\\$&")}return e};t.kebabifyBackgroundStyles=function(e){return(0,s.isString)(e)?e:e instanceof Object?Object.keys(e).filter((function(t){return 0===t.indexOf("background")&&""!==e[t]})).reduce((function(t,n){return""+t+(0,s.toKebabCase)(n)+": "+e[n]+";\n"}),""):""};t.setTransitionStyles=function(e,t){return void 0===e&&(e="0.25s"),void 0===t&&(t=!0),t?"transition: opacity 0.5s ease "+e+";":"transition: none;"};t.fixOpacity=function(e){var t=(0,a.default)({},e);if(!t.preserveStackingContext)try{t.style&&t.style.opacity&&(isNaN(t.style.opacity)||t.style.opacity>.99)&&(t.style.opacity=.99)}catch(n){}return t};t.presetBackgroundStyles=function(e){return(0,a.default)({},{backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"},{},e)}},Nr18:function(e,t,n){"use strict";var r=n("S/j/"),a=n("d/Gc"),i=n("ne8i");e.exports=function(e){for(var t=r(this),n=i(t.length),o=arguments.length,l=a(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:a(u,n);c>l;)t[l++]=e;return t}},OGtf:function(e,t,n){var r=n("XKFU"),a=n("eeVq"),i=n("vhPU"),o=/"/g,l=function(e,t,n,r){var a=String(i(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+String(r).replace(o,""")+'"'),l+">"+a+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(l),r(r.P+r.F*a((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},OH9c:function(e,t,n){"use strict";n("f3/d"),n("AphP"),e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},OTTw:function(e,t,n){"use strict";n("OG14"),n("pIFo");var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},QxZ1:function(e,t,n){"use strict";n("xfY5");var r=n("TqRt");t.__esModule=!0,t.createNoScriptStyles=t.createPseudoStyles=t.createPseudoElementMediaQuery=t.createPseudoElementWithContent=t.createPseudoElement=void 0;var a=r(n("pVnL")),i=n("NVWv"),o=n("EFel"),l=n("K9wq"),u=n("lOcZ"),c=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=":before");var r=(0,i.escapeClassNames)(e),a=(0,u.stringToArray)(r),o="";return a instanceof Array&&a.length>0&&""!==a[0]&&(o="."+a.join(".")+n),""!==t&&(o+=(o&&",\n")+".gatsby-background-image-"+t+n),o};t.createPseudoElement=c;var s=function(e,t){return"\n "+e+" {\n opacity: 1;\n background-image: "+t+";\n }"};t.createPseudoElementWithContent=s;var f=function(e,t,n,r){return"\n @media "+t+" {\n "+s(e,n)+"\n }\n "+(r&&"@media "+t+" {\n "+s(e,r)+"\n }")+"\n "};t.createPseudoElementMediaQuery=f;t.createPseudoStyles=function(e){var t=e.classId,n=e.className,r=e.transitionDelay,o=e.lastImage,l=e.nextImage,u=e.afterOpacity,s=e.bgColor,f=e.fadeIn,d=e.backgroundStyles,p=e.style,h=e.finalImage,m=c(n,t),g=c(n,t,":after");return"\n "+m+",\n "+g+" {\n content: '';\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n "+(s&&"background-color: "+s+";")+"\n "+(0,i.setTransitionStyles)(r,f)+"\n "+(0,i.kebabifyBackgroundStyles)((0,a.default)({},d,{},p))+"\n }\n "+m+" {\n z-index: -100;\n "+(u&&l?"background-image: "+l+";":"")+"\n "+(!u&&o?"background-image: "+o+";":"")+"\n opacity: "+u+"; \n }\n "+g+" {\n z-index: -101;\n "+(!u&&l?"background-image: "+l+";":"")+"\n "+(u&&o?"background-image: "+o+";":"")+"\n "+(h?"opacity: "+Number(!u)+";":"")+"\n }\n "};t.createNoScriptStyles=function(e){var t=e.classId,n=e.className,r=e.image;if(r){var a=Array.isArray(r)&&!(0,l.hasArtDirectionArray)({fluid:r}),i=(0,o.getCurrentFromData)({data:r,propName:"src",checkLoaded:!1,addUrl:!1,returnArray:a}),d=(0,o.getUrlString)({imageString:i,hasImageUrls:!0,returnArray:a}),p="";if(a){var h=(0,o.getCurrentFromData)({data:r,propName:"CSS_STRING",addUrl:!1,returnArray:a});p=(0,u.filteredJoin)((0,u.combineArray)(d,h))}var m=c(n,t);return(0,l.hasArtDirectionArray)({fluid:r})?r.map((function(e){var t=(0,o.getUrlString)({imageString:e.src}),n=(0,o.getUrlString)({imageString:e.srcWebp||""});return e.media?f(m,e.media,t,n):"\n "+s(m,t)+"\n "+(e.srcWebp&&"@media screen {\n "+s(m,n)+"\n }")})).join(""):s(m,p||d)}return""}},"Rn+g":function(e,t,n){"use strict";var r=n("LYNF");e.exports=function(e,t,n){var a=n.config.validateStatus;!a||a(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},Ros5:function(e,t,n){"use strict";n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&l(n)&&(t[n]=e[n]);return t};var r,a=n("IFaA"),i=(r=a)&&r.__esModule?r:{default:r};var o={onCopy:!0,onCut:!0,onPaste:!0,onLoad:!0,onError:!0,onWheel:!0,onScroll:!0,onCompositionEnd:!0,onCompositionStart:!0,onCompositionUpdate:!0,onKeyDown:!0,onKeyPress:!0,onKeyUp:!0,onFocus:!0,onBlur:!0,onChange:!0,onInput:!0,onSubmit:!0,onClick:!0,onContextMenu:!0,onDoubleClick:!0,onDrag:!0,onDragEnd:!0,onDragEnter:!0,onDragExit:!0,onDragLeave:!0,onDragOver:!0,onDragStart:!0,onDrop:!0,onMouseDown:!0,onMouseEnter:!0,onMouseLeave:!0,onMouseMove:!0,onMouseOut:!0,onMouseOver:!0,onMouseUp:!0,onSelect:!0,onTouchCancel:!0,onTouchEnd:!0,onTouchMove:!0,onTouchStart:!0,onAnimationStart:!0,onAnimationEnd:!0,onAnimationIteration:!0,onTransitionEnd:!0};function l(e){return o[e]||i.default[e]||/^(data|aria)-/.test(e)}},S5y7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=h(["\n 0% {transform: scale(1)}\n 50% {transform: scale(0.5); opacity: 0.7}\n 100% {transform: scale(1);opacity: 1}\n"],["\n 0% {transform: scale(1)}\n 50% {transform: scale(0.5); opacity: 0.7}\n 100% {transform: scale(1);opacity: 1}\n"]),i=h(["{\n display: inline-block;\n background-color: ",";\n width: ",";\n height: ",";\n margin: ",";\n border-radius: 100%;\n animation-fill-mode: 'both';\n animation: "," ","s ","s infinite ease;\n }"],["{\n display: inline-block;\n background-color: ",";\n width: ",";\n height: ",";\n margin: ",";\n border-radius: 100%;\n animation-fill-mode: 'both';\n animation: "," ","s ","s infinite ease;\n }"]),o=h(["{ \n width: ",";\n font-size: 0;\n }"],["{ \n width: ",";\n font-size: 0;\n }"]),l=h(["",";",""],["",";",""]),u=d(n("q1tI")),c=d(n("17x9")),s=n("qKvR"),f=d(n("nYO0"));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m=(0,s.keyframes)(a),g=function(e){return Math.random()*e},y=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.style=function(e){var t=r.props,n=t.color,a=t.size,o=t.sizeUnit,l=t.margin;return(0,s.css)(i,n,""+a+o,""+a+o,l,m,e/100+.6,e/100-.2)},r.wrapper=function(){var e=r.props,t=e.size,n=e.sizeUnit,a=e.margin,i=(0,s.css)(o,""+(3*parseFloat(t)+6*parseFloat(a))+n);return r.props.css?(0,s.css)(l,i,r.props.css):i},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){return this.props.loading?(0,s.jsx)("div",{css:this.wrapper()},(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))}),(0,s.jsx)("div",{css:this.style(g(100))})):null}}]),t}(u.default.Component);y.propTypes={loading:c.default.bool,color:c.default.string,size:c.default.number,margin:c.default.string,sizeUnit:c.default.string,css:c.default.string},y.defaultProps={loading:!0,color:"#000000",size:15,margin:"2px",sizeUnit:"px",css:""};var v=(0,f.default)(["loading","color","size","margin","sizeUnit","css"])(y);v.defaultProps=y.defaultProps,t.default=v},SntB:function(e,t,n){"use strict";n("8+KV");var r=n("xTJ+");e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(["headers","auth","proxy"],(function(a){r.isObject(t[a])?n[a]=r.deepMerge(e[a],t[a]):void 0!==t[a]?n[a]=t[a]:r.isObject(e[a])?n[a]=r.deepMerge(e[a]):void 0!==e[a]&&(n[a]=e[a])})),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},TAZq:function(e,t,n){n("KKXr"),n("8+KV"),e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(n){}}return function(n,r,a,i,o,l,u,c,s,f){switch(n){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(a[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},TJpk:function(e,t,n){n("LK8F"),n("dZ+Y"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("8+KV"),n("/SS/"),n("hHhE"),n("V+eJ"),n("HAE/"),n("91GP"),t.__esModule=!0,t.Helmet=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n("q1tI")),o=f(n("17x9")),l=f(n("8+s/")),u=f(n("bmMU")),c=n("v1p5"),s=n("hFT/");function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var p,h,m,g=(0,l.default)(c.reducePropsToState,c.handleClientStateChange,c.mapStateOnServer)((function(){return null})),y=(p=g,m=h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!(0,u.default)(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case s.TAG_NAMES.SCRIPT:case s.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case s.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,a=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return r({},a,((t={})[n.type]=[].concat(a[n.type]||[],[r({},i,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,a=e.child,i=e.newProps,o=e.newChildProps,l=e.nestedChildren;switch(a.type){case s.TAG_NAMES.TITLE:return r({},i,((t={})[a.type]=l,t.titleAttributes=r({},o),t));case s.TAG_NAMES.BODY:return r({},i,{bodyAttributes:r({},o)});case s.TAG_NAMES.HTML:return r({},i,{htmlAttributes:r({},o)})}return r({},i,((n={})[a.type]=r({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=r({},t);return Object.keys(e).forEach((function(t){var a;n=r({},n,((a={})[t]=e[t],a))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return i.default.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,i=a.children,o=d(a,["children"]),l=(0,c.convertReactPropstoHtmlAttributes)(o);switch(n.warnOnInvalidChildren(e,i),e.type){case s.TAG_NAMES.LINK:case s.TAG_NAMES.META:case s.TAG_NAMES.NOSCRIPT:case s.TAG_NAMES.SCRIPT:case s.TAG_NAMES.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:l,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:l,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=d(e,["children"]),a=r({},n);return t&&(a=this.mapChildrenToProps(t,a)),i.default.createElement(p,a)},a(t,null,[{key:"canUseDOM",set:function(e){p.canUseDOM=e}}]),t}(i.default.Component),h.propTypes={base:o.default.object,bodyAttributes:o.default.object,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]),defaultTitle:o.default.string,defer:o.default.bool,encodeSpecialCharacters:o.default.bool,htmlAttributes:o.default.object,link:o.default.arrayOf(o.default.object),meta:o.default.arrayOf(o.default.object),noscript:o.default.arrayOf(o.default.object),onChangeClientState:o.default.func,script:o.default.arrayOf(o.default.object),style:o.default.arrayOf(o.default.object),title:o.default.string,titleAttributes:o.default.object,titleTemplate:o.default.string},h.defaultProps={defer:!0,encodeSpecialCharacters:!0},h.peek=p.peek,h.rewind=function(){var e=p.rewind();return e||(e=(0,c.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},m);y.renderStatic=y.rewind,t.Helmet=y,t.default=y},TOwV:function(e,t,n){"use strict";e.exports=n("qT12")},U6jy:function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var a in r)n.call(r,a)&&(e[a]=r[a])}return e};var n=Object.prototype.hasOwnProperty},UfPM:function(e,t,n){"use strict";function r(e,t){if(!(e&&t&&e.length&&t.length))throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}n("V+eJ"),r.prototype.convert=function(e){var t,n,r,a={},i=this.srcAlphabet.length,o=this.dstAlphabet.length,l=e.length,u="string"==typeof e?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<l;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(n=0,r=0,t=0;t<l;t++)(n=n*i+a[t])>=o?(a[r++]=parseInt(n/o,10),n%=o):r>0&&(a[r++]=0);l=r,u=this.dstAlphabet.slice(n,n+1).concat(u)}while(0!==r);return u},r.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(-1===this.srcAlphabet.indexOf(e[t]))return!1;return!0},e.exports=r},UnBK:function(e,t,n){"use strict";n("VRzm"),n("Btvt"),n("8+KV");var r=n("xTJ+"),a=n("xAGQ"),i=n("Lmem"),o=n("JEQr"),l=n("2SVd"),u=n("5oMp");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!l(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return c(e),t.data=a(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},Wwog:function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}t.a=function(e,t){var n;void 0===t&&(t=r);var a,i=[],o=!1;return function(){for(var r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return o&&n===this&&t(r,i)?a:(a=e.apply(this,r),o=!0,n=this,i=r,a)}}},YWaw:function(e,t,n){"use strict";t.__esModule=!0,t.resetComponentClassCache=t.activateCacheForComponentClass=t.inComponentClassCache=void 0;var r=Object.create({});t.inComponentClassCache=function(e){return r[e]||!1};t.activateCacheForComponentClass=function(e){e&&(r[e]=!0)};t.resetComponentClassCache=function(){for(var e in r)delete r[e]}},YvMK:function(e,t,n){"use strict";n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V");var r=Object.prototype.hasOwnProperty;function a(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(a(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(!r.call(t,n[o])||!a(e[n[o]],t[n[o]]))return!1;return!0}},aJjT:function(e,t,n){n("V+eJ"),n("KKXr"),n("Tze0"),n("pIFo"),e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,a=/: */g,i=/zoo|gra/,o=/([,: ])(transform)/g,l=/,+\s*(?![^(]*[)])/g,u=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,s=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,p=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,y=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,A=/([^\(])(:+) */g,E=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,T=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,P="-webkit-",_="-moz-",I="-ms-",N=59,R=125,M=123,j=40,L=41,F=91,D=93,z=10,U=13,V=9,B=64,H=32,q=38,W=45,G=95,K=42,$=44,Q=58,Y=39,X=34,J=47,Z=62,ee=43,te=126,ne=0,re=12,ae=11,ie=107,oe=109,le=115,ue=112,ce=111,se=105,fe=99,de=100,pe=112,he=1,me=1,ge=0,ye=1,ve=1,be=1,we=0,Ae=0,Ee=0,Se=[],ke=[],Te=0,xe=null,Ce=-2,Oe=-1,Pe=0,_e=1,Ie=2,Ne=3,Re=0,Me=1,je="",Le="",Fe="";function De(e,t,a,i,o){for(var l,u,s=0,f=0,d=0,p=0,y=0,v=0,b=0,w=0,E=0,k=0,T=0,x=0,C=0,O=0,G=0,we=0,ke=0,xe=0,Ce=0,Oe=a.length,Ue=Oe-1,Ge="",Ke="",$e="",Qe="",Ye="",Xe="";G<Oe;){if(b=a.charCodeAt(G),G===Ue&&f+p+d+s!==0&&(0!==f&&(b=f===J?z:J),p=d=s=0,Oe++,Ue++),f+p+d+s===0){if(G===Ue&&(we>0&&(Ke=Ke.replace(r,"")),Ke.trim().length>0)){switch(b){case H:case V:case N:case U:case z:break;default:Ke+=a.charAt(G)}b=N}if(1===ke)switch(b){case M:case R:case N:case X:case Y:case j:case L:case $:ke=0;case V:case U:case z:case H:break;default:for(ke=0,Ce=G,y=b,G--,b=N;Ce<Oe;)switch(a.charCodeAt(Ce++)){case z:case U:case N:++G,b=y,Ce=Oe;break;case Q:we>0&&(++G,b=y);case M:Ce=Oe}}switch(b){case M:for(y=(Ke=Ke.trim()).charCodeAt(0),T=1,Ce=++G;G<Oe;){switch(b=a.charCodeAt(G)){case M:T++;break;case R:T--;break;case J:switch(v=a.charCodeAt(G+1)){case K:case J:G=We(v,G,Ue,a)}break;case F:b++;case j:b++;case X:case Y:for(;G++<Ue&&a.charCodeAt(G)!==b;);}if(0===T)break;G++}switch($e=a.substring(Ce,G),y===ne&&(y=(Ke=Ke.replace(n,"").trim()).charCodeAt(0)),y){case B:switch(we>0&&(Ke=Ke.replace(r,"")),v=Ke.charCodeAt(1)){case de:case oe:case le:case W:l=t;break;default:l=Se}if(Ce=($e=De(t,l,$e,v,o+1)).length,Ee>0&&0===Ce&&(Ce=Ke.length),Te>0&&(l=ze(Se,Ke,xe),u=qe(Ne,$e,l,t,me,he,Ce,v,o,i),Ke=l.join(""),void 0!==u&&0===(Ce=($e=u.trim()).length)&&(v=0,$e="")),Ce>0)switch(v){case le:Ke=Ke.replace(S,He);case de:case oe:case W:$e=Ke+"{"+$e+"}";break;case ie:$e=(Ke=Ke.replace(h,"$1 $2"+(Me>0?je:"")))+"{"+$e+"}",$e=1===ve||2===ve&&Be("@"+$e,3)?"@"+P+$e+"@"+$e:"@"+$e;break;default:$e=Ke+$e,i===pe&&(Qe+=$e,$e="")}else $e="";break;default:$e=De(t,ze(t,Ke,xe),$e,i,o+1)}Ye+=$e,x=0,ke=0,O=0,we=0,xe=0,C=0,Ke="",$e="",b=a.charCodeAt(++G);break;case R:case N:if((Ce=(Ke=(we>0?Ke.replace(r,""):Ke).trim()).length)>1)switch(0===O&&((y=Ke.charCodeAt(0))===W||y>96&&y<123)&&(Ce=(Ke=Ke.replace(" ",":")).length),Te>0&&void 0!==(u=qe(_e,Ke,t,e,me,he,Qe.length,i,o,i))&&0===(Ce=(Ke=u.trim()).length)&&(Ke="\0\0"),y=Ke.charCodeAt(0),v=Ke.charCodeAt(1),y){case ne:break;case B:if(v===se||v===fe){Xe+=Ke+a.charAt(G);break}default:if(Ke.charCodeAt(Ce-1)===Q)break;Qe+=Ve(Ke,y,v,Ke.charCodeAt(2))}x=0,ke=0,O=0,we=0,xe=0,Ke="",b=a.charCodeAt(++G)}}switch(b){case U:case z:if(f+p+d+s+Ae===0)switch(k){case L:case Y:case X:case B:case te:case Z:case K:case ee:case J:case W:case Q:case $:case N:case M:case R:break;default:O>0&&(ke=1)}f===J?f=0:ye+x===0&&i!==ie&&Ke.length>0&&(we=1,Ke+="\0"),Te*Re>0&&qe(Pe,Ke,t,e,me,he,Qe.length,i,o,i),he=1,me++;break;case N:case R:if(f+p+d+s===0){he++;break}default:switch(he++,Ge=a.charAt(G),b){case V:case H:if(p+s+f===0)switch(w){case $:case Q:case V:case H:Ge="";break;default:b!==H&&(Ge=" ")}break;case ne:Ge="\\0";break;case re:Ge="\\f";break;case ae:Ge="\\v";break;case q:p+f+s===0&&ye>0&&(xe=1,we=1,Ge="\f"+Ge);break;case 108:if(p+f+s+ge===0&&O>0)switch(G-O){case 2:w===ue&&a.charCodeAt(G-3)===Q&&(ge=w);case 8:E===ce&&(ge=E)}break;case Q:p+f+s===0&&(O=G);break;case $:f+d+p+s===0&&(we=1,Ge+="\r");break;case X:case Y:0===f&&(p=p===b?0:0===p?b:p);break;case F:p+f+d===0&&s++;break;case D:p+f+d===0&&s--;break;case L:p+f+s===0&&d--;break;case j:if(p+f+s===0){if(0===x)switch(2*w+3*E){case 533:break;default:T=0,x=1}d++}break;case B:f+d+p+s+O+C===0&&(C=1);break;case K:case J:if(p+s+d>0)break;switch(f){case 0:switch(2*b+3*a.charCodeAt(G+1)){case 235:f=J;break;case 220:Ce=G,f=K}break;case K:b===J&&w===K&&Ce+2!==G&&(33===a.charCodeAt(Ce+2)&&(Qe+=a.substring(Ce,G+1)),Ge="",f=0)}}if(0===f){if(ye+p+s+C===0&&i!==ie&&b!==N)switch(b){case $:case te:case Z:case ee:case L:case j:if(0===x){switch(w){case V:case H:case z:case U:Ge+="\0";break;default:Ge="\0"+Ge+(b===$?"":"\0")}we=1}else switch(b){case j:O+7===G&&108===w&&(O=0),x=++T;break;case L:0==(x=--T)&&(we=1,Ge+="\0")}break;case V:case H:switch(w){case ne:case M:case R:case N:case $:case re:case V:case H:case z:case U:break;default:0===x&&(we=1,Ge+="\0")}}Ke+=Ge,b!==H&&b!==V&&(k=b)}}E=w,w=b,G++}if(Ce=Qe.length,Ee>0&&0===Ce&&0===Ye.length&&0===t[0].length==0&&(i!==oe||1===t.length&&(ye>0?Le:Fe)===t[0])&&(Ce=t.join(",").length+2),Ce>0){if(l=0===ye&&i!==ie?function(e){for(var t,n,a=0,i=e.length,o=Array(i);a<i;++a){for(var l=e[a].split(c),u="",s=0,f=0,d=0,p=0,h=l.length;s<h;++s)if(!(0===(f=(n=l[s]).length)&&h>1)){if(d=u.charCodeAt(u.length-1),p=n.charCodeAt(0),t="",0!==s)switch(d){case K:case te:case Z:case ee:case H:case j:break;default:t=" "}switch(p){case q:n=t+Le;case te:case Z:case ee:case H:case L:case j:break;case F:n=t+n+Le;break;case Q:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,f-1);break}default:(s<1||l[s-1].length<1)&&(n=t+Le+n)}break;case $:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(A,"$1"+Le+"$2"):t+n+Le}u+=n}o[a]=u.replace(r,"").trim()}return o}(t):t,Te>0&&void 0!==(u=qe(Ie,Qe,l,e,me,he,Ce,i,o,i))&&0===(Qe=u).length)return Xe+Qe+Ye;if(Qe=l.join(",")+"{"+Qe+"}",ve*ge!=0){switch(2!==ve||Be(Qe,2)||(ge=0),ge){case ce:Qe=Qe.replace(g,":"+_+"$1")+Qe;break;case ue:Qe=Qe.replace(m,"::"+P+"input-$1")+Qe.replace(m,"::"+_+"$1")+Qe.replace(m,":"+I+"input-$1")+Qe}ge=0}}return Xe+Qe+Ye}function ze(e,t,n){var r=t.trim().split(s),a=r,i=r.length,o=e.length;switch(o){case 0:case 1:for(var l=0,u=0===o?"":e[0]+" ";l<i;++l)a[l]=Ue(u,a[l],n,o).trim();break;default:l=0;var c=0;for(a=[];l<i;++l)for(var f=0;f<o;++f)a[c++]=Ue(e[f]+" ",r[l],n,o).trim()}return a}function Ue(e,t,n,r){var a=t,i=a.charCodeAt(0);switch(i<33&&(i=(a=a.trim()).charCodeAt(0)),i){case q:switch(ye+r){case 0:case 1:if(0===e.trim().length)break;default:return a.replace(f,"$1"+e.trim())}break;case Q:switch(a.charCodeAt(1)){case 103:if(be>0&&ye>0)return a.replace(d,"$1").replace(f,"$1"+Fe);break;default:return e.trim()+a.replace(f,"$1"+e.trim())}default:if(n*ye>0&&a.indexOf("\f")>0)return a.replace(f,(e.charCodeAt(0)===Q?"":"$1")+e.trim())}return e+a}function Ve(e,t,n,r){var c,s=0,f=e+";",d=2*t+3*n+4*r;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),a=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Me){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:var i=a.split((a="",l)),o=0;for(n=0,t=i.length;o<t;n=0,++o){for(var c=i[o],s=c.split(u);c=s[n];){var f=c.charCodeAt(0);if(1===Me&&(f>B&&f<90||f>96&&f<123||f===G||f===W&&c.charCodeAt(1)!==W))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=je}}s[n++]=c}a+=(0===o?"":",")+s.join(" ")}}return a=r+a+";",1===ve||2===ve&&Be(a,1)?P+a+a:a}(f);if(0===ve||2===ve&&!Be(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?P+f+f:f;case 951:return 116===f.charCodeAt(3)?P+f+f:f;case 963:return 110===f.charCodeAt(5)?P+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return P+f+f;case 978:return P+f+_+f+f;case 1019:case 983:return P+f+_+f+I+f+f;case 883:return f.charCodeAt(8)===W?P+f+f:f.indexOf("image-set(",11)>0?f.replace(O,"$1"+P+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return P+"box-"+f.replace("-grow","")+P+f+I+f.replace("grow","positive")+f;case 115:return P+f+I+f.replace("shrink","negative")+f;case 98:return P+f+I+f.replace("basis","preferred-size")+f}return P+f+I+f+f;case 964:return P+f+I+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),P+"box-pack"+c+P+f+I+"flex-pack"+c+f;case 1005:return i.test(f)?f.replace(a,":"+P)+f.replace(a,":"+_)+f:f;case 1e3:switch(s=(c=f.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(s)){case 226:c=f.replace(E,"tb");break;case 232:c=f.replace(E,"tb-rl");break;case 220:c=f.replace(E,"lr");break;default:return f}return P+f+I+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(s=(f=e).length-10,d=(c=(33===f.charCodeAt(s)?f.substring(0,s):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,P+c)+";"+f;break;case 207:case 102:f=f.replace(c,P+(d>102?"inline-":"")+"box")+";"+f.replace(c,P+c)+";"+f.replace(c,I+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),P+f+P+"box-"+c+I+"flex-"+c+f;case 115:return P+f+I+"flex-item-"+f.replace(T,"")+f;default:return P+f+I+"flex-line-pack"+f.replace("align-content","").replace(T,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==W||122===f.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Ve(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):f.replace(c,P+c)+f.replace(c,_+c.replace("fill-",""))+f;break;case 962:if(f=P+f+(102===f.charCodeAt(5)?I+f:"")+f,n+r===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(o,"$1"+P+"$2")+f}return f}function Be(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),a=e.substring(n+1,e.length-1);return xe(2!==t?r:r.replace(x,"$1"),a,t)}function He(e,t){var n=Ve(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function qe(e,t,n,r,a,i,o,l,u,c){for(var s,f=0,d=t;f<Te;++f)switch(s=ke[f].call(Ke,e,d,n,r,a,i,o,l,u,c)){case void 0:case!1:case!0:case null:break;default:d=s}if(d!==t)return d}function We(e,t,n,r){for(var a=t+1;a<n;++a)switch(r.charCodeAt(a)){case J:if(e===K&&r.charCodeAt(a-1)===K&&t+2!==a)return a+1;break;case z:if(e===J)return a+1}return a}function Ge(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Me=0|n;break;case"global":be=0|n;break;case"cascade":ye=0|n;break;case"compress":we=0|n;break;case"semicolon":Ae=0|n;break;case"preserve":Ee=0|n;break;case"prefix":xe=null,n?"function"!=typeof n?ve=1:(ve=2,xe=n):ve=0}}return Ge}function Ke(t,n){if(void 0!==this&&this.constructor===Ke)return e(t);var a=t,i=a.charCodeAt(0);i<33&&(i=(a=a.trim()).charCodeAt(0)),Me>0&&(je=a.replace(p,i===F?"":"-")),i=1,1===ye?Fe=a:Le=a;var o,l=[Fe];Te>0&&void 0!==(o=qe(Oe,n,l,l,me,he,0,0,0,0))&&"string"==typeof o&&(n=o);var u=De(Se,l,n,0,0);return Te>0&&void 0!==(o=qe(Ce,u,l,l,me,he,u.length,0,0,0))&&"string"!=typeof(u=o)&&(i=0),je="",Fe="",Le="",ge=0,me=1,he=1,we*i==0?u:u.replace(r,"").replace(y,"").replace(v,"$1").replace(b,"$1").replace(w," ")}return Ke.use=function e(t){switch(t){case void 0:case null:Te=ke.length=0;break;default:if("function"==typeof t)ke[Te++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else Re=0|!!t}return e},Ke.set=Ge,void 0!==t&&Ge(t),Ke}(null)},auJE:function(e,t,n){n("Vd3H"),n("SRfc");var r=n("U6jy"),a=["blank","all","minWidth","minHeight","maxWidth","maxHeight","print"];function i(e){return function(t,n){var r=t.sortVal,a=n.sortVal,i=t.item.__media,o=n.item.__media;if(e=void 0!==e&&e,r===a){if(i.match(/print/))return 1;if(o.match(/print/))return-1}return e?a-r:r-a}}function o(e,t,n){switch(function(e,t,n){return e&&e.length&&"string"!=typeof e?("object"!==t||n&&"string"==typeof n)&&function(e,t,n){for(var r=!0,a=0,i=e.length;a<i;a++)if(typeof e[a]!==t||n&&!e[a].hasOwnProperty(n)){r=!1;break}return r}(e,t,n)?"all":"some":"none"}(e,t,n)){case"none":return[];case"some":return e}var o=function(){for(var e={},t=0,n=a.length;t<n;t++)e[a[t]]=[];return e}();return e=function(e,t,n){for(var a=[],i={},o=0,l=e.length;o<l;o++)"string"===t?i=r({},{__media:e[o]}):(i=r({},e[o])).__media=e[o][n],a.push(i);return a}(e,t,n),function(e,t){for(var n=0,r=t.length;n<r;n++){var a=t[n],i=a.__media,o="blank",l=i.match(/\d+/g);i.match(/min-width/)?o="minWidth":i.match(/min-height/)?o="minHeight":i.match(/max-width/)?o="maxWidth":i.match(/max-height/)?o="maxHeight":i.match(/print/)?o="print":i.match(/all/)&&(o="all"),e[o].push({item:a,sortVal:l?l[0]:0})}}(o,e),function(e){var t;for(var n in e)e.hasOwnProperty(n)&&(t=i(!1),"maxWidth"!==n&&"maxHeight"!==n||(t=i(!0)),e[n].sort(t))}(o),function(e,t,n){var r=[];function i(e){for(var n,a=0,i=e.length;a<i;a++)"string"===t?n=e[a].item.__media:delete(n=e[a].item).__media,r.push(n)}for(var o=0,l=a.length;o<l;o++)i(e[a[o]]);return r}(o,t)}e.exports=function(e,t){return e?t?o(e,"object",t):o(e,"string"):[]}},bHtr:function(e,t,n){var r=n("XKFU");r(r.P,"Array",{fill:n("Nr18")}),n("nGyu")("fill")},bmMU:function(e,t,n){"use strict";n("f3/d"),n("SRfc"),n("a1Th"),n("h7Nl"),n("Oyvg"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("LK8F");var r=Array.isArray,a=Object.keys,i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var l,u,c,s=r(t),f=r(n);if(s&&f){if((u=t.length)!=n.length)return!1;for(l=u;0!=l--;)if(!e(t[l],n[l]))return!1;return!0}if(s!=f)return!1;var d=t instanceof Date,p=n instanceof Date;if(d!=p)return!1;if(d&&p)return t.getTime()==n.getTime();var h=t instanceof RegExp,m=n instanceof RegExp;if(h!=m)return!1;if(h&&m)return t.toString()==n.toString();var g=a(t);if((u=g.length)!==a(n).length)return!1;for(l=u;0!=l--;)if(!i.call(n,g[l]))return!1;if(o&&t instanceof Element&&n instanceof Element)return t===n;for(l=u;0!=l--;)if(!("_owner"===(c=g[l])&&t.$$typeof||e(t[c],n[c])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||-2146828260===n.number)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}},cFM1:function(e,t,n){"use strict";n("f3/d"),t.__esModule=!0,t.default=void 0;var r=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":void 0};t.default=r},cJVi:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){return function(n){return n[e]=t,n}};t.default=r},endd:function(e,t,n){"use strict";function r(e){this.message=e}n("a1Th"),n("h7Nl"),n("Btvt"),r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},eqyj:function(e,t,n){"use strict";n("eM6i"),n("Oyvg"),n("SRfc");var r=n("xTJ+");e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,i,o){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(a)&&l.push("path="+a),r.isString(i)&&l.push("domain="+i),!0===o&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"gv3/":function(e,t,n){n("SRfc"),n("pIFo");var r,a=n("I59i"),i=n("xk4V"),o="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";function l(e,t){return t(e.toLowerCase().replace(/-/g,""))}e.exports=function(){function e(e){var t=e||o,n=a(a.HEX,t),r=a(t,a.HEX),u=function(){return l(i(),n)};return{new:u,generate:u,uuid:i,fromUUID:function(e){return l(e,n)},toUUID:function(e){return function(e,t){for(var n,r=t(e),a="",i=0,o=32-r.length;i<o;++i)a+="0";return[(n=(a+r).match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/))[1],n[2],n[3],n[4],n[5]].join("-")}(e,r)},alphabet:t}}return e.constants={flickrBase58:o,cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"},e.uuid=i,e.generate=function(){return r||(r=a(a.HEX,o)),l(i(),r)},e}()},hBwV:function(e,t,n){"use strict";var r=n("TqRt");t.__esModule=!0,t.default=void 0;var a=r(n("cFM1")),i=function(e,t){return t+"("+(0,a.default)(e)+")"};t.default=i},"hFT/":function(e,t,n){n("DNiP"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("bWfx"),t.__esModule=!0;t.ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"};var r=t.TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},a=(t.VALID_TAG_NAMES=Object.keys(r).map((function(e){return r[e]})),t.TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src"},t.REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"});t.HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},t.HTML_TAG_MAP=Object.keys(a).reduce((function(e,t){return e[a[t]]=t,e}),{}),t.SELF_CLOSING_TAGS=[r.NOSCRIPT,r.SCRIPT,r.STYLE],t.HELMET_ATTRIBUTE="data-react-helmet"},i8i4:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n("yl30")},ixUY:function(e){e.exports=JSON.parse('{"data":{"site":{"siteMetadata":{"title":"Deep Dive Into ES6"}}}}')},"jfS+":function(e,t,n){"use strict";n("VRzm"),n("Btvt");var r=n("endd");function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},jqX0:function(e,t,n){var r=n("XKFU"),a=n("jtBr");r(r.P+r.F*(Date.prototype.toISOString!==a),"Date",{toISOString:a})},jtBr:function(e,t,n){"use strict";var r=n("eeVq"),a=Date.prototype.getTime,i=Date.prototype.toISOString,o=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(a.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}:i},lOcZ:function(e,t,n){"use strict";n("KKXr"),n("Z2Ku"),n("L9s1"),n("pIFo"),n("a1Th"),n("Btvt"),t.__esModule=!0,t.combineArray=t.filteredJoin=t.hashString=t.stringToArray=t.toKebabCase=t.toCamelCase=t.isString=t.isBrowser=void 0;t.isBrowser=function(){return"undefined"!=typeof window};var r=function(e){return"[object String]"===Object.prototype.toString.call(e)};t.isString=r;t.toCamelCase=function(e){return r(e)&&e.toLowerCase().replace(/(?:^\w|-|[A-Z]|\b\w)/g,(function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()})).replace(/\s|\W+/g,"")};t.toKebabCase=function(e){return r(e)&&e.replace(/\s|\W+/g,"").replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))};t.stringToArray=function(e,t){return void 0===t&&(t=" "),e instanceof Array?e:!!r(e)&&(e.includes(t)?e.split(t):[e])};t.hashString=function(e){return r(e)&&[].reduce.call(e,(function(e,t){return 0|(e=(e<<5)-e+t.charCodeAt(0))}),0)};t.filteredJoin=function(e){return e.filter((function(e){return""!==e})).join()};t.combineArray=function(e,t){return Array.isArray(e)?e.map((function(e,n){return e||t[n]})):[e]}},mGWK:function(e,t,n){"use strict";var r=n("XKFU"),a=n("aCFj"),i=n("RYi7"),o=n("ne8i"),l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n("LyE8")(l)),"Array",{lastIndexOf:function(e){if(u)return l.apply(this,arguments)||0;var t=a(this),n=o(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},nYO0:function(e,t,n){"use strict";var r=n("TqRt");t.__esModule=!0,t.default=void 0;var a=r(n("9LMJ")),i=r(n("6Wpt")),o=(r(n("7EsY")),r(n("hBwV")),r(n("J6Zb"))),l=function(e){return(0,a.default)((function(t,n){return!(0,i.default)((0,o.default)(n,e),(0,o.default)(t,e))}))};t.default=l},oFdo:function(e,t,n){"use strict";var r;n("rGqo"),n("yt8O"),n("Btvt"),n("XfO3"),n("EK0E"),t.__esModule=!0,t.listenToIntersections=t.getIO=t.callbackIO=void 0;var a=new WeakMap,i=function(e){e.forEach((function(e){if(a.has(e.target)){var t=a.get(e.target);(e.isIntersecting||e.intersectionRatio>0)&&(r.unobserve(e.target),a.delete(e.target),t())}}))};t.callbackIO=i;var o=function(e){return void 0===r&&"undefined"!=typeof window&&window.IntersectionObserver&&(r=new window.IntersectionObserver(i,{rootMargin:e})),r};t.getIO=o;t.listenToIntersections=function(e,t,n){void 0===n&&(n="200px");var r=o(n);return r?(r.observe(e),a.set(e,t),function(){r.unobserve(e),a.delete(e)}):function(){}}},perC:function(e,t,n){"use strict";n("0mN4"),t.__esModule=!0,t.initialBgImage=t.switchImageSettings=void 0;var r=n("uXx/"),a=n("EFel"),i=n("K9wq"),o=n("lOcZ");t.switchImageSettings=function(e){var t,n,r=e.image,l=e.bgImage,u=e.imageRef,c=e.state,s=(0,a.getCurrentFromData)({data:u,propName:"currentSrc"}),f=Array.isArray(r)&&!(0,i.hasArtDirectionArray)({fluid:r}),d=Array.isArray(l)?(0,o.filteredJoin)(l):l,p=!1;if(f){t=(0,a.getCurrentFromData)({data:r,propName:"tracedSVG",returnArray:f}),t=(0,o.combineArray)((0,a.getCurrentFromData)({data:r,propName:"base64",returnArray:f}),t),t=(0,o.combineArray)((0,a.getCurrentFromData)({data:r,propName:"CSS_STRING",addUrl:!1,returnArray:f}),t),c.imgLoaded&&c.isVisible&&(s?(t=(0,o.combineArray)((0,a.getCurrentFromData)({data:u,propName:"currentSrc",returnArray:f}),t),p=!0):(t=(0,o.combineArray)((0,a.getCurrentFromData)({data:u,propName:"src",returnArray:f}),t),p=!0)),t=(0,o.combineArray)(t,l);var h=(0,a.createDummyImageArray)(r.length);n=t=(0,o.combineArray)(t,h),t=(0,o.filteredJoin)(t)}else t="",r.tracedSVG&&(t=(0,a.getCurrentFromData)({data:r,propName:"tracedSVG"})),r.base64&&!r.tracedSVG&&(t=(0,a.getCurrentFromData)({data:r,propName:"base64"})),c.imgLoaded&&c.isVisible&&(t=s,p=!0);var m=c.imageState%2;!f&&""===t&&c.imgLoaded&&c.isVisible&&u&&!u.currentSrc&&(t=(0,a.getCurrentFromData)({data:u,propName:"src",checkLoaded:!1}),p=!0),t||(t=d);var g={lastImage:d,nextImage:t,afterOpacity:m,finalImage:p};return n&&(g.nextImageArray=n),g};t.initialBgImage=function(e,t){void 0===t&&(t=!0);var n=(0,r.convertProps)(e),i=n.fluid||n.fixed;if(!i)return"";var l,u=(0,a.hasImageArray)(n);if(u){if(l=(0,a.getCurrentFromData)({data:i,propName:"tracedSVG",returnArray:u}),l=(0,o.combineArray)((0,a.getCurrentFromData)({data:i,propName:"base64",returnArray:u}),l),l=(0,o.combineArray)((0,a.getCurrentFromData)({data:i,propName:"CSS_STRING",addUrl:!1,returnArray:u}),l),t){var c=(0,a.createDummyImageArray)(i.length);l=(0,o.combineArray)(l,c)}}else l="",i.tracedSVG&&(l=(0,a.getCurrentFromData)({data:i,propName:"tracedSVG"})),i.base64&&!i.tracedSVG&&(l=(0,a.getCurrentFromData)({data:i,propName:"base64"}));return l}},q1tI:function(e,t,n){"use strict";e.exports=n("viRO")},qKvR:function(e,t,n){"use strict";n.r(t);n("LK8F"),n("SRfc"),n("f3/d"),n("V+eJ"),n("pIFo");var r=n("VbXa"),a=n.n(r),i=n("q1tI");n("Oyvg"),n("bWfx"),n("KKXr"),n("8+KV");var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);a.insertRule(e,i?0:a.cssRules.length)}catch(o){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();n("Tze0");var l=function(e){function t(e,t,r){var a=t.trim().split(h);t=a;var i=a.length,o=e.length;switch(o){case 0:case 1:var l=0;for(e=0===o?"":e[0]+" ";l<i;++l)t[l]=n(e,t[l],r).trim();break;default:var u=l=0;for(t=[];l<i;++l)for(var c=0;c<o;++c)t[u++]=n(e[c]+" ",a[l],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var o=e+";",l=2*t+3*n+4*i;if(944===l){e=o.indexOf(":",9)+1;var u=o.substring(e,o.length-1).trim();return u=o.substring(0,e).trim()+u+";",1===P||2===P&&a(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!a(o,1))return o;switch(l){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(T,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(u=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+u+o;case 1005:return d.test(o)?o.replace(f,":-webkit-")+o.replace(f,":-moz-")+o:o;case 1e3:switch(t=(u=o.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=o.replace(b,"tb");break;case 232:u=o.replace(b,"tb-rl");break;case 220:u=o.replace(b,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+u+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,l=(u=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102<l?"inline-":"")+"box")+";"+o.replace(u,"-webkit-"+u)+";"+o.replace(u,"-ms-"+u+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return u=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+u+"-ms-flex-"+u+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(E,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(E,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):o.replace(u,"-webkit-"+u)+o.replace(u,"-moz-"+u.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+i&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(S,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(A," or ($1)").substring(4):"("+t+")"}function o(e,t,n,r,a,i,o,l,c,s){for(var f,d=0,p=t;d<N;++d)switch(f=I[d].call(u,e,p,n,r,a,i,o,l,c,s)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?P=1:(P=2,R=e):P=0),l}function u(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<N){var u=o(-1,n,l,l,C,x,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,l,u,f,d){for(var p,h,m,b,A,E=0,S=0,k=0,T=0,I=0,R=0,j=m=p=0,L=0,F=0,D=0,z=0,U=u.length,V=U-1,B="",H="",q="",W="";L<U;){if(h=u.charCodeAt(L),L===V&&0!==S+T+k+E&&(0!==S&&(h=47===S?10:47),T=k=E=0,U++,V++),0===S+T+k+E){if(L===V&&(0<F&&(B=B.replace(s,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=u.charAt(L)}h=59}switch(h){case 123:for(p=(B=B.trim()).charCodeAt(0),m=1,z=++L;L<U;){switch(h=u.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(L+1)){case 42:case 47:e:{for(j=L+1;j<V;++j)switch(u.charCodeAt(j)){case 47:if(42===h&&42===u.charCodeAt(j-1)&&L+2!==j){L=j+1;break e}break;case 10:if(47===h){L=j+1;break e}}L=j}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<V&&u.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=u.substring(z,L),0===p&&(p=(B=B.replace(c,"").trim()).charCodeAt(0)),p){case 64:switch(0<F&&(B=B.replace(s,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:F=l;break;default:F=_}if(z=(m=e(l,F,m,h,d+1)).length,0<N&&(A=o(3,m,F=t(_,B,D),l,C,x,z,h,d,f),B=F.join(""),void 0!==A&&0===(z=(m=A.trim()).length)&&(h=0,m="")),0<z)switch(h){case 115:B=B.replace(w,i);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(g,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&a("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===f&&(H+=m,m="")}else m="";break;default:m=e(l,t(l,B,D),m,f,d+1)}q+=m,m=D=F=j=p=0,B="",h=u.charCodeAt(++L);break;case 125:case 59:if(1<(z=(B=(0<F?B.replace(s,""):B).trim()).length))switch(0===j&&(p=B.charCodeAt(0),45===p||96<p&&123>p)&&(z=(B=B.replace(" ",":")).length),0<N&&void 0!==(A=o(1,B,l,n,C,x,H.length,f,d,f))&&0===(z=(B=A.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),h=B.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){W+=B+u.charAt(L);break}default:58!==B.charCodeAt(z-1)&&(H+=r(B,p,h,B.charCodeAt(2)))}D=F=j=p=0,B="",h=u.charCodeAt(++L)}}switch(h){case 13:case 10:47===S?S=0:0===1+p&&107!==f&&0<B.length&&(F=1,B+="\0"),0<N*M&&o(0,B,l,n,C,x,H.length,f,d,f),x=1,C++;break;case 59:case 125:if(0===S+T+k+E){x++;break}default:switch(x++,b=u.charAt(L),h){case 9:case 32:if(0===T+E+S)switch(I){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===T+S+E&&(F=D=1,b="\f"+b);break;case 108:if(0===T+S+E+O&&0<j)switch(L-j){case 2:112===I&&58===u.charCodeAt(L-3)&&(O=I);case 8:111===R&&(O=R)}break;case 58:0===T+S+E&&(j=L);break;case 44:0===S+k+T+E&&(F=1,b+="\r");break;case 34:case 39:0===S&&(T=T===h?0:0===T?h:T);break;case 91:0===T+S+k&&E++;break;case 93:0===T+S+k&&E--;break;case 41:0===T+S+E&&k--;break;case 40:if(0===T+S+E){if(0===p)switch(2*I+3*R){case 533:break;default:p=1}k++}break;case 64:0===S+k+T+E+j+m&&(m=1);break;case 42:case 47:if(!(0<T+E+k))switch(S){case 0:switch(2*h+3*u.charCodeAt(L+1)){case 235:S=47;break;case 220:z=L,S=42}break;case 42:47===h&&42===I&&z+2!==L&&(33===u.charCodeAt(z+2)&&(H+=u.substring(z,L+1)),b="",S=0)}}0===S&&(B+=b)}R=I,I=h,L++}if(0<(z=H.length)){if(F=l,0<N&&(void 0!==(A=o(2,H,F,n,C,x,z,f,d,f))&&0===(H=A).length))return W+H+q;if(H=F.join(",")+"{"+H+"}",0!=P*O){switch(2!==P||a(H,2)||(O=0),O){case 111:H=H.replace(v,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}O=0}}return W+H+q}(_,l,n,0,0);return 0<N&&(void 0!==(u=o(-2,f,l,l,C,x,f.length,0,0,0))&&(f=u)),"",O=0,x=C=1,f}var c=/^\0+/g,s=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,A=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,x=1,C=1,O=0,P=1,_=[],I=[],N=0,R=null,M=0;return u.use=function e(t){switch(t){case void 0:case null:N=I.length=0;break;default:if("function"==typeof t)I[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},u.set=l,void 0!==e&&l(e),u};n("rGqo"),n("yt8O"),n("Btvt"),n("XfO3"),n("EK0E");function u(e){e&&c.current.insert(e+"}")}var c={current:null},s=function(e,t,n,r,a,i,o,l,s,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return c.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return c.current.insert(n[0]+t),"";default:return t+(0===f?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(u)}},f=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new l(t);var a,i={};a=e.container||document.head;var u,f=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(f,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),r.use(e.stylisPlugins)(s),u=function(e,t,n,a){var i=t.name;c.current=n,r(e,t.styles),a&&(d.inserted[i]=!0)};var d={key:n,sheet:new o({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:u};return d};function d(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var p=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var a=t;do{e.insert("."+r,a,e.sheet,!0);a=a.next}while(void 0!==a)}};n("a1Th"),n("h7Nl");var h=function(e){for(var t,n=e.length,r=n^n,a=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},m=n("ME5O"),g=n("4qRI"),y=/[A-Z]|^ms/g,v=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b=function(e){return 45===e.charCodeAt(1)},w=function(e){return null!=e&&"boolean"!=typeof e},A=Object(g.a)((function(e){return b(e)?e:e.replace(y,"-$&").toLowerCase()})),E=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(v,(function(e,t,n){return k={name:t,styles:n,next:k},t}))}return 1===m.a[e]||b(e)||"number"!=typeof t||0===t?t:t+"px"};function S(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return k={name:n.name,styles:n.styles,next:k},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)k={name:a.name,styles:a.styles,next:k},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=S(e,t,n[a],!1);else for(var i in n){var o=n[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":w(o)&&(r+=A(i)+":"+E(i,o)+";");else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=S(e,t,o,!1);switch(i){case"animation":case"animationName":r+=A(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<o.length;u++)w(o[u])&&(r+=A(i)+":"+E(i,o[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=k,o=n(e);return k=i,S(e,t,o,r)}break;case"string":}if(null==t)return n;var l=t[n];return void 0===l||r?n:l}var k,T=/label:\s*([^\s;\n{]+)\s*;/g;var x=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";k=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,a+=S(n,t,i,!1)):a+=i[0];for(var o=1;o<e.length;o++)a+=S(n,t,e[o],46===a.charCodeAt(a.length-1)),r&&(a+=i[o]);T.lastIndex=0;for(var l,u="";null!==(l=T.exec(a));)u+="-"+l[1];return{name:h(a)+u,styles:a,next:k}};var C=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x(t)};n.d(t,"CacheProvider",(function(){return _})),n.d(t,"ClassNames",(function(){return B})),n.d(t,"Global",(function(){return F})),n.d(t,"ThemeContext",(function(){return P})),n.d(t,"jsx",(function(){return L})),n.d(t,"keyframes",(function(){return z})),n.d(t,"withEmotionCache",(function(){return I})),n.d(t,"css",(function(){return C}));var O=Object(i.createContext)("undefined"!=typeof HTMLElement?f():null),P=Object(i.createContext)({}),_=O.Provider,I=function(e){return Object(i.forwardRef)((function(t,n){return Object(i.createElement)(O.Consumer,null,(function(r){return e(t,r,n)}))}))},N="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",R=Object.prototype.hasOwnProperty,M=function(e,t,n,r){var a=null===n?t.css:t.css(n);"string"==typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var o=t[N],l=[a],u="";"string"==typeof t.className?u=d(e.registered,l,t.className):null!=t.className&&(u=t.className+" ");var c=x(l);p(e,c,"string"==typeof o);u+=e.key+"-"+c.name;var s={};for(var f in t)R.call(t,f)&&"css"!==f&&f!==N&&(s[f]=t[f]);return s.ref=r,s.className=u,Object(i.createElement)(o,s)},j=I((function(e,t,n){return"function"==typeof e.css?Object(i.createElement)(P.Consumer,null,(function(r){return M(t,e,r,n)})):M(t,e,null,n)}));var L=function(e,t){var n=arguments;if(null==t||!R.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=j;var o={};for(var l in t)R.call(t,l)&&(o[l]=t[l]);o[N]=e,a[1]=o;for(var u=2;u<r;u++)a[u]=n[u];return i.createElement.apply(null,a)},F=I((function(e,t){var n=e.styles;if("function"==typeof n)return Object(i.createElement)(P.Consumer,null,(function(e){var r=x([n(e)]);return Object(i.createElement)(D,{serialized:r,cache:t})}));var r=x([n]);return Object(i.createElement)(D,{serialized:r,cache:t})})),D=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}a()(t,e);var n=t.prototype;return n.componentDidMount=function(){this.sheet=new o({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},n.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},n.insertStyles=function(){if(void 0!==this.props.serialized.next&&p(this.props.cache,this.props.serialized.next,!0),this.sheet.tags.length){var e=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling;this.sheet.before=e,this.sheet.flush()}this.props.cache.insert("",this.props.serialized,this.sheet,!1)},n.componentWillUnmount=function(){this.sheet.flush()},n.render=function(){return null},t}(i.Component),z=function(){var e=C.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},U=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var l in o="",i)i[l]&&l&&(o&&(o+=" "),o+=l);break;default:o=i}o&&(a&&(a+=" "),a+=o)}}return a};function V(e,t,n){var r=[],a=d(e,r,n);return r.length<2?n:a+t(r)}var B=I((function(e,t){return Object(i.createElement)(P.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a=x(n,t.registered);return p(t,a,!1),t.key+"-"+a.name},a={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return V(t.registered,r,U(n))},theme:n},i=e.children(a);return!0,i}))}))},qT12:function(e,t,n){"use strict";n("rE2o"),n("ioFf"),n("HAE/"),Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case f:case d:case o:case u:case l:case h:return e;default:switch(e=e&&e.$$typeof){case s:case p:case c:return e;default:return t}}case g:case m:case i:return t}}}function v(e){return y(e)===d}t.typeOf=y,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=a,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=l,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===u||e===l||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p)},t.isAsyncMode=function(e){return v(e)||y(e)===f},t.isConcurrentMode=v,t.isContextConsumer=function(e){return y(e)===s},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return y(e)===p},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===u},t.isStrictMode=function(e){return y(e)===l},t.isSuspense=function(e){return y(e)===h}},tQ2B:function(e,t,n){"use strict";n("8+KV"),n("V+eJ"),n("VRzm"),n("Btvt");var r=n("xTJ+"),a=n("Rn+g"),i=n("MLWZ"),o=n("w0Vi"),l=n("OTTw"),u=n("LYNF");e.exports=function(e){return new Promise((function(t,c){var s=e.data,f=e.headers;r.isFormData(s)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+h)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?o(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};a(t,c,r),d=null}},d.onabort=function(){d&&(c(u("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){c(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var m=n("eqyj"),g=(e.withCredentials||l(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,(function(e,t){void 0===s&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),c(e),d=null)})),void 0===s&&(s=null),d.send(s)}))}},"uXx/":function(e,t,n){"use strict";n("0mN4");var r=n("TqRt");t.__esModule=!0,t.logDeprecationNotice=t.convertProps=t.stripRemainingProps=void 0;var a=r(n("pVnL")),i=r(n("Ros5")),o=n("K9wq");t.stripRemainingProps=function(e){return(0,i.default)(e)};t.convertProps=function(e){var t=(0,a.default)({},e),n=t.resolutions,r=t.sizes,i=t.classId,u=t.fixed,c=t.fluid;return n&&(t.fixed=n,delete t.resolutions),r&&(t.fluid=r,delete t.sizes),i&&l("classId","gatsby-background-image should provide unique classes automatically. Open an Issue should you still need this property."),c&&(0,o.hasArtDirectionFluidArray)(e)&&(t.fluid=(0,o.groupByMedia)(t.fluid)),u&&(0,o.hasArtDirectionFixedArray)(e)&&(t.fixed=(0,o.groupByMedia)(t.fixed)),t};var l=function(e,t){};t.logDeprecationNotice=l},upKx:function(e,t,n){"use strict";var r=n("S/j/"),a=n("d/Gc"),i=n("ne8i");e.exports=[].copyWithin||function(e,t){var n=r(this),o=i(n.length),l=a(e,o),u=a(t,o),c=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===c?o:a(c,o))-u,o-l),f=1;for(u<l&&l<u+s&&(f=-1,u+=s-1,l+=s-1);s-- >0;)u in n?n[l]=n[u]:delete n[l],l+=f,u+=f;return n}},v1p5:function(e,t,n){(function(e){n("dZ+Y"),n("KKXr"),n("eM6i"),n("8+KV"),n("LK8F"),n("V+eJ"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("0l/t"),n("bWfx"),n("DNiP"),n("pIFo"),n("91GP"),n("rE2o"),n("ioFf"),t.__esModule=!0,t.warn=t.requestAnimationFrame=t.reducePropsToState=t.mapStateOnServer=t.handleClientStateChange=t.convertReactPropstoHtmlAttributes=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=u(n("q1tI")),o=u(n("MgzW")),l=n("hFT/");function u(e){return e&&e.__esModule?e:{default:e}}var c,s=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},f=function(e){var t=g(e,l.TAG_NAMES.TITLE),n=g(e,l.HELMET_PROPS.TITLE_TEMPLATE);if(n&&t)return n.replace(/%s/g,(function(){return t}));var r=g(e,l.HELMET_PROPS.DEFAULT_TITLE);return t||r||void 0},d=function(e){return g(e,l.HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},p=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return a({},e,t)}),{})},h=function(e,t){return t.filter((function(e){return void 0!==e[l.TAG_NAMES.BASE]})).map((function(e){return e[l.TAG_NAMES.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a++){var i=r[a].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},m=function(e,t,n){var a={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&A("Helmet: "+e+' should be of type "Array". Instead found type "'+r(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var r={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),o=0;o<i.length;o++){var u=i[o],c=u.toLowerCase();-1===t.indexOf(c)||n===l.TAG_PROPERTIES.REL&&"canonical"===e[n].toLowerCase()||c===l.TAG_PROPERTIES.REL&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(u)||u!==l.TAG_PROPERTIES.INNER_HTML&&u!==l.TAG_PROPERTIES.CSS_TEXT&&u!==l.TAG_PROPERTIES.ITEM_PROP||(n=u)}if(!n||!e[n])return!1;var s=e[n].toLowerCase();return a[n]||(a[n]={}),r[n]||(r[n]={}),!a[n][s]&&(r[n][s]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(r),u=0;u<i.length;u++){var c=i[u],s=(0,o.default)({},a[c],r[c]);a[c]=s}return e}),[]).reverse()},g=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},y=(c=Date.now(),function(e){var t=Date.now();t-c>16?(c=t,e(t)):setTimeout((function(){y(e)}),0)}),v=function(e){return clearTimeout(e)},b="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||y:e.requestAnimationFrame||y,w="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||v:e.cancelAnimationFrame||v,A=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},E=null,S=function(e,t){var n=e.baseTag,r=e.bodyAttributes,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,u=e.noscriptTags,c=e.onChangeClientState,s=e.scriptTags,f=e.styleTags,d=e.title,p=e.titleAttributes;x(l.TAG_NAMES.BODY,r),x(l.TAG_NAMES.HTML,a),T(d,p);var h={baseTag:C(l.TAG_NAMES.BASE,n),linkTags:C(l.TAG_NAMES.LINK,i),metaTags:C(l.TAG_NAMES.META,o),noscriptTags:C(l.TAG_NAMES.NOSCRIPT,u),scriptTags:C(l.TAG_NAMES.SCRIPT,s),styleTags:C(l.TAG_NAMES.STYLE,f)},m={},g={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(m[e]=n),r.length&&(g[e]=h[e].oldTags)})),t&&t(),c(e,m,g)},k=function(e){return Array.isArray(e)?e.join(""):e},T=function(e,t){void 0!==e&&document.title!==e&&(document.title=k(e)),x(l.TAG_NAMES.TITLE,t)},x=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(l.HELMET_ATTRIBUTE),a=r?r.split(","):[],i=[].concat(a),o=Object.keys(t),u=0;u<o.length;u++){var c=o[u],s=t[c]||"";n.getAttribute(c)!==s&&n.setAttribute(c,s),-1===a.indexOf(c)&&a.push(c);var f=i.indexOf(c);-1!==f&&i.splice(f,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);a.length===i.length?n.removeAttribute(l.HELMET_ATTRIBUTE):n.getAttribute(l.HELMET_ATTRIBUTE)!==o.join(",")&&n.setAttribute(l.HELMET_ATTRIBUTE,o.join(","))}},C=function(e,t){var n=document.head||document.querySelector(l.TAG_NAMES.HEAD),r=n.querySelectorAll(e+"["+l.HELMET_ATTRIBUTE+"]"),a=Array.prototype.slice.call(r),i=[],o=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===l.TAG_PROPERTIES.INNER_HTML)n.innerHTML=t.innerHTML;else if(r===l.TAG_PROPERTIES.CSS_TEXT)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var u=void 0===t[r]?"":t[r];n.setAttribute(r,u)}n.setAttribute(l.HELMET_ATTRIBUTE,"true"),a.some((function(e,t){return o=t,n.isEqualNode(e)}))?a.splice(o,1):i.push(n)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:a,newTags:i}},O=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[l.REACT_TAG_MAP[n]||n]=e[n],t}),t)},_=function(e,t,n){switch(e){case l.TAG_NAMES.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[l.HELMET_ATTRIBUTE]=!0,a=P(n,r),[i.default.createElement(l.TAG_NAMES.TITLE,a,e)];var e,n,r,a},toString:function(){return function(e,t,n,r){var a=O(n),i=k(t);return a?"<"+e+" "+l.HELMET_ATTRIBUTE+'="true" '+a+">"+s(i,r)+"</"+e+">":"<"+e+" "+l.HELMET_ATTRIBUTE+'="true">'+s(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case l.ATTRIBUTE_NAMES.BODY:case l.ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return P(t)},toString:function(){return O(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,a=((r={key:n})[l.HELMET_ATTRIBUTE]=!0,r);return Object.keys(t).forEach((function(e){var n=l.REACT_TAG_MAP[e]||e;if(n===l.TAG_PROPERTIES.INNER_HTML||n===l.TAG_PROPERTIES.CSS_TEXT){var r=t.innerHTML||t.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[n]=t[e]})),i.default.createElement(e,a)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!(e===l.TAG_PROPERTIES.INNER_HTML||e===l.TAG_PROPERTIES.CSS_TEXT)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+s(r[t],n)+'"';return e?e+" "+a:a}),""),i=r.innerHTML||r.cssText||"",o=-1===l.SELF_CLOSING_TAGS.indexOf(e);return t+"<"+e+" "+l.HELMET_ATTRIBUTE+'="true" '+a+(o?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}};t.convertReactPropstoHtmlAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[l.HTML_TAG_MAP[n]||n]=e[n],t}),t)},t.handleClientStateChange=function(e){E&&w(E),e.defer?E=b((function(){S(e,(function(){E=null}))})):(S(e),E=null)},t.mapStateOnServer=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,i=e.linkTags,o=e.metaTags,u=e.noscriptTags,c=e.scriptTags,s=e.styleTags,f=e.title,d=void 0===f?"":f,p=e.titleAttributes;return{base:_(l.TAG_NAMES.BASE,t,r),bodyAttributes:_(l.ATTRIBUTE_NAMES.BODY,n,r),htmlAttributes:_(l.ATTRIBUTE_NAMES.HTML,a,r),link:_(l.TAG_NAMES.LINK,i,r),meta:_(l.TAG_NAMES.META,o,r),noscript:_(l.TAG_NAMES.NOSCRIPT,u,r),script:_(l.TAG_NAMES.SCRIPT,c,r),style:_(l.TAG_NAMES.STYLE,s,r),title:_(l.TAG_NAMES.TITLE,{title:d,titleAttributes:p},r)}},t.reducePropsToState=function(e){return{baseTag:h([l.TAG_PROPERTIES.HREF],e),bodyAttributes:p(l.ATTRIBUTE_NAMES.BODY,e),defer:g(e,l.HELMET_PROPS.DEFER),encode:g(e,l.HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:p(l.ATTRIBUTE_NAMES.HTML,e),linkTags:m(l.TAG_NAMES.LINK,[l.TAG_PROPERTIES.REL,l.TAG_PROPERTIES.HREF],e),metaTags:m(l.TAG_NAMES.META,[l.TAG_PROPERTIES.NAME,l.TAG_PROPERTIES.CHARSET,l.TAG_PROPERTIES.HTTPEQUIV,l.TAG_PROPERTIES.PROPERTY,l.TAG_PROPERTIES.ITEM_PROP],e),noscriptTags:m(l.TAG_NAMES.NOSCRIPT,[l.TAG_PROPERTIES.INNER_HTML],e),onChangeClientState:d(e),scriptTags:m(l.TAG_NAMES.SCRIPT,[l.TAG_PROPERTIES.SRC,l.TAG_PROPERTIES.INNER_HTML],e),styleTags:m(l.TAG_NAMES.STYLE,[l.TAG_PROPERTIES.CSS_TEXT],e),title:f(e),titleAttributes:p(l.ATTRIBUTE_NAMES.TITLE,e)}},t.requestAnimationFrame=b,t.warn=A}).call(this,n("yLpj"))},vD7z:function(e,t,n){"use strict";n("0mN4"),t.__esModule=!0,t.resetImageCache=t.activateCacheForMultipleImages=t.activateCacheForImage=t.allInImageCache=t.inImageCache=void 0;var r=n("uXx/"),a=n("K9wq"),i=n("EFel"),o=Object.create({}),l=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var l=(0,r.convertProps)(e),c=(0,i.hasImageArray)(l)&&!(0,a.hasArtDirectionArray)(l);if(c&&!n)return u(e);var s=c?(0,i.getSelectedImage)(l,t):(0,i.getImageSrcKey)(l);return o[s]||!1};t.inImageCache=l;var u=function(e){var t=(0,r.convertProps)(e);return(t.fluid||t.fixed).every((function(e,n){return l(t,n,!0)}))};t.allInImageCache=u;var c=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var l=(0,r.convertProps)(e),u=(0,i.hasImageArray)(l)&&!(0,a.hasArtDirectionArray)(l);if(u&&!n)return s(e);var c=u?(0,i.getSelectedImage)(l,t):(0,i.getImageSrcKey)(l);c&&(o[c]=!0)};t.activateCacheForImage=c;var s=function(e){var t=(0,r.convertProps)(e);(t.fluid||t.fixed).forEach((function(e,n){return c(t,n,!0)}))};t.activateCacheForMultipleImages=s;t.resetImageCache=function(){for(var e in o)delete o[e]}},vDqi:function(e,t,n){e.exports=n("zuR4")},vOnD:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return nt}));n("2Spj"),n("dZ+Y"),n("LK8F"),n("a1Th"),n("h7Nl"),n("KKXr"),n("0l/t"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("Oyvg"),n("mGWK"),n("bWfx"),n("Tze0"),n("pIFo"),n("8+KV"),n("f3/d"),n("DW2E"),n("V+eJ"),n("/SS/"),n("hHhE"),n("91GP"),n("HAE/"),n("rE2o"),n("ioFf");var r=n("aJjT"),a=n.n(r),i=n("TAZq"),o=n.n(i),l=n("q1tI"),u=n.n(l),c=n("ME5O"),s=n("TOwV"),f=n("Wwog"),d=(n("17x9"),n("9uj6")),p=n("ECyS"),h=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},w=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},A=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},E=function(e){return"object"===(void 0===e?"undefined":m(e))&&e.constructor===Object},S=Object.freeze([]),k=Object.freeze({});function T(e){return"function"==typeof e}function x(e){return e.displayName||e.name||"Component"}function C(e){return e&&"string"==typeof e.styledComponentId}var O=void 0!==e&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",P="undefined"!=typeof window&&"HTMLElement"in window,_="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&({}.REACT_APP_SC_DISABLE_SPEEDY||{}.SC_DISABLE_SPEEDY)||!1,I={};var N=function(e){function t(n){g(this,t);for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];var o=A(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(a.length>0?" Additional arguments: "+a.join(", "):"")));return A(o)}return b(t,e),t}(Error),R=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,M=function(e){var t=""+(e||""),n=[];return t.replace(R,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var a=e.componentId,i=e.matchIndex,o=n[r+1];return{componentId:a,cssFromDOM:o?t.slice(i,o.matchIndex):t.slice(i)}}))},j=/^\s*\/\/.*$/gm,L=new a.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),F=new a.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),D=[],z=function(e){if(-2===e){var t=D;return D=[],t}},U=o()((function(e){D.push(e)})),V=void 0,B=void 0,H=void 0,q=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(B)&&n.slice(t-B.length,t)!==B?"."+V:e};F.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(B)>0&&(n[0]=n[0].replace(H,q))},U,z]),L.use([U,z]);var W=function(e){return L("",e)};function G(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",a=e.join("").replace(j,""),i=t&&n?n+" "+t+" { "+a+" }":a;return V=r,B=t,H=new RegExp("\\"+B+"\\b","g"),F(n||!t?"":t,i)}var K=function(){return n.nc},$=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},Q=function(e,t){e[t]=Object.create(null)},Y=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},X=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},J=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var r=e.ownerDocument.styleSheets[n];if(r.ownerNode===e)return r}throw new N(10)},Z=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(a){return!1}return!0},ee=function(e){return"\n/* sc-component-id: "+e+" */\n"},te=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},ne=function(e,t){return function(n){var r=K();return"<style "+[r&&'nonce="'+r+'"',O+'="'+X(t)+'"','data-styled-version="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},re=function(e,t){return function(){var n,r=((n={})[O]=X(t),n["data-styled-version"]="4.4.1",n),a=K();return a&&(r.nonce=a),u.a.createElement("style",v({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},ae=function(e){return function(){return Object.keys(e)}},ie=function(e,t){return e.createTextNode(ee(t))},oe=function e(t,n){var r=void 0===t?Object.create(null):t,a=void 0===n?Object.create(null):n,i=function(e){var t=a[e];return void 0!==t?t:a[e]=[""]},o=function(){var e="";for(var t in a){var n=a[t][0];n&&(e+=ee(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=v({},e[n]);return t}(r),n=Object.create(null);for(var i in a)n[i]=[a[i][0]];return e(t,n)},css:o,getIds:ae(a),hasNameForId:Y(r),insertMarker:i,insertRules:function(e,t,n){i(e)[0]+=t.join(" "),$(r,e,n)},removeRules:function(e){var t=a[e];void 0!==t&&(t[0]="",Q(r,e))},sealed:!1,styleTag:null,toElement:re(o,r),toHTML:ne(o,r)}},le=function(e,t,n,r,a){if(P&&!n){var i=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var a=r.createElement("style");a.setAttribute(O,""),a.setAttribute("data-styled-version","4.4.1");var i=K();if(i&&a.setAttribute("nonce",i),a.appendChild(r.createTextNode("")),e&&!t)e.appendChild(a);else{if(!t||!e||!t.parentNode)throw new N(6);t.parentNode.insertBefore(a,n?t:t.nextSibling)}return a}(e,t,r);return _?function(e,t){var n=Object.create(null),r=Object.create(null),a=void 0!==t,i=!1,o=function(t){var a=r[t];return void 0!==a?a:(r[t]=ie(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},l=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new N(5)},css:l,getIds:ae(r),hasNameForId:Y(n),insertMarker:o,insertRules:function(e,r,l){for(var u=o(e),c=[],s=r.length,f=0;f<s;f+=1){var d=r[f],p=a;if(p&&-1!==d.indexOf("@import"))c.push(d);else{p=!1;var h=f===s-1?"":" ";u.appendData(""+d+h)}}$(n,e,l),a&&c.length>0&&(i=!0,t().insertRules(e+"-import",c))},removeRules:function(o){var l=r[o];if(void 0!==l){var u=ie(e.ownerDocument,o);e.replaceChild(u,l),r[o]=u,Q(n,o),a&&i&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:re(l,n),toHTML:ne(l,n)}}(i,a):function(e,t){var n=Object.create(null),r=Object.create(null),a=[],i=void 0!==t,o=!1,l=function(e){var t=r[e];return void 0!==t?t:(r[e]=a.length,a.push(0),Q(n,e),r[e])},u=function(){var t=J(e).cssRules,n="";for(var i in r){n+=ee(i);for(var o=r[i],l=te(a,o),u=l-a[o];u<l;u+=1){var c=t[u];void 0!==c&&(n+=c.cssText)}}return n};return{clone:function(){throw new N(5)},css:u,getIds:ae(r),hasNameForId:Y(n),insertMarker:l,insertRules:function(r,u,c){for(var s=l(r),f=J(e),d=te(a,s),p=0,h=[],m=u.length,g=0;g<m;g+=1){var y=u[g],v=i;v&&-1!==y.indexOf("@import")?h.push(y):Z(f,y,d+p)&&(v=!1,p+=1)}i&&h.length>0&&(o=!0,t().insertRules(r+"-import",h)),a[s]+=p,$(n,r,c)},removeRules:function(l){var u=r[l];if(void 0!==u&&!1!==e.isConnected){var c=a[u];!function(e,t,n){for(var r=t-n,a=t;a>r;a-=1)e.deleteRule(a)}(J(e),te(a,u)-1,c),a[u]=0,Q(n,l),i&&o&&t().removeRules(l+"-import")}},sealed:!1,styleTag:e,toElement:re(u,n),toHTML:ne(u,n)}}(i,a)}return oe()},ue=/\s+/,ce=void 0;ce=P?_?40:1e3:-1;var se=0,fe=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=le(t.target,n?n.styleTag:null,t.forceServer,!0)},se+=1,this.id=se,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!P||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+O+'][data-styled-version="4.4.1"]'),a=r.length;if(!a)return this;for(var i=0;i<a;i+=1){var o=r[i];n||(n=!!o.getAttribute("data-styled-streamed"));for(var l,u=(o.getAttribute(O)||"").trim().split(ue),c=u.length,s=0;s<c;s+=1)l=u[s],this.rehydratedNames[l]=!0;t.push.apply(t,M(o.textContent)),e.push(o)}var f=t.length;if(!f)return this;var d=this.makeTag(null);!function(e,t,n){for(var r=0,a=n.length;r<a;r+=1){var i=n[r],o=i.componentId,l=i.cssFromDOM,u=W(l);e.insertRules(o,u)}for(var c=0,s=t.length;c<s;c+=1){var f=t[c];f.parentNode&&f.parentNode.removeChild(f)}}(d,e,t),this.capacity=Math.max(1,ce-f),this.tags.push(d);for(var p=0;p<f;p+=1)this.tagMap[t[p].componentId]=d;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];fe=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),a=0;a<n.length;a+=1)t.tagMap[n[a]]=r;return r})),t.rehydratedNames=v({},this.rehydratedNames),t.deferred=v({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return le(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=ce,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,a=0;a<r.length;a+=1)r[a].inject(e,t,n);var i=this.getTagForId(e);if(void 0!==this.deferred[e]){var o=this.deferred[e].concat(t);i.insertRules(e,o,n),this.deferred[e]=void 0}else i.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var r="sc-"+e+"-"+n;return Object(l.cloneElement)(t.toElement(),{key:r})}))},y(e,null,[{key:"master",get:function(){return fe||(fe=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),pe=function(){function e(t,n){var r=this;g(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new N(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),he=/([A-Z])/g,me=/^ms-/;function ge(e){return e.replace(he,"-$1").toLowerCase().replace(me,"-ms-")}var ye=function(e){return null==e||!1===e||""===e},ve=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!ye(t[n])){if(E(t[n]))return r.push.apply(r,e(t[n],n)),r;if(T(t[n]))return r.push(ge(n)+":",t[n],";"),r;r.push(ge(n)+": "+(a=n,null==(i=t[n])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||a in c.a?String(i).trim():i+"px")+";")}var a,i;return r})),n?[n+" {"].concat(r,["}"]):r};function be(e,t,n){if(Array.isArray(e)){for(var r,a=[],i=0,o=e.length;i<o;i+=1)null!==(r=be(e[i],t,n))&&(Array.isArray(r)?a.push.apply(a,r):a.push(r));return a}return ye(e)?null:C(e)?"."+e.styledComponentId:T(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:be(e(t),t,n):e instanceof pe?n?(e.inject(n),e.getName()):e:E(e)?ve(e):e.toString();var l}function we(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T(e)||E(e)?be(h(S,[e].concat(n))):be(h(e,n))}function Ae(e){for(var t,n=0|e.length,r=0|n,a=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var Ee=52,Se=function(e){return String.fromCharCode(e+(e>25?39:97))};function ke(e){var t="",n=void 0;for(n=e;n>Ee;n=Math.floor(n/Ee))t=Se(n%Ee)+t;return Se(n%Ee)+t}function Te(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Te(r,t))return!1;if(T(r)&&!C(r))return!1}return!t.some((function(e){return T(e)||function(e){for(var t in e)if(T(e[t]))return!0;return!1}(e)}))}var xe,Ce=function(e){return ke(Ae(e))},Oe=function(){function e(t,n,r){g(this,e),this.rules=t,this.isStatic=Te(t,n),this.componentId=r,de.master.hasId(r)||de.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,a=this.lastClassName;if(P&&n&&"string"==typeof a&&t.hasNameForId(r,a))return a;var i=be(this.rules,e,t),o=Ce(this.componentId+i.join(""));return t.hasNameForId(r,o)||t.inject(this.componentId,G(i,"."+o,void 0,r),o),this.lastClassName=o,o},e.generateName=function(e){return Ce(e)},e}(),Pe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k,r=!!n&&e.theme===n.theme,a=e.theme&&!r?e.theme:t||n.theme;return a},_e=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Ne(e){return e.replace(_e,"-").replace(Ie,"")}function Re(e){return"string"==typeof e&&!0}var Me={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},je={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Le=((xe={})[s.ForwardRef]={$$typeof:!0,render:!0},xe),Fe=Object.defineProperty,De=Object.getOwnPropertyNames,ze=Object.getOwnPropertySymbols,Ue=void 0===ze?function(){return[]}:ze,Ve=Object.getOwnPropertyDescriptor,Be=Object.getPrototypeOf,He=Object.prototype,qe=Array.prototype;function We(e,t,n){if("string"!=typeof t){var r=Be(t);r&&r!==He&&We(e,r,n);for(var a=qe.concat(De(t),Ue(t)),i=Le[e.$$typeof]||Me,o=Le[t.$$typeof]||Me,l=a.length,u=void 0,c=void 0;l--;)if(c=a[l],!(je[c]||n&&n[c]||o&&o[c]||i&&i[c])&&(u=Ve(t,c)))try{Fe(e,c,u)}catch(s){}return e}return e}var Ge=Object(l.createContext)(),Ke=Ge.Consumer,$e=(function(e){function t(n){g(this,t);var r=A(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}b(t,e),t.prototype.render=function(){return this.props.children?u.a.createElement(Ge.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return u.a.createElement(Ge.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(T(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":m(e)))throw new N(8);return v({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)}}(l.Component),function(){function e(){g(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new N(2);return u.a.createElement(Ye,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new N(3)}}(),Object(l.createContext)()),Qe=$e.Consumer,Ye=function(e){function t(n){g(this,t);var r=A(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext),r}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new N(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return u.a.createElement($e.Provider,{value:this.getContext(n,r)},t)},t}(l.Component),Xe={};var Je=function(e){function t(){g(this,t);var n=A(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return u.a.createElement(Qe,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():u.a.createElement(Ke,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,a=(t.displayName,t.foldedComponentIds),i=t.styledComponentId,o=t.target,u=void 0;u=n.isStatic?this.generateAndInjectStyles(k,this.props):this.generateAndInjectStyles(Pe(this.props,e,r)||k,this.props);var c=this.props.as||this.attrs.as||o,s=Re(c),f={},p=v({},this.props,this.attrs),h=void 0;for(h in p)"forwardedComponent"!==h&&"as"!==h&&("forwardedRef"===h?f.ref=p[h]:"forwardedAs"===h?f.as=p[h]:s&&!Object(d.a)(h)||(f[h]=p[h]));return this.props.style&&this.attrs.style&&(f.style=v({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(a,i,u!==i?u:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(l.createElement)(c,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,a=v({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,i=!1,o=void 0,l=void 0;for(l in T(n)&&(n=n(a),i=!0),n)o=n[l],i||!T(o)||(t=o)&&t.prototype&&t.prototype.isReactComponent||C(o)||(o=o(a)),r.attrs[l]=o,a[l]=o})),a):a},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,a=n.componentStyle;n.warnTooManyClasses;return a.isStatic&&!r.length?a.generateAndInjectStyles(k,this.styleSheet):a.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(l.Component);function Ze(e,t,n){var r=C(e),a=!Re(e),i=t.displayName,o=void 0===i?function(e){return Re(e)?"styled."+e:"Styled("+x(e)+")"}(e):i,l=t.componentId,c=void 0===l?function(e,t,n){var r="string"!=typeof t?"sc":Ne(t),a=(Xe[r]||0)+1;Xe[r]=a;var i=r+"-"+e.generateName(r+a);return n?n+"-"+i:i}(Oe,t.displayName,t.parentComponentId):l,s=t.ParentComponent,f=void 0===s?Je:s,d=t.attrs,h=void 0===d?S:d,m=t.displayName&&t.componentId?Ne(t.displayName)+"-"+t.componentId:t.componentId||c,g=r&&e.attrs?Array.prototype.concat(e.attrs,h).filter(Boolean):h,y=new Oe(r?e.componentStyle.rules.concat(n):n,g,m),b=void 0,A=function(e,t){return u.a.createElement(f,v({},e,{forwardedComponent:b,forwardedRef:t}))};return A.displayName=o,(b=u.a.forwardRef(A)).displayName=o,b.attrs=g,b.componentStyle=y,b.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,b.styledComponentId=m,b.target=r?e.target:e,b.withComponent=function(e){var r=t.componentId,a=w(t,["componentId"]),i=r&&r+"-"+(Re(e)?e:Ne(x(e)));return Ze(e,v({},a,{attrs:g,componentId:i,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(p.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},a&&We(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var et=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(!Object(s.isValidElementType)(n))throw new N(1,String(n));var a=function(){return t(n,r,we.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,v({},r,a))},a.attrs=function(a){return e(t,n,v({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},a}(Ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){et[e]=et(e)}));var tt=function(){function e(t,n){g(this,e),this.rules=t,this.componentId=n,this.isStatic=Te(t,S),de.master.hasId(n)||de.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=G(be(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function nt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=we.apply(void 0,[e].concat(n)),i="sc-global-"+Ae(JSON.stringify(a)),o=new tt(a,i),l=function(e){function t(n){g(this,t);var r=A(this,e.call(this,n)),a=r.constructor,i=a.globalStyle,o=a.styledComponentId;return P&&(window.scCGSHMRCache[o]=(window.scCGSHMRCache[o]||0)+1),r.state={globalStyle:i,styledComponentId:o},r}return b(t,e),t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return u.a.createElement(Qe,null,(function(t){e.styleSheet=t||de.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(I,e.styleSheet),null):u.a.createElement(Ke,null,(function(t){var r=e.constructor.defaultProps,a=v({},e.props);return void 0!==t&&(a.theme=Pe(e.props,t,r)),n.renderStyles(a,e.styleSheet),null}))}))},t}(u.a.Component);return l.globalStyle=o,l.styledComponentId=i,l}P&&(window.scCGSHMRCache={});t.b=et}).call(this,n("8oxB"))},viRO:function(e,t,n){"use strict";n("2Spj"),n("a1Th"),n("h7Nl"),n("rGqo"),n("yt8O"),n("Btvt"),n("RW0V"),n("LK8F"),n("pIFo"),n("rE2o"),n("ioFf");var r=n("MgzW"),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113;a&&Symbol.for("react.suspense_list");var h=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116;a&&Symbol.for("react.fundamental"),a&&Symbol.for("react.responder"),a&&Symbol.for("react.scope");var g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}function A(){}function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=w.prototype;var S=E.prototype=new A;S.constructor=E,r(S,w.prototype),S.isPureReactComponent=!0;var k={current:null},T={current:null},x=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!C.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];a.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:o,ref:l,props:a,_owner:T.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var _=/\/+/g,I=[];function N(e,t,n,r){if(I.length){var a=I.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function R(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function M(e,t,n){return null==e?0:function e(t,n,r,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case o:u=!0}}if(u)return r(a,t,""===n?"."+j(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var s=n+j(l=t[c],c);u+=e(l,s,r,a)}else if(null===t||"object"!=typeof t?s=null:s="function"==typeof(s=g&&t[g]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),c=0;!(l=t.next()).done;)u+=e(l=l.value,s=n+j(l,c++),r,a);else if("object"===l)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D(e,r,n,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(_,"$&/")+"/")+n)),r.push(e))}function D(e,t,n,r,a){var i="";null!=n&&(i=(""+n).replace(_,"$&/")+"/"),M(e,F,t=N(t,i,r,a)),R(t)}function z(){var e=k.current;if(null===e)throw Error(y(321));return e}var U={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,L,t=N(null,null,t,n)),R(t)},count:function(e){return M(e,(function(){return null}),null)},toArray:function(e){var t=[];return D(e,t,null,(function(e){return e})),t},only:function(e){if(!P(e))throw Error(y(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:E,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return z().useCallback(e,t)},useContext:function(e,t){return z().useContext(e,t)},useEffect:function(e,t){return z().useEffect(e,t)},useImperativeHandle:function(e,t,n){return z().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return z().useLayoutEffect(e,t)},useMemo:function(e,t){return z().useMemo(e,t)},useReducer:function(e,t,n){return z().useReducer(e,t,n)},useRef:function(e){return z().useRef(e)},useState:function(e){return z().useState(e)},Fragment:l,Profiler:c,StrictMode:u,Suspense:p,createElement:O,cloneElement:function(e,t,n){if(null==e)throw Error(y(267,e));var a=r({},e.props),o=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=T.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)x.call(t,s)&&!C.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){c=Array(s);for(var f=0;f<s;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:l,props:a,_owner:u}},createFactory:function(e){var t=O.bind(null,e);return t.type=e,t},isValidElement:P,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r}},V={default:U},B=V&&U||V;e.exports=B.default||B},vrFN:function(e,t,n){"use strict";var r=n("EH9Q"),a=n("q1tI"),i=n.n(a),o=n("TJpk"),l=n.n(o);function u(e){var t=e.description,n=e.lang,a=e.meta,o=e.title,u=r.data.site,c=t||u.siteMetadata.description;return i.a.createElement(l.a,{htmlAttributes:{lang:n},title:o,titleTemplate:"%s | "+u.siteMetadata.title,meta:[{name:"description",content:c},{property:"og:title",content:o},{property:"og:description",content:c},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:u.siteMetadata.author},{name:"twitter:title",content:o},{name:"twitter:description",content:c}].concat(a)})}u.defaultProps={lang:"en",meta:[],description:""},t.a=u},w0Vi:function(e,t,n){"use strict";n("Tze0"),n("V+eJ"),n("KKXr"),n("8+KV");var r=n("xTJ+"),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},wEEd:function(e,t,n){"use strict";n("Tze0"),n("SRfc"),n("pIFo"),n("Oyvg"),n("INYr"),n("dRSK"),n("0l/t"),n("HEwt"),n("bHtr"),n("dZ+Y"),n("9VmF"),n("Vd3H"),n("/8Fb"),n("VRzm");function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n("bWfx"),n("f3/d"),n("rE2o"),n("ioFf"),n("DW2E"),n("eM6i"),n("hhXQ"),n("8+KV");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)})(e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?o(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}n("V+eJ");function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("DNiP"),n("RW0V"),n("9AAn"),n("rGqo"),n("yt8O"),n("XfO3"),n("T39b"),n("a1Th"),n("h7Nl"),n("Btvt"),n("LK8F");function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var y=n("q1tI"),v=n.n(y);n.d(t,"b",(function(){return K})),n.d(t,"a",(function(){return Pe})),n.d(t,"c",(function(){return Z}));var b={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(b.str(e)||b.num(e))return e===t;if(b.obj(e)&&b.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!b.und(n)||e===t}};function w(){var e=Object(y.useState)(!1)[1];return Object(y.useCallback)((function(){return e((function(e){return!e}))}),[])}function A(e,t){return b.und(e)||b.nul(e)?t:e}function E(e){return b.und(e)?[]:b.arr(e)?e:[e]}function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b.fun(e)?e.apply(void 0,n):e}function k(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,g(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(b.und(t))return m({to:t},e);var n=Object.keys(e).reduce((function(n,r){return b.und(t[r])?m({},n,h({},r,e[r])):n}),{});return m({to:t},n)}var T,x,C=function(){function e(){f(this,e),this.payload=void 0,this.children=[]}return p(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),O=function(e){function t(){var e;return f(this,t),(e=l(this,u(t).apply(this,arguments))).payload=[],e.attach=function(){return e.payload.forEach((function(t){return t instanceof C&&t.addChild(o(e))}))},e.detach=function(){return e.payload.forEach((function(t){return t instanceof C&&t.removeChild(o(e))}))},e}return s(t,e),t}(C),P=function(e){function t(){var e;return f(this,t),(e=l(this,u(t).apply(this,arguments))).payload={},e.attach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof C&&t.addChild(o(e))}))},e.detach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof C&&t.removeChild(o(e))}))},e}return s(t,e),p(t,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof C)&&(t[n]=r instanceof C?r[e?"getAnimatedValue":"getValue"]():r)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}}]),t}(C);function _(e,t){T={fn:e,transform:t}}function I(e){x=e}var N,R=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1};function M(e){N=e}var j=function(){return Date.now()};function L(e){e}var F,D,z=function(e){return e.current};function U(e){F=e}var V=function(e){function t(e,n){var r;return f(this,t),(r=l(this,u(t).call(this))).update=void 0,r.payload=e.style?m({},e,{style:F(e.style)}):e,r.update=n,r.attach(),r}return s(t,e),t}(P),B=!1,H=new Set,q=function e(){if(!B)return!1;var t=j(),n=!0,r=!1,a=void 0;try{for(var i,o=H[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){for(var l=i.value,u=!1,c=0;c<l.configs.length;c++){for(var s=l.configs[c],f=void 0,d=void 0,p=0;p<s.animatedValues.length;p++){var h=s.animatedValues[p];if(!h.done){var m=s.fromValues[p],g=s.toValues[p],y=h.lastPosition,v=g instanceof C,b=Array.isArray(s.initialVelocity)?s.initialVelocity[p]:s.initialVelocity;if(v&&(g=g.getValue()),s.immediate)h.setValue(g),h.done=!0;else if("string"!=typeof m&&"string"!=typeof g){if(void 0!==s.duration)y=m+s.easing((t-h.startTime)/s.duration)*(g-m),f=t>=h.startTime+s.duration;else if(s.decay)y=m+b/(1-.998)*(1-Math.exp(-(1-.998)*(t-h.startTime))),(f=Math.abs(h.lastPosition-y)<.1)&&(g=y);else{d=void 0!==h.lastTime?h.lastTime:t,b=void 0!==h.lastVelocity?h.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var w=Math.floor(t-d),A=0;A<w;++A){y+=1*(b+=1*((-s.tension*(y-g)+-s.friction*b)/s.mass)/1e3)/1e3}var E=!(!s.clamp||0===s.tension)&&(m<g?y>g:y<g),S=Math.abs(b)<=s.precision,k=0===s.tension||Math.abs(g-y)<=s.precision;f=E||S&&k,h.lastVelocity=b,h.lastTime=t}v&&!s.toValues[p].done&&(f=!1),f?(h.value!==g&&(y=g),h.done=!0):u=!0,h.setValue(y),h.lastPosition=y}else h.setValue(g),h.done=!0}}l.props.onFrame&&(l.values[s.name]=s.interpolation.getValue())}l.props.onFrame&&l.props.onFrame(l.values),u||(H.delete(l),l.stop(!0))}}catch(T){r=!0,a=T}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return H.size?D?D():R(e):B=!1,B};function W(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return W({range:e,output:t,extrapolate:n});if(N&&"string"==typeof e.output[0])return N(e);var r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,a,i,o,l,u){var c=u?u(e):e;if(c<t){if("identity"===o)return c;"clamp"===o&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===a)return r;if(t===n)return e<=t?r:a;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:a===1/0?c+=r:c=c*(a-r)+r;return c}(e,i[t],i[t+1],a[t],a[t+1],u,o,l,r.map)}}var G=function(e){function t(e,n,r,a){var i;return f(this,t),(i=l(this,u(t).call(this))).calc=void 0,i.payload=e instanceof O&&!(e instanceof t)?e.getPayload():Array.isArray(e)?e:[e],i.calc=W(n,r,a),i}return s(t,e),p(t,[{key:"getValue",value:function(){return this.calc.apply(this,r(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=W(e,t,n)}},{key:"interpolate",value:function(e,n,r){return new t(this,e,n,r)}}]),t}(O),K={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};var $=function(e){function t(e){var n,r;return f(this,t),n=l(this,u(t).call(this)),r=o(n),n.animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),r.value=e,t&&r.flush()},n.value=e,n.startPosition=e,n.lastPosition=e,n}return s(t,e),p(t,[{key:"flush",value:function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new G(this,e,t,n)}}]),t}(C),Q=function(e){function t(e){var n;return f(this,t),(n=l(this,u(t).call(this))).payload=e.map((function(e){return new $(e)})),n}return s(t,e),p(t,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new G(this,e,t)}}]),t}(O),Y=0,X=function(){function e(){var t=this;f(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=Y++}return p(e,[{key:"update",value:function(e){if(!e)return this;var t=k(e),n=t.delay,r=void 0===n?0:n,a=t.to,i=g(t,["delay","to"]);if(b.arr(a)||b.fun(a))this.queue.push(m({},i,{delay:r,to:a}));else if(a){var o={};Object.entries(a).forEach((function(e){var t=e[0],n=m({to:h({},t,e[1]),delay:S(r,t)},i),a=o[n.delay]&&o[n.delay].to;o[n.delay]=m({},o[n.delay],n,{to:m({},a,n.to)})})),this.queue=Object.values(o)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;b.obj(r)&&(n.merged=m({},r,n.merged)),b.obj(i)&&(n.merged=m({},n.merged,i))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,i){var o=t.delay,l=g(t,["delay"]),u=function(t){i===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},c=b.arr(l.to)||b.fun(l.to);o?setTimeout((function(){r===n.guid&&(c?n.runAsync(l,u):n.diff(l).start(u))}),o):c?n.runAsync(l,u):n.diff(l).start(u)}))}else b.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,H.has(t)||H.add(t),B||(B=!0,R(D||q));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,H.has(t)&&H.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,a=(e.delay,g(e,["delay"])),i=this.local,o=Promise.resolve(void 0);if(b.arr(a.to))for(var l=function(e){var t=e,r=m({},a,k(a.to[t]));b.arr(r.config)&&(r.config=r.config[t]),o=o.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(r).start(e)}))}))},u=0;u<a.to.length;u++)l(u);else if(b.fun(a.to)){var c,s=0;o=o.then((function(){return a.to((function(e){var t=m({},a,k(e));if(b.arr(t.config)&&(t.config=t.config[s]),s++,i===n.guid)return c=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return c}))}))}o.then(t)}},{key:"diff",value:function(e){var t=this;this.props=m({},this.props,e);var n=this.props,r=n.from,a=void 0===r?{}:r,i=n.to,o=void 0===i?{}:i,l=n.config,u=void 0===l?{}:l,c=n.reverse,s=n.attach,f=n.reset,d=n.immediate;if(c){var p=[o,a];a=p[0],o=p[1]}this.merged=m({},a,this.merged,o),this.hasChanged=!1;var g=s&&s(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],o=e[r]||{},l=b.num(i),c=b.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!x[i],s=b.arr(i),p=!l&&!s&&!c,y=b.und(a[r])?i:a[r],v=l||s?i:c?i:1,w=S(u,r);g&&(v=g.animations[r].parent);var k,T=o.parent,C=o.interpolation,O=E(g?v.getPayload():v),P=i;p&&(P=N({range:[0,1],output:[i,i]})(1));var _=C&&C.getValue(),I=!b.und(T)&&o.animatedValues.some((function(e){return!e.done})),R=!b.equ(P,_),M=!b.equ(P,o.previous),L=!b.equ(w,o.config);if(f||M&&R||L){if(l||c)T=C=o.parent||new $(y);else if(s)T=C=o.parent||new Q(y);else if(p){var F=o.interpolation&&o.interpolation.calc(o.parent.value);F=void 0===F||f?y:F,o.parent?(T=o.parent).setValue(0,!1):T=new $(0);var D={output:[F,i]};o.interpolation?(C=o.interpolation,o.interpolation.updateConfig(D)):C=T.interpolate(D)}return O=E(g?v.getPayload():v),k=E(T.getPayload()),f&&!p&&T.setValue(y,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=I?e.lastVelocity:void 0,e.lastTime=I?e.lastTime:void 0,e.startTime=j(),e.done=!1,e.animatedStyles.clear()})),S(d,r)&&T.setValue(p?v:i,!1),m({},e,h({},r,m({},o,{name:r,parent:T,interpolation:C,animatedValues:k,toValues:O,previous:P,config:w,fromValues:E(T.getValue()),immediate:S(d,r),initialVelocity:A(w.velocity,0),clamp:A(w.clamp,!1),precision:A(w.precision,.01),tension:A(w.tension,170),friction:A(w.friction,26),mass:A(w.mass,1),duration:w.duration,easing:A(w.easing,(function(e){return e})),decay:w.decay})))}return R?e:(p&&(T.setValue(1,!1),C.updateConfig({output:[P,P]})),T.done=!0,t.hasChanged=!0,m({},e,h({},r,m({},e[r],{previous:P}))))}),this.animations),this.hasChanged)for(var y in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[y]=this.animations[y].interpolation,this.values[y]=this.animations[y].interpolation.getValue();return this}},{key:"destroy",value:function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}]),e}(),J=function(e,t){var n=Object(y.useRef)(!1),r=Object(y.useRef)(),a=b.fun(t),i=Object(y.useMemo)((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new X,o=a?S(t,r,i):t[r];return 0===r&&(n=o.ref),i.update(o),n||i.start(),i})),n]}),[e]),o=i[0],l=i[1];r.current=o;Object(y.useImperativeHandle)(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=Object(y.useMemo)((function(){return function(e){return r.current.map((function(t,n){t.update(a?S(e,n,t):e[n]),l||t.start()}))}}),[e]);Object(y.useEffect)((function(){n.current?a||u(t):l||r.current.forEach((function(e){return e.start()}))})),Object(y.useEffect)((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var c=r.current.map((function(e){return e.getValues()}));return a?[c,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:c},Z=function(e){var t=b.fun(e),n=J(1,t?e:[e]),r=n[0],a=n[1],i=n[2];return t?[r[0],a,i]:r};var ee=function(e){function t(e){var n;return f(this,t),void 0===e&&(e={}),n=l(this,u(t).call(this)),!e.transform||e.transform instanceof C||(e=T.transform(e)),n.payload=e,n}return s(t,e),t}(P),te={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ne="[-+]?\\d*\\.?\\d+",re=ne+"%";function ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ie=new RegExp("rgb"+ae(ne,ne,ne)),oe=new RegExp("rgba"+ae(ne,ne,ne,ne)),le=new RegExp("hsl"+ae(ne,re,re)),ue=new RegExp("hsla"+ae(ne,re,re,ne)),ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fe=/^#([0-9a-fA-F]{6})$/,de=/^#([0-9a-fA-F]{8})$/;function pe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function he(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=pe(a,r,e+1/3),o=pe(a,r,e),l=pe(a,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*l)<<8}function me(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function ge(e){return(parseFloat(e)%360+360)%360/360}function ye(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=fe.exec(t))?parseInt(n[1]+"ff",16)>>>0:te.hasOwnProperty(t)?te[t]:(n=ie.exec(t))?(me(n[1])<<24|me(n[2])<<16|me(n[3])<<8|255)>>>0:(n=oe.exec(t))?(me(n[1])<<24|me(n[2])<<16|me(n[3])<<8|ye(n[4]))>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=se.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=le.exec(t))?(255|he(ge(n[1]),ve(n[2]),ve(n[3])))>>>0:(n=ue.exec(t))?(he(ge(n[1]),ve(n[2]),ve(n[3]))|ye(n[4]))>>>0:null;if(null===r)return e;var a=(16711680&(r=r||0))>>>16,i=(65280&r)>>>8,o=(255&r)/255;return"rgba(".concat((4278190080&r)>>>24,", ").concat(a,", ").concat(i,", ").concat(o,")")}var we=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ae=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ee=new RegExp("(".concat(Object.keys(te).join("|"),")"),"g"),Se={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ke=["Webkit","Ms","Moz","O"];function Te(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Se.hasOwnProperty(e)&&Se[e]?(""+t).trim():t+"px"}Se=Object.keys(Se).reduce((function(e,t){return ke.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),Se);var xe={};U((function(e){return new ee(e)})),L("div"),M((function(e){var t=e.output.map((function(e){return e.replace(Ae,be)})).map((function(e){return e.replace(Ee,be)})),n=t[0].match(we).map((function(){return[]}));t.forEach((function(e){e.match(we).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(we).map((function(t,r){return W(m({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(we,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,a){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(a,")")}))}})),I(te),_((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,a=t.scrollTop,i=t.scrollLeft,o=g(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==a&&(e.scrollTop=a),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var c=0===u.indexOf("--"),s=Te(u,n[u],c);"float"===u&&(u="cssFloat"),c?e.style.setProperty(u,s):e.style[u]=s}for(var f in o){var d=l?f:xe[f]||(xe[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(d)&&e.setAttribute(d,o[f])}}),(function(e){return e}));var Ce,Oe,Pe=(Ce=function(e){return Object(y.forwardRef)((function(t,n){var r=w(),a=Object(y.useRef)(!0),i=Object(y.useRef)(null),o=Object(y.useRef)(null),l=Object(y.useCallback)((function(e){var t=i.current;i.current=new V(e,(function(){var e=!1;o.current&&(e=T.fn(o.current,i.current.getAnimatedValue())),o.current&&!1!==e||r()})),t&&t.detach()}),[]);Object(y.useEffect)((function(){return function(){a.current=!1,i.current&&i.current.detach()}}),[]),Object(y.useImperativeHandle)(n,(function(){return z(o,a,r)})),l(t);var u,c=i.current.getValue(),s=(c.scrollTop,c.scrollLeft,g(c,["scrollTop","scrollLeft"])),f=(u=e,!b.fun(u)||u.prototype instanceof v.a.Component?function(e){return o.current=function(e,t){return t&&(b.fun(t)?t(e):b.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return v.a.createElement(e,m({},s,{ref:f}))}))},void 0===(Oe=!1)&&(Oe=!0),function(e){return(b.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Oe?t[0].toLowerCase()+t.substring(1):t;return e[n]=Ce(n),e}),Ce)})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"])},x86X:function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},xAGQ:function(e,t,n){"use strict";n("8+KV");var r=n("xTJ+");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},"xTJ+":function(e,t,n){"use strict";n("pIFo"),n("a1Th"),n("h7Nl"),n("Btvt");var r=n("HSsa"),a=n("x86X"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function l(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:a,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,a=arguments.length;r<a;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,a=arguments.length;r<a;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},xfY5:function(e,t,n){"use strict";var r=n("dyZX"),a=n("aagx"),i=n("LZWt"),o=n("Xbzi"),l=n("apmT"),u=n("eeVq"),c=n("kJMx").f,s=n("EemH").f,f=n("hswa").f,d=n("qncB").trim,p=r.Number,h=p,m=p.prototype,g="Number"==i(n("Kuth")(m)),y="trim"in String.prototype,v=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){var n,r,a,i=(t=y?t.trim():d(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+t}for(var o,u=t.slice(2),c=0,s=u.length;c<s;c++)if((o=u.charCodeAt(c))<48||o>a)return NaN;return parseInt(u,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(g?u((function(){m.valueOf.call(n)})):"Number"!=i(n))?o(new h(v(t)),n,p):v(t)};for(var b,w=n("nh4g")?c(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0;w.length>A;A++)a(h,b=w[A])&&!a(p,b)&&f(p,b,s(h,b));p.prototype=m,m.constructor=p,n("KroJ")(r,"Number",p)}},xk4V:function(e,t,n){var r=n("4fRq"),a=n("I2ZF");e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var l=0;l<16;++l)t[i+l]=o[l];return t||a(o)}},yBBL:function(e,t,n){"use strict";n("91GP"),n("RW0V"),n("rGqo"),n("yt8O"),n("hhXQ"),n("a1Th"),n("Btvt"),n("f3/d"),t.__esModule=!0,t.default=t.getBackgroundStylesForSingleClass=t.getStyleRules=t.rulesForCssText=t.getStyle=void 0;var r=n("lOcZ"),a=function(e){for(var t="undefined"!=typeof window?window.document.styleSheets:[],n=0;n<t.length;n++){var r=void 0;try{r=void 0!==t[n].rules?t[n].rules:void 0!==t[n].cssRules?t[n].cssRules:""}catch(o){}if(r){var a=Array.prototype.slice.call(r).reduce((function(t,n){return n.selectorText===e&&""===t?n:t}),"");if(a){var i=a.cssText?a.cssText:a.style.cssText;return-1===i.indexOf(a.selectorText)?a.selectorText+"{"+i+"}":i}}}};t.getStyle=a;var i=function(e){if("undefined"!=typeof document&&e){var t=document.implementation.createHTMLDocument(""),n=document.createElement("style");return n.textContent=e,t.body.appendChild(n),n.sheet.cssRules}return{}};t.rulesForCssText=i;var o=function(e){var t={};if(e.length>0&&void 0!==e[0].style)switch(e[0].style.constructor.name||e[0].style.constructor.toString()){case"CSS2Properties":case"[object MSStyleCSSProperties]":Object.values(e[0].style).forEach((function(n){t[(0,r.toCamelCase)(n)]=e[0].style[n]}));break;case"CSSStyleDeclaration":t=e[0].style;break;default:console.error("Unknown style object prototype")}return t};t.getStyleRules=o;var l=function(e){if((0,r.isString)(e)){var t=a("."+e),n=i(t);if(n.length>0&&void 0!==n[0].style)return Object.keys(o(n)).filter((function(e){return 0===e.indexOf("background")&&""!==n[0].style[e]})).reduce((function(e,t){return e[t]=n[0].style[t],e}),{})}return{}};t.getBackgroundStylesForSingleClass=l;var u=function(e){if("undefined"!=typeof window){var t=(0,r.stringToArray)(e);if(t instanceof Array){var n=[];return t.forEach((function(e){return n.push(l(e))})),Object.assign.apply(Object,n)}return l(e)}return{}};t.default=u},yK9s:function(e,t,n){"use strict";n("8+KV");var r=n("xTJ+");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},yl30:function(e,t,n){"use strict";n("wCsR"),n("25dN"),n("Tze0"),n("RW0V"),n("T39b"),n("EK0E"),n("2Spj"),n("eM6i"),n("a1Th"),n("h7Nl"),n("HAE/"),n("KKXr"),n("rGqo"),n("yt8O"),n("Btvt"),n("XfO3"),n("9AAn"),n("pIFo"),n("f3/d"),n("rE2o"),n("ioFf"),n("8+KV"),n("LK8F"),n("V+eJ");var r=n("q1tI"),a=n("MgzW"),i=n("JhMR");function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var l=null,u={};function c(){if(l)for(var e in u){var t=u[e],n=l.indexOf(e);if(!(-1<n))throw Error(o(96,e));if(!f[n]){if(!t.extractEvents)throw Error(o(97,e));for(var r in f[n]=t,n=t.eventTypes){var a=void 0,i=n[r],c=t,p=r;if(d.hasOwnProperty(p))throw Error(o(99,p));d[p]=i;var h=i.phasedRegistrationNames;if(h){for(a in h)h.hasOwnProperty(a)&&s(h[a],c,p);a=!0}else i.registrationName?(s(i.registrationName,c,p),a=!0):a=!1;if(!a)throw Error(o(98,r,e))}}}}function s(e,t,n){if(p[e])throw Error(o(100,e));p[e]=t,h[e]=t.eventTypes[n].dependencies}var f=[],d={},p={},h={};function m(e,t,n,r,a,i,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(s){this.onError(s)}}var g=!1,y=null,v=!1,b=null,w={onError:function(e){g=!0,y=e}};function A(e,t,n,r,a,i,o,l,u){g=!1,y=null,m.apply(w,arguments)}var E=null,S=null,k=null;function T(e,t,n){var r=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,r,a,i,l,u,c){if(A.apply(this,arguments),g){if(!g)throw Error(o(198));var s=y;g=!1,y=null,v||(v=!0,b=s)}}(r,t,void 0,e),e.currentTarget=null}function x(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function C(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var O=null;function P(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)T(e,t[r],n[r]);else t&&T(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function _(e){if(null!==e&&(O=x(O,e)),e=O,O=null,e){if(C(e,P),O)throw Error(o(95));if(v)throw e=b,v=!1,b=null,e}}var I={injectEventPluginOrder:function(e){if(l)throw Error(o(101));l=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!u.hasOwnProperty(t)||u[t]!==r){if(u[t])throw Error(o(102,t));u[t]=r,n=!0}}n&&c()}};function N(e,t){var n=e.stateNode;if(!n)return null;var r=E(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var R=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;R.hasOwnProperty("ReactCurrentDispatcher")||(R.ReactCurrentDispatcher={current:null}),R.hasOwnProperty("ReactCurrentBatchConfig")||(R.ReactCurrentBatchConfig={suspense:null});var M=/^(.*)[\\\/]/,j="function"==typeof Symbol&&Symbol.for,L=j?Symbol.for("react.element"):60103,F=j?Symbol.for("react.portal"):60106,D=j?Symbol.for("react.fragment"):60107,z=j?Symbol.for("react.strict_mode"):60108,U=j?Symbol.for("react.profiler"):60114,V=j?Symbol.for("react.provider"):60109,B=j?Symbol.for("react.context"):60110,H=j?Symbol.for("react.concurrent_mode"):60111,q=j?Symbol.for("react.forward_ref"):60112,W=j?Symbol.for("react.suspense"):60113,G=j?Symbol.for("react.suspense_list"):60120,K=j?Symbol.for("react.memo"):60115,$=j?Symbol.for("react.lazy"):60116;j&&Symbol.for("react.fundamental"),j&&Symbol.for("react.responder"),j&&Symbol.for("react.scope");var Q="function"==typeof Symbol&&Symbol.iterator;function Y(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Q&&e[Q]||e["@@iterator"])?e:null}function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case D:return"Fragment";case F:return"Portal";case U:return"Profiler";case z:return"StrictMode";case W:return"Suspense";case G:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case B:return"Context.Consumer";case V:return"Context.Provider";case q:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case K:return X(e.type);case $:if(e=1===e._status?e._result:null)return X(e)}return null}function J(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,a=e._debugSource,i=X(e.type);n=null,r&&(n=X(r.type)),r=i,i="",a?i=" (at "+a.fileName.replace(M,"")+":"+a.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var Z=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ee=null,te=null,ne=null;function re(e){if(e=S(e)){if("function"!=typeof ee)throw Error(o(280));var t=E(e.stateNode);ee(e.stateNode,e.type,t)}}function ae(e){te?ne?ne.push(e):ne=[e]:te=e}function ie(){if(te){var e=te,t=ne;if(ne=te=null,re(e),t)for(e=0;e<t.length;e++)re(t[e])}}function oe(e,t){return e(t)}function le(e,t,n,r){return e(t,n,r)}function ue(){}var ce=oe,se=!1,fe=!1;function de(){null===te&&null===ne||(ue(),ie())}new Map;var pe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,he=Object.prototype.hasOwnProperty,me={},ge={};function ye(e,t,n,r,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ve[e]=new ye(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ve[t]=new ye(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ve[e]=new ye(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ve[e]=new ye(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ve[e]=new ye(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ve[e]=new ye(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){ve[e]=new ye(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){ve[e]=new ye(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){ve[e]=new ye(e,5,!1,e.toLowerCase(),null,!1)}));var be=/[\-:]([a-z])/g;function we(e){return e[1].toUpperCase()}function Ae(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ee(e,t,n,r){var a=ve.hasOwnProperty(t)?ve[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!he.call(ge,e)||!he.call(me,e)&&(pe.test(e)?ge[e]=!0:(me[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Se(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ke(e){e._valueTracker||(e._valueTracker=function(e){var t=Se(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Te(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Se(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Ae(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Oe(e,t){null!=(t=t.checked)&&Ee(e,"checked",t,!1)}function Pe(e,t){Oe(e,t);var n=Ae(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ie(e,t.type,Ae(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function _e(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ie(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ne(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ae(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Me(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function je(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw Error(o(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(o(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:Ae(n)}}function Le(e,t){var n=Ae(t.value),r=Ae(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(be,we);ve[t]=new ye(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(be,we);ve[t]=new ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(be,we);ve[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){ve[e]=new ye(e,1,!1,e.toLowerCase(),null,!1)})),ve.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){ve[e]=new ye(e,1,!1,e.toLowerCase(),null,!0)}));var De={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ze(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ze(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ve,Be=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==De.svg||"innerHTML"in e)e.innerHTML=t;else{for((Ve=Ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function He(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var We={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},Ge={},Ke={};function $e(e){if(Ge[e])return Ge[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ke)return Ge[e]=n[t];return e}Z&&(Ke=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var Qe=$e("animationend"),Ye=$e("animationiteration"),Xe=$e("animationstart"),Je=$e("transitionend"),Ze="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(o(188))}function rt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return nt(a),e;if(i===r)return nt(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,u=a.child;u;){if(u===n){l=!0,n=a,r=i;break}if(u===r){l=!0,r=a,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=a;break}if(u===r){l=!0,r=i,n=a;break}u=u.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var at,it,ot,lt=!1,ut=[],ct=null,st=null,ft=null,dt=new Map,pt=new Map,ht=[],mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),gt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function yt(e,t,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r}}function vt(e,t){switch(e){case"focus":case"blur":ct=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ft=null;break;case"pointerover":case"pointerout":dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pt.delete(t.pointerId)}}function bt(e,t,n,r,a){return null===e||e.nativeEvent!==a?(e=yt(t,n,r,a),null!==t&&(null!==(t=pr(t))&&it(t)),e):(e.eventSystemFlags|=r,e)}function wt(e){var t=dr(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){ot(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=In(e.topLevelType,e.eventSystemFlags,e.nativeEvent);if(null!==t){var n=pr(t);return null!==n&&it(n),e.blockedOn=t,!1}return!0}function Et(e,t,n){At(e)&&n.delete(t)}function St(){for(lt=!1;0<ut.length;){var e=ut[0];if(null!==e.blockedOn){null!==(e=pr(e.blockedOn))&&at(e);break}var t=In(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:ut.shift()}null!==ct&&At(ct)&&(ct=null),null!==st&&At(st)&&(st=null),null!==ft&&At(ft)&&(ft=null),dt.forEach(Et),pt.forEach(Et)}function kt(e,t){e.blockedOn===t&&(e.blockedOn=null,lt||(lt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,St)))}function Tt(e){function t(t){return kt(t,e)}if(0<ut.length){kt(ut[0],e);for(var n=1;n<ut.length;n++){var r=ut[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ct&&kt(ct,e),null!==st&&kt(st,e),null!==ft&&kt(ft,e),dt.forEach(t),pt.forEach(t),n=0;n<ht.length;n++)(r=ht[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ht.length&&null===(n=ht[0]).blockedOn;)wt(n),null===n.blockedOn&&ht.shift()}function xt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ct(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ot(e,t,n){(t=N(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=x(n._dispatchListeners,t),n._dispatchInstances=x(n._dispatchInstances,e))}function Pt(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Ct(t);for(t=n.length;0<t--;)Ot(n[t],"captured",e);for(t=0;t<n.length;t++)Ot(n[t],"bubbled",e)}}function _t(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=N(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=x(n._dispatchListeners,t),n._dispatchInstances=x(n._dispatchInstances,e))}function It(e){e&&e.dispatchConfig.registrationName&&_t(e._targetInst,null,e)}function Nt(e){C(e,Pt)}function Rt(){return!0}function Mt(){return!1}function jt(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Rt:Mt,this.isPropagationStopped=Mt,this}function Lt(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function Ft(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Dt(e){e.eventPool=[],e.getPooled=Lt,e.release=Ft}a(jt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Rt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Rt)},persist:function(){this.isPersistent=Rt},isPersistent:Mt,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Mt,this._dispatchInstances=this._dispatchListeners=null}}),jt.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},jt.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,Dt(n),n},Dt(jt);var zt=jt.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Ut=jt.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vt=jt.extend({view:null,detail:null}),Bt=Vt.extend({relatedTarget:null});function Ht(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var qt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Gt[e])&&!!t[e]}function $t(){return Kt}for(var Qt=Vt.extend({key:function(e){if(e.key){var t=qt[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ht(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Wt[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:$t,charCode:function(e){return"keypress"===e.type?Ht(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ht(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Yt=0,Xt=0,Jt=!1,Zt=!1,en=Vt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:$t,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Yt;return Yt=e.screenX,Jt?"mousemove"===e.type?e.screenX-t:0:(Jt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Xt;return Xt=e.screenY,Zt?"mousemove"===e.type?e.screenY-t:0:(Zt=!0,0)}}),tn=en.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),nn=en.extend({dataTransfer:null}),rn=Vt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:$t}),an=jt.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),on=en.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ln=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Qe,"animationEnd",2],[Ye,"animationIteration",2],[Xe,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Je,"transitionEnd",2],["waiting","waiting",2]],un={},cn={},sn=0;sn<ln.length;sn++){var fn=ln[sn],dn=fn[0],pn=fn[1],hn=fn[2],mn="on"+(pn[0].toUpperCase()+pn.slice(1)),gn={phasedRegistrationNames:{bubbled:mn,captured:mn+"Capture"},dependencies:[dn],eventPriority:hn};un[pn]=gn,cn[dn]=gn}var yn={eventTypes:un,getEventPriority:function(e){return void 0!==(e=cn[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var a=cn[e];if(!a)return null;switch(e){case"keypress":if(0===Ht(n))return null;case"keydown":case"keyup":e=Qt;break;case"blur":case"focus":e=Bt;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=en;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=nn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=rn;break;case Qe:case Ye:case Xe:e=zt;break;case Je:e=an;break;case"scroll":e=Vt;break;case"wheel":e=on;break;case"copy":case"cut":case"paste":e=Ut;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=tn;break;default:e=jt}return Nt(t=e.getPooled(a,t,n,r)),t}},vn=i.unstable_UserBlockingPriority,bn=i.unstable_runWithPriority,wn=yn.getEventPriority,An=10,En=[];function Sn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=dr(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=xt(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,o=e.eventSystemFlags,l=null,u=0;u<f.length;u++){var c=f[u];c&&(c=c.extractEvents(r,t,i,a,o))&&(l=x(l,c))}_(l)}}var kn=!0;function Tn(e,t){xn(t,e,!1)}function xn(e,t,n){switch(wn(t)){case 0:var r=Cn.bind(null,t,1);break;case 1:r=On.bind(null,t,1);break;default:r=_n.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Cn(e,t,n){se||ue();var r=_n,a=se;se=!0;try{le(r,e,t,n)}finally{(se=a)||de()}}function On(e,t,n){bn(vn,_n.bind(null,e,t,n))}function Pn(e,t,n,r){if(En.length){var a=En.pop();a.topLevelType=e,a.eventSystemFlags=t,a.nativeEvent=n,a.targetInst=r,e=a}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:n,targetInst:r,ancestors:[]};try{if(t=Sn,n=e,fe)t(n,void 0);else{fe=!0;try{ce(t,n,void 0)}finally{fe=!1,de()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,En.length<An&&En.push(e)}}function _n(e,t,n){if(kn)if(0<ut.length&&-1<mt.indexOf(e))e=yt(null,e,t,n),ut.push(e);else{var r=In(e,t,n);null===r?vt(e,n):-1<mt.indexOf(e)?(e=yt(r,e,t,n),ut.push(e)):function(e,t,n,r){switch(t){case"focus":return ct=bt(ct,e,t,n,r),!0;case"dragenter":return st=bt(st,e,t,n,r),!0;case"mouseover":return ft=bt(ft,e,t,n,r),!0;case"pointerover":var a=r.pointerId;return dt.set(a,bt(dt.get(a)||null,e,t,n,r)),!0;case"gotpointercapture":return a=r.pointerId,pt.set(a,bt(pt.get(a)||null,e,t,n,r)),!0}return!1}(r,e,t,n)||(vt(e,n),Pn(e,t,n,null))}}function In(e,t,n){var r=xt(n);if(null!==(r=dr(r))){var a=et(r);if(null===a)r=null;else{var i=a.tag;if(13===i){if(null!==(r=tt(a)))return r;r=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Pn(e,t,n,r),null}function Nn(e){if(!Z)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var Rn=new("function"==typeof WeakMap?WeakMap:Map);function Mn(e){var t=Rn.get(e);return void 0===t&&(t=new Set,Rn.set(e,t)),t}function jn(e,t,n){if(!n.has(e)){switch(e){case"scroll":xn(t,"scroll",!0);break;case"focus":case"blur":xn(t,"focus",!0),xn(t,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Nn(e)&&xn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ze.indexOf(e)&&Tn(e,t)}n.add(e)}}var Ln={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fn=["Webkit","ms","Moz","O"];function Dn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ln.hasOwnProperty(e)&&Ln[e]?(""+t).trim():t+"px"}function zn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=Dn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Ln).forEach((function(e){Fn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ln[t]=Ln[e]}))}));var Un=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vn(e,t){if(t){if(Un[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62,""))}}function Bn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Hn(e,t){var n=Mn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=h[t];for(var r=0;r<t.length;r++)jn(t[r],e,n)}function qn(){}function Wn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(pc){return e.body}}function Gn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kn(e,t){var n,r=Gn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gn(r)}}function $n(){for(var e=window,t=Wn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Wn((e=t.contentWindow).document)}return t}function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Yn="$",Xn="/$",Jn="$?",Zn="$!",er=null,tr=null;function nr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function rr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ar="function"==typeof setTimeout?setTimeout:void 0,ir="function"==typeof clearTimeout?clearTimeout:void 0;function or(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function lr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Yn||n===Zn||n===Jn){if(0===t)return e;t--}else n===Xn&&t++}e=e.previousSibling}return null}var ur=Math.random().toString(36).slice(2),cr="__reactInternalInstance$"+ur,sr="__reactEventHandlers$"+ur,fr="__reactContainere$"+ur;function dr(e){var t=e[cr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fr]||n[cr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lr(e);null!==e;){if(n=e[cr])return n;e=lr(e)}return t}n=(e=n).parentNode}return null}function pr(e){return!(e=e[cr]||e[fr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function hr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function mr(e){return e[sr]||null}var gr=null,yr=null,vr=null;function br(){if(vr)return vr;var e,t,n=yr,r=n.length,a="value"in gr?gr.value:gr.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return vr=a.slice(e,1<t?1-t:void 0)}var wr=jt.extend({data:null}),Ar=jt.extend({data:null}),Er=[9,13,27,32],Sr=Z&&"CompositionEvent"in window,kr=null;Z&&"documentMode"in document&&(kr=document.documentMode);var Tr=Z&&"TextEvent"in window&&!kr,xr=Z&&(!Sr||kr&&8<kr&&11>=kr),Cr=String.fromCharCode(32),Or={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Pr=!1;function _r(e,t){switch(e){case"keyup":return-1!==Er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ir(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Nr=!1;var Rr={eventTypes:Or,extractEvents:function(e,t,n,r){var a;if(Sr)e:{switch(e){case"compositionstart":var i=Or.compositionStart;break e;case"compositionend":i=Or.compositionEnd;break e;case"compositionupdate":i=Or.compositionUpdate;break e}i=void 0}else Nr?_r(e,n)&&(i=Or.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Or.compositionStart);return i?(xr&&"ko"!==n.locale&&(Nr||i!==Or.compositionStart?i===Or.compositionEnd&&Nr&&(a=br()):(yr="value"in(gr=r)?gr.value:gr.textContent,Nr=!0)),i=wr.getPooled(i,t,n,r),a?i.data=a:null!==(a=Ir(n))&&(i.data=a),Nt(i),a=i):a=null,(e=Tr?function(e,t){switch(e){case"compositionend":return Ir(t);case"keypress":return 32!==t.which?null:(Pr=!0,Cr);case"textInput":return(e=t.data)===Cr&&Pr?null:e;default:return null}}(e,n):function(e,t){if(Nr)return"compositionend"===e||!Sr&&_r(e,t)?(e=br(),vr=yr=gr=null,Nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Ar.getPooled(Or.beforeInput,t,n,r)).data=e,Nt(t)):t=null,null===a?t:null===t?a:[a,t]}},Mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mr[e.type]:"textarea"===t}var Lr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Fr(e,t,n){return(e=jt.getPooled(Lr.change,e,t,n)).type="change",ae(n),Nt(e),e}var Dr=null,zr=null;function Ur(e){_(e)}function Vr(e){if(Te(hr(e)))return e}function Br(e,t){if("change"===e)return t}var Hr=!1;function qr(){Dr&&(Dr.detachEvent("onpropertychange",Wr),zr=Dr=null)}function Wr(e){if("value"===e.propertyName&&Vr(zr))if(e=Fr(zr,e,xt(e)),se)_(e);else{se=!0;try{oe(Ur,e)}finally{se=!1,de()}}}function Gr(e,t,n){"focus"===e?(qr(),zr=n,(Dr=t).attachEvent("onpropertychange",Wr)):"blur"===e&&qr()}function Kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vr(zr)}function $r(e,t){if("click"===e)return Vr(t)}function Qr(e,t){if("input"===e||"change"===e)return Vr(t)}Z&&(Hr=Nn("input")&&(!document.documentMode||9<document.documentMode));var Yr,Xr={eventTypes:Lr,_isInputEventSupported:Hr,extractEvents:function(e,t,n,r){var a=t?hr(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var o=Br;else if(jr(a))if(Hr)o=Qr;else{o=Kr;var l=Gr}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(o=$r);if(o&&(o=o(e,t)))return Fr(o,n,r);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&Ie(a,"number",a.value)}},Jr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Zr={eventTypes:Jr,extractEvents:function(e,t,n,r,a){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&0==(32&a)&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o?(o=t,null!==(t=(t=n.relatedTarget||n.toElement)?dr(t):null)&&(t!==(i=et(t))||5!==t.tag&&6!==t.tag)&&(t=null)):o=null,o===t)return null;if("mouseout"===e||"mouseover"===e)var l=en,u=Jr.mouseLeave,c=Jr.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=tn,u=Jr.pointerLeave,c=Jr.pointerEnter,s="pointer");if(e=null==o?a:hr(o),a=null==t?a:hr(t),(u=l.getPooled(u,o,n,r)).type=s+"leave",u.target=e,u.relatedTarget=a,(r=l.getPooled(c,t,n,r)).type=s+"enter",r.target=a,r.relatedTarget=e,s=t,(l=o)&&s)e:{for(e=s,o=0,t=c=l;t;t=Ct(t))o++;for(t=0,a=e;a;a=Ct(a))t++;for(;0<o-t;)c=Ct(c),o--;for(;0<t-o;)e=Ct(e),t--;for(;o--;){if(c===e||c===e.alternate)break e;c=Ct(c),e=Ct(e)}c=null}else c=null;for(e=c,c=[];l&&l!==e&&(null===(o=l.alternate)||o!==e);)c.push(l),l=Ct(l);for(l=[];s&&s!==e&&(null===(o=s.alternate)||o!==e);)l.push(s),s=Ct(s);for(s=0;s<c.length;s++)_t(c[s],"bubbled",u);for(s=l.length;0<s--;)_t(l[s],"captured",r);return n===Yr?(Yr=null,[u]):(Yr=n,[u,r])}};var ea="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ta=Object.prototype.hasOwnProperty;function na(e,t){if(ea(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ta.call(t,n[r])||!ea(e[n[r]],t[n[r]]))return!1;return!0}var ra=Z&&"documentMode"in document&&11>=document.documentMode,aa={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ia=null,oa=null,la=null,ua=!1;function ca(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ua||null==ia||ia!==Wn(n)?null:("selectionStart"in(n=ia)&&Qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},la&&na(la,n)?null:(la=n,(e=jt.getPooled(aa.select,oa,e,t)).type="select",e.target=ia,Nt(e),e))}var sa={eventTypes:aa,extractEvents:function(e,t,n,r){var a,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(a=!i)){e:{i=Mn(i),a=h.onSelect;for(var o=0;o<a.length;o++)if(!i.has(a[o])){i=!1;break e}i=!0}a=!i}if(a)return null;switch(i=t?hr(t):window,e){case"focus":(jr(i)||"true"===i.contentEditable)&&(ia=i,oa=t,la=null);break;case"blur":la=oa=ia=null;break;case"mousedown":ua=!0;break;case"contextmenu":case"mouseup":case"dragend":return ua=!1,ca(n,r);case"selectionchange":if(ra)break;case"keydown":case"keyup":return ca(n,r)}return null}};I.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),E=mr,S=pr,k=hr,I.injectEventPluginsByName({SimpleEventPlugin:yn,EnterLeaveEventPlugin:Zr,ChangeEventPlugin:Xr,SelectEventPlugin:sa,BeforeInputEventPlugin:Rr}),new Set;var fa=[],da=-1;function pa(e){0>da||(e.current=fa[da],fa[da]=null,da--)}function ha(e,t){da++,fa[da]=e.current,e.current=t}var ma={},ga={current:ma},ya={current:!1},va=ma;function ba(e,t){var n=e.type.contextTypes;if(!n)return ma;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wa(e){return null!=(e=e.childContextTypes)}function Aa(e){pa(ya),pa(ga)}function Ea(e){pa(ya),pa(ga)}function Sa(e,t,n){if(ga.current!==ma)throw Error(o(168));ha(ga,t),ha(ya,n)}function ka(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,X(t)||"Unknown",i));return a({},n,{},r)}function Ta(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||ma,va=ga.current,ha(ga,t),ha(ya,ya.current),!0}function xa(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(t=ka(e,t,va),r.__reactInternalMemoizedMergedChildContext=t,pa(ya),pa(ga),ha(ga,t)):pa(ya),ha(ya,n)}var Ca=i.unstable_runWithPriority,Oa=i.unstable_scheduleCallback,Pa=i.unstable_cancelCallback,_a=i.unstable_shouldYield,Ia=i.unstable_requestPaint,Na=i.unstable_now,Ra=i.unstable_getCurrentPriorityLevel,Ma=i.unstable_ImmediatePriority,ja=i.unstable_UserBlockingPriority,La=i.unstable_NormalPriority,Fa=i.unstable_LowPriority,Da=i.unstable_IdlePriority,za={},Ua=void 0!==Ia?Ia:function(){},Va=null,Ba=null,Ha=!1,qa=Na(),Wa=1e4>qa?Na:function(){return Na()-qa};function Ga(){switch(Ra()){case Ma:return 99;case ja:return 98;case La:return 97;case Fa:return 96;case Da:return 95;default:throw Error(o(332))}}function Ka(e){switch(e){case 99:return Ma;case 98:return ja;case 97:return La;case 96:return Fa;case 95:return Da;default:throw Error(o(332))}}function $a(e,t){return e=Ka(e),Ca(e,t)}function Qa(e,t,n){return e=Ka(e),Oa(e,t,n)}function Ya(e){return null===Va?(Va=[e],Ba=Oa(Ma,Ja)):Va.push(e),za}function Xa(){if(null!==Ba){var e=Ba;Ba=null,Pa(e)}Ja()}function Ja(){if(!Ha&&null!==Va){Ha=!0;var e=0;try{var t=Va;$a(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Va=null}catch(n){throw null!==Va&&(Va=Va.slice(e+1)),Oa(Ma,Xa),n}finally{Ha=!1}}}var Za=3;function ei(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function ti(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ni={current:null},ri=null,ai=null,ii=null;function oi(){ii=ai=ri=null}function li(e,t){var n=e.type._context;ha(ni,n._currentValue),n._currentValue=t}function ui(e){var t=ni.current;pa(ni),e.type._context._currentValue=t}function ci(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function si(e,t){ri=e,ii=ai=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Wo=!0),e.firstContext=null)}function fi(e,t){if(ii!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ii=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ai){if(null===ri)throw Error(o(308));ai=t,ri.dependencies={expirationTime:0,firstContext:t,responders:null}}else ai=ai.next=t;return e._currentValue}var di=!1;function pi(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function hi(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function mi(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function gi(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function yi(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,a=null;null===r&&(r=e.updateQueue=pi(e.memoizedState))}else r=e.updateQueue,a=n.updateQueue,null===r?null===a?(r=e.updateQueue=pi(e.memoizedState),a=n.updateQueue=pi(n.memoizedState)):r=e.updateQueue=hi(a):null===a&&(a=n.updateQueue=hi(r));null===a||r===a?gi(r,t):null===r.lastUpdate||null===a.lastUpdate?(gi(r,t),gi(a,t)):(gi(r,t),a.lastUpdate=t)}function vi(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=pi(e.memoizedState):bi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function bi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=hi(t)),t}function wi(e,t,n,r,i,o){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(o,r,i):e))break;return a({},r,i);case 2:di=!0}return r}function Ai(e,t,n,r,a){di=!1;for(var i=(t=bi(e,t)).baseState,o=null,l=0,u=t.firstUpdate,c=i;null!==u;){var s=u.expirationTime;s<a?(null===o&&(o=u,i=c),l<s&&(l=s)):(Cu(s,u.suspenseConfig),c=wi(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(s=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<a?(null===s&&(s=u,null===o&&(i=c)),l<f&&(l=f)):(c=wi(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===o&&(t.lastUpdate=null),null===s?t.lastCapturedUpdate=null:e.effectTag|=32,null===o&&null===s&&(i=c),t.baseState=i,t.firstUpdate=o,t.firstCapturedUpdate=s,Ou(l),e.expirationTime=l,e.memoizedState=c}function Ei(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Si(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Si(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Si(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw Error(o(191,n));n.call(r)}e=e.nextEffect}}var ki=R.ReactCurrentBatchConfig,Ti=(new r.Component).refs;function xi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var Ci={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=hu(),a=ki.suspense;(a=mi(r=mu(r,e,a),a)).payload=t,null!=n&&(a.callback=n),yi(e,a),gu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=hu(),a=ki.suspense;(a=mi(r=mu(r,e,a),a)).tag=1,a.payload=t,null!=n&&(a.callback=n),yi(e,a),gu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=hu(),r=ki.suspense;(r=mi(n=mu(n,e,r),r)).tag=2,null!=t&&(r.callback=t),yi(e,r),gu(e,n)}};function Oi(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!na(n,r)||!na(a,i))}function Pi(e,t,n){var r=!1,a=ma,i=t.contextType;return"object"==typeof i&&null!==i?i=fi(i):(a=wa(t)?va:ga.current,i=(r=null!=(r=t.contextTypes))?ba(e,a):ma),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ci,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function _i(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ci.enqueueReplaceState(t,t.state,null)}function Ii(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Ti;var i=t.contextType;"object"==typeof i&&null!==i?a.context=fi(i):(i=wa(t)?va:ga.current,a.context=ba(e,i)),null!==(i=e.updateQueue)&&(Ai(e,i,n,a,r),a.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(xi(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ci.enqueueReplaceState(a,a.state,null),null!==(i=e.updateQueue)&&(Ai(e,i,n,a,r),a.state=e.memoizedState)),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var Ni=Array.isArray;function Ri(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===Ti&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Mi(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function ji(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t,n){return(e=$u(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Xu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=Ri(e,t,n),r.return=e,r):((r=Qu(n.type,n.key,n.props,null,e.mode,r)).ref=Ri(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ju(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Yu(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Xu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case L:return(n=Qu(t.type,t.key,t.props,null,e.mode,n)).ref=Ri(e,null,t),n.return=e,n;case F:return(t=Ju(t,e.mode,n)).return=e,t}if(Ni(t)||Y(t))return(t=Yu(t,e.mode,n,null)).return=e,t;Mi(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case L:return n.key===a?n.type===D?f(e,t,n.props.children,r,a):c(e,t,n,r):null;case F:return n.key===a?s(e,t,n,r):null}if(Ni(n)||Y(n))return null!==a?null:f(e,t,n,r,null);Mi(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case L:return e=e.get(null===r.key?n:r.key)||null,r.type===D?f(t,e,r.props.children,a,r.key):c(t,e,r,a);case F:return s(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(Ni(r)||Y(r))return f(t,e=e.get(n)||null,r,a,null);Mi(t,r)}return null}function m(a,o,l,u){for(var c=null,s=null,f=o,m=o=0,g=null;null!==f&&m<l.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var y=p(a,f,l[m],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(a,f),o=i(y,o,m),null===s?c=y:s.sibling=y,s=y,f=g}if(m===l.length)return n(a,f),c;if(null===f){for(;m<l.length;m++)null!==(f=d(a,l[m],u))&&(o=i(f,o,m),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(a,f);m<l.length;m++)null!==(g=h(f,a,m,l[m],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=i(g,o,m),null===s?c=g:s.sibling=g,s=g);return e&&f.forEach((function(e){return t(a,e)})),c}function g(a,l,u,c){var s=Y(u);if("function"!=typeof s)throw Error(o(150));if(null==(u=s.call(u)))throw Error(o(151));for(var f=s=null,m=l,g=l=0,y=null,v=u.next();null!==m&&!v.done;g++,v=u.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(a,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,g),null===f?s=b:f.sibling=b,f=b,m=y}if(v.done)return n(a,m),s;if(null===m){for(;!v.done;g++,v=u.next())null!==(v=d(a,v.value,c))&&(l=i(v,l,g),null===f?s=v:f.sibling=v,f=v);return s}for(m=r(a,m);!v.done;g++,v=u.next())null!==(v=h(m,a,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=i(v,l,g),null===f?s=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(a,e)})),s}return function(e,r,i,u){var c="object"==typeof i&&null!==i&&i.type===D&&null===i.key;c&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case L:e:{for(s=i.key,c=r;null!==c;){if(c.key===s){if(7===c.tag?i.type===D:c.elementType===i.type){n(e,c.sibling),(r=a(c,i.type===D?i.props.children:i.props)).ref=Ri(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===D?((r=Yu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Qu(i.type,i.key,i.props,null,e.mode,u)).ref=Ri(e,r,i),u.return=e,e=u)}return l(e);case F:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ju(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Xu(i,e.mode,u)).return=e,e=r),l(e);if(Ni(i))return m(e,r,i,u);if(Y(i))return g(e,r,i,u);if(s&&Mi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Li=ji(!0),Fi=ji(!1),Di={},zi={current:Di},Ui={current:Di},Vi={current:Di};function Bi(e){if(e===Di)throw Error(o(174));return e}function Hi(e,t){ha(Vi,t),ha(Ui,e),ha(zi,Di);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ue(null,"");break;default:t=Ue(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}pa(zi),ha(zi,t)}function qi(e){pa(zi),pa(Ui),pa(Vi)}function Wi(e){Bi(Vi.current);var t=Bi(zi.current),n=Ue(t,e.type);t!==n&&(ha(Ui,e),ha(zi,n))}function Gi(e){Ui.current===e&&(pa(zi),pa(Ui))}var Ki={current:0};function $i(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Jn||n.data===Zn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Qi(e,t){return{responder:e,props:t}}var Yi=R.ReactCurrentDispatcher,Xi=R.ReactCurrentBatchConfig,Ji=0,Zi=null,eo=null,to=null,no=null,ro=null,ao=null,io=0,oo=null,lo=0,uo=!1,co=null,so=0;function fo(){throw Error(o(321))}function po(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ea(e[n],t[n]))return!1;return!0}function ho(e,t,n,r,a,i){if(Ji=i,Zi=t,to=null!==e?e.memoizedState:null,Yi.current=null===to?Ro:Mo,t=n(r,a),uo){do{uo=!1,so+=1,to=null!==e?e.memoizedState:null,ao=no,oo=ro=eo=null,Yi.current=Mo,t=n(r,a)}while(uo);co=null,so=0}if(Yi.current=No,(e=Zi).memoizedState=no,e.expirationTime=io,e.updateQueue=oo,e.effectTag|=lo,e=null!==eo&&null!==eo.next,Ji=0,ao=ro=no=to=eo=Zi=null,io=0,oo=null,lo=0,e)throw Error(o(300));return t}function mo(){Yi.current=No,Ji=0,ao=ro=no=to=eo=Zi=null,io=0,oo=null,lo=0,uo=!1,co=null,so=0}function go(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===ro?no=ro=e:ro=ro.next=e,ro}function yo(){if(null!==ao)ao=(ro=ao).next,to=null!==(eo=to)?eo.next:null;else{if(null===to)throw Error(o(310));var e={memoizedState:(eo=to).memoizedState,baseState:eo.baseState,queue:eo.queue,baseUpdate:eo.baseUpdate,next:null};ro=null===ro?no=e:ro.next=e,to=eo.next}return ro}function vo(e,t){return"function"==typeof t?t(e):t}function bo(e){var t=yo(),n=t.queue;if(null===n)throw Error(o(311));if(n.lastRenderedReducer=e,0<so){var r=n.dispatch;if(null!==co){var a=co.get(n);if(void 0!==a){co.delete(n);var i=t.memoizedState;do{i=e(i,a.action),a=a.next}while(null!==a);return ea(i,t.memoizedState)||(Wo=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var l=t.baseUpdate;if(i=t.baseState,null!==l?(null!==r&&(r.next=null),r=l.next):r=null!==r?r.next:null,null!==r){var u=a=null,c=r,s=!1;do{var f=c.expirationTime;f<Ji?(s||(s=!0,u=l,a=i),f>io&&Ou(io=f)):(Cu(f,c.suspenseConfig),i=c.eagerReducer===e?c.eagerState:e(i,c.action)),l=c,c=c.next}while(null!==c&&c!==r);s||(u=l,a=i),ea(i,t.memoizedState)||(Wo=!0),t.memoizedState=i,t.baseUpdate=u,t.baseState=a,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function wo(e){var t=go();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e}).dispatch=Io.bind(null,Zi,e),[t.memoizedState,e]}function Ao(e){return bo(vo)}function Eo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===oo?(oo={lastEffect:null}).lastEffect=e.next=e:null===(t=oo.lastEffect)?oo.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,oo.lastEffect=e),e}function So(e,t,n,r){var a=go();lo|=e,a.memoizedState=Eo(t,n,void 0,void 0===r?null:r)}function ko(e,t,n,r){var a=yo();r=void 0===r?null:r;var i=void 0;if(null!==eo){var o=eo.memoizedState;if(i=o.destroy,null!==r&&po(r,o.deps))return void Eo(0,n,i,r)}lo|=e,a.memoizedState=Eo(t,n,i,r)}function To(e,t){return So(516,192,e,t)}function xo(e,t){return ko(516,192,e,t)}function Co(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Oo(){}function Po(e,t){return go().memoizedState=[e,void 0===t?null:t],e}function _o(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&po(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Io(e,t,n){if(!(25>so))throw Error(o(301));var r=e.alternate;if(e===Zi||null!==r&&r===Zi)if(uo=!0,e={expirationTime:Ji,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===co&&(co=new Map),void 0===(n=co.get(t)))co.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var a=hu(),i=ki.suspense;i={expirationTime:a=mu(a,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)i.next=i;else{var u=l.next;null!==u&&(i.next=u),l.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,s=r(c,n);if(i.eagerReducer=r,i.eagerState=s,ea(s,c))return}catch(f){}gu(e,a)}}var No={readContext:fi,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useLayoutEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useResponder:fo,useDeferredValue:fo,useTransition:fo},Ro={readContext:fi,useCallback:Po,useContext:fi,useEffect:To,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,So(4,36,Co.bind(null,t,e),n)},useLayoutEffect:function(e,t){return So(4,36,e,t)},useMemo:function(e,t){var n=go();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=go();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Io.bind(null,Zi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},go().memoizedState=e},useState:wo,useDebugValue:Oo,useResponder:Qi,useDeferredValue:function(e,t){var n=wo(e),r=n[0],a=n[1];return To((function(){i.unstable_next((function(){var n=Xi.suspense;Xi.suspense=void 0===t?null:t;try{a(e)}finally{Xi.suspense=n}}))}),[e,t]),r},useTransition:function(e){var t=wo(!1),n=t[0],r=t[1];return[Po((function(t){r(!0),i.unstable_next((function(){var n=Xi.suspense;Xi.suspense=void 0===e?null:e;try{r(!1),t()}finally{Xi.suspense=n}}))}),[e,n]),n]}},Mo={readContext:fi,useCallback:_o,useContext:fi,useEffect:xo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ko(4,36,Co.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4,36,e,t)},useMemo:function(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&po(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:bo,useRef:function(){return yo().memoizedState},useState:Ao,useDebugValue:Oo,useResponder:Qi,useDeferredValue:function(e,t){var n=Ao(),r=n[0],a=n[1];return xo((function(){i.unstable_next((function(){var n=Xi.suspense;Xi.suspense=void 0===t?null:t;try{a(e)}finally{Xi.suspense=n}}))}),[e,t]),r},useTransition:function(e){var t=Ao(),n=t[0],r=t[1];return[_o((function(t){r(!0),i.unstable_next((function(){var n=Xi.suspense;Xi.suspense=void 0===e?null:e;try{r(!1),t()}finally{Xi.suspense=n}}))}),[e,n]),n]}},jo=null,Lo=null,Fo=!1;function Do(e,t){var n=Gu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function zo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Uo(e){if(Fo){var t=Lo;if(t){var n=t;if(!zo(e,t)){if(!(t=or(n.nextSibling))||!zo(e,t))return e.effectTag=-1025&e.effectTag|2,Fo=!1,void(jo=e);Do(jo,n)}jo=e,Lo=or(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Fo=!1,jo=e}}function Vo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function Bo(e){if(e!==jo)return!1;if(!Fo)return Vo(e),Fo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!rr(t,e.memoizedProps))for(t=Lo;t;)Do(e,t),t=or(t.nextSibling);if(Vo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Xn){if(0===t){Lo=or(e.nextSibling);break e}t--}else n!==Yn&&n!==Zn&&n!==Jn||t++}e=e.nextSibling}Lo=null}}else Lo=jo?or(e.stateNode.nextSibling):null;return!0}function Ho(){Lo=jo=null,Fo=!1}var qo=R.ReactCurrentOwner,Wo=!1;function Go(e,t,n,r){t.child=null===e?Fi(t,null,n,r):Li(t,e.child,n,r)}function Ko(e,t,n,r,a){n=n.render;var i=t.ref;return si(t,a),r=ho(e,t,n,r,i,a),null===e||Wo?(t.effectTag|=1,Go(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),sl(e,t,a))}function $o(e,t,n,r,a,i){if(null===e){var o=n.type;return"function"!=typeof o||Ku(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Qu(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Qo(e,t,o,r,a,i))}return o=e.child,a<i&&(a=o.memoizedProps,(n=null!==(n=n.compare)?n:na)(a,r)&&e.ref===t.ref)?sl(e,t,i):(t.effectTag|=1,(e=$u(o,r)).ref=t.ref,e.return=t,t.child=e)}function Qo(e,t,n,r,a,i){return null!==e&&na(e.memoizedProps,r)&&e.ref===t.ref&&(Wo=!1,a<i)?sl(e,t,i):Xo(e,t,n,r,i)}function Yo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Xo(e,t,n,r,a){var i=wa(n)?va:ga.current;return i=ba(t,i),si(t,a),n=ho(e,t,n,r,i,a),null===e||Wo?(t.effectTag|=1,Go(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),sl(e,t,a))}function Jo(e,t,n,r,a){if(wa(n)){var i=!0;Ta(t)}else i=!1;if(si(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Pi(t,n,r),Ii(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var u=o.context,c=n.contextType;"object"==typeof c&&null!==c?c=fi(c):c=ba(t,c=wa(n)?va:ga.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||u!==c)&&_i(t,o,r,c),di=!1;var d=t.memoizedState;u=o.state=d;var p=t.updateQueue;null!==p&&(Ai(t,p,r,o,a),u=t.memoizedState),l!==r||d!==u||ya.current||di?("function"==typeof s&&(xi(t,n,s,r),u=t.memoizedState),(l=di||Oi(t,n,l,r,d,u,c))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=l):("function"==typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,l=t.memoizedProps,o.props=t.type===t.elementType?l:ti(t.type,l),u=o.context,"object"==typeof(c=n.contextType)&&null!==c?c=fi(c):c=ba(t,c=wa(n)?va:ga.current),(f="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||u!==c)&&_i(t,o,r,c),di=!1,u=t.memoizedState,d=o.state=u,null!==(p=t.updateQueue)&&(Ai(t,p,r,o,a),d=t.memoizedState),l!==r||u!==d||ya.current||di?("function"==typeof s&&(xi(t,n,s,r),d=t.memoizedState),(s=di||Oi(t,n,l,r,u,d,c))?(f||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,d,c),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof o.componentDidUpdate&&(t.effectTag|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),o.props=r,o.state=d,o.context=c,r=s):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Zo(e,t,n,r,i,a)}function Zo(e,t,n,r,a,i){Yo(e,t);var o=0!=(64&t.effectTag);if(!r&&!o)return a&&xa(t,n,!1),sl(e,t,i);r=t.stateNode,qo.current=t;var l=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=Li(t,e.child,null,i),t.child=Li(t,null,l,i)):Go(e,t,l,i),t.memoizedState=r.state,a&&xa(t,n,!0),t.child}function el(e){var t=e.stateNode;t.pendingContext?Sa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Sa(0,t.context,!1),Hi(e,t.containerInfo)}var tl,nl,rl,al,il={dehydrated:null,retryTime:0};function ol(e,t,n){var r,a=t.mode,i=t.pendingProps,o=Ki.current,l=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&o)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ha(Ki,1&o),null===e){if(void 0!==i.fallback&&Uo(t),l){if(l=i.fallback,(i=Yu(null,a,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Yu(l,a,n,null)).return=t,i.sibling=n,t.memoizedState=il,t.child=i,n}return a=i.children,t.memoizedState=null,t.child=Fi(t,null,a,n)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,l){if(i=i.fallback,(n=$u(e,e.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(a=$u(a,i,a.expirationTime)).return=t,n.sibling=a,n.childExpirationTime=0,t.memoizedState=il,t.child=n,a}return n=Li(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=Yu(null,a,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Yu(l,a,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=il,t.child=i,n}return t.memoizedState=null,t.child=Li(t,e,i.children,n)}function ll(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ci(e.return,t)}function ul(e,t,n,r,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=a,o.lastEffect=i)}function cl(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Go(e,t,r.children,n),0!=(2&(r=Ki.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ll(e,n);else if(19===e.tag)ll(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ha(Ki,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===$i(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ul(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===$i(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ul(t,!0,n,null,i,t.lastEffect);break;case"together":ul(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function sl(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&Ou(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=$u(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$u(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function fl(e){e.effectTag|=4}function dl(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pl(e){switch(e.tag){case 1:wa(e.type)&&Aa();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(qi(),Ea(),0!=(64&(t=e.effectTag)))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return Gi(e),null;case 13:return pa(Ki),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return pa(Ki),null;case 4:return qi(),null;case 10:return ui(e),null;default:return null}}function hl(e,t){return{value:e,source:t,stack:J(t)}}tl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},nl=function(){},rl=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var l,u,c=t.stateNode;switch(Bi(zi.current),e=null,n){case"input":o=xe(c,o),r=xe(c,r),e=[];break;case"option":o=Ne(c,o),r=Ne(c,r),e=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":o=Me(c,o),r=Me(c,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(c.onclick=qn)}for(l in Vn(n,r),n=null,o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&null!=o[l])if("style"===l)for(u in c=o[l])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(p.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in r){var s=r[l];if(c=null!=o?o[l]:void 0,r.hasOwnProperty(l)&&s!==c&&(null!=s||null!=c))if("style"===l)if(c){for(u in c)!c.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&c[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(e||(e=[]),e.push(l,n)),n=s;else"dangerouslySetInnerHTML"===l?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(e=e||[]).push(l,""+s)):"children"===l?c===s||"string"!=typeof s&&"number"!=typeof s||(e=e||[]).push(l,""+s):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(p.hasOwnProperty(l)?(null!=s&&Hn(i,l),e||c===s||(e=[])):(e=e||[]).push(l,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&fl(t)}},al=function(e,t,n,r){n!==r&&fl(t)};var ml="function"==typeof WeakSet?WeakSet:Set;function gl(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=J(n)),null!==n&&X(n.type),t=t.value,null!==e&&1===e.tag&&X(e.type);try{console.error(t)}catch(a){setTimeout((function(){throw a}))}}function yl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){Uu(e,n)}else t.current=null}function vl(e,t){switch(t.tag){case 0:case 11:case 15:bl(2,0,t);break;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ti(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}function bl(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var a=r.destroy;r.destroy=void 0,void 0!==a&&a()}0!=(r.tag&t)&&(a=r.create,r.destroy=a()),r=r.next}while(r!==n)}}function wl(e,t,n){switch("function"==typeof qu&&qu(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;$a(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var a=t;try{n()}catch(i){Uu(a,i)}}e=e.next}while(e!==r)}))}break;case 1:yl(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Uu(e,n)}}(t,n);break;case 5:yl(t);break;case 4:kl(e,t,n)}}function Al(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,null!==t&&Al(t)}function El(e){return 5===e.tag||3===e.tag||4===e.tag}function Sl(e){e:{for(var t=e.return;null!==t;){if(El(t)){var n=t;break e}t=t.return}throw Error(o(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.effectTag&&(He(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||El(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var a=e;;){var i=5===a.tag||6===a.tag;if(i){var l=i?a.stateNode:a.stateNode.instance;if(n)if(r){var u=l;l=n,8===(i=t).nodeType?i.parentNode.insertBefore(u,l):i.insertBefore(u,l)}else t.insertBefore(l,n);else r?(8===(u=t).nodeType?(i=u.parentNode).insertBefore(l,u):(i=u).appendChild(l),null!=(u=u._reactRootContainer)||null!==i.onclick||(i.onclick=qn)):t.appendChild(l)}else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===e)break;for(;null===a.sibling;){if(null===a.return||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function kl(e,t,n){for(var r,a,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw Error(o(160));switch(r=l.stateNode,l.tag){case 5:a=!1;break e;case 3:case 4:r=r.containerInfo,a=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var u=e,c=i,s=n,f=c;;)if(wl(u,f,s),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a?(u=r,c=i.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,a=!0,i.child.return=i,i=i.child;continue}}else if(wl(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}function Tl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:bl(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[sr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Oe(n,r),Bn(e,a),t=Bn(e,r),a=0;a<i.length;a+=2){var l=i[a],u=i[a+1];"style"===l?zn(n,u):"dangerouslySetInnerHTML"===l?Be(n,u):"children"===l?He(n,u):Ee(n,l,u,t)}switch(e){case"input":Pe(n,r);break;case"textarea":Le(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Re(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Re(n,!!r.multiple,r.defaultValue,!0):Re(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw Error(o(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,Tt(t.containerInfo));break;case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,tu=Wa()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,i.style.display=Dn("display",a));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}xl(t);break;case 19:xl(t);break;case 17:case 20:case 21:break;default:throw Error(o(163))}}function xl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ml),t.forEach((function(t){var r=Bu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Cl="function"==typeof WeakMap?WeakMap:Map;function Ol(e,t,n){(n=mi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){au||(au=!0,iu=r),gl(e,t)},n}function Pl(e,t,n){(n=mi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return gl(e,t),r(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ou?ou=new Set([this]):ou.add(this),gl(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var _l,Il=Math.ceil,Nl=R.ReactCurrentDispatcher,Rl=R.ReactCurrentOwner,Ml=0,jl=8,Ll=16,Fl=32,Dl=0,zl=1,Ul=2,Vl=3,Bl=4,Hl=5,ql=Ml,Wl=null,Gl=null,Kl=0,$l=Dl,Ql=null,Yl=1073741823,Xl=1073741823,Jl=null,Zl=0,eu=!1,tu=0,nu=500,ru=null,au=!1,iu=null,ou=null,lu=!1,uu=null,cu=90,su=null,fu=0,du=null,pu=0;function hu(){return(ql&(Ll|Fl))!==Ml?1073741821-(Wa()/10|0):0!==pu?pu:pu=1073741821-(Wa()/10|0)}function mu(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Ga();if(0==(4&t))return 99===r?1073741823:1073741822;if((ql&Ll)!==Ml)return Kl;if(null!==n)e=ei(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=ei(e,150,100);break;case 97:case 96:e=ei(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Wl&&e===Kl&&--e,e}function gu(e,t){if(50<fu)throw fu=0,du=null,Error(o(185));if(null!==(e=yu(e,t))){var n=Ga();1073741823===t?(ql&jl)!==Ml&&(ql&(Ll|Fl))===Ml?Au(e):(bu(e),ql===Ml&&Xa()):bu(e),(4&ql)===Ml||98!==n&&99!==n||(null===su?su=new Map([[e,t]]):(void 0===(n=su.get(e))||n>t)&&su.set(e,t))}}function yu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,a=null;if(null===r&&3===e.tag)a=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){a=r.stateNode;break}r=r.return}return null!==a&&(Wl===a&&(Ou(t),$l===Bl&&tc(a,Kl)),nc(a,t)),a}function vu(e){var t=e.lastExpiredTime;return 0!==t?t:ec(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function bu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ya(Au.bind(null,e));else{var t=vu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=hu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==za&&Pa(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ya(Au.bind(null,e)):Qa(r,wu.bind(null,e),{timeout:10*(1073741821-t)-Wa()}),e.callbackNode=t}}}function wu(e,t){if(pu=0,t)return rc(e,t=hu()),bu(e),null;var n=vu(e);if(0!==n){if(t=e.callbackNode,(ql&(Ll|Fl))!==Ml)throw Error(o(327));if(Fu(),e===Wl&&n===Kl||ku(e,n),null!==Gl){var r=ql;ql|=Ll;for(var a=xu();;)try{_u();break}catch(u){Tu(e,u)}if(oi(),ql=r,Nl.current=a,$l===zl)throw t=Ql,ku(e,n),tc(e,n),bu(e),t;if(null===Gl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=$l,Wl=null,r){case Dl:case zl:throw Error(o(345));case Ul:rc(e,2<n?2:n);break;case Vl:if(tc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ru(a)),1073741823===Yl&&10<(a=tu+nu-Wa())){if(eu){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,ku(e,n);break}}if(0!==(i=vu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=ar(Mu.bind(null,e),a);break}Mu(e);break;case Bl:if(tc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ru(a)),eu&&(0===(a=e.lastPingedTime)||a>=n)){e.lastPingedTime=n,ku(e,n);break}if(0!==(a=vu(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Xl?r=10*(1073741821-Xl)-Wa():1073741823===Yl?r=0:(r=10*(1073741821-Yl)-5e3,0>(r=(a=Wa())-r)&&(r=0),(n=10*(1073741821-n)-a)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Il(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=ar(Mu.bind(null,e),r);break}Mu(e);break;case Hl:if(1073741823!==Yl&&null!==Jl){i=Yl;var l=Jl;if(0>=(r=0|l.busyMinDurationMs)?r=0:(a=0|l.busyDelayMs,r=(i=Wa()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=a?0:a+r-i),10<r){tc(e,n),e.timeoutHandle=ar(Mu.bind(null,e),r);break}}Mu(e);break;default:throw Error(o(329))}if(bu(e),e.callbackNode===t)return wu.bind(null,e)}}return null}function Au(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,e.finishedExpirationTime===t)Mu(e);else{if((ql&(Ll|Fl))!==Ml)throw Error(o(327));if(Fu(),e===Wl&&t===Kl||ku(e,t),null!==Gl){var n=ql;ql|=Ll;for(var r=xu();;)try{Pu();break}catch(a){Tu(e,a)}if(oi(),ql=n,Nl.current=r,$l===zl)throw n=Ql,ku(e,t),tc(e,t),bu(e),n;if(null!==Gl)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Wl=null,Mu(e),bu(e)}}return null}function Eu(e,t){var n=ql;ql|=1;try{return e(t)}finally{(ql=n)===Ml&&Xa()}}function Su(e,t){var n=ql;ql&=-2,ql|=jl;try{return e(t)}finally{(ql=n)===Ml&&Xa()}}function ku(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ir(n)),null!==Gl)for(n=Gl.return;null!==n;){var r=n;switch(r.tag){case 1:var a=r.type.childContextTypes;null!=a&&Aa();break;case 3:qi(),Ea();break;case 5:Gi(r);break;case 4:qi();break;case 13:case 19:pa(Ki);break;case 10:ui(r)}n=n.return}Wl=e,Gl=$u(e.current,null),Kl=t,$l=Dl,Ql=null,Xl=Yl=1073741823,Jl=null,Zl=0,eu=!1}function Tu(e,t){for(;;){try{if(oi(),mo(),null===Gl||null===Gl.return)return $l=zl,Ql=t,null;e:{var n=e,r=Gl.return,a=Gl,i=t;if(t=Kl,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==i&&"object"==typeof i&&"function"==typeof i.then){var o=i,l=0!=(1&Ki.current),u=r;do{var c;if(c=13===u.tag){var s=u.memoizedState;if(null!==s)c=null!==s.dehydrated;else{var f=u.memoizedProps;c=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!l)}}if(c){var d=u.updateQueue;if(null===d){var p=new Set;p.add(o),u.updateQueue=p}else d.add(o);if(0==(2&u.mode)){if(u.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var h=mi(1073741823,null);h.tag=2,yi(a,h)}a.expirationTime=1073741823;break e}i=void 0,a=t;var m=n.pingCache;if(null===m?(m=n.pingCache=new Cl,i=new Set,m.set(o,i)):void 0===(i=m.get(o))&&(i=new Set,m.set(o,i)),!i.has(a)){i.add(a);var g=Vu.bind(null,n,o,a);o.then(g,g)}u.effectTag|=4096,u.expirationTime=t;break e}u=u.return}while(null!==u);i=Error((X(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+J(a))}$l!==Hl&&($l=Ul),i=hl(i,a),u=r;do{switch(u.tag){case 3:o=i,u.effectTag|=4096,u.expirationTime=t,vi(u,Ol(u,o,t));break e;case 1:o=i;var y=u.type,v=u.stateNode;if(0==(64&u.effectTag)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===ou||!ou.has(v)))){u.effectTag|=4096,u.expirationTime=t,vi(u,Pl(u,o,t));break e}}u=u.return}while(null!==u)}Gl=Nu(Gl)}catch(b){t=b;continue}break}}function xu(){var e=Nl.current;return Nl.current=No,null===e?No:e}function Cu(e,t){e<Yl&&2<e&&(Yl=e),null!==t&&e<Xl&&2<e&&(Xl=e,Jl=t)}function Ou(e){e>Zl&&(Zl=e)}function Pu(){for(;null!==Gl;)Gl=Iu(Gl)}function _u(){for(;null!==Gl&&!_a();)Gl=Iu(Gl)}function Iu(e){var t=_l(e.alternate,e,Kl);return e.memoizedProps=e.pendingProps,null===t&&(t=Nu(e)),Rl.current=null,t}function Nu(e){Gl=e;do{var t=Gl.alternate;if(e=Gl.return,0==(2048&Gl.effectTag)){e:{var n=t,r=Kl,i=(t=Gl).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:wa(t.type)&&Aa();break;case 3:qi(),Ea(),(i=t.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===n||null===n.child)&&Bo(t)&&fl(t),nl(t);break;case 5:Gi(t),r=Bi(Vi.current);var l=t.type;if(null!==n&&null!=t.stateNode)rl(n,t,l,i,r),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var u=Bi(zi.current);if(Bo(t)){var c=(i=t).stateNode;n=i.type;var s=i.memoizedProps,f=r;switch(c[cr]=i,c[sr]=s,l=void 0,r=c,n){case"iframe":case"object":case"embed":Tn("load",r);break;case"video":case"audio":for(c=0;c<Ze.length;c++)Tn(Ze[c],r);break;case"source":Tn("error",r);break;case"img":case"image":case"link":Tn("error",r),Tn("load",r);break;case"form":Tn("reset",r),Tn("submit",r);break;case"details":Tn("toggle",r);break;case"input":Ce(r,s),Tn("invalid",r),Hn(f,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Tn("invalid",r),Hn(f,"onChange");break;case"textarea":je(r,s),Tn("invalid",r),Hn(f,"onChange")}for(l in Vn(n,s),c=null,s)s.hasOwnProperty(l)&&(u=s[l],"children"===l?"string"==typeof u?r.textContent!==u&&(c=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(c=["children",""+u]):p.hasOwnProperty(l)&&null!=u&&Hn(f,l));switch(n){case"input":ke(r),_e(r,s,!0);break;case"textarea":ke(r),Fe(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=qn)}l=c,i.updateQueue=l,(i=null!==l)&&fl(t)}else{n=t,f=l,s=i,c=9===r.nodeType?r:r.ownerDocument,u===De.html&&(u=ze(f)),u===De.html?"script"===f?((s=c.createElement("div")).innerHTML="<script><\/script>",c=s.removeChild(s.firstChild)):"string"==typeof s.is?c=c.createElement(f,{is:s.is}):(c=c.createElement(f),"select"===f&&(f=c,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):c=c.createElementNS(u,f),(s=c)[cr]=n,s[sr]=i,tl(s,t,!1,!1),t.stateNode=s;var d=r,h=Bn(f=l,n=i);switch(f){case"iframe":case"object":case"embed":Tn("load",s),r=n;break;case"video":case"audio":for(r=0;r<Ze.length;r++)Tn(Ze[r],s);r=n;break;case"source":Tn("error",s),r=n;break;case"img":case"image":case"link":Tn("error",s),Tn("load",s),r=n;break;case"form":Tn("reset",s),Tn("submit",s),r=n;break;case"details":Tn("toggle",s),r=n;break;case"input":Ce(s,n),r=xe(s,n),Tn("invalid",s),Hn(d,"onChange");break;case"option":r=Ne(s,n);break;case"select":s._wrapperState={wasMultiple:!!n.multiple},r=a({},n,{value:void 0}),Tn("invalid",s),Hn(d,"onChange");break;case"textarea":je(s,n),r=Me(s,n),Tn("invalid",s),Hn(d,"onChange");break;default:r=n}Vn(f,r),c=void 0,u=f;var m=s,g=r;for(c in g)if(g.hasOwnProperty(c)){var y=g[c];"style"===c?zn(m,y):"dangerouslySetInnerHTML"===c?null!=(y=y?y.__html:void 0)&&Be(m,y):"children"===c?"string"==typeof y?("textarea"!==u||""!==y)&&He(m,y):"number"==typeof y&&He(m,""+y):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(p.hasOwnProperty(c)?null!=y&&Hn(d,c):null!=y&&Ee(m,c,y,h))}switch(f){case"input":ke(s),_e(s,n,!1);break;case"textarea":ke(s),Fe(s);break;case"option":null!=n.value&&s.setAttribute("value",""+Ae(n.value));break;case"select":(r=s).multiple=!!n.multiple,null!=(s=n.value)?Re(r,!!n.multiple,s,!1):null!=n.defaultValue&&Re(r,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof r.onClick&&(s.onclick=qn)}(i=nr(l,i))&&fl(t)}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw Error(o(166));break;case 6:if(n&&null!=t.stateNode)al(n,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(o(166));r=Bi(Vi.current),Bi(zi.current),Bo(t)?(l=(i=t).stateNode,r=i.memoizedProps,l[cr]=i,(i=l.nodeValue!==r)&&fl(t)):(l=t,(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[cr]=l,t.stateNode=i)}break;case 11:break;case 13:if(pa(Ki),i=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=r;break e}i=null!==i,l=!1,null===n?void 0!==t.memoizedProps.fallback&&Bo(t):(l=null!==(r=n.memoizedState),i||null===r||null!==(r=n.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=r,r.nextEffect=s):(t.firstEffect=t.lastEffect=r,r.nextEffect=null),r.effectTag=8)),i&&!l&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ki.current)?$l===Dl&&($l=Vl):($l!==Dl&&$l!==Vl||($l=Bl),0!==Zl&&null!==Wl&&(tc(Wl,Kl),nc(Wl,Zl)))),(i||l)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:qi(),nl(t);break;case 10:ui(t);break;case 9:case 14:break;case 17:wa(t.type)&&Aa();break;case 19:if(pa(Ki),null===(i=t.memoizedState))break;if(l=0!=(64&t.effectTag),null===(s=i.rendering)){if(l)dl(i,!1);else if($l!==Dl||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(s=$i(n))){for(t.effectTag|=64,dl(i,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.effectTag|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,i=r,l=t.child;null!==l;)n=i,(r=l).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(s=r.alternate)?(r.childExpirationTime=0,r.expirationTime=n,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=s.childExpirationTime,r.expirationTime=s.expirationTime,r.child=s.child,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,n=s.dependencies,r.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),l=l.sibling;ha(Ki,1&Ki.current|2),t=t.child;break e}n=n.sibling}}else{if(!l)if(null!==(n=$i(s))){if(t.effectTag|=64,l=!0,null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),dl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate){null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else Wa()>i.tailExpiration&&1<r&&(t.effectTag|=64,l=!0,dl(i,!1),t.expirationTime=t.childExpirationTime=r-1);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=i.last)?r.sibling=s:t.child=s,i.last=s)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=Wa()+500),r=i.tail,i.rendering=r,i.tail=r.sibling,i.lastEffect=t.lastEffect,r.sibling=null,i=Ki.current,ha(Ki,i=l?1&i|2:1&i),t=r;break e}break;case 20:case 21:break;default:throw Error(o(156,t.tag))}t=null}if(i=Gl,1===Kl||1!==i.childExpirationTime){for(l=0,r=i.child;null!==r;)(n=r.expirationTime)>l&&(l=n),(s=r.childExpirationTime)>l&&(l=s),r=r.sibling;i.childExpirationTime=l}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Gl.firstEffect),null!==Gl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Gl.firstEffect),e.lastEffect=Gl.lastEffect),1<Gl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Gl:e.firstEffect=Gl,e.lastEffect=Gl))}else{if(null!==(t=pl(Gl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Gl.sibling))return t;Gl=e}while(null!==Gl);return $l===Dl&&($l=Hl),null}function Ru(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Mu(e){var t=Ga();return $a(99,ju.bind(null,e,t)),null}function ju(e,t){do{Fu()}while(null!==uu);if((ql&(Ll|Fl))!==Ml)throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=Ru(n);if(e.firstPendingTime=a,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Wl&&(Gl=Wl=null,Kl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,null!==a){var i=ql;ql|=Fl,Rl.current=null,er=kn;var l=$n();if(Qn(l)){if("selectionStart"in l)var u={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(u=(u=l.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var s=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(j){u=null;break e}var d=0,p=-1,h=-1,m=0,g=0,y=l,v=null;t:for(;;){for(var b;y!==u||0!==s&&3!==y.nodeType||(p=d+s),y!==f||0!==c&&3!==y.nodeType||(h=d+c),3===y.nodeType&&(d+=y.nodeValue.length),null!==(b=y.firstChild);)v=y,y=b;for(;;){if(y===l)break t;if(v===u&&++m===s&&(p=d),v===f&&++g===c&&(h=d),null!==(b=y.nextSibling))break;v=(y=v).parentNode}y=b}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;tr={focusedElem:l,selectionRange:u},kn=!1,ru=a;do{try{Lu()}catch(j){if(null===ru)throw Error(o(330));Uu(ru,j),ru=ru.nextEffect}}while(null!==ru);ru=a;do{try{for(l=e,u=t;null!==ru;){var w=ru.effectTag;if(16&w&&He(ru.stateNode,""),128&w){var A=ru.alternate;if(null!==A){var E=A.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&w){case 2:Sl(ru),ru.effectTag&=-3;break;case 6:Sl(ru),ru.effectTag&=-3,Tl(ru.alternate,ru);break;case 1024:ru.effectTag&=-1025;break;case 1028:ru.effectTag&=-1025,Tl(ru.alternate,ru);break;case 4:Tl(ru.alternate,ru);break;case 8:kl(l,s=ru,u),Al(s)}ru=ru.nextEffect}}catch(j){if(null===ru)throw Error(o(330));Uu(ru,j),ru=ru.nextEffect}}while(null!==ru);if(E=tr,A=$n(),w=E.focusedElem,u=E.selectionRange,A!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==u&&Qn(w)&&(A=u.start,void 0===(E=u.end)&&(E=A),"selectionStart"in w?(w.selectionStart=A,w.selectionEnd=Math.min(E,w.value.length)):(E=(A=w.ownerDocument||document)&&A.defaultView||window).getSelection&&(E=E.getSelection(),s=w.textContent.length,l=Math.min(u.start,s),u=void 0===u.end?l:Math.min(u.end,s),!E.extend&&l>u&&(s=u,u=l,l=s),s=Kn(w,l),f=Kn(w,u),s&&f&&(1!==E.rangeCount||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==f.node||E.focusOffset!==f.offset)&&((A=A.createRange()).setStart(s.node,s.offset),E.removeAllRanges(),l>u?(E.addRange(A),E.extend(f.node,f.offset)):(A.setEnd(f.node,f.offset),E.addRange(A))))),A=[];for(E=w;E=E.parentNode;)1===E.nodeType&&A.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<A.length;w++)(E=A[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}tr=null,kn=!!er,er=null,e.current=n,ru=a;do{try{for(w=r;null!==ru;){var S=ru.effectTag;if(36&S){var k=ru.alternate;switch(E=w,(A=ru).tag){case 0:case 11:case 15:bl(16,32,A);break;case 1:var T=A.stateNode;if(4&A.effectTag)if(null===k)T.componentDidMount();else{var x=A.elementType===A.type?k.memoizedProps:ti(A.type,k.memoizedProps);T.componentDidUpdate(x,k.memoizedState,T.__reactInternalSnapshotBeforeUpdate)}var C=A.updateQueue;null!==C&&Ei(0,C,T);break;case 3:var O=A.updateQueue;if(null!==O){if(l=null,null!==A.child)switch(A.child.tag){case 5:l=A.child.stateNode;break;case 1:l=A.child.stateNode}Ei(0,O,l)}break;case 5:var P=A.stateNode;null===k&&4&A.effectTag&&nr(A.type,A.memoizedProps)&&P.focus();break;case 6:case 4:case 12:break;case 13:if(null===A.memoizedState){var _=A.alternate;if(null!==_){var I=_.memoizedState;if(null!==I){var N=I.dehydrated;null!==N&&Tt(N)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(o(163))}}if(128&S){A=void 0;var R=ru.ref;if(null!==R){var M=ru.stateNode;switch(ru.tag){case 5:A=M;break;default:A=M}"function"==typeof R?R(A):R.current=A}}ru=ru.nextEffect}}catch(j){if(null===ru)throw Error(o(330));Uu(ru,j),ru=ru.nextEffect}}while(null!==ru);ru=null,Ua(),ql=i}else e.current=n;if(lu)lu=!1,uu=e,cu=t;else for(ru=a;null!==ru;)t=ru.nextEffect,ru.nextEffect=null,ru=t;if(0===(t=e.firstPendingTime)&&(ou=null),1073741823===t?e===du?fu++:(fu=0,du=e):fu=0,"function"==typeof Hu&&Hu(n.stateNode,r),bu(e),au)throw au=!1,e=iu,iu=null,e;return(ql&jl)!==Ml?null:(Xa(),null)}function Lu(){for(;null!==ru;){var e=ru.effectTag;0!=(256&e)&&vl(ru.alternate,ru),0==(512&e)||lu||(lu=!0,Qa(97,(function(){return Fu(),null}))),ru=ru.nextEffect}}function Fu(){if(90!==cu){var e=97<cu?97:cu;return cu=90,$a(e,Du)}}function Du(){if(null===uu)return!1;var e=uu;if(uu=null,(ql&(Ll|Fl))!==Ml)throw Error(o(331));var t=ql;for(ql|=Fl,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:bl(128,0,n),bl(0,64,n)}}catch(r){if(null===e)throw Error(o(330));Uu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return ql=t,Xa(),!0}function zu(e,t,n){yi(e,t=Ol(e,t=hl(n,t),1073741823)),null!==(e=yu(e,1073741823))&&bu(e)}function Uu(e,t){if(3===e.tag)zu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ou||!ou.has(r))){yi(n,e=Pl(n,e=hl(t,e),1073741823)),null!==(n=yu(n,1073741823))&&bu(n);break}}n=n.return}}function Vu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Wl===e&&Kl===n?$l===Bl||$l===Vl&&1073741823===Yl&&Wa()-tu<nu?ku(e,Kl):eu=!0:ec(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),bu(e)))}function Bu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=mu(t=hu(),e,null)),null!==(e=yu(e,t))&&bu(e)}_l=function(e,t,n){var r=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||ya.current)Wo=!0;else{if(r<n){switch(Wo=!1,t.tag){case 3:el(t),Ho();break;case 5:if(Wi(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:wa(t.type)&&Ta(t);break;case 4:Hi(t,t.stateNode.containerInfo);break;case 10:li(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?ol(e,t,n):(ha(Ki,1&Ki.current),null!==(t=sl(e,t,n))?t.sibling:null);ha(Ki,1&Ki.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return cl(e,t,n);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),ha(Ki,Ki.current),!r)return null}return sl(e,t,n)}Wo=!1}}else Wo=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=ba(t,ga.current),si(t,n),a=ho(null,t,r,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,mo(),wa(r)){var i=!0;Ta(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&xi(t,r,l,e),a.updater=Ci,t.stateNode=a,a._reactInternalFiber=t,Ii(t,r,e,n),t=Zo(null,t,r,!0,i,n)}else t.tag=0,Go(null,t,a,n),t=t.child;return t;case 16:if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return Ku(e)?1:0;if(null!=e){if((e=e.$$typeof)===q)return 11;if(e===K)return 14}return 2}(a),e=ti(a,e),i){case 0:t=Xo(null,t,a,e,n);break;case 1:t=Jo(null,t,a,e,n);break;case 11:t=Ko(null,t,a,e,n);break;case 14:t=$o(null,t,a,ti(a.type,e),r,n);break;default:throw Error(o(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Xo(e,t,r,a=t.elementType===r?a:ti(r,a),n);case 1:return r=t.type,a=t.pendingProps,Jo(e,t,r,a=t.elementType===r?a:ti(r,a),n);case 3:if(el(t),null===(r=t.updateQueue))throw Error(o(282));if(a=null!==(a=t.memoizedState)?a.element:null,Ai(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===a)Ho(),t=sl(e,t,n);else{if((a=t.stateNode.hydrate)&&(Lo=or(t.stateNode.containerInfo.firstChild),jo=t,a=Fo=!0),a)for(n=Fi(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Go(e,t,r,n),Ho();t=t.child}return t;case 5:return Wi(t),null===e&&Uo(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,rr(r,a)?l=null:null!==i&&rr(r,i)&&(t.effectTag|=16),Yo(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Go(e,t,l,n),t=t.child),t;case 6:return null===e&&Uo(t),null;case 13:return ol(e,t,n);case 4:return Hi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Li(t,null,r,n):Go(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Ko(e,t,r,a=t.elementType===r?a:ti(r,a),n);case 7:return Go(e,t,t.pendingProps,n),t.child;case 8:case 12:return Go(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,l=t.memoizedProps,li(t,i=a.value),null!==l){var u=l.value;if(0===(i=ea(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===a.children&&!ya.current){t=sl(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){l=u.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&i)){1===u.tag&&((s=mi(n,null)).tag=2,yi(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ci(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}s=s.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}}Go(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,si(t,n),r=r(a=fi(a,i.unstable_observedBits)),t.effectTag|=1,Go(e,t,r,n),t.child;case 14:return i=ti(a=t.type,t.pendingProps),$o(e,t,a,i=ti(a.type,i),r,n);case 15:return Qo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ti(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,wa(r)?(e=!0,Ta(t)):e=!1,si(t,n),Pi(t,r,a),Ii(t,r,a,n),Zo(null,t,r,!0,e,n);case 19:return cl(e,t,n)}throw Error(o(156,t.tag))};var Hu=null,qu=null;function Wu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Gu(e,t,n,r){return new Wu(e,t,n,r)}function Ku(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $u(e,t){var n=e.alternate;return null===n?((n=Gu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qu(e,t,n,r,a,i){var l=2;if(r=e,"function"==typeof e)Ku(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case D:return Yu(n.children,a,i,t);case H:l=8,a|=7;break;case z:l=8,a|=1;break;case U:return(e=Gu(12,n,t,8|a)).elementType=U,e.type=U,e.expirationTime=i,e;case W:return(e=Gu(13,n,t,a)).type=W,e.elementType=W,e.expirationTime=i,e;case G:return(e=Gu(19,n,t,a)).elementType=G,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case V:l=10;break e;case B:l=9;break e;case q:l=11;break e;case K:l=14;break e;case $:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Gu(l,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function Yu(e,t,n,r){return(e=Gu(7,e,r,t)).expirationTime=n,e}function Xu(e,t,n){return(e=Gu(6,e,null,t)).expirationTime=n,e}function Ju(e,t,n){return(t=Gu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function ec(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function tc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function nc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function rc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function ac(e,t,n,r){var a=t.current,i=hu(),l=ki.suspense;i=mu(i,a,l);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(wa(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var c=n.type;if(wa(c)){n=ka(n,c,u);break e}}n=u}else n=ma;return null===t.context?t.context=n:t.pendingContext=n,(t=mi(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),yi(a,t),gu(a,i),i}function ic(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function oc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function lc(e,t){oc(e,t),(e=e.alternate)&&oc(e,t)}function uc(e,t,n){var r=new Zu(e,t,n=null!=n&&!0===n.hydrate),a=Gu(3,null,null,2===t?7:1===t?3:0);r.current=a,a.stateNode=r,e[fr]=r.current,n&&0!==t&&function(e){var t=Mn(e);mt.forEach((function(n){jn(n,e,t)})),gt.forEach((function(n){jn(n,e,t)}))}(9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function cc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function sc(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=ic(o);l.call(e)}}ac(t,o,e,a)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new uc(e,0,t?{hydrate:!0}:void 0)}(n,r),o=i._internalRoot,"function"==typeof a){var u=a;a=function(){var e=ic(o);u.call(e)}}Su((function(){ac(t,o,e,a)}))}return ic(o)}function fc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!cc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:F,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}uc.prototype.render=function(e,t){ac(e,this._internalRoot,null,void 0===t?null:t)},uc.prototype.unmount=function(e){var t=this._internalRoot,n=void 0===e?null:e,r=t.containerInfo;ac(null,t,null,(function(){r[fr]=null,null!==n&&n()}))},at=function(e){if(13===e.tag){var t=ei(hu(),150,100);gu(e,t),lc(e,t)}},it=function(e){if(13===e.tag){hu();var t=Za++;gu(e,t),lc(e,t)}},ot=function(e){if(13===e.tag){var t=hu();gu(e,t=mu(t,e,null)),lc(e,t)}},ee=function(e,t,n){switch(t){case"input":if(Pe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=mr(r);if(!a)throw Error(o(90));Te(r),Pe(r,a)}}}break;case"textarea":Le(e,n);break;case"select":null!=(t=n.value)&&Re(e,!!n.multiple,t,!1)}},oe=Eu,le=function(e,t,n,r){var a=ql;ql|=4;try{return $a(98,e.bind(null,t,n,r))}finally{(ql=a)===Ml&&Xa()}},ue=function(){(ql&(1|Ll|Fl))===Ml&&(function(){if(null!==su){var e=su;su=null,e.forEach((function(e,t){rc(t,e),bu(t)})),Xa()}}(),Fu())},ce=function(e,t){var n=ql;ql|=2;try{return e(t)}finally{(ql=n)===Ml&&Xa()}};var dc,pc,hc={createPortal:fc,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},hydrate:function(e,t,n){if(!cc(t))throw Error(o(200));return sc(null,e,t,!0,n)},render:function(e,t,n){if(!cc(t))throw Error(o(200));return sc(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!cc(n))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return sc(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!cc(e))throw Error(o(40));return!!e._reactRootContainer&&(Su((function(){sc(null,null,e,!1,(function(){e._reactRootContainer=null,e[fr]=null}))})),!0)},unstable_createPortal:function(){return fc.apply(void 0,arguments)},unstable_batchedUpdates:Eu,flushSync:function(e,t){if((ql&(Ll|Fl))!==Ml)throw Error(o(187));var n=ql;ql|=1;try{return $a(99,e.bind(null,t))}finally{ql=n,Xa()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[pr,hr,mr,I.injectEventPluginsByName,d,Nt,function(e){C(e,It)},ae,ie,_n,_,Fu,{current:!1}]}};pc=(dc={findFiberByHostInstance:dr,bundleType:0,version:"16.12.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Hu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(r){}},qu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}}(a({},dc,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return pc?pc(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var mc={default:hc},gc=mc&&hc||mc;e.exports=gc.default||gc},zuR4:function(e,t,n){"use strict";n("VRzm"),n("rGqo"),n("yt8O"),n("Btvt"),n("XfO3");var r=n("xTJ+"),a=n("HSsa"),i=n("CgaS"),o=n("SntB");function l(e){var t=new i(e),n=a(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=l(n("JEQr"));u.Axios=i,u.create=function(e){return l(o(u.defaults,e))},u.Cancel=n("endd"),u.CancelToken=n("jfS+"),u.isCancel=n("Lmem"),u.all=function(e){return Promise.all(e)},u.spread=n("DfZB"),e.exports=u,e.exports.default=u}}]);
//# sourceMappingURL=commons-ca2b188b21000f208719.js.map
|
import { createCss } from '@stitches/css'
import { createStyled } from '@stitches/styled'
export const css = createCss({
tokens: {
colors: {
RED: 'tomato',
},
},
})
export const styled = createStyled(css)
|
from objects.modulebase import ModuleBase
from objects.permissions import PermissionBotOwner
from copy import copy
from utils.funcs import find_user, get_local_prefix
class Module(ModuleBase):
usage_doc = '{prefix}{aliases} <user> <command>'
short_doc = 'Replace message author and run command'
long_doc = (
'Flags:'
'\t[--no-prefix|-n]: do not append prefix to the message'
)
name = 'runas'
aliases = (name, )
category = 'Owner'
min_args = 2
user_perms = (PermissionBotOwner(), )
guild_only = True
flags = {
'no-prefix': {
'alias': 'n',
'bool': True
}
}
hidden = True
async def on_call(self, ctx, args, **flags):
user = await find_user(args[1], ctx.message, strict_guild=True)
if user is None:
return '{warning} User not found'
fake_msg = copy(ctx.message)
if flags.get('no-prefix', False):
fake_msg.content = args[2:]
else:
fake_msg.content = await get_local_prefix(ctx) + args[2:]
fake_msg.author = user
await self.bot.on_message(fake_msg)
return f'Message processed as `{user}`'
|
'''
Tree-Matching implementation
Based on BURS (Bottom-Up Rewrite System)
Extension to the table_full version, with a smaller table
The table is compressed (fewer states needed) during the construction
This is because some states may never the i-th children of some specific op, so it's useless to keep a specific entry for it.
Furthermore, some columns / rows of the table may be the same, and can be combined
This compressing is done while building the table.
Inspired from:
- Instruction Selection via Tree-Pattern Matching - Enginner a Compiler p610
- An Improvement to Bottom-up Tree Pattern Matching - David R. Chase
- Simple and Efficient BURS Table Generation - Todd A. Proebsting
'''
import os
import sys
import rules
import optree
import graphivz
from digraph import Digraph
MAX_COST = 100000000
class State:
def __init__(self, idx):
self.idx = idx
self.rc = dict()
def add_rule(self, r, cost):
name = r.lhs
if name in self.rc and self.rc[name][1] <= cost:
return False
self.rc[name] = (r, cost)
return True
def get_match(self, r):
if r in self.rc:
return self.rc[r]
return (None, MAX_COST)
def normalize(self):
delta = MAX_COST
for r in self.rc.values():
delta = min(delta, r[1])
for name in self.rc.keys():
rc = self.rc[name]
self.rc[name] = (rc[0], rc[1] - delta)
def is_same_than(self, other):
if len(self.rc) != len(other.rc):
return False
for name in self.rc:
if name not in other.rc:
return False
self_rc = self.rc[name]
other_rc = other.rc[name]
if self_rc[0] != other_rc[0] or self_rc[1] != other_rc[1]:
return False
return True
def __str__(self):
res = 'State #{}: {{'.format(self.idx)
for r in self.rc.values():
res += '({}#{}, {}) '.format(r[0].idx, r[0].lhs, r[1])
res += '}'
return res
class Representer:
def __init__(self, idx):
self.idx = idx
self.rc = dict()
def add_rule(self, r, cost):
if r in self.rc and self.rc[r] <= cost:
return False
self.rc[r] = cost
return True
def get_match(self, r):
return self.rc[r] if r in self.rc else MAX_COST
def normalize(self):
delta = MAX_COST
for cost in self.rc.values():
delta = min(delta, cost)
for r in self.rc.keys():
self.rc[r] -= delta
def is_same_than(self, other):
return self.rc == other.rc
def __str__(self):
res = 'Rep #{}: {{'.format(self.idx)
for r in self.rc.keys():
res += '({}, {}) '.format(r, self.rc[r])
res += '}'
return res
class OpTable:
def __init__(self, name, arity):
self.name = name
self.arity = arity
# defined for each position in op (size is arity)
# list of representer states (only contain rules that can be used at pos i for this op
self.reps = list()
# defined for each position in op (size is arity)
# mapping from state to representer state
self.i_map = list()
# Object used to build the transition table
# Mapping from representer states of children ops to global state of parent
# n-dimensional array, with n = arity
# trans Cannot be directly built because number of representer states is unknown
# built from b_trans at the end
self.b_trans = list()
self.trans = None
for i in range(self.arity):
self.reps.append([])
self.i_map.append(dict())
def add_unique_rep(self, i, rep):
for other in self.reps[i]:
if other.is_same_than(rep):
return (other, False)
rep.idx = len(self.reps[i])
self.reps[i].append(rep)
return (rep, True)
def add_st2rep_map(self, i, st, rep):
self.i_map[i][st] = rep
def add_trans(self, reps, new_st):
self.b_trans.append((reps, new_st))
def build_trans(self):
for i in range(self.arity):
print('Map for {}:{}:'.format(self.name, i))
for r in self.i_map[i].keys():
print('State #{} => Rep #{}'.format(r.idx, self.i_map[i][r].idx))
print('')
if self.arity == 1:
self.build_trans_d1()
elif self.arity == 2:
self.build_trans_d2()
def build_trans_d1(self):
n = len(self.reps[0])
self.trans = [None] * n
for (reps, new_st) in self.b_trans:
self.trans[reps[0].idx] = new_st
print('Transition table for {}'.format(self.name))
for i, st in enumerate(self.trans):
print('#{}: state #{}'.format(i, st.idx))
print('')
for x in self.trans:
assert x is not None
def build_trans_d2(self):
m = len(self.reps[0])
n = len(self.reps[1])
self.trans = [[None] * n for _ in range(m)]
for (reps, new_st) in self.b_trans:
self.trans[reps[0].idx][reps[1].idx] = new_st
print('Transition table for {}'.format(self.name))
sys.stdout.write('####| ')
for i in range(len(self.trans[0])):
sys.stdout.write('{:3}| '.format(i))
print('')
for i, row in enumerate(self.trans):
sys.stdout.write('#{:3}| '.format(i))
for st in row:
sys.stdout.write('{:3}| '.format(st.idx))
print('')
print('')
for x in self.trans:
for y in x: assert y is not None
def get_state(self, children_sts):
reps = [self.i_map[i][children_sts[i]].idx for i in range(len(children_sts))]
if self.arity == 1:
return self.trans[reps[0]]
elif self.arity == 2:
return self.trans[reps[0]][reps[1]]
else:
assert 0
class TableBuilder:
def __init__(self, rs):
self.rs = rs
self.ms = []
self.leaf_ms = dict()
self.wlist = []
self.ops = {op[0]: OpTable(op[0], op[1]) for op in self.list_ops()}
#self.init_ttrans()
'''
def init_ttrans(self):
#Init transition tables
self.ttrans = dict()
for op in self.ops_arity.keys():
if self.ops_arity[op] > 0:
self.ttrans[op] = []
def build_ttrans(self):
for op in self.ttrans.keys():
if self.ops_arity[op] == 1:
self.ttrans[op] = self.build_ttrans_1(op)
elif self.ops_arity[op] == 2:
self.ttrans[op] = self.build_ttrans_2(op)
else:
assert 0
def build_ttrans_1(self, op):
data = self.ttrans[op]
res = [None] * len(self.ms)
for e in data:
res[e[0][0].idx] = e[1]
print('Transition table for {}'.format(op))
for i, st in enumerate(res):
print('#{}: state #{}'.format(i, st.idx))
print('')
for x in res: assert x is not None
return res
def build_ttrans_2(self, op):
data = self.ttrans[op]
res = [[None] * len(self.ms) for _ in self.ms]
for e in data:
res[e[0][0].idx][e[0][1].idx] = e[1]
print('Transition table for {}'.format(op))
sys.stdout.write('####| ')
for i in range(len(res)):
sys.stdout.write('{:3}| '.format(i))
print('')
for i, row in enumerate(res):
sys.stdout.write('#{:3}| '.format(i))
for st in row:
sys.stdout.write('{:3}| '.format(st.idx))
print('')
print('')
for x in res:
for y in x: assert y is not None
return res
'''
def project(self, st, op, i):
rep = Representer(-1)
for r in self.rs.rules:
if not r.is_op() or op != r.get_op():
continue
n = r.get_args()[i]
n_cost = st.get_match(n)[1]
if n_cost != MAX_COST:
rep.add_rule(n, n_cost)
rep.normalize()
return rep
def build(self):
self.compute_leaf_states()
print('Initial states:')
for leaf in self.list_leaves():
print('{}: {}'.format(leaf, self.leaf_ms[leaf]))
while len(self.wlist) != 0:
self.update(self.wlist.pop())
for op in self.ops.values():
op.build_trans()
#self.build_ttrans()
def list_leaves(self):
return [op[0] for op in self.list_ops() if op[1] == 0]
def list_ops(self):
ops = set()
res = []
for r in self.rs.rules:
if r.is_op() and r.get_op() not in ops:
ops.add(r.get_op())
res.append((r.get_op(), len(r.get_args())))
return res
def add_state(self):
idx = len(self.ms)
st = State(idx)
self.ms.append(st)
return st
def add_unique_state(self, new_st):
for st in self.ms:
if new_st.is_same_than(st):
return (st, False)
idx = len(self.ms)
new_st.idx = idx
self.ms.append(new_st)
return (new_st, True)
def compute_leaf_states(self):
for leaf in self.list_leaves():
self.compute_leaf_st(leaf)
def compute_leaf_st(self, leaf):
st = self.add_state()
self.leaf_ms[leaf] = st
for r in self.rs.rules:
if r.is_op() and r.get_op() == leaf:
st.add_rule(r, r.cost)
self.closure(st)
st.normalize()
self.wlist.append(st)
def closure(self, st):
while True:
changed = False
for r in self.rs.rules:
if not r.is_nt():
continue
new_cost = r.cost + st.get_match(r.rhs)[1]
if new_cost >= MAX_COST:
continue
if st.add_rule(r, new_cost):
changed = True
if changed == False:
break
def update(self, st):
for op in self.list_ops():
self.compute_transitions(op[0], st)
def compute_transitions(self, op, st):
op = self.ops[op]
arity = op.arity
if arity == 0:
return
for i in range(0, arity):
pstate = self.project(st, op.name, i)
pstate, is_new = op.add_unique_rep(i, pstate)
op.add_st2rep_map(i, st, pstate)
if not is_new:
continue
if arity == 1:
self.update_op_from_reps(op, [pstate])
elif arity == 2 and i == 0:
for other in op.reps[1]:
self.update_op_from_reps(op, [pstate, other])
elif arity == 2 and i == 1:
for other in op.reps[0]:
self.update_op_from_reps(op, [other, pstate])
else:
assert 0
def update_op_from_reps(self, op, reps):
new_st = State(-1)
for r in self.rs.rules:
if r.is_nt() or r.get_op() != op.name:
continue
cost = r.cost
for (arg_i, arg) in enumerate(r.get_args()):
arg_cost = reps[arg_i].get_match(arg)
if arg_cost == MAX_COST:
cost = MAX_COST
break
cost += arg_cost
if cost != MAX_COST:
new_st.add_rule(r, cost)
self.closure(new_st)
new_st.normalize()
new_st, updated = self.add_unique_state(new_st)
if updated:
self.wlist.append(new_st)
print('New state for {}({}): {}'.format(op.name, ', '.join([str(r.idx) for r in reps]), new_st))
op.add_trans(reps, new_st)
def get_state(self, op, children_sts):
if len(children_sts) == 0:
return self.leaf_ms[op]
else:
return self.ops[op].get_state(children_sts)
class MatchInfos:
def __init__(self, node):
self.node = node
self.state = None
class Matcher:
def __init__(self, table, t):
self.table = table
self.t = t
self.infos = [MatchInfos(n) for n in self.t.nodes]
def match(self):
self.match_node(t.root)
def match_node(self, node):
# Match children first
for arg in node.succs:
self.match_node(arg)
infos = self.infos[node.idx]
infos.state = self.table.get_state(node.op,
[self.infos[arg.idx].state for arg in node.succs])
def apply(self, runner):
self.apply_rec(runner, self.t.root, 'goal')
def apply_rec(self, runner, node, rule):
# Get node match rule
match = self.infos[node.idx].state.get_match(rule)
if match[0] == None:
raise Exception('Matching tree failed')
# List all non-terminal rules
nt_rules = []
while match[0].is_nt():
nt_rules.append(match[0])
match = self.infos[node.idx].state.get_match(match[0].rhs)
assert match[0] is not None
# Apply non-terminal rules
for r in nt_rules:
runner.before(node, r)
# Apply to all children
rule = match[0]
runner.before(node, rule)
for (arg_i, arg) in enumerate(node.succs):
arg_rule = rule.get_args()[arg_i]
self.apply_rec(runner, arg, arg_rule)
runner.after(node, rule)
# Apply non-terminal rules
for r in nt_rules[::-1]:
runner.after(node, r)
def all_matches(self):
def get_label(infos):
res = "{} {{".format(infos.node.op)
for rc in infos.state.rc.values():
res += "({}#{}, {}) ".format(rc[0].lhs, rc[0].idx, rc[1])
res += "}"
return res
class Helper:
def __init__(self, obj):
self.obj = obj
def save_dot(self, dot_file):
g = Digraph(len(self.obj.infos))
for infos in self.obj.infos:
n = infos.node
g.set_vertex_label(n.idx, get_label(infos))
if n.pred is not None:
g.add_edge(n.pred.idx, n.idx)
g.save_dot(dot_file)
return Helper(self)
def apply_matches(self):
class Helper:
def __init__(self, obj):
self.obj = obj
self.labels = ['' for _ in self.obj.infos]
def save_dot(self, dot_file):
g = Digraph(len(self.obj.infos))
for infos in self.obj.infos:
n = infos.node
if n.pred is not None:
g.add_edge(n.pred.idx, n.idx)
self.obj.apply(self)
for (u, label) in enumerate(self.labels):
g.set_vertex_label(u, label)
g.save_dot(dot_file)
def before(self, node, rule):
lbl = self.labels[node.idx]
if len(lbl) == 0:
lbl = '{}: '.format(node.op)
if not lbl.endswith(': '):
lbl += ' + '
lbl += '{}#{}'.format(rule.lhs, rule.idx)
self.labels[node.idx] = lbl
def after(self, node, rule):
pass
return Helper(self)
if __name__ == '__main__':
rs = rules.parse_file(os.path.join(os.path.dirname(__file__), '../config/rules.txt'))
print('Rules:')
print(rs)
tb = TableBuilder(rs)
tb.build()
t = optree.parse_file(sys.argv[1])
matcher = Matcher(tb, t)
matcher.match()
graphivz.show_obj(matcher.all_matches())
graphivz.show_obj(matcher.apply_matches())
|
# Generated by Django 2.2.6 on 2021-10-31 13:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('departments', '0004_employee_department'),
]
operations = [
migrations.AddField(
model_name='employee',
name='rank',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='departments.Rank'),
),
migrations.AlterField(
model_name='employee',
name='department',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='departments.Department'),
),
]
|
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:53:08 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /System/Library/PrivateFrameworks/Stocks/StocksUI.framework/StocksUI
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
@interface StocksUI.WelcomeViewStyler : _UKNOWN_SUPERCLASS_ {
baseStyler;
parameters;
}
@end
|
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import mock
from oslo_utils import uuidutils
from tacker import context
from tacker.nfvo.drivers.vim import openstack_driver
from tacker.tests.unit import base
from tacker.tests.unit.db import utils
class FakeNeutronClient(mock.Mock):
def __init__(self):
super(FakeNeutronClient, self).__init__()
self.__fc_dict = {}
self.__pp_dict = {}
self.__ppg_dict = {}
self.__chain_dict = {}
def flow_classifier_create(self, fc_create_dict):
fc_id = uuidutils.generate_uuid()
self.__fc_dict[fc_id] = fc_create_dict
return fc_id
def show_flow_classifier(self, fc_dict):
fc_name = fc_dict['name']
for fc_id in self.__fc_dict:
fc = self.__fc_dict[fc_id]
if fc_name == fc['name']:
return {'id': fc_id}
return None
def flow_classifier_update(self, fc_id, fc_update_dict):
if fc_id not in self.__fc_dict:
return None
self.__fc_dict[fc_id] = fc_update_dict
return fc_update_dict
def flow_classifier_delete(self, fc_id):
if fc_id not in self.__fc_dict:
raise ValueError('fc not found')
self.__fc_dict.pop(fc_id)
def port_pair_create(self, port_pair):
pp_id = uuidutils.generate_uuid()
self.__pp_dict[pp_id] = port_pair
return pp_id
def port_pair_list(self):
pp = {'port_pairs': [{'ingress': 'abc',
'egress': 'xyz'}]}
return pp
def show_port_pair(self, port_pair_dict):
input_pp_name = port_pair_dict['name']
for pp_id in self.__pp_dict:
port_pair = self.__pp_dict[pp_id]
if port_pair['name'] == input_pp_name:
return {'id': pp_id}
return None
def port_pair_group_create(self, port_pair_group):
ppg_id = uuidutils.generate_uuid()
self.__ppg_dict[ppg_id] = port_pair_group
return ppg_id
def port_pair_group_list(self):
value = {'port_pair_groups': []}
return value
def show_port_pair_group(self, port_pair_group_dict):
input_ppg_name = port_pair_group_dict['name']
for ppg_id in self.__ppg_dict:
port_pair_group = self.__ppg_dict[ppg_id]
if port_pair_group['name'] == input_ppg_name:
return {'id': ppg_id}
return None
def port_chain_create(self, port_chain):
chain_id = uuidutils.generate_uuid()
self.__chain_dict[chain_id] = port_chain
return chain_id
def show_port_chain(self, port_chain_dict):
input_chain_name = port_chain_dict['name']
for chain_id in self.__chain_dict:
port_chain = self.__chain_dict[chain_id]
if port_chain['name'] == input_chain_name:
return {'id': chain_id}
return None
def port_chain_delete(self, chain_id):
if chain_id not in self.__chain_dict:
raise ValueError('port chain delete failed')
self.__chain_dict.pop(chain_id)
def port_chain_list(self):
pc = {'port_chains': [{'port_pair_groups': ['random_id1',
'random_id2']}]}
return pc
class TestChainSFC(base.TestCase):
def setUp(self):
super(TestChainSFC, self).setUp()
self.context = context.get_admin_context()
self.sfc_driver = openstack_driver.OpenStack_Driver()
self._mock_neutron_client()
self.addCleanup(mock.patch.stopall)
def _mock_neutron_client(self):
self.neutron_client = mock.Mock(wraps=FakeNeutronClient())
fake_neutron_client = mock.Mock()
fake_neutron_client.return_value = self.neutron_client
self._mock(
'tacker.nfvo.drivers.vim.openstack_driver.'
'NeutronClient',
fake_neutron_client)
def _mock(self, target, new=mock.DEFAULT):
patcher = mock.patch(target, new)
return patcher.start()
def test_create_flow_classifier(self):
flow_classifier = {'name': 'fake_fc',
'source_port_range': '2005-2010',
'ip_proto': 6,
'destination_port_range': '80-180'}
result = self.sfc_driver.\
create_flow_classifier(name='fake_ffg', fc=flow_classifier,
auth_attr=utils.get_vim_auth_obj())
self.assertIsNotNone(result)
def test_update_flow_classifier(self):
auth_attr = utils.get_vim_auth_obj()
flow_classifier = {'name': 'next_fake_fc',
'source_port_range': '2005-2010',
'ip_proto': 6,
'destination_port_range': '80-180'}
fc_id = self.sfc_driver.\
create_flow_classifier(name='fake_ffg', fc=flow_classifier,
auth_attr=utils.get_vim_auth_obj())
flow_classifier_update = {'name': 'next_fake_fc_two',
'instance_id': None,
'status': 'PENDING_CREATE',
'match': {'source_port_range': '5-10',
'ip_proto': 17,
'destination_port_range': '2-4'}}
fc_id = self.sfc_driver.\
create_flow_classifier(name='fake_ffg', fc=flow_classifier,
auth_attr=utils.get_vim_auth_obj())
self.assertIsNotNone(fc_id)
vnf_1 = {'name': 'test_create_chain_vnf_1',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnf_2 = {'name': 'test_create_chain_vnf_2',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnf_3 = {'name': 'test_create_chain_vnf_3',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnfs = [vnf_1, vnf_2, vnf_3]
chain_id = self.sfc_driver.create_chain(name='fake_ffg',
fc_ids=fc_id,
vnfs=vnfs,
auth_attr=auth_attr)
self.assertIsNotNone(chain_id)
result = self.sfc_driver.\
update_flow_classifier(chain_id=chain_id,
fc=flow_classifier_update,
auth_attr=utils.get_vim_auth_obj())
self.assertIsNotNone(result)
def test_delete_flow_classifier(self):
flow_classifier = {'name': 'another_fake_fc',
'description': 'another flow-classifier',
'source_port_range': '1999-2005',
'ip_proto': 6,
'destination_port_range': '80-100'}
fc_id = self.sfc_driver.\
create_flow_classifier(name='fake_ffg', fc=flow_classifier,
auth_attr=utils.get_vim_auth_obj())
self.assertIsNotNone(fc_id)
try:
self.sfc_driver.\
delete_flow_classifier(fc_id=fc_id,
auth_attr=utils.get_vim_auth_obj())
except Exception:
self.assertTrue(True)
def test_create_chain(self):
auth_attr = utils.get_vim_auth_obj()
flow_classifier = {'name': 'test_create_chain_fc',
'description': 'fc for testing create chain',
'source_port_range': '1997-2008',
'ip_proto': 6,
'destination_port_range': '80-100'}
fc_id = self.sfc_driver.\
create_flow_classifier(name='fake_ffg', fc=flow_classifier,
auth_attr=auth_attr)
self.assertIsNotNone(fc_id)
vnf_1 = {'name': 'test_create_chain_vnf_1',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnf_2 = {'name': 'test_create_chain_vnf_2',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnf_3 = {'name': 'test_create_chain_vnf_3',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnfs = [vnf_1, vnf_2, vnf_3]
result = self.sfc_driver.create_chain(name='fake_ffg',
fc_ids=fc_id,
vnfs=vnfs,
auth_attr=auth_attr)
self.assertIsNotNone(result)
def test_delete_chain(self):
auth_attr = utils.get_vim_auth_obj()
flow_classifier = {'name': 'test_delete_chain_fc',
'description': 'fc for testing delete chain',
'source_port_range': '1000-2000',
'ip_proto': 6,
'destination_port_range': '80-180'}
fc_id = self.sfc_driver.\
create_flow_classifier(name='fake_ffg', fc=flow_classifier,
auth_attr=auth_attr)
self.assertIsNotNone(fc_id)
vnf_1 = {'name': 'test_delete_chain_vnf_1',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnf_2 = {'name': 'test_delete_chain_vnf_2',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnf_3 = {'name': 'test_delete_chain_vnf_3',
'connection_points': [uuidutils.generate_uuid(),
uuidutils.generate_uuid()]}
vnfs = [vnf_1, vnf_2, vnf_3]
chain_id = self.sfc_driver.create_chain(name='fake_ffg',
fc_ids=fc_id,
vnfs=vnfs,
auth_attr=auth_attr)
self.assertIsNotNone(chain_id)
try:
self.sfc_driver.delete_chain(chain_id,
auth_attr=auth_attr)
except Exception:
self.assertTrue(True)
|
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef otb_VariadicInputsImageFilter_h
#define otb_VariadicInputsImageFilter_h
#include "itkImageSource.h"
namespace otb
{
/**
* \class VariadicInputsImageFilter
* \brief Base class for image filter with variadic inputs.
*
* This filter act as a base class for all filters that will take
* several input images with different types and produce an output
* image.
*
* Type for each input is taken from the variadic template parameter
* TInputs.
*
* Inputs get be set/get with SetInput<N>() and
* GetInput<N>(), when N is the index (first input is 0) of
* the input. This is resolved at compile time: you can not call
* SetInput<N>() with an argument not matching the Nth input
* type (it will lead to type mismatch compilation error).
*
* Note that you can also call SetInput() and GetInput() which will
* automatically fetch the first input.
*
* Alternatively, you can call SetInputs() with all the input
* image in the same order as in the template parameters.
*
* Last, there is a macro that generates SetInput1() ... SetInput10()
* (iff the number of varidic input types is large enough) for
* backward compatibility.
*
* \ingroup OTBFunctor
*/
template <class TOuptut, class... TInputs>
class VariadicInputsImageFilter : public itk::ImageSource<TOuptut>
{
public:
using Self = VariadicInputsImageFilter<TOuptut, TInputs...>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
using Superclass = itk::ImageSource<TOuptut>;
using InputTypesTupleType = std::tuple<TInputs...>;
template <size_t I>
using InputImageType = typename std::tuple_element<I, InputTypesTupleType>::type;
static constexpr size_t NumberOfInputs = std::tuple_size<InputTypesTupleType>::value;
// Good old new macro
itkNewMacro(Self);
// Import definitions for SetInput and GetInput to avoid shadowing
// by SetInput<> and GetIntput<> defined in this method
using Superclass::GetInput;
using Superclass::SetInput;
/**
* \param Set the Ith input
*/
template <std::size_t I = 0>
void SetInput(const InputImageType<I>* inputPtr)
{
static_assert(NumberOfInputs > I, "Template value I is out of range.");
this->SetNthInput(I, const_cast<InputImageType<I>*>(inputPtr));
}
#define DefineLegacySetInputMacro(n) \
template <typename Tuple = InputTypesTupleType, typename Check = typename std::enable_if<n <= std::tuple_size<Tuple>::value>::type> \
void SetInput##n(const typename std::tuple_element<n - 1, Tuple>::type* img) \
{ \
this->template SetInput<n - 1>(img); \
}
// The following defines legacy setters SetInput1()
// ... SetInput10(), only if the number of input type is sufficient
DefineLegacySetInputMacro(1);
DefineLegacySetInputMacro(2);
DefineLegacySetInputMacro(3);
DefineLegacySetInputMacro(4);
DefineLegacySetInputMacro(5);
DefineLegacySetInputMacro(6);
DefineLegacySetInputMacro(7);
DefineLegacySetInputMacro(8);
DefineLegacySetInputMacro(9);
DefineLegacySetInputMacro(10);
#undef DefineLegacySetInputMacro
template <std::size_t I = 0>
const InputImageType<I>* GetInput()
{
static_assert(NumberOfInputs > I, "Template value I is out of range.");
return dynamic_cast<const InputImageType<I>*>(this->GetInput(I));
}
/**
* \param inputs A vararg list of inputs
*/
void SetInputs(TInputs*... inputs)
{
auto inTuple = std::make_tuple(inputs...);
SetInputsImpl(inTuple, std::make_index_sequence<sizeof...(inputs)>{});
}
/**
* \return A tuple with all inputs
*/
auto GetInputs()
{
return GetInputsImpl(std::make_index_sequence<sizeof...(TInputs)>{});
}
protected:
VariadicInputsImageFilter()
{
this->SetNumberOfRequiredInputs(sizeof...(TInputs));
};
~VariadicInputsImageFilter() = default;
private:
template <class Tuple, size_t... Is>
void SetInputsImpl(Tuple& t, std::index_sequence<Is...>)
{
// Will be easier to write in c++17 with fold expressions
// (this->template SetInput<Is>(std::get<Is>(t)),...);
(void) std::initializer_list<int>{(this->template SetInput<Is>(std::get<Is>(t)), 0)...};
}
template <size_t... Is>
auto GetInputsImpl(std::index_sequence<Is...>)
{
return std::make_tuple(this->template GetInput<Is>()...);
}
VariadicInputsImageFilter(const Self&) = delete;
void operator=(const Self&) = delete;
};
} // namespace otb
#endif
|
// Copyright (c) 2018-2019 The Dash Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef XNK_QUORUMS_DKGSESSION_H
#define XNK_QUORUMS_DKGSESSION_H
#include "consensus/params.h"
#include "net.h"
#include "batchedlogger.h"
#include "bls/bls_ies.h"
#include "bls/bls_worker.h"
#include "evo/deterministicmns.h"
#include "llmq/quorums_utils.h"
class UniValue;
namespace llmq
{
class CFinalCommitment;
class CDKGSession;
class CDKGSessionManager;
class CDKGPendingMessages;
class CDKGLogger : public CBatchedLogger
{
public:
CDKGLogger(const CDKGSession& _quorumDkg, const std::string& _func);
CDKGLogger(Consensus::LLMQType _llmqType, const uint256& _quorumHash, int _height, bool _areWeMember, const std::string& _func);
};
class CDKGContribution
{
public:
uint8_t llmqType;
uint256 quorumHash;
uint256 proTxHash;
BLSVerificationVectorPtr vvec;
std::shared_ptr<CBLSIESMultiRecipientObjects<CBLSSecretKey>> contributions;
CBLSSignature sig;
public:
template<typename Stream>
inline void SerializeWithoutSig(Stream& s) const
{
s << llmqType;
s << quorumHash;
s << proTxHash;
s << *vvec;
s << *contributions;
}
template<typename Stream>
inline void Serialize(Stream& s) const
{
SerializeWithoutSig(s);
s << sig;
}
template<typename Stream>
inline void Unserialize(Stream& s)
{
BLSVerificationVector tmp1;
CBLSIESMultiRecipientObjects<CBLSSecretKey> tmp2;
s >> llmqType;
s >> quorumHash;
s >> proTxHash;
s >> tmp1;
s >> tmp2;
s >> sig;
vvec = std::make_shared<BLSVerificationVector>(std::move(tmp1));
contributions = std::make_shared<CBLSIESMultiRecipientObjects<CBLSSecretKey>>(std::move(tmp2));
}
uint256 GetSignHash() const
{
CHashWriter hw(SER_GETHASH, 0);
SerializeWithoutSig(hw);
hw << CBLSSignature();
return hw.GetHash();
}
};
class CDKGComplaint
{
public:
uint8_t llmqType;
uint256 quorumHash;
uint256 proTxHash;
std::vector<bool> badMembers;
std::vector<bool> complainForMembers;
CBLSSignature sig;
public:
CDKGComplaint() {}
CDKGComplaint(const Consensus::LLMQParams& params);
ADD_SERIALIZE_METHODS
template<typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(llmqType);
READWRITE(quorumHash);
READWRITE(proTxHash);
READWRITE(DYNBITSET(badMembers));
READWRITE(DYNBITSET(complainForMembers));
READWRITE(sig);
}
uint256 GetSignHash() const
{
CDKGComplaint tmp(*this);
tmp.sig = CBLSSignature();
return ::SerializeHash(tmp);
}
};
class CDKGJustification
{
public:
uint8_t llmqType;
uint256 quorumHash;
uint256 proTxHash;
std::vector<std::pair<uint32_t, CBLSSecretKey>> contributions;
CBLSSignature sig;
public:
ADD_SERIALIZE_METHODS
template<typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(llmqType);
READWRITE(quorumHash);
READWRITE(proTxHash);
READWRITE(contributions);
READWRITE(sig);
}
uint256 GetSignHash() const
{
CDKGJustification tmp(*this);
tmp.sig = CBLSSignature();
return ::SerializeHash(tmp);
}
};
// each member commits to a single set of valid members with this message
// then each node aggregate all received premature commitments
// into a single CFinalCommitment, which is only valid if
// enough (>=minSize) premature commitments were aggregated
class CDKGPrematureCommitment
{
public:
uint8_t llmqType;
uint256 quorumHash;
uint256 proTxHash;
std::vector<bool> validMembers;
CBLSPublicKey quorumPublicKey;
uint256 quorumVvecHash;
CBLSSignature quorumSig; // threshold sig share of quorumHash+validMembers+pubKeyHash+vvecHash
CBLSSignature sig; // single member sig of quorumHash+validMembers+pubKeyHash+vvecHash
public:
CDKGPrematureCommitment() {}
CDKGPrematureCommitment(const Consensus::LLMQParams& params);
int CountValidMembers() const
{
return (int)std::count(validMembers.begin(), validMembers.end(), true);
}
public:
ADD_SERIALIZE_METHODS
template<typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(llmqType);
READWRITE(quorumHash);
READWRITE(proTxHash);
READWRITE(DYNBITSET(validMembers));
READWRITE(quorumPublicKey);
READWRITE(quorumVvecHash);
READWRITE(quorumSig);
READWRITE(sig);
}
uint256 GetSignHash() const
{
return CLLMQUtils::BuildCommitmentHash(llmqType, quorumHash, validMembers, quorumPublicKey, quorumVvecHash);
}
};
class CDKGMember
{
public:
CDKGMember(CDeterministicMNCPtr _dmn, size_t _idx);
CDeterministicMNCPtr dmn;
size_t idx;
CBLSId id;
std::set<uint256> contributions;
std::set<uint256> complaints;
std::set<uint256> justifications;
std::set<uint256> prematureCommitments;
std::set<uint256> badMemberVotes;
std::set<uint256> complaintsFromOthers;
bool bad{false};
bool weComplain{false};
bool someoneComplain{false};
};
/**
* The DKG session is a single instance of the DKG process. It is owned and called by CDKGSessionHandler, which passes
* received DKG messages to the session. The session is not persistent and will loose it's state (the whole object is
* discarded) when it finishes (after the mining phase) or is aborted.
*
* When incoming contributions are received and the verification vector is valid, it is passed to CDKGSessionManager
* which will store it in the evo DB. Secret key contributions which are meant for the local member are also passed
* to CDKGSessionManager to store them in the evo DB. If verification of the SK contribution initially fails, it is
* not passed to CDKGSessionManager. If the justification phase later gives a valid SK contribution from the same
* member, it is then passed to CDKGSessionManager and after this handled the same way.
*
* The contributions stored by CDKGSessionManager are then later loaded by the quorum instances and used for signing
* sessions, but only if the local node is a member of the quorum.
*/
class CDKGSession
{
friend class CDKGSessionHandler;
friend class CDKGSessionManager;
friend class CDKGLogger;
template<typename Message> friend class CDKGMessageHandler;
private:
const Consensus::LLMQParams& params;
CBLSWorker& blsWorker;
CBLSWorkerCache cache;
CDKGSessionManager& dkgManager;
uint256 quorumHash;
int height{-1};
private:
std::vector<std::unique_ptr<CDKGMember>> members;
std::map<uint256, size_t> membersMap;
BLSVerificationVectorPtr vvecContribution;
BLSSecretKeyVector skContributions;
BLSIdVector memberIds;
std::vector<BLSVerificationVectorPtr> receivedVvecs;
// these are not necessarily verified yet. Only trust in what was written to the DB
BLSSecretKeyVector receivedSkContributions;
uint256 myProTxHash;
CBLSId myId;
size_t myIdx{(size_t)-1};
// all indexed by msg hash
// we expect to only receive a single vvec and contribution per member, but we must also be able to relay
// conflicting messages as otherwise an attacker might be able to broadcast conflicting (valid+invalid) messages
// and thus split the quorum. Such members are later removed from the quorum.
mutable CCriticalSection invCs;
std::map<uint256, CDKGContribution> contributions;
std::map<uint256, CDKGComplaint> complaints;
std::map<uint256, CDKGJustification> justifications;
std::map<uint256, CDKGPrematureCommitment> prematureCommitments;
std::set<CInv> invSet;
std::vector<size_t> pendingContributionVerifications;
// filled by ReceivePrematureCommitment and used by FinalizeCommitments
std::set<uint256> validCommitments;
public:
CDKGSession(const Consensus::LLMQParams& _params, CBLSWorker& _blsWorker, CDKGSessionManager& _dkgManager) :
params(_params), blsWorker(_blsWorker), cache(_blsWorker), dkgManager(_dkgManager) {}
bool Init(int _height, const uint256& _quorumHash, const std::vector<CDeterministicMNCPtr>& mns, const uint256& _myProTxHash);
size_t GetMyMemberIndex() const { return myIdx; }
/**
* The following sets of methods are for the first 4 phases handled in the session. The flow of message calls
* is identical for all phases:
* 1. Execute local action (e.g. create/send own contributions)
* 2. PreVerify incoming messages for this phase. Preverification means that everything from the message is checked
* that does not require too much resources for verification. This specifically excludes all CPU intensive BLS
* operations.
* 3. CDKGSessionHandler will collect pre verified messages in batches and perform batched BLS signature verification
* on these.
* 4. ReceiveMessage is called for each pre verified message with a valid signature. ReceiveMessage is also
* responsible for further verification of validity (e.g. validate vvecs and SK contributions).
*/
// Phase 1: contribution
void Contribute(CDKGPendingMessages& pendingMessages);
void SendContributions(CDKGPendingMessages& pendingMessages);
bool PreVerifyMessage(const uint256& hash, const CDKGContribution& qc, bool& retBan) const;
void ReceiveMessage(const uint256& hash, const CDKGContribution& qc, bool& retBan);
void VerifyPendingContributions();
// Phase 2: complaint
void VerifyAndComplain(CDKGPendingMessages& pendingMessages);
void SendComplaint(CDKGPendingMessages& pendingMessages);
bool PreVerifyMessage(const uint256& hash, const CDKGComplaint& qc, bool& retBan) const;
void ReceiveMessage(const uint256& hash, const CDKGComplaint& qc, bool& retBan);
// Phase 3: justification
void VerifyAndJustify(CDKGPendingMessages& pendingMessages);
void SendJustification(CDKGPendingMessages& pendingMessages, const std::set<uint256>& forMembers);
bool PreVerifyMessage(const uint256& hash, const CDKGJustification& qj, bool& retBan) const;
void ReceiveMessage(const uint256& hash, const CDKGJustification& qj, bool& retBan);
// Phase 4: commit
void VerifyAndCommit(CDKGPendingMessages& pendingMessages);
void SendCommitment(CDKGPendingMessages& pendingMessages);
bool PreVerifyMessage(const uint256& hash, const CDKGPrematureCommitment& qc, bool& retBan) const;
void ReceiveMessage(const uint256& hash, const CDKGPrematureCommitment& qc, bool& retBan);
// Phase 5: aggregate/finalize
std::vector<CFinalCommitment> FinalizeCommitments();
bool AreWeMember() const { return !myProTxHash.IsNull(); }
void MarkBadMember(size_t idx);
void RelayInvToParticipants(const CInv& inv) const;
public:
CDKGMember* GetMember(const uint256& proTxHash) const;
};
void SetSimulatedDKGErrorRate(const std::string& type, double rate);
}
#endif //XNK_QUORUMS_DKGSESSION_H
|
# Copyright 2020 Lorna Authors. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
import time
import torch
import torchvision
from .common import xywh2xyxy
from .iou import box_iou
def non_max_suppression(prediction, confidence_thresholds=0.1, iou_thresholds=0.6, merge=False, classes=None,
agnostic=False):
""" Performs Non-Maximum Suppression (NMS) on inference results
Returns:
detections with shape: nx6 (x1, y1, x2, y2, confidence, classes)
"""
if prediction.dtype is torch.float16:
prediction = prediction.float() # to FP32
nc = prediction[0].shape[1] - 5 # number of classes
xc = prediction[..., 4] > confidence_thresholds # candidates
# Settings
min_wh, max_wh = 2, 4096 # (pixels) minimum and maximum box width and height
max_det = 300 # maximum number of detections per image
time_limit = 10.0 # seconds to quit after
redundant = True # require redundant detections
multi_label = nc > 1 # multiple labels per box (adds 0.5ms/img)
t = time.time()
output = [None] * prediction.shape[0]
for xi, x in enumerate(prediction): # image index, image inference
x = x[xc[xi]] # confidence
# If none remain process next image
if not x.shape[0]:
continue
# Compute conf
x[:, 5:] *= x[:, 4:5] # conf = obj_conf * cls_conf
# Box (center x, center y, width, height) to (x1, y1, x2, y2)
box = xywh2xyxy(x[:, :4])
# Detections matrix nx6 (xyxy, conf, cls)
if multi_label:
i, j = (x[:, 5:] > confidence_thresholds).nonzero(as_tuple=False).t()
x = torch.cat((box[i], x[i, j + 5, None], j[:, None].float()), 1)
else: # best class only
conf, j = x[:, 5:].max(1, keepdim=True)
x = torch.cat((box, conf, j.float()), 1)[conf.view(-1) > confidence_thresholds]
# Filter by class
if classes:
x = x[(x[:, 5:6] == torch.as_tensor(classes, device=x.device)).any(1)]
# If none remain process next image
n = x.shape[0] # number of boxes
if not n:
continue
# Batched NMS
c = x[:, 5:6] * (0 if agnostic else max_wh) # classes
boxes, scores = x[:, :4] + c, x[:, 4] # boxes (offset by class), scores
i = torchvision.ops.boxes.nms(boxes, scores, iou_thresholds)
if i.shape[0] > max_det: # limit detections
i = i[:max_det]
if merge and (1 < n < 3E3): # Merge NMS (boxes merged using weighted mean)
try: # update boxes as boxes(i,4) = weights(i,n) * boxes(n,4)
iou = box_iou(boxes[i], boxes) > iou_thresholds # iou matrix
weights = iou * scores[None] # box weights
x[i, :4] = torch.mm(weights, x[:, :4]).float() / weights.sum(1, keepdim=True) # merged boxes
if redundant:
i = i[iou.sum(1) > 1] # require redundancy
except:
print(x, i, x.shape, i.shape)
pass
output[xi] = x[i]
if (time.time() - t) > time_limit:
break
return output
|
# -*- coding: utf-8 -*-
import logging
import math
from typing import List
from zvt.api import get_kdata
from zvt.api.business import get_trader_info
from zvt.api.quote import decode_entity_id, get_kdata_schema
from zvt.contract import IntervalLevel, EntityMixin
from zvt.contract.api import get_db_session
from zvt.domain.trader_info import AccountStats, Position, Order, TraderInfo
from zvt.trader import TradingSignalType, TradingListener, TradingSignal
from zvt.trader.errors import NotEnoughMoneyError, InvalidOrderError, NotEnoughPositionError, InvalidOrderParamError, \
WrongKdataError
from zvt.utils.pd_utils import pd_is_not_null
from zvt.utils.time_utils import to_pd_timestamp, to_time_str, TIME_FORMAT_ISO8601, is_same_date
from zvt.utils.utils import fill_domain_from_dict
ORDER_TYPE_LONG = 'order_long'
ORDER_TYPE_SHORT = 'order_short'
ORDER_TYPE_CLOSE_LONG = 'order_close_long'
ORDER_TYPE_CLOSE_SHORT = 'order_close_short'
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
# FIXME:better way for schema<->domain,now just dump to schema and use dict['field'] for operation
class AccountDayStatsSchema(SQLAlchemyAutoSchema):
class Meta:
model = AccountStats
include_relationships = True
class PositionSchema(SQLAlchemyAutoSchema):
class Meta:
model = Position
include_relationships = True
account_stats_schema = AccountDayStatsSchema()
position_schema = PositionSchema()
class AccountService(TradingListener):
logger = logging.getLogger(__name__)
def get_current_position(self, entity_id):
"""
overwrite it to provide your real position
:param entity_id:
"""
pass
def order(self, entity_id, current_price, current_timestamp, order_amount=0, order_pct=1.0, order_price=0,
order_type=ORDER_TYPE_LONG, order_money=0):
pass
# 开多,对于某些品种只能开多,比如中国股票
def buy(self, entity_id, current_price, current_timestamp, order_amount=0, order_pct=1.0, order_price=0,
order_money=0):
self.order(entity_id, current_price, current_timestamp, order_amount, order_pct, order_price,
order_type=ORDER_TYPE_LONG, order_money=order_money)
# 开空
def sell(self, entity_id, current_price, current_timestamp, order_amount=0, order_pct=1.0, order_price=0,
order_money=0):
self.order(entity_id, current_price, current_timestamp, order_amount, order_pct, order_price,
order_type=ORDER_TYPE_SHORT, order_money=order_money)
# 平多
def close_long(self, entity_id, current_price, current_timestamp, order_amount=0, order_pct=1.0, order_price=0,
order_money=0):
self.order(entity_id, current_price, current_timestamp, order_amount, order_pct, order_price,
order_type=ORDER_TYPE_CLOSE_LONG, order_money=order_money)
# 平空
def close_short(self, entity_id, current_price, current_timestamp, order_amount=0, order_pct=1.0, order_price=0,
order_money=0):
self.order(entity_id, current_price, current_timestamp, order_amount, order_pct, order_price,
order_type=ORDER_TYPE_CLOSE_SHORT, order_money=order_money)
@staticmethod
def trading_signal_to_order_type(trading_signal_type):
if trading_signal_type == TradingSignalType.open_long:
return ORDER_TYPE_LONG
if trading_signal_type == TradingSignalType.open_short:
return ORDER_TYPE_SHORT
if trading_signal_type == TradingSignalType.close_long:
return ORDER_TYPE_CLOSE_LONG
if trading_signal_type == TradingSignalType.close_short:
return ORDER_TYPE_CLOSE_SHORT
class SimAccountService(AccountService):
def __init__(self,
entity_schema: EntityMixin,
trader_name,
timestamp,
provider=None,
level=IntervalLevel.LEVEL_1DAY,
base_capital=1000000,
buy_cost=0.001,
sell_cost=0.001,
slippage=0.001):
self.entity_schema = entity_schema
self.base_capital = base_capital
self.buy_cost = buy_cost
self.sell_cost = sell_cost
self.slippage = slippage
self.trader_name = trader_name
self.session = get_db_session('zvt', data_schema=TraderInfo)
self.provider = provider
self.level = level
self.start_timestamp = timestamp
self.account: AccountStats = self.init_account()
def init_account(self) -> AccountStats:
trader_info = get_trader_info(session=self.session, trader_name=self.trader_name, return_type='domain',
limit=1)
if trader_info:
self.logger.warning("trader:{} has run before,old result would be deleted".format(self.trader_name))
self.session.query(TraderInfo).filter(TraderInfo.trader_name == self.trader_name).delete()
self.session.query(AccountStats).filter(AccountStats.trader_name == self.trader_name).delete()
self.session.query(Position).filter(Position.trader_name == self.trader_name).delete()
self.session.query(Order).filter(Order.trader_name == self.trader_name).delete()
self.session.commit()
return AccountStats(entity_id=f'trader_zvt_{self.trader_name}',
timestamp=self.start_timestamp,
trader_name=self.trader_name,
cash=self.base_capital,
all_value=self.base_capital,
value=0,
closing=False
)
def load_account(self) -> AccountStats:
records = AccountStats.query_data(filters=[AccountStats.trader_name == self.trader_name],
order=AccountStats.timestamp.desc(), limit=1, return_type='domain')
if not records:
return self.account
latest_record: AccountStats = records[0]
# create new orm object from latest record
account_dict = account_stats_schema.dump(latest_record)
del account_dict['id']
del account_dict['positions']
account = AccountStats()
fill_domain_from_dict(account, account_dict)
positions: List[Position] = []
for position_domain in latest_record.positions:
position_dict = position_schema.dump(position_domain)
self.logger.info('current position:{}'.format(position_dict))
del position_dict['id']
del position_dict['account_stats']
position = Position()
fill_domain_from_dict(position, position_dict)
positions.append(position)
account.positions = positions
return account
def on_trading_open(self, timestamp):
self.logger.info('on_trading_open:{}'.format(timestamp))
if is_same_date(timestamp, self.start_timestamp):
return
self.account = self.load_account()
self.logger.info('on_trading_open:{},current_account:{}'.format(timestamp, self.account))
def on_trading_error(self, timestamp, error):
pass
def on_trading_finish(self, timestamp):
pass
def on_trading_signals(self, trading_signals: List[TradingSignal]):
for trading_signal in trading_signals:
try:
self.on_trading_signal(trading_signal)
except Exception as e:
self.logger.exception(e)
self.on_trading_error(timestamp=trading_signal.happen_timestamp, error=e)
def on_trading_signal(self, trading_signal: TradingSignal):
entity_id = trading_signal.entity_id
happen_timestamp = trading_signal.happen_timestamp
order_type = AccountService.trading_signal_to_order_type(trading_signal.trading_signal_type)
trading_level = trading_signal.trading_level.value
if order_type:
try:
kdata = get_kdata(provider=self.provider, entity_id=entity_id, level=trading_level,
start_timestamp=happen_timestamp, end_timestamp=happen_timestamp,
limit=1)
except Exception as e:
self.logger.error(e)
raise WrongKdataError("could not get kdata")
if pd_is_not_null(kdata):
entity_type, _, _ = decode_entity_id(kdata['entity_id'][0])
the_price = kdata['close'][0]
if the_price:
self.order(entity_id=entity_id, current_price=the_price,
current_timestamp=happen_timestamp, order_pct=trading_signal.position_pct,
order_money=trading_signal.order_money,
order_type=order_type)
else:
self.logger.warning(
'ignore trading signal,wrong kdata,entity_id:{},timestamp:{},kdata:{}'.format(entity_id,
happen_timestamp,
kdata.to_dict(
orient='records')))
else:
self.logger.warning(
'ignore trading signal,could not get kdata,entity_id:{},timestamp:{}'.format(entity_id,
happen_timestamp))
def on_trading_close(self, timestamp):
self.logger.info('on_trading_close:{}'.format(timestamp))
self.account.value = 0
self.account.all_value = 0
for position in self.account.positions:
entity_type, _, _ = decode_entity_id(position.entity_id)
data_schema = get_kdata_schema(entity_type, level=IntervalLevel.LEVEL_1DAY)
kdata = get_kdata(provider=self.provider, level=IntervalLevel.LEVEL_1DAY, entity_id=position.entity_id,
order=data_schema.timestamp.desc(),
end_timestamp=timestamp, limit=1)
closing_price = kdata['close'][0]
position.available_long = position.long_amount
position.available_short = position.short_amount
if closing_price:
if (position.long_amount is not None) and position.long_amount > 0:
position.value = position.long_amount * closing_price
self.account.value += position.value
elif (position.short_amount is not None) and position.short_amount > 0:
position.value = 2 * (position.short_amount * position.average_short_price)
position.value -= position.short_amount * closing_price
self.account.value += position.value
else:
self.logger.warning(
'could not refresh close value for position:{},timestamp:{}'.format(position['entity_id'],
timestamp))
# remove the empty position
self.account.positions = [position for position in self.account.positions if
position.long_amount > 0 or position.short_amount > 0]
self.account.all_value = self.account.value + self.account.cash
self.account.closing = True
self.account.timestamp = to_pd_timestamp(timestamp)
self.logger.info('on_trading_close:{},latest_account:{}'.format(timestamp, self.account))
self.persist_account(timestamp)
def persist_account(self, timestamp):
"""
save the account to db,we do this after closing time every day
:param timestamp:
:type timestamp:
"""
the_id = '{}_{}'.format(self.trader_name, to_time_str(timestamp, TIME_FORMAT_ISO8601))
for position in self.account.positions:
position.id = '{}_{}_{}'.format(self.trader_name, position.entity_id,
to_time_str(timestamp, TIME_FORMAT_ISO8601))
position.timestamp = to_pd_timestamp(timestamp)
position.account_stats_id = the_id
self.account.id = the_id
self.logger.info('persist_account:{}'.format(account_stats_schema.dump(self.account)))
self.session.add(self.account)
self.session.commit()
def get_current_position(self, entity_id) -> Position:
"""
get current position to decide whether order could make
:param entity_id:
:type entity_id: str
:return:
:rtype: None
"""
for position in self.account.positions:
if position.entity_id == entity_id:
return position
return None
def update_position(self, current_position, order_amount, current_price, order_type, timestamp):
"""
:param timestamp:
:type timestamp:
:param current_position:
:type current_position: Position
:param order_amount:
:type order_amount:
:param current_price:
:type current_price:
:param order_type:
:type order_type:
"""
if order_type == ORDER_TYPE_LONG:
need_money = (order_amount * current_price) * (1 + self.slippage + self.buy_cost)
if self.account.cash < need_money:
raise NotEnoughMoneyError()
self.account.cash -= need_money
# 计算平均价
long_amount = current_position.long_amount + order_amount
current_position.average_long_price = (current_position.average_long_price * current_position.long_amount
+ current_price * order_amount) / long_amount
current_position.long_amount = long_amount
if current_position.trading_t == 0:
current_position.available_long += order_amount
elif order_type == ORDER_TYPE_SHORT:
need_money = (order_amount * current_price) * (1 + self.slippage + self.buy_cost)
if self.account.cash < need_money:
raise NotEnoughMoneyError()
self.account.cash -= need_money
short_amount = current_position.short_amount + order_amount
current_position.average_short_price = (current_position.average_short_price * current_position.short_amount
+ current_price * order_amount) / short_amount
current_position.short_amount = short_amount
if current_position.trading_t == 0:
current_position.available_short += order_amount
elif order_type == ORDER_TYPE_CLOSE_LONG:
self.account.cash += (order_amount * current_price * (1 - self.slippage - self.sell_cost))
current_position.available_long -= order_amount
current_position.long_amount -= order_amount
elif order_type == ORDER_TYPE_CLOSE_SHORT:
self.account.cash += 2 * (order_amount * current_position.average_short_price)
self.account.cash -= order_amount * current_price * (1 + self.slippage + self.sell_cost)
current_position.available_short -= order_amount
current_position.short_amount -= order_amount
# save the order info to db
order_id = '{}_{}_{}_{}'.format(self.trader_name, order_type, current_position.entity_id,
to_time_str(timestamp, TIME_FORMAT_ISO8601))
order = Order(id=order_id,
timestamp=to_pd_timestamp(timestamp),
trader_name=self.trader_name,
entity_id=current_position.entity_id,
order_price=current_price,
order_amount=order_amount,
order_type=order_type,
level=self.level.value,
status='success')
self.session.add(order)
self.session.commit()
def order(self, entity_id, current_price, current_timestamp, order_amount=0, order_pct=1.0, order_price=0,
order_type=ORDER_TYPE_LONG, order_money=0):
"""
下单
Parameters
----------
entity_id : str
交易标的id
current_price : float
当前价格
current_timestamp: timestamp
下单的时间
order_amount : int
数量
order_pct : float
使用可用现金(仓位)的百分比,0.0-1.0
order_price : float
用于限价交易
order_type : {ORDER_TYPE_LONG,ORDER_TYPE_SHORT,ORDER_TYPE_CLOSE_LONG,ORDER_TYPE_CLOSE_SHORT}
交易类型
Returns
"""
# 市价交易,就是买卖是"当时"并"一定"能成交的
# 简单起见,目前只支持这种方式
if order_price == 0:
current_position = self.get_current_position(entity_id=entity_id)
if not current_position:
trading_t = self.entity_schema.get_trading_t()
current_position = Position(trader_name=self.trader_name,
entity_id=entity_id,
long_amount=0,
available_long=0,
average_long_price=0,
short_amount=0,
available_short=0,
average_short_price=0,
profit=0,
value=0,
trading_t=trading_t
)
# add it to latest account
self.account.positions.append(current_position)
# 按钱交易
if order_money > 0:
# 开多
if order_type == ORDER_TYPE_LONG:
if current_position.short_amount > 0:
raise InvalidOrderError("close the short position before open long")
if order_money > self.account.cash:
raise NotEnoughMoneyError()
cost = current_price * (1 + self.slippage + self.buy_cost)
# 买的数量
order_amount = order_money // cost
if order_amount > 0:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
raise NotEnoughMoneyError()
# 开空
elif order_type == ORDER_TYPE_SHORT:
if current_position.long_amount > 0:
raise InvalidOrderError("close the long position before open short")
if order_money > self.account.cash:
raise NotEnoughMoneyError()
cost = current_price * (1 + self.slippage + self.buy_cost)
order_amount = order_money // cost
if order_amount > 0:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
raise NotEnoughMoneyError()
else:
raise InvalidOrderParamError('close long/short not support order_money')
# 按数量交易
elif order_amount > 0:
# 开多
if order_type == ORDER_TYPE_LONG:
if current_position.short_amount > 0:
raise InvalidOrderError("close the short position before open long")
self.update_position(current_position, order_amount, current_price, order_type, current_timestamp)
# 开空
elif order_type == ORDER_TYPE_SHORT:
if current_position.long_amount > 0:
raise InvalidOrderError("close the long position before open short")
self.update_position(current_position, order_amount, current_price, order_type, current_timestamp)
# 平多
elif order_type == ORDER_TYPE_CLOSE_LONG:
if current_position.available_long >= order_amount:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
raise NotEnoughPositionError()
# 平空
elif order_type == ORDER_TYPE_CLOSE_SHORT:
if current_position.available_short >= order_amount:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
raise Exception("not enough position")
# 按仓位比例交易
elif 0 < order_pct <= 1:
# 开多
if order_type == ORDER_TYPE_LONG:
if current_position.short_amount > 0:
raise InvalidOrderError("close the short position before open long")
cost = current_price * (1 + self.slippage + self.buy_cost)
want_pay = self.account.cash * order_pct
# 买的数量
order_amount = want_pay // cost
if order_amount > 0:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
raise NotEnoughMoneyError()
# 开空
elif order_type == ORDER_TYPE_SHORT:
if current_position.long_amount > 0:
raise InvalidOrderError("close the long position before open short")
cost = current_price * (1 + self.slippage + self.buy_cost)
want_pay = self.account.cash * order_pct
order_amount = want_pay // cost
if order_amount > 0:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
raise NotEnoughMoneyError()
# 平多
elif order_type == ORDER_TYPE_CLOSE_LONG:
if current_position.available_long > 0:
if order_pct == 1.0:
order_amount = current_position.available_long
else:
order_amount = math.floor(current_position.available_long * order_pct)
if order_amount != 0:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
self.logger.warning(
f'{entity_id} available_long:{current_position.available_long} order_pct:{order_pct} order_amount:{order_amount}')
else:
raise NotEnoughPositionError()
# 平空
elif order_type == ORDER_TYPE_CLOSE_SHORT:
if current_position.available_short > 0:
if order_pct == 1.0:
order_amount = current_position.available_short
else:
order_amount = math.floor(current_position.available_short * order_pct)
if order_amount != 0:
self.update_position(current_position, order_amount, current_price, order_type,
current_timestamp)
else:
self.logger.warning(
f'{entity_id} available_long:{current_position.available_long} order_pct:{order_pct} order_amount:{order_amount}')
else:
raise Exception("not enough position")
|
// Appel des variables d'environnement
require('dotenv').config();
// Appel des models
const models = require('../models');
/**
* Enregistre une nouvelle classe
* @param {*} req
* @param {*} res
*/
module.exports.createClasse = (req, res) => {
// Récupération des informations de la classe
var nom = req.body.nom;
var ecoleId = req.body.ecoleId;
// Vérifie la présence de la classe en base de données
models.Classe.findOne({
where: { nom: nom }
})
.then( ( classeFound ) => {
if ( !classeFound ) {
var newClasse = models.Classe.create({
nom: nom,
ecoleId: ecoleId
})
.then ( (newClasse) => {
return res.status(200).json({
success: true,
message: `Class ${newClasse.nom} correctly registered`
})
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Class can\'t be registered',
error: err
})
})
} else {
return res.status(409).json({
success: false,
message: 'Class already exist'
});
}
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Unable to verify class'
});
});
};
/**
* Retourne la liste des classes
* @param {*} req
* @param {*} res
*/
module.exports.getAllClasse = (req, res) => {
models.Classe.findAll()
.then( ( ClassesFound ) => {
if ( ClassesFound ) {
return res.status(201).json({
success: true,
totalClasss: ClassesFound.length,
class: ClassesFound
});
} else {
return res.status(409).json({
success: false,
message: 'No class found'
});
}
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Unable to find class'
});
});
};
/**
* Retourne une classe grace à l'Id
* @param {*} req
* @param {*} res
*/
module.exports.getClasse = (req, res) => {
models.Classe.findOne({
where: { id: req.params.id }
})
.then( ( classeFound ) => {
if ( classeFound ) {
return res.status(201).json({
success: true,
class: classeFound
});
} else {
return res.status(409).json({
success: false,
message: 'Class can\'t be found'
});
}
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Unable to find class'
});
});
};
/**
* Met à jour une classe grace à l'Id
* @param {*} req
* @param {*} res
*/
module.exports.updateClasse = (req, res) => {
models.Classe.findById( req.params.id )
.then( ( classeFound ) => {
if ( classeFound ) {
models.Classe.update(
{ nom: req.body.nom, },
{ where: { id: req.params.id } }
)
.then( (updatedClasse) => {
return res.status(200).json({
success: true,
message: 'Class updated successfully',
updatedClass: updatedClasse
})
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Unable to update class'
})
});
} else {
return res.status(409).json({
success: false,
message: 'Class can\'t be found'
});
}
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Unable to find class'
});
});
};
/**
* Supprime une classe grace à l'Id
* @param {*} req
* @param {*} res
*/
module.exports.deleteClasseById = (req, res) => {
models.Classe.findOne({
where: { id: req.params.id }
})
.then( ( classeFound ) => {
if ( classeFound ) {
models.Classe.destroy({
where : {id: req.params.id}
})
.then( (deletedClasse) => {
return res.status(200).json({
success: true,
message: 'Class deleted',
class: classeFound
});
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Unable to delete class'
});
});
} else {
return res.status(409).json({
success: false,
message: 'Class can\'t be found'
});
}
})
.catch( (err) => {
return res.status(500).json({
success: false,
message: 'Unable to find class'
});
});
};
|
from typing import Sequence
import torch
from torch.nn import functional as F
from pytorch_lightning.metrics.functional.reduction import reduce
def mse(
pred: torch.Tensor,
target: torch.Tensor,
reduction: str = 'elementwise_mean'
) -> torch.Tensor:
"""
Computes mean squared error
Args:
pred: estimated labels
target: ground truth labels
reduction: a method to reduce metric score over labels (default: takes the mean)
Available reduction methods:
- elementwise_mean: takes the mean
- none: pass array
- sum: add elements
Return:
Tensor with MSE
Example:
>>> x = torch.tensor([0., 1, 2, 3])
>>> y = torch.tensor([0., 1, 2, 2])
>>> mse(x, y)
tensor(0.2500)
"""
mse = F.mse_loss(pred, target, reduction='none')
mse = reduce(mse, reduction=reduction)
return mse
def rmse(
pred: torch.Tensor,
target: torch.Tensor,
reduction: str = 'elementwise_mean'
) -> torch.Tensor:
"""
Computes root mean squared error
Args:
pred: estimated labels
target: ground truth labels
reduction: a method to reduce metric score over labels (default: takes the mean)
Available reduction methods:
- elementwise_mean: takes the mean
- none: pass array
- sum: add elements
Return:
Tensor with RMSE
>>> x = torch.tensor([0., 1, 2, 3])
>>> y = torch.tensor([0., 1, 2, 2])
>>> rmse(x, y)
tensor(0.5000)
"""
rmse = torch.sqrt(mse(pred, target, reduction=reduction))
return rmse
def mae(
pred: torch.Tensor,
target: torch.Tensor,
reduction: str = 'elementwise_mean'
) -> torch.Tensor:
"""
Computes mean absolute error
Args:
pred: estimated labels
target: ground truth labels
reduction: a method to reduce metric score over labels (default: takes the mean)
Available reduction methods:
- elementwise_mean: takes the mean
- none: pass array
- sum: add elements
Return:
Tensor with MAE
Example:
>>> x = torch.tensor([0., 1, 2, 3])
>>> y = torch.tensor([0., 1, 2, 2])
>>> mae(x, y)
tensor(0.2500)
"""
mae = F.l1_loss(pred, target, reduction='none')
mae = reduce(mae, reduction=reduction)
return mae
def rmsle(
pred: torch.Tensor,
target: torch.Tensor,
reduction: str = 'elementwise_mean'
) -> torch.Tensor:
"""
Computes root mean squared log error
Args:
pred: estimated labels
target: ground truth labels
reduction: a method to reduce metric score over labels (default: takes the mean)
Available reduction methods:
- elementwise_mean: takes the mean
- none: pass array
- sum: add elements
Return:
Tensor with RMSLE
Example:
>>> x = torch.tensor([0., 1, 2, 3])
>>> y = torch.tensor([0., 1, 2, 2])
>>> rmsle(x, y)
tensor(0.0207)
"""
rmsle = mse(torch.log(pred + 1), torch.log(target + 1), reduction=reduction)
return rmsle
def psnr(
pred: torch.Tensor,
target: torch.Tensor,
data_range: float = None,
base: float = 10.0,
reduction: str = 'elementwise_mean'
) -> torch.Tensor:
"""
Computes the peak signal-to-noise ratio
Args:
pred: estimated signal
target: groun truth signal
data_range: the range of the data. If None, it is determined from the data (max - min)
base: a base of a logarithm to use (default: 10)
reduction: a method to reduce metric score over labels (default: takes the mean)
Available reduction methods:
- elementwise_mean: takes the mean
- none: pass array
- sum add elements
Return:
Tensor with PSNR score
Example:
>>> from pytorch_lightning.metrics.regression import PSNR
>>> pred = torch.tensor([[0.0, 1.0], [2.0, 3.0]])
>>> target = torch.tensor([[3.0, 2.0], [1.0, 0.0]])
>>> metric = PSNR()
>>> metric(pred, target)
tensor(2.5527)
"""
if data_range is None:
data_range = max(target.max() - target.min(), pred.max() - pred.min())
else:
data_range = torch.tensor(float(data_range))
mse_score = mse(pred.view(-1), target.view(-1), reduction=reduction)
psnr_base_e = 2 * torch.log(data_range) - torch.log(mse_score)
psnr = psnr_base_e * (10 / torch.log(torch.tensor(base)))
return psnr
def _gaussian_kernel(channel, kernel_size, sigma, device):
def gaussian(kernel_size, sigma, device):
gauss = torch.arange(
start=(1 - kernel_size) / 2, end=(1 + kernel_size) / 2, step=1, dtype=torch.float32, device=device
)
gauss = torch.exp(-gauss.pow(2) / (2 * pow(sigma, 2)))
return (gauss / gauss.sum()).unsqueeze(dim=0) # (1, kernel_size)
gaussian_kernel_x = gaussian(kernel_size[0], sigma[0], device)
gaussian_kernel_y = gaussian(kernel_size[1], sigma[1], device)
kernel = torch.matmul(gaussian_kernel_x.t(), gaussian_kernel_y) # (kernel_size, 1) * (1, kernel_size)
return kernel.expand(channel, 1, kernel_size[0], kernel_size[1])
def ssim(
pred: torch.Tensor,
target: torch.Tensor,
kernel_size: Sequence[int] = (11, 11),
sigma: Sequence[float] = (1.5, 1.5),
reduction: str = "elementwise_mean",
data_range: float = None,
k1: float = 0.01,
k2: float = 0.03
) -> torch.Tensor:
"""
Computes Structual Similarity Index Measure
Args:
pred: estimated image
target: ground truth image
kernel_size: size of the gaussian kernel (default: (11, 11))
sigma: Standard deviation of the gaussian kernel (default: (1.5, 1.5))
reduction: a method to reduce metric score over labels (default: takes the mean)
Available reduction methods:
- elementwise_mean: takes the mean
- none: pass away
- sum: add elements
data_range: Range of the image. If ``None``, it is determined from the image (max - min)
k1: Parameter of SSIM. Default: 0.01
k2: Parameter of SSIM. Default: 0.03
Return:
Tensor with SSIM score
Example:
>>> pred = torch.rand([16, 1, 16, 16])
>>> target = pred * 0.75
>>> ssim(pred, target)
tensor(0.9219)
"""
if pred.dtype != target.dtype:
raise TypeError(
"Expected `pred` and `target` to have the same data type."
f" Got pred: {pred.dtype} and target: {target.dtype}."
)
if pred.shape != target.shape:
raise ValueError(
"Expected `pred` and `target` to have the same shape."
f" Got pred: {pred.shape} and target: {target.shape}."
)
if len(pred.shape) != 4 or len(target.shape) != 4:
raise ValueError(
"Expected `pred` and `target` to have BxCxHxW shape."
f" Got pred: {pred.shape} and target: {target.shape}."
)
if len(kernel_size) != 2 or len(sigma) != 2:
raise ValueError(
"Expected `kernel_size` and `sigma` to have the length of two."
f" Got kernel_size: {len(kernel_size)} and sigma: {len(sigma)}."
)
if any(x % 2 == 0 or x <= 0 for x in kernel_size):
raise ValueError(f"Expected `kernel_size` to have odd positive number. Got {kernel_size}.")
if any(y <= 0 for y in sigma):
raise ValueError(f"Expected `sigma` to have positive number. Got {sigma}.")
if data_range is None:
data_range = max(pred.max() - pred.min(), target.max() - target.min())
C1 = pow(k1 * data_range, 2)
C2 = pow(k2 * data_range, 2)
device = pred.device
channel = pred.size(1)
kernel = _gaussian_kernel(channel, kernel_size, sigma, device)
# Concatenate
# pred for mu_pred
# target for mu_target
# pred * pred for sigma_pred
# target * target for sigma_target
# pred * target for sigma_pred_target
input_list = torch.cat([pred, target, pred * pred, target * target, pred * target]) # (5 * B, C, H, W)
outputs = F.conv2d(input_list, kernel, groups=channel)
output_list = [outputs[x * pred.size(0): (x + 1) * pred.size(0)] for x in range(len(outputs))]
mu_pred_sq = output_list[0].pow(2)
mu_target_sq = output_list[1].pow(2)
mu_pred_target = output_list[0] * output_list[1]
sigma_pred_sq = output_list[2] - mu_pred_sq
sigma_target_sq = output_list[3] - mu_target_sq
sigma_pred_target = output_list[4] - mu_pred_target
UPPER = 2 * sigma_pred_target + C2
LOWER = sigma_pred_sq + sigma_target_sq + C2
ssim_idx = ((2 * mu_pred_target + C1) * UPPER) / ((mu_pred_sq + mu_target_sq + C1) * LOWER)
return reduce(ssim_idx, reduction)
|
# functions for preprocessing
import numpy as np
def filter_genes(data, min_counts=0, min_cells=0,
min_counts_uniq=0, min_cells_uniq=0, min_MIF_uniq=0.001,
uniq_layers=['isoform1', 'isoform2'],
ambg_layers=['ambiguous'], copy=False):
"""Filter genes based on number of cells or counts.
Keep genes that have at least `min_counts` counts or are expressed in at
least `min_cells` cells at the total counts of uniquely counts.
Parameters
----------
data : :class:`~anndata.AnnData`, `np.ndarray`, `sp.spmatrix`
The (annotated) data matrix of shape `n_obs` × `n_vars`. Rows correspond
to cells and columns to genes.
min_counts : `int`, optional (default: 0)
Minimum number of counts required for a gene to pass filtering.
min_cells : `int`, optional (default: 0)
Minimum number of cells expressed required for a gene to pass filtering.
min_counts_uniq : `int`, optional (default: 0)
Minimum number of unique counts required for a gene to pass filtering.
min_cells_uniq : `int`, optional (default: 0)
Minimum number of cells with unique reads required for a gene to pass filtering.
uniq_layers : list, optional (default: ['isoform1', 'isoform 2'])
Layers to aggregate for unique counts
ambg_layers : list, optional (default: ['ambiguous'])
Layers to aggregate with unique layers for total counts
copy : `bool`, optional (default: `False`)
Determines whether a copy is returned.
Returns
-------
Filters the object and adds `n_counts` and `n_counts_uniq` to `adata.var`.
"""
adata = data.copy() if copy else data
unique_counts = np.zeros(adata.shape)
for _layer in uniq_layers:
unique_counts += adata.layers[_layer]
total_counts = unique_counts.copy()
for _layer in ambg_layers:
total_counts += adata.layers[_layer]
# filtering
gene_subset = np.ones(adata.n_vars, dtype=bool)
gene_subset &= np.array(total_counts.sum(0)).reshape(-1) >= min_counts
gene_subset &= np.array((total_counts > 0).sum(0)).reshape(-1) >= min_cells
gene_subset &= np.array(unique_counts.sum(0)).reshape(-1) >= min_counts_uniq
gene_subset &= np.array((unique_counts > 0).sum(0)).reshape(-1) >= min_cells_uniq
# limiting the isoform fractions
unique_counts1 = adata.layers[uniq_layers[0]]
unique_counts2 = adata.layers[uniq_layers[1]]
gene_subset &= (np.array(unique_counts1.sum(0)).reshape(-1) >=
min_MIF_uniq * np.array(unique_counts.sum(0)).reshape(-1))
gene_subset &= (np.array(unique_counts2.sum(0)).reshape(-1) >=
min_MIF_uniq * np.array(unique_counts.sum(0)).reshape(-1))
adata._inplace_subset_var(gene_subset)
adata.var['n_counts'] = np.array(total_counts.sum(0)).reshape(-1)[gene_subset]
adata.var['n_counts_uniq'] = np.array(unique_counts.sum(0)).reshape(-1)[gene_subset]
s = np.sum(~gene_subset)
if s > 0:
terms = []
if min_cells > 0:
terms.append('%d cells with any count' %(min_cells))
if min_counts > 0:
terms.append('%d total counts' %(min_counts))
if min_cells_uniq > 0:
terms.append('%d cells with unique counts' %(min_cells_uniq))
if min_counts_uniq > 0:
terms.append('%d unique counts' %(min_counts_uniq))
if min_MIF_uniq > 0:
terms.append('%.4f minor isoform frequency' %(min_MIF_uniq))
print('Filtered out %d genes with less than ' %(s) + " or ".join(terms))
return adata if copy else None
|
"use strict";
/*
//bare bone helloworld world with no URL route or method specification
import Koa from 'koa';
//let us import the types that we need
import {Context} from 'koa';
const app:Koa = new Koa(); //declare app type as Koa. Instantiate Koa.
const port:number = 3001;//port number for the http server to listen on
//catch request to any URL route and respond
app.use((ctx:Context) => {
ctx.body = 'Hello World!';
});
app.listen(port, () => console.log(`Example app listening on port ${port}!`)); //start the http server
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/*In this section, we will treat routing and error handling*/
const koa_1 = __importDefault(require("koa"));
exports.app = new koa_1.default(); //Instantiate the Koa object.
const port = 3001; //Set port number. We have used a port number different from that of express so as to run both simultaneously during development.
//import router from './router/router-end';
const router_1 = __importDefault(require("./router/router"));
//import staticServer from 'koa-static-server';
const koa_static_1 = __importDefault(require("koa-static"));
//import {STATIC_DIR} from './settings';
const connection_1 = __importDefault(require("./model/connection/connection"));
//We will start using app only if database connection is successful.
//To use the entities defined we only need from now on to getRepository() or even the base getConnection()
connection_1.default
.then((_connection) => {
//in Koa, error handler is the first in the middleware stack unlike the case of express where it is the last.
//It is characterized by a try{await next()}catch(error) statement
exports.app.use(async (ctx, next) => {
try {
await next();
}
catch (error) {
ctx.status = error.status || 500; //set error status to 500 if no error.status set in error object
ctx.body = `Problem with site: ${error.message}`;
ctx.app.emit('error', error, ctx); //Emit an event named 'error' so that you can do a more fine-grained handling
}
});
//Below is not mandatory but useful for more centralized error handling. This will be called whenever an event name 'error' is emitted.
exports.app.on('error', async (_err, _ctx) => {
/* Do some centralized error handling when there is an error event emitted
* E.g. log to an erro log file
*/
});
//Associate static directory with the app.
//app.use(staticServer({rootDir: STATIC_DIR, rootPath: '/static'})); //static path
exports.app.use(koa_static_1.default(__dirname + '/static'));
//Associate router with the app
exports.app.use(router_1.default.routes());
//start the server
exports.app.listen(port, () => console.log(`Example app listening on port ${port}!`));
})
.catch(console.error);
|
import argparse
import os
import numpy as np
from tqdm import tqdm
import torch
from utils.parallel import DataParallelModel, DataParallelCriterion
from apex import amp
from apex.parallel import DistributedDataParallel
from dataloaders import make_data_loader
from utils.loss import SegmentationLosses, SegmentationCELosses, SegmentationfocalLosses,FocalLoss,disc_loss
from utils.lr_scheduler import LR_Scheduler
from utils.saver import Saver
from utils.summaries import TensorboardSummary
from utils.metrics import Evaluator
from modeling.SCNN import SCNN
from scipy import misc
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
class Trainer(object):
def __init__(self, args):
self.args = args
# Define Saver
if args.distributed:
if args.local_rank ==0:
self.saver = Saver(args)
self.saver.save_experiment_config()
# Define Tensorboard Summary
self.summary = TensorboardSummary(self.saver.experiment_dir)
self.writer = self.summary.create_summary()
else:
self.saver = Saver(args)
self.saver.save_experiment_config()
# Define Tensorboard Summary
self.summary = TensorboardSummary(self.saver.experiment_dir)
self.writer = self.summary.create_summary()
# PATH = args.path
# Define Dataloader
kwargs = {'num_workers': args.workers, 'pin_memory': True}
self.train_loader, self.val_loader, self.test_loader, self.nclass = make_data_loader(args, **kwargs)
# self.val_loader, self.test_loader, self.nclass = make_data_loader(args, **kwargs)
# Define network
model = SCNN(nclass=self.nclass,backbone=args.backbone,output_stride=args.out_stride,cuda = args.cuda,extension=args.ext)
# Define Optimizer
# optimizer = torch.optim.SGD(model.parameters(),args.lr, momentum=args.momentum,
# weight_decay=args.weight_decay, nesterov=args.nesterov)
optimizer = torch.optim.Adam(model.parameters(), args.lr,weight_decay=args.weight_decay)
# model, optimizer = amp.initialize(model,optimizer,opt_level="O1")
# Define Criterion
weight = None
# criterion = SegmentationLosses(weight=weight, cuda=args.cuda).build_loss(mode=args.loss_type)
# self.criterion = SegmentationCELosses(weight=weight, cuda=args.cuda)
# self.criterion = SegmentationCELosses(weight=weight, cuda=args.cuda)
# self.criterion = FocalLoss(gamma=0, alpha=[0.2, 0.98], img_size=512*512)
self.criterion1 = FocalLoss(gamma=5, alpha=[0.2, 0.98], img_size=512 * 512)
self.criterion2 = disc_loss(delta_v=0.5, delta_d=3.0, param_var=1.0, param_dist=1.0,
param_reg=0.001, EMBEDDING_FEATS_DIMS=21,image_shape=[512,512])
self.model, self.optimizer = model, optimizer
# Define Evaluator
self.evaluator = Evaluator(self.nclass)
# Define lr scheduler
self.scheduler = LR_Scheduler(args.lr_scheduler, args.lr,
args.epochs, len(self.val_loader),local_rank=args.local_rank)
# Using cuda
if args.cuda:
self.model = self.model.cuda()
if args.distributed:
self.model = DistributedDataParallel(self.model)
# self.model = torch.nn.DataParallel(self.model, device_ids=self.args.gpu_ids)
# patch_replication_callback(self.model)
# Resuming checkpoint
self.best_pred = 0.0
if args.resume is not None:
filename = 'checkpoint.pth.tar'
args.resume = os.path.join(self.saver.experiment_dir, filename)
if not os.path.isfile(args.resume):
raise RuntimeError("=> no checkpoint found at '{}'" .format(args.resume))
checkpoint = torch.load(args.resume)
args.start_epoch = checkpoint['epoch']
# if args.cuda:
# self.model.module.load_state_dict(checkpoint['state_dict'])
# else:
self.model.load_state_dict(checkpoint['state_dict'])
# if not args.ft:
self.optimizer.load_state_dict(checkpoint['optimizer'])
self.best_pred = checkpoint['best_pred']
print("=> loaded checkpoint '{}' (epoch {})"
.format(args.resume, checkpoint['epoch']))
def training(self, epoch):
train_loss = 0.0
self.model.train()
tbar = tqdm(self.train_loader)
num_img_tr = len(self.train_loader)
max_instances = 1
for i, sample in enumerate(tbar):
# image, target = sample['image'], sample['label']
image, target, ins_target = sample['image'], sample['bin_label'], sample['label']
# _target = target.cpu().numpy()
# if np.max(_target) > max_instances:
# max_instances = np.max(_target)
# print(max_instances)
if self.args.cuda:
image, target = image.cuda(), target.cuda()
self.scheduler(self.optimizer, i, epoch, self.best_pred)
self.optimizer.zero_grad()
output = self.model(image)
# if i % 10==0:
# misc.imsave('/mfc/user/1623600/.temp6/train_{:s}_epoch:{}_i:{}.png'.format(str(self.args.distributed),epoch,i),np.transpose(image[0].cpu().numpy(),(1,2,0)))
# os.chmod('/mfc/user/1623600/.temp6/train_{:s}_epoch:{}_i:{}.png'.format(str(self.args.distributed),epoch,i),0o777)
# self.criterion = DataParallelCriterion(self.criterion)
loss1 = self.criterion1(output, target)
loss2 = self.criterion2(output, ins_target)
reg_lambda = 0.01
loss = loss1 + 10*loss2
# loss = loss1
output=output[1]
# loss.back
# with amp.scale_loss(loss, self.optimizer) as scaled_loss:
# scaled_loss.backward()
loss.backward()
self.optimizer.step()
train_loss += loss.item()
tbar.set_description('Train loss: %.3f' % (train_loss / (i + 1)))
if self.args.distributed:
if self.args.local_rank == 0:
self.writer.add_scalar('train/total_loss_iter', loss.item(), i + num_img_tr * epoch)
else:
self.writer.add_scalar('train/total_loss_iter', loss.item(), i + num_img_tr * epoch)
# Show 10 * 3 inference results each epoch
if i % (num_img_tr / 10) == 0:
global_step = i + num_img_tr * epoch
if self.args.distributed:
if self.args.local_rank == 0:
self.summary.visualize_image(self.writer, self.args.dataset, image, target, output, global_step)
else:
self.summary.visualize_image(self.writer, self.args.dataset, image, target, output, global_step)
if self.args.distributed:
if self.args.local_rank == 0:
self.writer.add_scalar('train/total_loss_epoch', train_loss, epoch)
else:
self.writer.add_scalar('train/total_loss_epoch', train_loss, epoch)
if self.args.local_rank == 0:
print('[Epoch: %d, numImages: %5d]' % (epoch, i * self.args.batch_size + image.data.shape[0]))
print('Loss: %.3f' % train_loss)
# if self.args.distributed:
# if self.args.local_rank == 0:
# if self.args.no_val:
# # save checkpoint every epoch
# is_best = False
# self.saver.save_checkpoint({
# 'epoch': epoch + 1,
# 'state_dict': self.model.module.state_dict(),
# 'optimizer': self.optimizer.state_dict(),
# 'best_pred': self.best_pred,
# }, is_best)
# else:
# if self.args.no_val:
# # save checkpoint every epoch
# is_best = False
# self.saver.save_checkpoint({
# 'epoch': epoch + 1,
# 'state_dict': self.model.module.state_dict(),
# 'optimizer': self.optimizer.state_dict(),
# 'best_pred': self.best_pred,
# }, is_best)
def validation(self, epoch):
self.model.eval()
self.evaluator.reset()
tbar = tqdm(self.val_loader, desc='\r')
test_loss = 0.0
for i, sample in enumerate(tbar):
# image, target = sample['image'], sample['label']
image, target = sample['image'], sample['bin_label']
a= target.numpy()
aa_max = np.max(a)
if self.args.cuda:
image, target = image.cuda(), target.cuda()
with torch.no_grad():
output = self.model(image)
loss = self.criterion1(output, target)
test_loss += loss.item()
instance_seg = output[0].data.cpu().numpy()
instance_seg = np.squeeze(instance_seg[0])
instance_seg = np.transpose(instance_seg, (1, 2, 0))
output = output[1]
pred = output.data.cpu().numpy()
target = target.cpu().numpy()
pred = np.argmax(pred, axis=1)
# Add batch sample into evaluator
self.evaluator.add_batch(target, pred)
if i % 30==0:
misc.imsave('/mfc/user/1623600/.temp6/{:s}_val_epoch:{}_i:{}.png'
.format(str(self.args.distributed),epoch,i),
np.transpose(image[0].cpu().numpy(),(1,2,0))+3*np.asarray(np.stack((pred[0],pred[0],pred[0]),axis=-1),dtype=np.uint8))
os.chmod('/mfc/user/1623600/.temp6/{:s}_val_epoch:{}_i:{}.png'.format(str(self.args.distributed),epoch,i),0o777)
temp_instance_seg = np.zeros_like(np.transpose(image[0].cpu().numpy(),(1,2,0)))
for j in range(21):
if j<7:
temp_instance_seg[:, :, 0] += instance_seg[:, :, j]
elif j<14:
temp_instance_seg[:, :, 1] += instance_seg[:, :, j]
else:
temp_instance_seg[:, :, 2] += instance_seg[:, :, j]
for k in range(3):
temp_instance_seg[:, :, k] = self.minmax_scale(temp_instance_seg[:, :, k])
instance_seg = np.array(temp_instance_seg, np.uint8)
misc.imsave('/mfc/user/1623600/.temp6/emb_{:s}_val_epoch:{}_i:{}.png'
.format(str(self.args.distributed), epoch, i),instance_seg[...,:3])
os.chmod(
'/mfc/user/1623600/.temp6/emb_{:s}_val_epoch:{}_i:{}.png'.format(str(self.args.distributed), epoch, i),
0o777)
if self.args.distributed:
if self.args.local_rank == 0:
# Fast test during the training
Acc = self.evaluator.Pixel_Accuracy()
Acc_class = self.evaluator.Pixel_Accuracy_Class()
mIoU = self.evaluator.Mean_Intersection_over_Union()
F0 = self.evaluator.F0()
self.writer.add_scalar('val/total_loss_epoch', test_loss, epoch)
self.writer.add_scalar('val/mIoU', mIoU, epoch)
self.writer.add_scalar('val/Acc', Acc, epoch)
self.writer.add_scalar('val/Acc_class', Acc_class, epoch)
if self.args.local_rank == 0:
print('Validation:')
print('[Epoch: %d, numImages: %5d]' % (epoch, i * self.args.batch_size + image.data.shape[0]))
print("Acc:{}, Acc_class:{}, mIoU:{}".format(Acc, Acc_class, mIoU))
print('Loss: %.3f' % test_loss)
new_pred = F0
if new_pred > self.best_pred:
is_best = True
self.best_pred = new_pred
self.saver.save_checkpoint({
'epoch': epoch + 1,
'state_dict': self.model.state_dict(),
'optimizer': self.optimizer.state_dict(),
'best_pred': self.best_pred,
}, is_best)
else:
# Fast test during the training
Acc = self.evaluator.Pixel_Accuracy()
Acc_class = self.evaluator.Pixel_Accuracy_Class()
mIoU = self.evaluator.Mean_Intersection_over_Union()
F0 = self.evaluator.F0()
self.writer.add_scalar('val/total_loss_epoch', test_loss, epoch)
self.writer.add_scalar('val/mIoU', mIoU, epoch)
self.writer.add_scalar('val/Acc', Acc, epoch)
self.writer.add_scalar('val/Acc_class', Acc_class, epoch)
if self.args.local_rank == 0:
print('Validation:')
print('[Epoch: %d, numImages: %5d]' % (epoch, i * self.args.batch_size + image.data.shape[0]))
print("Acc:{}, Acc_class:{}, mIoU:{}".format(Acc, Acc_class, mIoU))
print('Loss: %.3f' % test_loss)
new_pred = F0
if new_pred > self.best_pred:
is_best = True
self.best_pred = new_pred
self.saver.save_checkpoint({
'epoch': epoch + 1,
'state_dict': self.model.state_dict(),
'optimizer': self.optimizer.state_dict(),
'best_pred': self.best_pred,
}, is_best)
def minmax_scale(self,input_arr):
"""
:param input_arr:
:return:
"""
min_val = np.min(input_arr)
max_val = np.max(input_arr)
output_arr = (input_arr - min_val) * 255.0 / (max_val - min_val)
return output_arr
def main():
parser = argparse.ArgumentParser(description="PyTorch SCNN Training")
parser.add_argument('--distributed', type=bool, default=True,
help='backbone name (default: resnet)')
parser.add_argument("--local_rank", default=0, type=int)
parser.add_argument('--backbone', type=str, default='resnet',
choices=['resnet', 'drn', 'mobilenet'],
help='backbone name (default: resnet)')
# parser.add_argument('--path', type=str, default='/mfc/data/compressed/Cityscapes/download',
# help='path of cityscapes')
parser.add_argument('--path', type=str, default='/mfc/data/mobis/real/91_poc_ms',
help='path of LaneMobis')
parser.add_argument('--out-stride', type=int, default=16,
help='network output stride (default: 8)')
parser.add_argument('--dataset', type=str, default='LaneMobis',
help='dataset name (default: cityscapes)')
parser.add_argument('--workers', type=int, default=8,
metavar='N', help='dataloader threads')
parser.add_argument('--base-size', type=int, default=512,
help='base image size')
parser.add_argument('--crop-size', type=int, default=512,
help='crop image size')
parser.add_argument('--loss-type', type=str, default='ce',
choices=['ce', 'focal'],
help='loss func type (default: ce)')
# training hyper params
parser.add_argument('--epochs', type=int, default=250, metavar='N',
help='number of epochs to train (default: auto)')
parser.add_argument('--start_epoch', type=int, default=0,
metavar='N', help='start epochs (default:0)')
parser.add_argument('--batch-size', type=int, default=6,
metavar='N', help='input batch size for \
training (default: auto)')
parser.add_argument('--test-batch-size', type=int, default=1,
metavar='N', help='input batch size for \
testing (default: auto)')
parser.add_argument('--use-balanced-weights', action='store_true', default=False,
help='whether to use balanced weights (default: False)')
# optimizer params
parser.add_argument('--lr', type=float, default=0.001, metavar='LR',
help='learning rate (default: auto)')
parser.add_argument('--lr-scheduler', type=str, default='poly',
choices=['poly', 'step', 'cos'],
help='lr scheduler mode: (default: poly)')
parser.add_argument('--momentum', type=float, default=0.8,
metavar='M', help='momentum (default: 0.9)')
parser.add_argument('--weight-decay', type=float, default=1e-5,
metavar='M', help='w-decay (default: 4e-4)')
parser.add_argument('--nesterov', action='store_true', default=True,
help='whether use nesterov (default: False)')
# cuda, seed and logging
parser.add_argument('--no-cuda', action='store_true', default=
False, help='disables CUDA training')
parser.add_argument('--gpu-ids', type=str, default='0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15',
help='use which gpu to train, must be a \
comma-separated list of integers only (default=0,1)')
parser.add_argument('--seed', type=int, default=1, metavar='S',
help='random seed (default: 1)')
# checking point
parser.add_argument('--resume', type=str, default=None,
help='put the path to resuming file if needed')
parser.add_argument('--checkname', type=str, default=None,
help='set the checkpoint name')
# evaluation option
parser.add_argument('--eval-interval', type=int, default=1,
help='evaluation interval (default: 1)')
parser.add_argument('--no-val', action='store_true', default=False,
help='skip validation during training')
parser.add_argument('--ext', default='unet',
help='extension branch name (default: unet)')
args = parser.parse_args()
if args.distributed != True:
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
else:
pass
args.cuda = not args.no_cuda and torch.cuda.is_available()
if args.cuda:
try:
args.gpu_ids = [int(s) for s in args.gpu_ids.split(',')]
except ValueError:
raise ValueError('Argument --gpu_ids must be a comma-separated list of integers only')
# default settings for epochs, batch_size and lr
if args.epochs is None:
epoches = {
'cityscapes': 200,
}
args.epochs = epoches[args.dataset.lower()]
if args.batch_size is None:
args.batch_size = 4 * len(args.gpu_ids)
if args.test_batch_size is None:
args.test_batch_size = args.batch_size
if args.lr is None:
lrs = {
'cityscapes': 0.01,
}
args.lr = lrs[args.dataset.lower()] / (4 * len(args.gpu_ids)) * args.batch_size
if args.distributed:
# FOR DISTRIBUTED: Set the device according to local_rank.
torch.cuda.set_device(args.local_rank)
# FOR DISTRIBUTED: Initialize the backend. torch.distributed.launch will provide
# environment variables, and requires that you use init_method=`env://`.
torch.distributed.init_process_group(backend='nccl',
init_method='env://')
else:
args.batch_size = 2
args.test_batch_size = 2
if args.checkname is None:
args.checkname = 'SCNN-'+str(args.backbone)
print(args)
torch.manual_seed(args.seed)
trainer = Trainer(args)
if args.distributed and args.local_rank == 0:
print('Starting Epoch:', trainer.args.start_epoch)
print('Total Epoches:', trainer.args.epochs)
elif not args.distributed :
print('Starting Epoch:', trainer.args.start_epoch)
print('Total Epoches:', trainer.args.epochs)
for epoch in range(trainer.args.start_epoch, trainer.args.epochs):
trainer.training(epoch)
if not trainer.args.no_val and epoch % args.eval_interval == (args.eval_interval - 1):
trainer.validation(epoch)
trainer.writer.close()
if __name__ == "__main__":
main()
|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from aliyunsdkcore.request import RoaRequest
from aliyunsdksae.endpoint import endpoint_data
class UpdateNamespaceVpcRequest(RoaRequest):
def __init__(self):
RoaRequest.__init__(self, 'sae', '2019-05-06', 'UpdateNamespaceVpc')
self.set_uri_pattern('/pop/v1/sam/namespace/updateNamespaceVpc')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
def get_NamespaceId(self):
return self.get_query_params().get('NamespaceId')
def set_NamespaceId(self,NamespaceId):
self.add_query_param('NamespaceId',NamespaceId)
def get_VpcId(self):
return self.get_query_params().get('VpcId')
def set_VpcId(self,VpcId):
self.add_query_param('VpcId',VpcId)
|
module.exports = function toReadable (number) {
const units = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'];
const dozen = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'];
const dozens = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];
let newArr = [];
let arr = number.toString().split('');
let countNumber = arr.length;
for(let i = 0; i < countNumber; i++) {
if(arr.length === 3) {
newArr.push(units[arr[0]] + ' hundred');
arr.shift();
} else if (arr.length === 2) {
if (arr[0] === '1') {
newArr.push(dozen[arr[1]]);
break;
} else if (arr[0] === '0') {
arr.shift();
} else {
newArr.push(dozens[arr[0]]);
arr.shift();
}
} else if (arr.length === 1) {
if(arr[0] === '0' && countNumber > 1) {
newArr.push();
} else {
newArr.push(units[arr[0]]);
}
}
}
return newArr.join(' ').trim();
}
|
from django.core.management.base import BaseCommand
from django.conf import settings
import subprocess
import os
from datetime import datetime
from commercialoperator.utils.migration_utils import OrganisationReader, check_parks
import itertools
import logging
logger = logging.getLogger(__name__)
class Command(BaseCommand):
"""
Runs the initial deployment
"""
help = 'Run the initial deployment'
def handle(self, *args, **options):
#reader=OrganisationReader('commercialoperator/utils/csv/CommercialLicencesMigration_09Dec2019.csv')
#reader=OrganisationReader('commercialoperator/utils/csv/EClass_licences_02Dec2019.csv')
#reader=OrganisationReader('commercialoperator/utils/csv/CommercialLicencesMigration_07Jan2020_final.csv')
reader=OrganisationReader('commercialoperator/utils/csv/Commercial-RATIS-Migration-20200605.csv')
reader.add_users()
|
module.exports["react-jsx-parser"]=(()=>{var t={977:(t,e,i)=>{"use strict";const s=i(325),r=/^[\da-fA-F]+$/,a=/^\d+$/,n=new WeakMap;function o(t){t=t.Parser.acorn||t;let e=n.get(t);if(!e){const i=t.tokTypes,s=t.TokContext,r=t.TokenType,a=new s("<tag",!1),o=new s("</tag",!1),h=new s("<tag>...</tag>",!0,!0),p={tc_oTag:a,tc_cTag:o,tc_expr:h},c={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};c.jsxTagStart.updateContext=function(){this.context.push(h),this.context.push(a),this.exprAllowed=!1},c.jsxTagEnd.updateContext=function(t){let e=this.context.pop();e===a&&t===i.slash||e===o?(this.context.pop(),this.exprAllowed=this.curContext()===h):this.exprAllowed=!0},e={tokContexts:p,tokTypes:c},n.set(t,e)}return e}function h(t){return t?"JSXIdentifier"===t.type?t.name:"JSXNamespacedName"===t.type?t.namespace.name+":"+t.name.name:"JSXMemberExpression"===t.type?h(t.object)+"."+h(t.property):void 0:t}t.exports=function(t){return t=t||{},function(e){return function(t,e){const n=e.acorn||i(234),p=o(n),c=n.tokTypes,l=p.tokTypes,u=n.tokContexts,d=p.tokContexts.tc_oTag,f=p.tokContexts.tc_cTag,m=p.tokContexts.tc_expr,g=n.isNewLine,x=n.isIdentifierStart,y=n.isIdentifierChar;return class extends e{static get acornJsx(){return p}jsx_readToken(){let t="",e=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let i=this.input.charCodeAt(this.pos);switch(i){case 60:case 123:return this.pos===this.start?60===i&&this.exprAllowed?(++this.pos,this.finishToken(l.jsxTagStart)):this.getTokenFromCode(i):(t+=this.input.slice(e,this.pos),this.finishToken(l.jsxText,t));case 38:t+=this.input.slice(e,this.pos),t+=this.jsx_readEntity(),e=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===i?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:g(i)?(t+=this.input.slice(e,this.pos),t+=this.jsx_readNewLine(!0),e=this.pos):++this.pos}}}jsx_readNewLine(t){let e,i=this.input.charCodeAt(this.pos);return++this.pos,13===i&&10===this.input.charCodeAt(this.pos)?(++this.pos,e=t?"\n":"\r\n"):e=String.fromCharCode(i),this.options.locations&&(++this.curLine,this.lineStart=this.pos),e}jsx_readString(t){let e="",i=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let s=this.input.charCodeAt(this.pos);if(s===t)break;38===s?(e+=this.input.slice(i,this.pos),e+=this.jsx_readEntity(),i=this.pos):g(s)?(e+=this.input.slice(i,this.pos),e+=this.jsx_readNewLine(!1),i=this.pos):++this.pos}return e+=this.input.slice(i,this.pos++),this.finishToken(c.string,e)}jsx_readEntity(){let t,e="",i=0,n=this.input[this.pos];"&"!==n&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&i++<10;){if(n=this.input[this.pos++],";"===n){"#"===e[0]?"x"===e[1]?(e=e.substr(2),r.test(e)&&(t=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),a.test(e)&&(t=String.fromCharCode(parseInt(e,10)))):t=s[e];break}e+=n}return t||(this.pos=o,"&")}jsx_readWord(){let t,e=this.pos;do{t=this.input.charCodeAt(++this.pos)}while(y(t)||45===t);return this.finishToken(l.jsxName,this.input.slice(e,this.pos))}jsx_parseIdentifier(){let t=this.startNode();return this.type===l.jsxName?t.name=this.value:this.type.keyword?t.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsx_parseNamespacedName(){let e=this.start,i=this.startLoc,s=this.jsx_parseIdentifier();if(!t.allowNamespaces||!this.eat(c.colon))return s;var r=this.startNodeAt(e,i);return r.namespace=s,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===l.jsxTagEnd)return"";let e=this.start,i=this.startLoc,s=this.jsx_parseNamespacedName();for(this.type!==c.dot||"JSXNamespacedName"!==s.type||t.allowNamespacedObjects||this.unexpected();this.eat(c.dot);){let t=this.startNodeAt(e,i);t.object=s,t.property=this.jsx_parseIdentifier(),s=this.finishNode(t,"JSXMemberExpression")}return s}jsx_parseAttributeValue(){switch(this.type){case c.braceL:let t=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===t.expression.type&&this.raise(t.start,"JSX attributes must only be assigned a non-empty expression"),t;case l.jsxTagStart:case c.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let t=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let t=this.startNode();return this.next(),t.expression=this.type===c.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(c.braceR),this.finishNode(t,"JSXExpressionContainer")}jsx_parseAttribute(){let t=this.startNode();return this.eat(c.braceL)?(this.expect(c.ellipsis),t.argument=this.parseMaybeAssign(),this.expect(c.braceR),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsx_parseNamespacedName(),t.value=this.eat(c.eq)?this.jsx_parseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsx_parseOpeningElementAt(e,i){let s=this.startNodeAt(e,i);s.attributes=[];let r=this.jsx_parseElementName();for(r&&(s.name=r);this.type!==c.slash&&this.type!==l.jsxTagEnd;)s.attributes.push(this.jsx_parseAttribute());s.selfClosing=this.eat(c.slash),this.expect(l.jsxTagEnd);const a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];return t.autoCloseVoidElements&&r&&a.includes(r.name)&&(s.selfClosing=!0),this.finishNode(s,r?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(t,e){let i=this.startNodeAt(t,e),s=this.jsx_parseElementName();return s&&(i.name=s),this.expect(l.jsxTagEnd),this.finishNode(i,s?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(t,e){let i=this.startNodeAt(t,e),s=[],r=this.jsx_parseOpeningElementAt(t,e),a=null;if(!r.selfClosing){t:for(;;)switch(this.type){case l.jsxTagStart:if(t=this.start,e=this.startLoc,this.next(),this.eat(c.slash)){a=this.jsx_parseClosingElementAt(t,e);break t}s.push(this.jsx_parseElementAt(t,e));break;case l.jsxText:s.push(this.parseExprAtom());break;case c.braceL:s.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}h(a.name)!==h(r.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+h(r.name)+">")}let n=r.name?"Element":"Fragment";return i["opening"+n]=r,i["closing"+n]=a,i.children=s,this.type===c.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(i,"JSX"+n)}jsx_parseText(){let t=this.parseLiteral(this.value);return t.type="JSXText",t}jsx_parseElement(){let t=this.start,e=this.startLoc;return this.next(),this.jsx_parseElementAt(t,e)}parseExprAtom(t){return this.type===l.jsxText?this.jsx_parseText():this.type===l.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(t)}readToken(t){let e=this.curContext();if(e===m)return this.jsx_readToken();if(e===d||e===f){if(x(t))return this.jsx_readWord();if(62==t)return++this.pos,this.finishToken(l.jsxTagEnd);if((34===t||39===t)&&e==d)return this.jsx_readString(t)}return 60===t&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(l.jsxTagStart)):super.readToken(t)}updateContext(t){if(this.type==c.braceL){var e=this.curContext();e==d?this.context.push(u.b_expr):e==m?this.context.push(u.b_tmpl):super.updateContext(t),this.exprAllowed=!0}else{if(this.type!==c.slash||t!==l.jsxTagStart)return super.updateContext(t);this.context.length-=2,this.context.push(f),this.exprAllowed=!1}}}}({allowNamespaces:!1!==t.allowNamespaces,allowNamespacedObjects:!!t.allowNamespacedObjects,autoCloseVoidElements:!!t.autoCloseVoidElements},e)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return o(i(234)).tokTypes},configurable:!0,enumerable:!0})},325:t=>{t.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},234:function(t,e){!function(t){"use strict";var e={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:i,"5module":i+" export import",6:i+" const class extends export import super"},r=/^in(stanceof)?$/,a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",o=new RegExp("["+a+"]"),h=new RegExp("["+a+n+"]");a=n=null;var p=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],c=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function l(t,e){for(var i=65536,s=0;s<e.length;s+=2){if((i+=e[s])>t)return!1;if((i+=e[s+1])>=t)return!0}}function u(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&o.test(String.fromCharCode(t)):!1!==e&&l(t,p)))}function d(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&h.test(String.fromCharCode(t)):!1!==e&&(l(t,p)||l(t,c)))))}var f=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function m(t,e){return new f(t,{beforeExpr:!0,binop:e})}var g={beforeExpr:!0},x={startsExpr:!0},y={};function v(t,e){return void 0===e&&(e={}),e.keyword=t,y[t]=new f(t,e)}var b={num:new f("num",x),regexp:new f("regexp",x),string:new f("string",x),name:new f("name",x),eof:new f("eof"),bracketL:new f("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:!0,startsExpr:!0}),braceR:new f("}"),parenL:new f("(",{beforeExpr:!0,startsExpr:!0}),parenR:new f(")"),comma:new f(",",g),semi:new f(";",g),colon:new f(":",g),dot:new f("."),question:new f("?",g),questionDot:new f("?."),arrow:new f("=>",g),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",g),backQuote:new f("`",x),dollarBraceL:new f("${",{beforeExpr:!0,startsExpr:!0}),eq:new f("=",{beforeExpr:!0,isAssign:!0}),assign:new f("_=",{beforeExpr:!0,isAssign:!0}),incDec:new f("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new f("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),plusMin:new f("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new f("**",{beforeExpr:!0}),coalesce:m("??",1),_break:v("break"),_case:v("case",g),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",g),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",g),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",x),_if:v("if"),_return:v("return",g),_switch:v("switch"),_throw:v("throw",g),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",x),_super:v("super",x),_class:v("class",x),_extends:v("extends",g),_export:v("export"),_import:v("import",x),_null:v("null",x),_true:v("true",x),_false:v("false",x),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_=/\r\n?|\n|\u2028|\u2029/,k=new RegExp(_.source,"g");function S(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var w=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,E=Object.prototype,A=E.hasOwnProperty,I=E.toString;function P(t,e){return A.call(t,e)}var T=Array.isArray||function(t){return"[object Array]"===I.call(t)};function N(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var L=function(t,e){this.line=t,this.column=e};L.prototype.offset=function(t){return new L(this.line,this.column+t)};var V=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function O(t,e){for(var i=1,s=0;;){k.lastIndex=s;var r=k.exec(t);if(!(r&&r.index<e))return new L(i,e-s);++i,s=r.index+r[0].length}}var R={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},M=!1;function B(t){var e={};for(var i in R)e[i]=t&&P(t,i)?t[i]:R[i];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!M&&"object"==typeof console&&console.warn&&(M=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),T(e.onToken)){var s=e.onToken;e.onToken=function(t){return s.push(t)}}return T(e.onComment)&&(e.onComment=D(e,e.onComment)),e}function D(t,e){return function(i,s,r,a,n,o){var h={type:i?"Block":"Line",value:s,start:r,end:a};t.locations&&(h.loc=new V(this,n,o)),t.ranges&&(h.range=[r,a]),e.push(h)}}var j=1,U=2,F=j|U,q=4,G=8,H=16,W=32,z=64,K=128;function X(t,e){return U|(t?q:0)|(e?G:0)}var Q=0,J=1,Y=2,Z=3,$=4,tt=5,et=function(t,i,r){this.options=t=B(t),this.sourceFile=t.sourceFile,this.keywords=N(s[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var a="";!0!==t.allowReserved&&(a=e[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(a+=" await")),this.reservedWords=N(a);var n=(a?a+" ":"")+e.strict;this.reservedWordsStrict=N(n),this.reservedWordsStrictBind=N(n+" "+e.strictBind),this.input=String(i),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(j),this.regexpState=null},it={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},inNonArrowFunction:{configurable:!0}};et.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},it.inFunction.get=function(){return(this.currentVarScope().flags&U)>0},it.inGenerator.get=function(){return(this.currentVarScope().flags&G)>0},it.inAsync.get=function(){return(this.currentVarScope().flags&q)>0},it.allowSuper.get=function(){return(this.currentThisScope().flags&z)>0},it.allowDirectSuper.get=function(){return(this.currentThisScope().flags&K)>0},it.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},it.inNonArrowFunction.get=function(){return(this.currentThisScope().flags&U)>0},et.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},et.parse=function(t,e){return new this(e,t).parse()},et.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},et.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(et.prototype,it);var st=et.prototype,rt=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function at(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}st.strictDirective=function(t){for(;;){C.lastIndex=t,t+=C.exec(this.input)[0].length;var e=rt.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){C.lastIndex=t+e[0].length;var i=C.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||_.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,C.lastIndex=t,t+=C.exec(this.input)[0].length,";"===this.input[t]&&t++}},st.eat=function(t){return this.type===t&&(this.next(),!0)},st.isContextual=function(t){return this.type===b.name&&this.value===t&&!this.containsEsc},st.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},st.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},st.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||_.test(this.input.slice(this.lastTokEnd,this.start))},st.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},st.semicolon=function(){this.eat(b.semi)||this.insertSemicolon()||this.unexpected()},st.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},st.expect=function(t){this.eat(t)||this.unexpected()},st.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},st.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,"Parenthesized pattern")}},st.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},st.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},st.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var nt=et.prototype;nt.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==b.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var a=r[s];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var ot={kind:"loop"},ht={kind:"switch"};nt.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;C.lastIndex=this.pos;var e=C.exec(this.input),i=this.pos+e[0].length,s=this.input.charCodeAt(i);if(91===s)return!0;if(t)return!1;if(123===s)return!0;if(u(s,!0)){for(var a=i+1;d(this.input.charCodeAt(a),!0);)++a;var n=this.input.slice(i,a);if(!r.test(n))return!0}return!1},nt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;C.lastIndex=this.pos;var t=C.exec(this.input),e=this.pos+t[0].length;return!(_.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&d(this.input.charAt(e+8)))},nt.parseStatement=function(t,e,i){var s,r=this.type,a=this.startNode();switch(this.isLet(t)&&(r=b._var,s="let"),r){case b._break:case b._continue:return this.parseBreakContinueStatement(a,r.keyword);case b._debugger:return this.parseDebuggerStatement(a);case b._do:return this.parseDoStatement(a);case b._for:return this.parseForStatement(a);case b._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!t);case b._class:return t&&this.unexpected(),this.parseClass(a,!0);case b._if:return this.parseIfStatement(a);case b._return:return this.parseReturnStatement(a);case b._switch:return this.parseSwitchStatement(a);case b._throw:return this.parseThrowStatement(a);case b._try:return this.parseTryStatement(a);case b._const:case b._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(a,s);case b._while:return this.parseWhileStatement(a);case b._with:return this.parseWithStatement(a);case b.braceL:return this.parseBlock(!0,a);case b.semi:return this.parseEmptyStatement(a);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){C.lastIndex=this.pos;var n=C.exec(this.input),o=this.pos+n[0].length,h=this.input.charCodeAt(o);if(40===h||46===h)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===b._import?this.parseImport(a):this.parseExport(a,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!t);var p=this.value,c=this.parseExpression();return r===b.name&&"Identifier"===c.type&&this.eat(b.colon)?this.parseLabeledStatement(a,p,c,t):this.parseExpressionStatement(a,c)}},nt.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(b.semi)||this.insertSemicolon()?t.label=null:this.type!==b.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(t.label&&i)break}}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},nt.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},nt.parseDoStatement=function(t){return this.next(),this.labels.push(ot),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(b._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},nt.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ot),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===b._var||this.type===b._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length?(this.options.ecmaVersion>=9&&(this.type===b._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,s)):(e>-1&&this.unexpected(e),this.parseFor(t,s))}var a=new at,n=this.parseExpression(!0,a);return this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===b._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(n,!1,a),this.checkLValPattern(n),this.parseForIn(t,n)):(this.checkExpressionErrors(a,!0),e>-1&&this.unexpected(e),this.parseFor(t,n))},nt.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,ct|(i?0:lt),!1,e)},nt.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(b._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},nt.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(b.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},nt.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(b.braceL),this.labels.push(ht),this.enterScope(0);for(var i=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var s=this.type===b._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(b.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},nt.parseThrowStatement=function(t){return this.next(),_.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var pt=[];nt.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===b._catch){var e=this.startNode();if(this.next(),this.eat(b.parenL)){e.param=this.parseBindingAtom();var i="Identifier"===e.param.type;this.enterScope(i?W:0),this.checkLValPattern(e.param,i?$:Y),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(b._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},nt.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},nt.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ot),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},nt.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},nt.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},nt.parseLabeledStatement=function(t,e,i,s){for(var r=0,a=this.labels;r<a.length;r+=1)a[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");for(var n=this.type.isLoop?"loop":this.type===b._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var h=this.labels[o];if(h.statementStart!==t.start)break;h.statementStart=this.start,h.kind=n}return this.labels.push({name:e,kind:n,statementStart:this.start}),t.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},nt.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},nt.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(b.braceL),t&&this.enterScope(0);this.type!==b.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},nt.parseFor=function(t,e){return t.init=e,this.expect(b.semi),t.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),t.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},nt.parseForIn=function(t,e){var i=this.type===b._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},nt.parseVar=function(t,e,i){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(b.eq)?s.init=this.parseMaybeAssign(e):"const"!==i||this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===s.id.type||e&&(this.type===b._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(b.comma))break}return t},nt.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?J:Y,!1)};var ct=1,lt=2,ut=4;nt.parseFunction=function(t,e,i,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===b.star&&e<&&this.unexpected(),t.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&ct&&(t.id=e&ut&&this.type!==b.name?null:this.parseIdent(),!t.id||e<||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?J:Y:Z));var r=this.yieldPos,a=this.awaitPos,n=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(X(t.async,t.generator)),e&ct||(t.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=n,this.finishNode(t,e&ct?"FunctionDeclaration":"FunctionExpression")},nt.parseFunctionParams=function(t){this.expect(b.parenL),t.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},nt.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.startNode(),r=!1;for(s.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind&&(r&&this.raise(a.start,"Duplicate constructor in the same class"),r=!0))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},nt.parseClassElement=function(t){var e=this;if(this.eat(b.semi))return null;var i=this.startNode(),s=function(t,s){void 0===s&&(s=!1);var r=e.start,a=e.startLoc;return!(!e.eatContextual(t)||(e.type===b.parenL||s&&e.canInsertSemicolon())&&(i.key&&e.unexpected(),i.computed=!1,i.key=e.startNodeAt(r,a),i.key.name=t,e.finishNode(i.key,"Identifier"),1))};i.kind="method",i.static=s("static");var r=this.eat(b.star),a=!1;r||(this.options.ecmaVersion>=8&&s("async",!0)?(a=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star)):s("get")?i.kind="get":s("set")&&(i.kind="set")),i.key||this.parsePropertyName(i);var n=i.key,o=!1;return i.computed||i.static||!("Identifier"===n.type&&"constructor"===n.name||"Literal"===n.type&&"constructor"===n.value)?i.static&&"Identifier"===n.type&&"prototype"===n.name&&this.raise(n.start,"Classes may not have a static property named prototype"):("method"!==i.kind&&this.raise(n.start,"Constructor can't have get/set modifier"),r&&this.raise(n.start,"Constructor can't be a generator"),a&&this.raise(n.start,"Constructor can't be an async method"),i.kind="constructor",o=t),this.parseClassMethod(i,r,a,o),"get"===i.kind&&0!==i.value.params.length&&this.raiseRecoverable(i.value.start,"getter should have no params"),"set"===i.kind&&1!==i.value.params.length&&this.raiseRecoverable(i.value.start,"setter should have exactly one param"),"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params"),i},nt.parseClassMethod=function(t,e,i,s){return t.value=this.parseMethod(e,i,s),this.finishNode(t,"MethodDefinition")},nt.parseClassId=function(t,e){this.type===b.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,Y,!1)):(!0===e&&this.unexpected(),t.id=null)},nt.parseClassSuper=function(t){t.superClass=this.eat(b._extends)?this.parseExprSubscripts():null},nt.parseExport=function(t,e){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==b.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(b._default)){var i;if(this.checkExport(e,"default",this.lastTokStart),this.type===b._function||(i=this.isAsyncFunction())){var s=this.startNode();this.next(),i&&this.next(),t.declaration=this.parseFunction(s,ct|ut,!1,i)}else if(this.type===b._class){var r=this.startNode();t.declaration=this.parseClass(r,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==b.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var a=0,n=t.specifiers;a<n.length;a+=1){var o=n[a];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},nt.checkExport=function(t,e,i){t&&(P(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},nt.checkPatternExport=function(t,e){var i=e.type;if("Identifier"===i)this.checkExport(t,e.name,e.start);else if("ObjectPattern"===i)for(var s=0,r=e.properties;s<r.length;s+=1){var a=r[s];this.checkPatternExport(t,a)}else if("ArrayPattern"===i)for(var n=0,o=e.elements;n<o.length;n+=1){var h=o[n];h&&this.checkPatternExport(t,h)}else"Property"===i?this.checkPatternExport(t,e.value):"AssignmentPattern"===i?this.checkPatternExport(t,e.left):"RestElement"===i?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===i&&this.checkPatternExport(t,e.expression)},nt.checkVariableExport=function(t,e){if(t)for(var i=0,s=e;i<s.length;i+=1){var r=s[i];this.checkPatternExport(t,r.id)}},nt.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},nt.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(i)i=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var s=this.startNode();s.local=this.parseIdent(!0),s.exported=this.eatContextual("as")?this.parseIdent(!0):s.local,this.checkExport(t,s.exported.name,s.exported.start),e.push(this.finishNode(s,"ExportSpecifier"))}return e},nt.parseImport=function(t){return this.next(),this.type===b.string?(t.specifiers=pt,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},nt.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===b.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLValSimple(i.local,Y),t.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(b.comma))return t}if(this.type===b.star){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,Y),t.push(this.finishNode(s,"ImportNamespaceSpecifier")),t}for(this.expect(b.braceL);!this.eat(b.braceR);){if(e)e=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.imported=this.parseIdent(!0),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLValSimple(r.local,Y),t.push(this.finishNode(r,"ImportSpecifier"))}return t},nt.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},nt.isDirectiveCandidate=function(t){return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var dt=et.prototype;dt.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var a=r[s];this.toAssignable(a,e),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},dt.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var a=t[i-1];6===this.options.ecmaVersion&&e&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return t},dt.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},dt.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==b.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},dt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case b.braceL:return this.parseObj(!0)}return this.parseIdent()},dt.parseBindingList=function(t,e,i){for(var s=[],r=!0;!this.eat(t);)if(r?r=!1:this.expect(b.comma),e&&this.type===b.comma)s.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===b.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}var n=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(n),s.push(n)}return s},dt.parseBindingListItem=function(t){return t},dt.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},dt.checkLValSimple=function(t,e,i){void 0===e&&(e=Q);var s=e!==Q;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(e===Y&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(P(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==tt&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},dt.checkLValPattern=function(t,e,i){switch(void 0===e&&(e=Q),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,e,i)}break;case"ArrayPattern":for(var n=0,o=t.elements;n<o.length;n+=1){var h=o[n];h&&this.checkLValInnerPattern(h,e,i)}break;default:this.checkLValSimple(t,e,i)}},dt.checkLValInnerPattern=function(t,e,i){switch(void 0===e&&(e=Q),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var ft=et.prototype;ft.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var a=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===a&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var n=e[s="$"+s];n?("init"===a?this.strict&&n.init||n.get||n.set:n.init||n[a])&&this.raiseRecoverable(r.start,"Redefinition of property"):n=e[s]={init:!1,get:!1,set:!1},n[a]=!0}}},ft.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===b.comma){var a=this.startNodeAt(i,s);for(a.expressions=[r];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(a,"SequenceExpression")}return r},ft.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,a=-1;e?(r=e.parenthesizedAssign,a=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new at,s=!0);var n=this.start,o=this.startLoc;this.type!==b.parenL&&this.type!==b.name||(this.potentialArrowAt=this.start);var h=this.parseMaybeConditional(t,e);if(i&&(h=i.call(this,h,n,o)),this.type.isAssign){var p=this.startNodeAt(n,o);return p.operator=this.value,this.type===b.eq&&(h=this.toAssignable(h,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=h.start&&(e.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(h):this.checkLValSimple(h),p.left=h,this.next(),p.right=this.parseMaybeAssign(t),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),a>-1&&(e.trailingComma=a),h},ft.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(b.question)){var a=this.startNodeAt(i,s);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(t),this.finishNode(a,"ConditionalExpression")}return r},ft.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,t)},ft.parseExprOp=function(t,e,i,s,r){var a=this.type.binop;if(null!=a&&(!r||this.type!==b._in)&&a>s){var n=this.type===b.logicalOR||this.type===b.logicalAND,o=this.type===b.coalesce;o&&(a=b.logicalAND.binop);var h=this.value;this.next();var p=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),p,c,a,r),u=this.buildBinary(e,i,t,l,h,n||o);return(n&&this.type===b.coalesce||o&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,e,i,s,r)}return t},ft.buildBinary=function(t,e,i,s,r,a){var n=this.startNodeAt(t,e);return n.left=i,n.operator=r,n.right=s,this.finishNode(n,a?"LogicalExpression":"BinaryExpression")},ft.parseMaybeUnary=function(t,e){var i,s=this.start,r=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.type.prefix){var a=this.startNode(),n=this.type===b.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),n?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):e=!0,i=this.finishNode(a,n?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(s,r);o.operator=this.value,o.prefix=!1,o.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(o,"UpdateExpression")}}return!e&&this.eat(b.starstar)?this.buildBinary(s,r,i,this.parseMaybeUnary(null,!1),"**",!1):i},ft.parseExprSubscripts=function(t){var e=this.start,i=this.startLoc,s=this.parseExprAtom(t);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var r=this.parseSubscripts(s,e,i);return t&&"MemberExpression"===r.type&&(t.parenthesizedAssign>=r.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=r.start&&(t.parenthesizedBind=-1)),r},ft.parseSubscripts=function(t,e,i,s){for(var r=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&this.potentialArrowAt===t.start,a=!1;;){var n=this.parseSubscript(t,e,i,s,r,a);if(n.optional&&(a=!0),n===t||"ArrowFunctionExpression"===n.type){if(a){var o=this.startNodeAt(e,i);o.expression=n,n=this.finishNode(o,"ChainExpression")}return n}t=n}},ft.parseSubscript=function(t,e,i,s,r,a){var n=this.options.ecmaVersion>=11,o=n&&this.eat(b.questionDot);s&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(b.bracketL);if(h||o&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var p=this.startNodeAt(e,i);p.object=t,p.property=h?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),p.computed=!!h,h&&this.expect(b.bracketR),n&&(p.optional=o),t=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(b.parenL)){var c=new at,l=this.yieldPos,u=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,c);if(r&&!o&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(c,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=l,this.awaitPos=u,this.awaitIdentPos=d,this.parseArrowExpression(this.startNodeAt(e,i),f,!0);this.checkExpressionErrors(c,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=u||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var m=this.startNodeAt(e,i);m.callee=t,m.arguments=f,n&&(m.optional=o),t=this.finishNode(m,"CallExpression")}else if(this.type===b.backQuote){(o||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(e,i);g.tag=t,g.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(g,"TaggedTemplateExpression")}return t},ft.parseExprAtom=function(t){this.type===b.slash&&this.readRegexp();var e,i=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type!==b.parenL||this.allowDirectSuper||this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(e,"Super");case b._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case b.name:var s=this.start,r=this.startLoc,a=this.containsEsc,n=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===n.name&&!this.canInsertSemicolon()&&this.eat(b._function))return this.parseFunction(this.startNodeAt(s,r),0,!1,!0);if(i&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(s,r),[n],!1);if(this.options.ecmaVersion>=8&&"async"===n.name&&this.type===b.name&&!a)return n=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(b.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,r),[n],!0)}return n;case b.regexp:var o=this.value;return(e=this.parseLiteral(o.value)).regex={pattern:o.pattern,flags:o.flags},e;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return(e=this.startNode()).value=this.type===b._null?null:this.type===b._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case b.parenL:var h=this.start,p=this.parseParenAndDistinguishExpression(i);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(t.parenthesizedAssign=h),t.parenthesizedBind<0&&(t.parenthesizedBind=h)),p;case b.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(b.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case b.braceL:return this.parseObj(!1,t);case b._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},ft.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(t);case b.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}},ft.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var e=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},ft.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},ft.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},ft.parseParenExpression=function(){this.expect(b.parenL);var t=this.parseExpression();return this.expect(b.parenR),t},ft.parseParenAndDistinguishExpression=function(t){var e,i=this.start,s=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,n=this.start,o=this.startLoc,h=[],p=!0,c=!1,l=new at,u=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(p?p=!1:this.expect(b.comma),r&&this.afterTrailingComma(b.parenR,!0)){c=!0;break}if(this.type===b.ellipsis){a=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(b.parenR),t&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=d,this.parseParenArrowList(i,s,h);h.length&&!c||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(l,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?((e=this.startNodeAt(n,o)).expressions=h,this.finishNodeAt(e,"SequenceExpression",f,m)):e=h[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(i,s);return g.expression=e,this.finishNode(g,"ParenthesizedExpression")}return e},ft.parseParenItem=function(t){return t},ft.parseParenArrowList=function(t,e,i){return this.parseArrowExpression(this.startNodeAt(t,e),i)};var mt=[];ft.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){t.meta=e;var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction||this.raiseRecoverable(t.start,"'new.target' can only be used in functions"),this.finishNode(t,"MetaProperty")}var s=this.start,r=this.startLoc,a=this.type===b._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),s,r,!0),a&&"ImportExpression"===t.callee.type&&this.raise(s,"Cannot use new with import()"),this.eat(b.parenL)?t.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):t.arguments=mt,this.finishNode(t,"NewExpression")},ft.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===b.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===b.backQuote,this.finishNode(i,"TemplateElement")},ft.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===b.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(b.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(b.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},ft.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!_.test(this.input.slice(this.lastTokEnd,this.start))},ft.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(b.braceR);){if(s)s=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(t,e);t||this.checkPropClash(a,r,e),i.properties.push(a)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},ft.parseProperty=function(t,e){var i,s,r,a,n=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return t?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(this.type===b.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),n.argument=this.parseMaybeAssign(!1,e),this.type===b.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(t||e)&&(r=this.start,a=this.startLoc),t||(i=this.eat(b.star)));var o=this.containsEsc;return this.parsePropertyName(n),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n,e)):s=!1,this.parsePropertyValue(n,t,i,s,r,a,e,o),this.finishNode(n,"Property")},ft.parsePropertyValue=function(t,e,i,s,r,a,n,o){if((i||s)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,n),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===b.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,s);else if(e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===b.comma||this.type===b.braceR||this.type===b.eq)this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t.kind="init",e?t.value=this.parseMaybeDefault(r,a,this.copyNode(t.key)):this.type===b.eq&&n?(n.shorthandAssign<0&&(n.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,a,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected();else{(i||s)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var h="get"===t.kind?0:1;if(t.value.params.length!==h){var p=t.value.start;"get"===t.kind?this.raiseRecoverable(p,"getter should have no params"):this.raiseRecoverable(p,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}},ft.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(b.bracketR),t.key;t.computed=!1}return t.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},ft.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},ft.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,a=this.awaitPos,n=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(X(e,s.generator)|z|(i?K:0)),this.expect(b.parenL),s.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=n,this.finishNode(s,"FunctionExpression")},ft.parseArrowExpression=function(t,e,i){var s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(X(i,!1)|H),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},ft.parseFunctionBody=function(t,e,i){var s=e&&this.type!==b.braceL,r=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var n=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);r&&!n||(a=this.strictDirective(this.end))&&n&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!r&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,tt),t.body=this.parseBlock(!1,void 0,a&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=o}this.exitScope()},ft.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1)if("Identifier"!==i[e].type)return!1;return!0},ft.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,J,e?null:i)}},ft.parseExprList=function(t,e,i,s){for(var r=[],a=!0;!this.eat(t);){if(a)a=!1;else if(this.expect(b.comma),e&&this.afterTrailingComma(t))break;var n=void 0;i&&this.type===b.comma?n=null:this.type===b.ellipsis?(n=this.parseSpread(s),s&&this.type===b.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):n=this.parseMaybeAssign(!1,s),r.push(n)}return r},ft.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;this.inGenerator&&"yield"===s&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,i).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},ft.parseIdent=function(t,e){var i=this.startNode();return this.type===b.name?i.name=this.value:this.type.keyword?(i.name=this.type.keyword,"class"!==i.name&&"function"!==i.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!t),this.finishNode(i,"Identifier"),t||(this.checkUnreserved(i),"await"!==i.name||this.awaitIdentPos||(this.awaitIdentPos=i.start)),i},ft.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(b.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},ft.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0),this.finishNode(t,"AwaitExpression")};var gt=et.prototype;gt.raise=function(t,e){var i=O(this.input,t);e+=" ("+i.line+":"+i.column+")";var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},gt.raiseRecoverable=gt.raise,gt.curPosition=function(){if(this.options.locations)return new L(this.curLine,this.pos-this.lineStart)};var xt=et.prototype,yt=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};xt.enterScope=function(t){this.scopeStack.push(new yt(t))},xt.exitScope=function(){this.scopeStack.pop()},xt.treatFunctionsAsVarInScope=function(t){return t.flags&U||!this.inModule&&t.flags&j},xt.declareName=function(t,e,i){var s=!1;if(e===Y){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&r.flags&j&&delete this.undefinedExports[t]}else if(e===$)this.currentScope().lexical.push(t);else if(e===Z){var a=this.currentScope();s=this.treatFunctionsAsVar?a.lexical.indexOf(t)>-1:a.lexical.indexOf(t)>-1||a.var.indexOf(t)>-1,a.functions.push(t)}else for(var n=this.scopeStack.length-1;n>=0;--n){var o=this.scopeStack[n];if(o.lexical.indexOf(t)>-1&&!(o.flags&W&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){s=!0;break}if(o.var.push(t),this.inModule&&o.flags&j&&delete this.undefinedExports[t],o.flags&F)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},xt.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},xt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},xt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&F)return e}},xt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&F&&!(e.flags&H))return e}};var vt=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new V(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},bt=et.prototype;function _t(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}bt.startNode=function(){return new vt(this,this.start,this.startLoc)},bt.startNodeAt=function(t,e){return new vt(this,t,e)},bt.finishNode=function(t,e){return _t.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},bt.finishNodeAt=function(t,e,i,s){return _t.call(this,t,e,i,s)},bt.copyNode=function(t){var e=new vt(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var kt=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},St={b_stat:new kt("{",!1),b_expr:new kt("{",!0),b_tmpl:new kt("${",!1),p_stat:new kt("(",!1),p_expr:new kt("(",!0),q_tmpl:new kt("`",!0,!0,(function(t){return t.tryReadTemplateToken()})),f_stat:new kt("function",!1),f_expr:new kt("function",!0),f_expr_gen:new kt("function",!0,!1,null,!0),f_gen:new kt("function",!1,!1,null,!0)},wt=et.prototype;wt.initialContext=function(){return[St.b_stat]},wt.braceIsBlock=function(t){var e=this.curContext();return e===St.f_expr||e===St.f_stat||(t!==b.colon||e!==St.b_stat&&e!==St.b_expr?t===b._return||t===b.name&&this.exprAllowed?_.test(this.input.slice(this.lastTokEnd,this.start)):t===b._else||t===b.semi||t===b.eof||t===b.parenR||t===b.arrow||(t===b.braceL?e===St.b_stat:t!==b._var&&t!==b._const&&t!==b.name&&!this.exprAllowed):!e.isExpr)},wt.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},wt.updateContext=function(t){var e,i=this.type;i.keyword&&t===b.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},b.parenR.updateContext=b.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===St.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},b.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?St.b_stat:St.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(St.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(t){var e=t===b._if||t===b._for||t===b._with||t===b._while;this.context.push(e?St.p_stat:St.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(t){!t.beforeExpr||t===b._else||t===b.semi&&this.curContext()!==St.p_stat||t===b._return&&_.test(this.input.slice(this.lastTokEnd,this.start))||(t===b.colon||t===b.braceL)&&this.curContext()===St.b_stat?this.context.push(St.f_stat):this.context.push(St.f_expr),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===St.q_tmpl?this.context.pop():this.context.push(St.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(t){if(t===b._function){var e=this.context.length-1;this.context[e]===St.f_expr?this.context[e]=St.f_expr_gen:this.context[e]=St.f_gen}this.exprAllowed=!0},b.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==b.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var Ct="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Et=Ct+" Extended_Pictographic",At={9:Ct,10:Et,11:Et,12:Et+" EBase EComp EMod EPres ExtPict"},It="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Pt="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Tt=Pt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Nt=Tt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Lt={9:Pt,10:Tt,11:Nt,12:Nt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},Vt={};function Ot(t){var e=Vt[t]={binary:N(At[t]+" "+It),nonBinary:{General_Category:N(It),Script:N(Lt[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}Ot(9),Ot(10),Ot(11),Ot(12);var Rt=et.prototype,Mt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Vt[t.options.ecmaVersion>=12?12:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Bt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Dt(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function jt(t){return u(t,!0)||36===t||95===t}function Ut(t){return d(t,!0)||36===t||95===t||8204===t||8205===t}function Ft(t){return t>=65&&t<=90||t>=97&&t<=122}function qt(t){return t>=0&&t<=1114111}function Gt(t){return 100===t||68===t||115===t||83===t||119===t||87===t}function Ht(t){return Ft(t)||95===t}function Wt(t){return Ht(t)||zt(t)}function zt(t){return t>=48&&t<=57}function Kt(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Xt(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Qt(t){return t>=48&&t<=55}Mt.prototype.reset=function(t,e,i){var s=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchN=s&&this.parser.options.ecmaVersion>=9},Mt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Mt.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var r=i.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=s)return r;var a=i.charCodeAt(t+1);return a>=56320&&a<=57343?(r<<10)+a-56613888:r},Mt.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,a=i.charCodeAt(t);return!e&&!this.switchU||a<=55295||a>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},Mt.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},Mt.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Mt.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Mt.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},Rt.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=0;s<i.length;s++){var r=i.charAt(s);-1===e.indexOf(r)&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(r,s+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}},Rt.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},Rt.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];-1===t.groupNames.indexOf(s)&&t.raise("Invalid named capture referenced")}},Rt.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},Rt.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},Rt.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},Rt.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},Rt.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},Rt.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},Rt.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},Rt.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},Rt.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},Rt.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},Rt.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},Rt.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},Rt.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},Rt.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!Dt(e)&&(t.lastIntValue=e,t.advance(),!0)},Rt.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!Dt(i);)t.advance();return t.pos!==e},Rt.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e||(t.advance(),0))},Rt.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},Rt.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},Rt.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Bt(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Bt(t.lastIntValue);return!0}return!1},Rt.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),jt(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Rt.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),Ut(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Rt.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},Rt.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},Rt.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},Rt.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},Rt.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},Rt.regexp_eatZero=function(t){return 48===t.current()&&!zt(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},Rt.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},Rt.regexp_eatControlLetter=function(t){var e=t.current();return!!Ft(e)&&(t.lastIntValue=e%32,t.advance(),!0)},Rt.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i=t.pos,s=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r=t.lastIntValue;if(s&&r>=55296&&r<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var n=t.lastIntValue;if(n>=56320&&n<=57343)return t.lastIntValue=1024*(r-55296)+(n-56320)+65536,!0}t.pos=a,t.lastIntValue=r}return!0}if(s&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&qt(t.lastIntValue))return!0;s&&t.raise("Invalid unicode escape"),t.pos=i}return!1},Rt.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e||(t.lastIntValue=e,t.advance(),0))},Rt.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},Rt.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(Gt(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},Rt.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r),!0}return!1},Rt.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){P(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},Rt.regexp_validateUnicodePropertyNameOrValue=function(t,e){t.unicodeProperties.binary.test(e)||t.raise("Invalid property name")},Rt.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Ht(e=t.current());)t.lastStringValue+=Bt(e),t.advance();return""!==t.lastStringValue},Rt.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Wt(e=t.current());)t.lastStringValue+=Bt(e),t.advance();return""!==t.lastStringValue},Rt.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},Rt.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},Rt.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||-1!==e&&-1!==i||t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},Rt.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||Qt(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},Rt.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},Rt.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!zt(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},Rt.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},Rt.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;zt(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},Rt.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Kt(i=t.current());)t.lastIntValue=16*t.lastIntValue+Xt(i),t.advance();return t.pos!==e},Rt.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},Rt.regexp_eatOctalDigit=function(t){var e=t.current();return Qt(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},Rt.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!Kt(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+Xt(r),t.advance()}return!0};var Jt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new V(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Yt=et.prototype;function Zt(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function $t(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}function te(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}Yt.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Jt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Yt.getToken=function(){return this.next(),new Jt(this)},"undefined"!=typeof Symbol&&(Yt[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===b.eof,value:e}}}}),Yt.curContext=function(){return this.context[this.context.length-1]},Yt.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(b.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Yt.readToken=function(t){return u(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Yt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},Yt.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),i=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(k.lastIndex=i;(t=k.exec(this.input))&&t.index<this.pos;)++this.curLine,this.lineStart=t.index+t[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(i+2,s),i,this.pos,e,this.curPosition())},Yt.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!S(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},Yt.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&w.test(String.fromCharCode(t))))break t;++this.pos}}},Yt.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},Yt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},Yt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},Yt.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=42===t?b.star:b.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,s=b.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(b.assign,i+1):this.finishOp(s,i)},Yt.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(124===t?b.logicalOR:b.logicalAND,2):61===e?this.finishOp(b.assign,2):this.finishOp(124===t?b.bitwiseOR:b.bitwiseAND,1)},Yt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},Yt.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!_.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(b.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},Yt.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(b.assign,i+1):this.finishOp(b.bitShift,i)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(b.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Yt.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(b.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(61===t?b.eq:b.prefix,1)},Yt.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(b.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},Yt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1)}this.raise(this.pos,"Unexpected character '"+te(t)+"'")},Yt.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},Yt.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(_.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var a=this.pos,n=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new Mt(this));o.reset(i,r,n),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(r,n)}catch(t){}return this.finishToken(b.regexp,{pattern:r,flags:n,value:h})},Yt.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&void 0===e,r=i&&48===this.input.charCodeAt(this.pos),a=this.pos,n=0,o=0,h=0,p=null==e?1/0:e;h<p;++h,++this.pos){var c=this.input.charCodeAt(this.pos),l=void 0;if(s&&95===c)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;else{if((l=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=t)break;o=c,n=n*t+l}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=e&&this.pos-a!==e?null:n},Yt.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=$t(this.input.slice(e,this.pos)),++this.pos):u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,i)},Yt.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var i=this.pos-e>=2&&48===this.input.charCodeAt(e);i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&110===s){var r=$t(this.input.slice(e,this.pos));return++this.pos,u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,r)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),46!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),u(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=Zt(this.input.slice(e,this.pos),i);return this.finishToken(b.num,a)},Yt.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Yt.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):(S(s,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(b.string,e)};var ee={};Yt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==ee)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Yt.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ee;this.raise(t,e)},Yt.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==b.template&&this.type!==b.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(b.template,t)):36===i?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote));if(92===i)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(S(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Yt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Yt.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return te(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;return this.invalidStringToken(i,"Invalid escape sequence in template string"),null}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),"0"===s&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return S(e)?"":String.fromCharCode(e)}},Yt.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},Yt.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(d(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var n=this.readCodePoint();(e?u:d)(n,s)||this.invalidStringToken(a,"Invalid Unicode escape"),t+=te(n),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},Yt.readWord=function(){var t=this.readWord1(),e=b.name;return this.keywords.test(t)&&(e=y[t]),this.finishToken(e,t)};var ie="8.0.5";function se(t,e){return et.parse(t,e)}function re(t,e,i){return et.parseExpressionAt(t,e,i)}function ae(t,e){return et.tokenizer(t,e)}et.acorn={Parser:et,version:ie,defaultOptions:R,Position:L,SourceLocation:V,getLineInfo:O,Node:vt,TokenType:f,tokTypes:b,keywordTypes:y,TokContext:kt,tokContexts:St,isIdentifierChar:d,isIdentifierStart:u,Token:Jt,isNewLine:S,lineBreak:_,lineBreakG:k,nonASCIIwhitespace:w},t.Node=vt,t.Parser=et,t.Position=L,t.SourceLocation=V,t.TokContext=kt,t.Token=Jt,t.TokenType=f,t.defaultOptions=R,t.getLineInfo=O,t.isIdentifierChar=d,t.isIdentifierStart=u,t.isNewLine=S,t.keywordTypes=y,t.lineBreak=_,t.lineBreakG=k,t.nonASCIIwhitespace=w,t.parse=se,t.parseExpressionAt=re,t.tokContexts=St,t.tokTypes=b,t.tokenizer=ae,t.version=ie,Object.defineProperty(t,"__esModule",{value:!0})}(e)},219:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>_e});var s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:r,"5module":r+" export import",6:r+" const class extends export import super"},n=/^in(stanceof)?$/,o="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",h="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",p=new RegExp("["+o+"]"),c=new RegExp("["+o+h+"]");o=h=null;var l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function d(t,e){for(var i=65536,s=0;s<e.length;s+=2){if((i+=e[s])>t)return!1;if((i+=e[s+1])>=t)return!0}}function f(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&p.test(String.fromCharCode(t)):!1!==e&&d(t,l)))}function m(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==e&&(d(t,l)||d(t,u)))))}var g=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function x(t,e){return new g(t,{beforeExpr:!0,binop:e})}var y={beforeExpr:!0},v={startsExpr:!0},b={};function _(t,e){return void 0===e&&(e={}),e.keyword=t,b[t]=new g(t,e)}var k={num:new g("num",v),regexp:new g("regexp",v),string:new g("string",v),name:new g("name",v),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",y),semi:new g(";",y),colon:new g(":",y),dot:new g("."),question:new g("?",y),questionDot:new g("?."),arrow:new g("=>",y),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",y),backQuote:new g("`",v),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:x("||",1),logicalAND:x("&&",2),bitwiseOR:x("|",3),bitwiseXOR:x("^",4),bitwiseAND:x("&",5),equality:x("==/!=/===/!==",6),relational:x("</>/<=/>=",7),bitShift:x("<</>>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:x("%",10),star:x("*",10),slash:x("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:x("??",1),_break:_("break"),_case:_("case",y),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",y),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",y),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",v),_if:_("if"),_return:_("return",y),_switch:_("switch"),_throw:_("throw",y),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",v),_super:_("super",v),_class:_("class",v),_extends:_("extends",y),_export:_("export"),_import:_("import",v),_null:_("null",v),_true:_("true",v),_false:_("false",v),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},S=/\r\n?|\n|\u2028|\u2029/,w=new RegExp(S.source,"g");function C(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var E=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,I=Object.prototype,P=I.hasOwnProperty,T=I.toString;function N(t,e){return P.call(t,e)}var L=Array.isArray||function(t){return"[object Array]"===T.call(t)};function V(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var O=function(t,e){this.line=t,this.column=e};O.prototype.offset=function(t){return new O(this.line,this.column+t)};var R=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function M(t,e){for(var i=1,s=0;;){w.lastIndex=s;var r=w.exec(t);if(!(r&&r.index<e))return new O(i,e-s);++i,s=r.index+r[0].length}}var B={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},D=!1;function j(t){var e={};for(var i in B)e[i]=t&&N(t,i)?t[i]:B[i];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!D&&"object"==typeof console&&console.warn&&(D=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),L(e.onToken)){var s=e.onToken;e.onToken=function(t){return s.push(t)}}return L(e.onComment)&&(e.onComment=function(t,e){return function(i,s,r,a,n,o){var h={type:i?"Block":"Line",value:s,start:r,end:a};t.locations&&(h.loc=new R(this,n,o)),t.ranges&&(h.range=[r,a]),e.push(h)}}(e,e.onComment)),e}function U(t,e){return 2|(t?4:0)|(e?8:0)}var F=function(t,e,i){this.options=t=j(t),this.sourceFile=t.sourceFile,this.keywords=V(a[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var r="";!0!==t.allowReserved&&(r=s[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(r+=" await")),this.reservedWords=V(r);var n=(r?r+" ":"")+s.strict;this.reservedWordsStrict=V(n),this.reservedWordsStrictBind=V(n+" "+s.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(S).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=k.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},q={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},inNonArrowFunction:{configurable:!0}};F.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},q.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},q.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},q.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},q.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},q.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},q.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},q.inNonArrowFunction.get=function(){return(2&this.currentThisScope().flags)>0},F.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},F.parse=function(t,e){return new this(e,t).parse()},F.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},F.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(F.prototype,q);var G=F.prototype,H=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function W(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}G.strictDirective=function(t){for(;;){A.lastIndex=t,t+=A.exec(this.input)[0].length;var e=H.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){A.lastIndex=t+e[0].length;var i=A.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||S.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,A.lastIndex=t,t+=A.exec(this.input)[0].length,";"===this.input[t]&&t++}},G.eat=function(t){return this.type===t&&(this.next(),!0)},G.isContextual=function(t){return this.type===k.name&&this.value===t&&!this.containsEsc},G.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},G.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},G.canInsertSemicolon=function(){return this.type===k.eof||this.type===k.braceR||S.test(this.input.slice(this.lastTokEnd,this.start))},G.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},G.semicolon=function(){this.eat(k.semi)||this.insertSemicolon()||this.unexpected()},G.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},G.expect=function(t){this.eat(t)||this.unexpected()},G.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},G.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,"Parenthesized pattern")}},G.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},G.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},G.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var z=F.prototype;z.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==k.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var a=r[s];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var K={kind:"loop"},X={kind:"switch"};z.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;A.lastIndex=this.pos;var e=A.exec(this.input),i=this.pos+e[0].length,s=this.input.charCodeAt(i);if(91===s)return!0;if(t)return!1;if(123===s)return!0;if(f(s,!0)){for(var r=i+1;m(this.input.charCodeAt(r),!0);)++r;var a=this.input.slice(i,r);if(!n.test(a))return!0}return!1},z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;A.lastIndex=this.pos;var t=A.exec(this.input),e=this.pos+t[0].length;return!(S.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&m(this.input.charAt(e+8)))},z.parseStatement=function(t,e,i){var s,r=this.type,a=this.startNode();switch(this.isLet(t)&&(r=k._var,s="let"),r){case k._break:case k._continue:return this.parseBreakContinueStatement(a,r.keyword);case k._debugger:return this.parseDebuggerStatement(a);case k._do:return this.parseDoStatement(a);case k._for:return this.parseForStatement(a);case k._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!t);case k._class:return t&&this.unexpected(),this.parseClass(a,!0);case k._if:return this.parseIfStatement(a);case k._return:return this.parseReturnStatement(a);case k._switch:return this.parseSwitchStatement(a);case k._throw:return this.parseThrowStatement(a);case k._try:return this.parseTryStatement(a);case k._const:case k._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(a,s);case k._while:return this.parseWhileStatement(a);case k._with:return this.parseWithStatement(a);case k.braceL:return this.parseBlock(!0,a);case k.semi:return this.parseEmptyStatement(a);case k._export:case k._import:if(this.options.ecmaVersion>10&&r===k._import){A.lastIndex=this.pos;var n=A.exec(this.input),o=this.pos+n[0].length,h=this.input.charCodeAt(o);if(40===h||46===h)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===k._import?this.parseImport(a):this.parseExport(a,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!t);var p=this.value,c=this.parseExpression();return r===k.name&&"Identifier"===c.type&&this.eat(k.colon)?this.parseLabeledStatement(a,p,c,t):this.parseExpressionStatement(a,c)}},z.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(k.semi)||this.insertSemicolon()?t.label=null:this.type!==k.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(t.label&&i)break}}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},z.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},z.parseDoStatement=function(t){return this.next(),this.labels.push(K),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(k._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(k.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},z.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(k.parenL),this.type===k.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===k._var||this.type===k._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length?(this.options.ecmaVersion>=9&&(this.type===k._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,s)):(e>-1&&this.unexpected(e),this.parseFor(t,s))}var a=new W,n=this.parseExpression(!0,a);return this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===k._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(n,!1,a),this.checkLValPattern(n),this.parseForIn(t,n)):(this.checkExpressionErrors(a,!0),e>-1&&this.unexpected(e),this.parseFor(t,n))},z.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,J|(i?0:Y),!1,e)},z.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(k._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},z.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(k.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},z.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(k.braceL),this.labels.push(X),this.enterScope(0);for(var i=!1;this.type!==k.braceR;)if(this.type===k._case||this.type===k._default){var s=this.type===k._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(k.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},z.parseThrowStatement=function(t){return this.next(),S.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Q=[];z.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===k._catch){var e=this.startNode();if(this.next(),this.eat(k.parenL)){e.param=this.parseBindingAtom();var i="Identifier"===e.param.type;this.enterScope(i?32:0),this.checkLValPattern(e.param,i?4:2),this.expect(k.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(k._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},z.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},z.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(K),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},z.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},z.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},z.parseLabeledStatement=function(t,e,i,s){for(var r=0,a=this.labels;r<a.length;r+=1){a[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared")}for(var n=this.type.isLoop?"loop":this.type===k._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var h=this.labels[o];if(h.statementStart!==t.start)break;h.statementStart=this.start,h.kind=n}return this.labels.push({name:e,kind:n,statementStart:this.start}),t.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},z.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},z.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(k.braceL),t&&this.enterScope(0);this.type!==k.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},z.parseFor=function(t,e){return t.init=e,this.expect(k.semi),t.test=this.type===k.semi?null:this.parseExpression(),this.expect(k.semi),t.update=this.type===k.parenR?null:this.parseExpression(),this.expect(k.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},z.parseForIn=function(t,e){var i=this.type===k._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(k.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},z.parseVar=function(t,e,i){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(k.eq)?s.init=this.parseMaybeAssign(e):"const"!==i||this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===s.id.type||e&&(this.type===k._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(k.comma))break}return t},z.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var J=1,Y=2;z.parseFunction=function(t,e,i,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===k.star&&e&Y&&this.unexpected(),t.generator=this.eat(k.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&J&&(t.id=4&e&&this.type!==k.name?null:this.parseIdent(),!t.id||e&Y||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,a=this.awaitPos,n=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(t.async,t.generator)),e&J||(t.id=this.type===k.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=n,this.finishNode(t,e&J?"FunctionDeclaration":"FunctionExpression")},z.parseFunctionParams=function(t){this.expect(k.parenL),t.params=this.parseBindingList(k.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},z.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.startNode(),r=!1;for(s.body=[],this.expect(k.braceL);this.type!==k.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind&&(r&&this.raise(a.start,"Duplicate constructor in the same class"),r=!0))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},z.parseClassElement=function(t){var e=this;if(this.eat(k.semi))return null;var i=this.startNode(),s=function(t,s){void 0===s&&(s=!1);var r=e.start,a=e.startLoc;return!!e.eatContextual(t)&&(!(e.type===k.parenL||s&&e.canInsertSemicolon())||(i.key&&e.unexpected(),i.computed=!1,i.key=e.startNodeAt(r,a),i.key.name=t,e.finishNode(i.key,"Identifier"),!1))};i.kind="method",i.static=s("static");var r=this.eat(k.star),a=!1;r||(this.options.ecmaVersion>=8&&s("async",!0)?(a=!0,r=this.options.ecmaVersion>=9&&this.eat(k.star)):s("get")?i.kind="get":s("set")&&(i.kind="set")),i.key||this.parsePropertyName(i);var n=i.key,o=!1;return i.computed||i.static||!("Identifier"===n.type&&"constructor"===n.name||"Literal"===n.type&&"constructor"===n.value)?i.static&&"Identifier"===n.type&&"prototype"===n.name&&this.raise(n.start,"Classes may not have a static property named prototype"):("method"!==i.kind&&this.raise(n.start,"Constructor can't have get/set modifier"),r&&this.raise(n.start,"Constructor can't be a generator"),a&&this.raise(n.start,"Constructor can't be an async method"),i.kind="constructor",o=t),this.parseClassMethod(i,r,a,o),"get"===i.kind&&0!==i.value.params.length&&this.raiseRecoverable(i.value.start,"getter should have no params"),"set"===i.kind&&1!==i.value.params.length&&this.raiseRecoverable(i.value.start,"setter should have exactly one param"),"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params"),i},z.parseClassMethod=function(t,e,i,s){return t.value=this.parseMethod(e,i,s),this.finishNode(t,"MethodDefinition")},z.parseClassId=function(t,e){this.type===k.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},z.parseClassSuper=function(t){t.superClass=this.eat(k._extends)?this.parseExprSubscripts():null},z.parseExport=function(t,e){if(this.next(),this.eat(k.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==k.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(k._default)){var i;if(this.checkExport(e,"default",this.lastTokStart),this.type===k._function||(i=this.isAsyncFunction())){var s=this.startNode();this.next(),i&&this.next(),t.declaration=this.parseFunction(s,4|J,!1,i)}else if(this.type===k._class){var r=this.startNode();t.declaration=this.parseClass(r,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==k.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var a=0,n=t.specifiers;a<n.length;a+=1){var o=n[a];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},z.checkExport=function(t,e,i){t&&(N(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},z.checkPatternExport=function(t,e){var i=e.type;if("Identifier"===i)this.checkExport(t,e.name,e.start);else if("ObjectPattern"===i)for(var s=0,r=e.properties;s<r.length;s+=1){var a=r[s];this.checkPatternExport(t,a)}else if("ArrayPattern"===i)for(var n=0,o=e.elements;n<o.length;n+=1){var h=o[n];h&&this.checkPatternExport(t,h)}else"Property"===i?this.checkPatternExport(t,e.value):"AssignmentPattern"===i?this.checkPatternExport(t,e.left):"RestElement"===i?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===i&&this.checkPatternExport(t,e.expression)},z.checkVariableExport=function(t,e){if(t)for(var i=0,s=e;i<s.length;i+=1){var r=s[i];this.checkPatternExport(t,r.id)}},z.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},z.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(k.braceL);!this.eat(k.braceR);){if(i)i=!1;else if(this.expect(k.comma),this.afterTrailingComma(k.braceR))break;var s=this.startNode();s.local=this.parseIdent(!0),s.exported=this.eatContextual("as")?this.parseIdent(!0):s.local,this.checkExport(t,s.exported.name,s.exported.start),e.push(this.finishNode(s,"ExportSpecifier"))}return e},z.parseImport=function(t){return this.next(),this.type===k.string?(t.specifiers=Q,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===k.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},z.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===k.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLValSimple(i.local,2),t.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(k.comma))return t}if(this.type===k.star){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,2),t.push(this.finishNode(s,"ImportNamespaceSpecifier")),t}for(this.expect(k.braceL);!this.eat(k.braceR);){if(e)e=!1;else if(this.expect(k.comma),this.afterTrailingComma(k.braceR))break;var r=this.startNode();r.imported=this.parseIdent(!0),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLValSimple(r.local,2),t.push(this.finishNode(r,"ImportSpecifier"))}return t},z.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},z.isDirectiveCandidate=function(t){return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var Z=F.prototype;Z.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var a=r[s];this.toAssignable(a,e),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},Z.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var a=t[i-1];6===this.options.ecmaVersion&&e&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return t},Z.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},Z.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==k.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Z.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case k.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(k.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case k.braceL:return this.parseObj(!0)}return this.parseIdent()},Z.parseBindingList=function(t,e,i){for(var s=[],r=!0;!this.eat(t);)if(r?r=!1:this.expect(k.comma),e&&this.type===k.comma)s.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===k.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===k.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}var n=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(n),s.push(n)}return s},Z.parseBindingListItem=function(t){return t},Z.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(k.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},Z.checkLValSimple=function(t,e,i){void 0===e&&(e=0);var s=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(N(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),5!==e&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},Z.checkLValPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,e,i)}break;case"ArrayPattern":for(var n=0,o=t.elements;n<o.length;n+=1){var h=o[n];h&&this.checkLValInnerPattern(h,e,i)}break;default:this.checkLValSimple(t,e,i)}},Z.checkLValInnerPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var $=F.prototype;$.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var a=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===a&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var n=e[s="$"+s];if(n)("init"===a?this.strict&&n.init||n.get||n.set:n.init||n[a])&&this.raiseRecoverable(r.start,"Redefinition of property");else n=e[s]={init:!1,get:!1,set:!1};n[a]=!0}}},$.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===k.comma){var a=this.startNodeAt(i,s);for(a.expressions=[r];this.eat(k.comma);)a.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(a,"SequenceExpression")}return r},$.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,a=-1;e?(r=e.parenthesizedAssign,a=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new W,s=!0);var n=this.start,o=this.startLoc;this.type!==k.parenL&&this.type!==k.name||(this.potentialArrowAt=this.start);var h=this.parseMaybeConditional(t,e);if(i&&(h=i.call(this,h,n,o)),this.type.isAssign){var p=this.startNodeAt(n,o);return p.operator=this.value,this.type===k.eq&&(h=this.toAssignable(h,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=h.start&&(e.shorthandAssign=-1),this.type===k.eq?this.checkLValPattern(h):this.checkLValSimple(h),p.left=h,this.next(),p.right=this.parseMaybeAssign(t),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),a>-1&&(e.trailingComma=a),h},$.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(k.question)){var a=this.startNodeAt(i,s);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(k.colon),a.alternate=this.parseMaybeAssign(t),this.finishNode(a,"ConditionalExpression")}return r},$.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,t)},$.parseExprOp=function(t,e,i,s,r){var a=this.type.binop;if(null!=a&&(!r||this.type!==k._in)&&a>s){var n=this.type===k.logicalOR||this.type===k.logicalAND,o=this.type===k.coalesce;o&&(a=k.logicalAND.binop);var h=this.value;this.next();var p=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),p,c,a,r),u=this.buildBinary(e,i,t,l,h,n||o);return(n&&this.type===k.coalesce||o&&(this.type===k.logicalOR||this.type===k.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,e,i,s,r)}return t},$.buildBinary=function(t,e,i,s,r,a){var n=this.startNodeAt(t,e);return n.left=i,n.operator=r,n.right=s,this.finishNode(n,a?"LogicalExpression":"BinaryExpression")},$.parseMaybeUnary=function(t,e){var i,s=this.start,r=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.type.prefix){var a=this.startNode(),n=this.type===k.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),n?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):e=!0,i=this.finishNode(a,n?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(s,r);o.operator=this.value,o.prefix=!1,o.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(o,"UpdateExpression")}}return!e&&this.eat(k.starstar)?this.buildBinary(s,r,i,this.parseMaybeUnary(null,!1),"**",!1):i},$.parseExprSubscripts=function(t){var e=this.start,i=this.startLoc,s=this.parseExprAtom(t);if("ArrowFunctionExpression"===s.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return s;var r=this.parseSubscripts(s,e,i);return t&&"MemberExpression"===r.type&&(t.parenthesizedAssign>=r.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=r.start&&(t.parenthesizedBind=-1)),r},$.parseSubscripts=function(t,e,i,s){for(var r=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&this.potentialArrowAt===t.start,a=!1;;){var n=this.parseSubscript(t,e,i,s,r,a);if(n.optional&&(a=!0),n===t||"ArrowFunctionExpression"===n.type){if(a){var o=this.startNodeAt(e,i);o.expression=n,n=this.finishNode(o,"ChainExpression")}return n}t=n}},$.parseSubscript=function(t,e,i,s,r,a){var n=this.options.ecmaVersion>=11,o=n&&this.eat(k.questionDot);s&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(k.bracketL);if(h||o&&this.type!==k.parenL&&this.type!==k.backQuote||this.eat(k.dot)){var p=this.startNodeAt(e,i);p.object=t,p.property=h?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),p.computed=!!h,h&&this.expect(k.bracketR),n&&(p.optional=o),t=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(k.parenL)){var c=new W,l=this.yieldPos,u=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(k.parenR,this.options.ecmaVersion>=8,!1,c);if(r&&!o&&!this.canInsertSemicolon()&&this.eat(k.arrow))return this.checkPatternErrors(c,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=l,this.awaitPos=u,this.awaitIdentPos=d,this.parseArrowExpression(this.startNodeAt(e,i),f,!0);this.checkExpressionErrors(c,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=u||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var m=this.startNodeAt(e,i);m.callee=t,m.arguments=f,n&&(m.optional=o),t=this.finishNode(m,"CallExpression")}else if(this.type===k.backQuote){(o||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(e,i);g.tag=t,g.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(g,"TaggedTemplateExpression")}return t},$.parseExprAtom=function(t){this.type===k.slash&&this.readRegexp();var e,i=this.potentialArrowAt===this.start;switch(this.type){case k._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type!==k.parenL||this.allowDirectSuper||this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==k.dot&&this.type!==k.bracketL&&this.type!==k.parenL&&this.unexpected(),this.finishNode(e,"Super");case k._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case k.name:var s=this.start,r=this.startLoc,a=this.containsEsc,n=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===n.name&&!this.canInsertSemicolon()&&this.eat(k._function))return this.parseFunction(this.startNodeAt(s,r),0,!1,!0);if(i&&!this.canInsertSemicolon()){if(this.eat(k.arrow))return this.parseArrowExpression(this.startNodeAt(s,r),[n],!1);if(this.options.ecmaVersion>=8&&"async"===n.name&&this.type===k.name&&!a)return n=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(k.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,r),[n],!0)}return n;case k.regexp:var o=this.value;return(e=this.parseLiteral(o.value)).regex={pattern:o.pattern,flags:o.flags},e;case k.num:case k.string:return this.parseLiteral(this.value);case k._null:case k._true:case k._false:return(e=this.startNode()).value=this.type===k._null?null:this.type===k._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case k.parenL:var h=this.start,p=this.parseParenAndDistinguishExpression(i);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(t.parenthesizedAssign=h),t.parenthesizedBind<0&&(t.parenthesizedBind=h)),p;case k.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(k.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case k.braceL:return this.parseObj(!1,t);case k._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case k._class:return this.parseClass(this.startNode(),!1);case k._new:return this.parseNew();case k.backQuote:return this.parseTemplate();case k._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},$.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case k.parenL:return this.parseDynamicImport(t);case k.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}},$.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(k.parenR)){var e=this.start;this.eat(k.comma)&&this.eat(k.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},$.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},$.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},$.parseParenExpression=function(){this.expect(k.parenL);var t=this.parseExpression();return this.expect(k.parenR),t},$.parseParenAndDistinguishExpression=function(t){var e,i=this.start,s=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,n=this.start,o=this.startLoc,h=[],p=!0,c=!1,l=new W,u=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==k.parenR;){if(p?p=!1:this.expect(k.comma),r&&this.afterTrailingComma(k.parenR,!0)){c=!0;break}if(this.type===k.ellipsis){a=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===k.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(k.parenR),t&&!this.canInsertSemicolon()&&this.eat(k.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=d,this.parseParenArrowList(i,s,h);h.length&&!c||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(l,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?((e=this.startNodeAt(n,o)).expressions=h,this.finishNodeAt(e,"SequenceExpression",f,m)):e=h[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(i,s);return g.expression=e,this.finishNode(g,"ParenthesizedExpression")}return e},$.parseParenItem=function(t){return t},$.parseParenArrowList=function(t,e,i){return this.parseArrowExpression(this.startNodeAt(t,e),i)};var tt=[];$.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(k.dot)){t.meta=e;var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction||this.raiseRecoverable(t.start,"'new.target' can only be used in functions"),this.finishNode(t,"MetaProperty")}var s=this.start,r=this.startLoc,a=this.type===k._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),s,r,!0),a&&"ImportExpression"===t.callee.type&&this.raise(s,"Cannot use new with import()"),this.eat(k.parenL)?t.arguments=this.parseExprList(k.parenR,this.options.ecmaVersion>=8,!1):t.arguments=tt,this.finishNode(t,"NewExpression")},$.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===k.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===k.backQuote,this.finishNode(i,"TemplateElement")},$.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===k.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(k.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(k.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},$.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===k.name||this.type===k.num||this.type===k.string||this.type===k.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===k.star)&&!S.test(this.input.slice(this.lastTokEnd,this.start))},$.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(k.braceR);){if(s)s=!1;else if(this.expect(k.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(k.braceR))break;var a=this.parseProperty(t,e);t||this.checkPropClash(a,r,e),i.properties.push(a)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},$.parseProperty=function(t,e){var i,s,r,a,n=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(k.ellipsis))return t?(n.argument=this.parseIdent(!1),this.type===k.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(n,"RestElement")):(this.type===k.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),n.argument=this.parseMaybeAssign(!1,e),this.type===k.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(n,"SpreadElement"));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(t||e)&&(r=this.start,a=this.startLoc),t||(i=this.eat(k.star)));var o=this.containsEsc;return this.parsePropertyName(n),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(k.star),this.parsePropertyName(n,e)):s=!1,this.parsePropertyValue(n,t,i,s,r,a,e,o),this.finishNode(n,"Property")},$.parsePropertyValue=function(t,e,i,s,r,a,n,o){if((i||s)&&this.type===k.colon&&this.unexpected(),this.eat(k.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,n),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===k.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,s);else if(e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===k.comma||this.type===k.braceR||this.type===k.eq)this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t.kind="init",e?t.value=this.parseMaybeDefault(r,a,this.copyNode(t.key)):this.type===k.eq&&n?(n.shorthandAssign<0&&(n.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,a,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected();else{(i||s)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var h="get"===t.kind?0:1;if(t.value.params.length!==h){var p=t.value.start;"get"===t.kind?this.raiseRecoverable(p,"getter should have no params"):this.raiseRecoverable(p,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}},$.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(k.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(k.bracketR),t.key;t.computed=!1}return t.key=this.type===k.num||this.type===k.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},$.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},$.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,a=this.awaitPos,n=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|U(e,s.generator)|(i?128:0)),this.expect(k.parenL),s.params=this.parseBindingList(k.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=n,this.finishNode(s,"FunctionExpression")},$.parseArrowExpression=function(t,e,i){var s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|U(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},$.parseFunctionBody=function(t,e,i){var s=e&&this.type!==k.braceL,r=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var n=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);r&&!n||(a=this.strictDirective(this.end))&&n&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!r&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=o}this.exitScope()},$.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1){if("Identifier"!==i[e].type)return!1}return!0},$.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,1,e?null:i)}},$.parseExprList=function(t,e,i,s){for(var r=[],a=!0;!this.eat(t);){if(a)a=!1;else if(this.expect(k.comma),e&&this.afterTrailingComma(t))break;var n=void 0;i&&this.type===k.comma?n=null:this.type===k.ellipsis?(n=this.parseSpread(s),s&&this.type===k.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):n=this.parseMaybeAssign(!1,s),r.push(n)}return r},$.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;(this.inGenerator&&"yield"===s&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},$.parseIdent=function(t,e){var i=this.startNode();return this.type===k.name?i.name=this.value:this.type.keyword?(i.name=this.type.keyword,"class"!==i.name&&"function"!==i.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!t),this.finishNode(i,"Identifier"),t||(this.checkUnreserved(i),"await"!==i.name||this.awaitIdentPos||(this.awaitIdentPos=i.start)),i},$.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===k.semi||this.canInsertSemicolon()||this.type!==k.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(k.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},$.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0),this.finishNode(t,"AwaitExpression")};var et=F.prototype;et.raise=function(t,e){var i=M(this.input,t);e+=" ("+i.line+":"+i.column+")";var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},et.raiseRecoverable=et.raise,et.curPosition=function(){if(this.options.locations)return new O(this.curLine,this.pos-this.lineStart)};var it=F.prototype,st=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};it.enterScope=function(t){this.scopeStack.push(new st(t))},it.exitScope=function(){this.scopeStack.pop()},it.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},it.declareName=function(t,e,i){var s=!1;if(2===e){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e){this.currentScope().lexical.push(t)}else if(3===e){var a=this.currentScope();s=this.treatFunctionsAsVar?a.lexical.indexOf(t)>-1:a.lexical.indexOf(t)>-1||a.var.indexOf(t)>-1,a.functions.push(t)}else for(var n=this.scopeStack.length-1;n>=0;--n){var o=this.scopeStack[n];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){s=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],3&o.flags)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},it.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},it.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},it.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(3&e.flags)return e}},it.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(3&e.flags&&!(16&e.flags))return e}};var rt=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new R(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},at=F.prototype;function nt(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}at.startNode=function(){return new rt(this,this.start,this.startLoc)},at.startNodeAt=function(t,e){return new rt(this,t,e)},at.finishNode=function(t,e){return nt.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},at.finishNodeAt=function(t,e,i,s){return nt.call(this,t,e,i,s)},at.copyNode=function(t){var e=new rt(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var ot=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},ht={b_stat:new ot("{",!1),b_expr:new ot("{",!0),b_tmpl:new ot("${",!1),p_stat:new ot("(",!1),p_expr:new ot("(",!0),q_tmpl:new ot("`",!0,!0,(function(t){return t.tryReadTemplateToken()})),f_stat:new ot("function",!1),f_expr:new ot("function",!0),f_expr_gen:new ot("function",!0,!1,null,!0),f_gen:new ot("function",!1,!1,null,!0)},pt=F.prototype;pt.initialContext=function(){return[ht.b_stat]},pt.braceIsBlock=function(t){var e=this.curContext();return e===ht.f_expr||e===ht.f_stat||(t!==k.colon||e!==ht.b_stat&&e!==ht.b_expr?t===k._return||t===k.name&&this.exprAllowed?S.test(this.input.slice(this.lastTokEnd,this.start)):t===k._else||t===k.semi||t===k.eof||t===k.parenR||t===k.arrow||(t===k.braceL?e===ht.b_stat:t!==k._var&&t!==k._const&&t!==k.name&&!this.exprAllowed):!e.isExpr)},pt.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},pt.updateContext=function(t){var e,i=this.type;i.keyword&&t===k.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},k.parenR.updateContext=k.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===ht.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},k.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?ht.b_stat:ht.b_expr),this.exprAllowed=!0},k.dollarBraceL.updateContext=function(){this.context.push(ht.b_tmpl),this.exprAllowed=!0},k.parenL.updateContext=function(t){var e=t===k._if||t===k._for||t===k._with||t===k._while;this.context.push(e?ht.p_stat:ht.p_expr),this.exprAllowed=!0},k.incDec.updateContext=function(){},k._function.updateContext=k._class.updateContext=function(t){!t.beforeExpr||t===k._else||t===k.semi&&this.curContext()!==ht.p_stat||t===k._return&&S.test(this.input.slice(this.lastTokEnd,this.start))||(t===k.colon||t===k.braceL)&&this.curContext()===ht.b_stat?this.context.push(ht.f_stat):this.context.push(ht.f_expr),this.exprAllowed=!1},k.backQuote.updateContext=function(){this.curContext()===ht.q_tmpl?this.context.pop():this.context.push(ht.q_tmpl),this.exprAllowed=!1},k.star.updateContext=function(t){if(t===k._function){var e=this.context.length-1;this.context[e]===ht.f_expr?this.context[e]=ht.f_expr_gen:this.context[e]=ht.f_gen}this.exprAllowed=!0},k.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==k.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var ct="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",lt=ct+" Extended_Pictographic",ut={9:ct,10:lt,11:lt,12:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"},dt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ft="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",mt=ft+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",gt=mt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",xt={9:ft,10:mt,11:gt,12:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},yt={};function vt(t){var e=yt[t]={binary:V(ut[t]+" "+dt),nonBinary:{General_Category:V(dt),Script:V(xt[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}vt(9),vt(10),vt(11),vt(12);var bt=F.prototype,_t=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=yt[t.options.ecmaVersion>=12?12:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function kt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function St(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function wt(t){return t>=65&&t<=90||t>=97&&t<=122}function Ct(t){return wt(t)||95===t}function Et(t){return Ct(t)||At(t)}function At(t){return t>=48&&t<=57}function It(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Pt(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Tt(t){return t>=48&&t<=55}_t.prototype.reset=function(t,e,i){var s=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchN=s&&this.parser.options.ecmaVersion>=9},_t.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},_t.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var r=i.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=s)return r;var a=i.charCodeAt(t+1);return a>=56320&&a<=57343?(r<<10)+a-56613888:r},_t.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,a=i.charCodeAt(t);return!e&&!this.switchU||a<=55295||a>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},_t.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},_t.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},_t.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},_t.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},bt.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=0;s<i.length;s++){var r=i.charAt(s);-1===e.indexOf(r)&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(r,s+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}},bt.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},bt.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];-1===t.groupNames.indexOf(s)&&t.raise("Invalid named capture referenced")}},bt.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},bt.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},bt.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},bt.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},bt.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},bt.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},bt.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},bt.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},bt.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},bt.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},bt.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},bt.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},bt.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},bt.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!St(e)&&(t.lastIntValue=e,t.advance(),!0)},bt.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!St(i);)t.advance();return t.pos!==e},bt.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},bt.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},bt.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},bt.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=kt(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=kt(t.lastIntValue);return!0}return!1},bt.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return f(t,!0)||36===t||95===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},bt.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return m(t,!0)||36===t||95===t||8204===t||8205===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},bt.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},bt.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},bt.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},bt.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},bt.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},bt.regexp_eatZero=function(t){return 48===t.current()&&!At(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},bt.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},bt.regexp_eatControlLetter=function(t){var e=t.current();return!!wt(e)&&(t.lastIntValue=e%32,t.advance(),!0)},bt.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(r&&a>=55296&&a<=56319){var n=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(a-55296)+(o-56320)+65536,!0}t.pos=n,t.lastIntValue=a}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((i=t.lastIntValue)>=0&&i<=1114111))return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},bt.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},bt.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},bt.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},bt.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r),!0}return!1},bt.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){N(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},bt.regexp_validateUnicodePropertyNameOrValue=function(t,e){t.unicodeProperties.binary.test(e)||t.raise("Invalid property name")},bt.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Ct(e=t.current());)t.lastStringValue+=kt(e),t.advance();return""!==t.lastStringValue},bt.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Et(e=t.current());)t.lastStringValue+=kt(e),t.advance();return""!==t.lastStringValue},bt.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},bt.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},bt.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||-1!==e&&-1!==i||t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},bt.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||Tt(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},bt.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},bt.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!At(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},bt.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},bt.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;At(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},bt.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;It(i=t.current());)t.lastIntValue=16*t.lastIntValue+Pt(i),t.advance();return t.pos!==e},bt.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},bt.regexp_eatOctalDigit=function(t){var e=t.current();return Tt(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},bt.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!It(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+Pt(r),t.advance()}return!0};var Nt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new R(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},Lt=F.prototype;function Vt(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}function Ot(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}Lt.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Nt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Lt.getToken=function(){return this.next(),new Nt(this)},"undefined"!=typeof Symbol&&(Lt[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===k.eof,value:e}}}}),Lt.curContext=function(){return this.context[this.context.length-1]},Lt.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(k.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Lt.readToken=function(t){return f(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Lt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},Lt.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),i=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(w.lastIndex=i;(t=w.exec(this.input))&&t.index<this.pos;)++this.curLine,this.lineStart=t.index+t[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(i+2,s),i,this.pos,e,this.curPosition())},Lt.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!C(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},Lt.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&E.test(String.fromCharCode(t))))break t;++this.pos}}},Lt.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},Lt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(k.ellipsis)):(++this.pos,this.finishToken(k.dot))},Lt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(k.assign,2):this.finishOp(k.slash,1)},Lt.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=42===t?k.star:k.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,s=k.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(k.assign,i+1):this.finishOp(s,i)},Lt.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(k.assign,3);return this.finishOp(124===t?k.logicalOR:k.logicalAND,2)}return 61===e?this.finishOp(k.assign,2):this.finishOp(124===t?k.bitwiseOR:k.bitwiseAND,1)},Lt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(k.assign,2):this.finishOp(k.bitwiseXOR,1)},Lt.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!S.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(k.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(k.assign,2):this.finishOp(k.plusMin,1)},Lt.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(k.assign,i+1):this.finishOp(k.bitShift,i)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(k.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Lt.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(k.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(k.arrow)):this.finishOp(61===t?k.eq:k.prefix,1)},Lt.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(k.questionDot,2)}if(63===e){if(t>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(k.assign,3);return this.finishOp(k.coalesce,2)}}return this.finishOp(k.question,1)},Lt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(k.parenL);case 41:return++this.pos,this.finishToken(k.parenR);case 59:return++this.pos,this.finishToken(k.semi);case 44:return++this.pos,this.finishToken(k.comma);case 91:return++this.pos,this.finishToken(k.bracketL);case 93:return++this.pos,this.finishToken(k.bracketR);case 123:return++this.pos,this.finishToken(k.braceL);case 125:return++this.pos,this.finishToken(k.braceR);case 58:return++this.pos,this.finishToken(k.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(k.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(k.prefix,1)}this.raise(this.pos,"Unexpected character '"+Ot(t)+"'")},Lt.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},Lt.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(S.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var a=this.pos,n=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new _t(this));o.reset(i,r,n),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(r,n)}catch(t){}return this.finishToken(k.regexp,{pattern:r,flags:n,value:h})},Lt.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&void 0===e,r=i&&48===this.input.charCodeAt(this.pos),a=this.pos,n=0,o=0,h=0,p=null==e?1/0:e;h<p;++h,++this.pos){var c=this.input.charCodeAt(this.pos),l=void 0;if(s&&95===c)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;else{if((l=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=t)break;o=c,n=n*t+l}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=e&&this.pos-a!==e?null:n},Lt.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=Vt(this.input.slice(e,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,i)},Lt.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var i=this.pos-e>=2&&48===this.input.charCodeAt(e);i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&110===s){var r=Vt(this.input.slice(e,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,r)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),46!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,n=(a=this.input.slice(e,this.pos),i?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(k.num,n)},Lt.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Lt.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):(C(s,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(k.string,e)};var Rt={};Lt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Rt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Lt.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Rt;this.raise(t,e)},Lt.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==k.template&&this.type!==k.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(k.template,t)):36===i?(this.pos+=2,this.finishToken(k.dollarBraceL)):(++this.pos,this.finishToken(k.backQuote));if(92===i)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(C(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Lt.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(k.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Lt.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ot(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;return this.invalidStringToken(i,"Invalid escape sequence in template string"),null}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),"0"===s&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return C(e)?"":String.fromCharCode(e)}},Lt.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},Lt.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(m(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var n=this.readCodePoint();(e?f:m)(n,s)||this.invalidStringToken(a,"Invalid Unicode escape"),t+=Ot(n),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},Lt.readWord=function(){var t=this.readWord1(),e=k.name;return this.keywords.test(t)&&(e=b[t]),this.finishToken(e,t)};F.acorn={Parser:F,version:"8.0.5",defaultOptions:B,Position:O,SourceLocation:R,getLineInfo:M,Node:rt,TokenType:g,tokTypes:k,keywordTypes:b,TokContext:ot,tokContexts:ht,isIdentifierChar:m,isIdentifierStart:f,Token:Nt,isNewLine:C,lineBreak:S,lineBreakG:w,nonASCIIwhitespace:E};var Mt=i(977),Bt=i.n(Mt);const Dt=require("react");var jt=i.n(Dt);const Ut={class:"className",for:"htmlFor",maxlength:"maxLength",colspan:"colSpan",rowspan:"rowSpan"};var Ft=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],qt=["table","tbody","tfoot","thead","tr"];function Gt(t){return-1===Ft.indexOf(t.toLowerCase())}function Ht(t){return-1!==qt.indexOf(t.toLowerCase())}var Wt=function(){return function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,e=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""),i=0;return e.split("").forEach((function(t){i=(i<<5)-i+t.charCodeAt(0),i&=i})),Math.abs(i).toString(t)}(Math.random().toString())};function zt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function Kt(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(i),!0).forEach((function(e){Xt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):zt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Xt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Qt(t){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Jt=function(t){switch(Qt(t)){case"string":return t.split(";").filter((function(t){return t})).reduce((function(t,e){var i=e.slice(0,e.indexOf(":")).trim(),s=e.slice(e.indexOf(":")+1).trim();return Kt(Kt({},t),{},Xt({},i.replace(/([A-Z])([A-Z])/g,"$1 $2").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[^a-zA-Z\u00C0-\u00ff]/g," ").toLowerCase().split(" ").filter((function(t){return t})).map((function(t,e){return e>0?t[0].toUpperCase()+t.slice(1):t})).join(""),s))}),{});case"object":return t;default:return}};function Yt(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Zt(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Zt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}var $t=function t(e,i){var s=Yt(i),r=s[0],a=s.slice(1);if(null!=e&&null!=r)return 0===a.length?e[r]:t(e[r],a)},te=function(t,e){return $t(t,function(t){return null==t||""===t?[]:t.split(".")}(e))};function ee(t){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function se(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(i),!0).forEach((function(e){fe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ie(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function re(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],s=!0,r=!1,a=void 0;try{for(var n,o=t[Symbol.iterator]();!(s=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(t){r=!0,a=t}finally{try{s||null==o.return||o.return()}finally{if(r)throw a}}return i}(t,e)||ne(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(t){return function(t){if(Array.isArray(t))return oe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||ne(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(t,e){if(t){if("string"==typeof t)return oe(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?oe(t,e):void 0}}function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function he(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pe(t,e){return(pe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,s=de(t);if(e){var r=de(this).constructor;i=Reflect.construct(s,arguments,r)}else i=s.apply(this,arguments);return le(this,i)}}function le(t,e){return!e||"object"!==ee(e)&&"function"!=typeof e?ue(t):e}function ue(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fe(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function me(t,e){var i=e.get(t);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(t):i.value}var ge=new WeakMap,xe=new WeakMap,ye=new WeakMap,ve=new WeakMap,be=new WeakMap,_e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pe(t,e)}(i,t);var e=ce(i);function i(){var t;he(this,i);for(var s=arguments.length,r=new Array(s),a=0;a<s;a++)r[a]=arguments[a];return fe(ue(t=e.call.apply(e,[this].concat(r))),"ParsedChildren",null),ge.set(ue(t),{writable:!0,value:function(e){var i=F.extend(Bt()({autoCloseVoidElements:t.props.autoCloseVoidElements})),s="<root>".concat(e,"</root>"),r=[];try{r=(r=i.parse(s,{ecmaVersion:"latest"})).body[0].expression.children||[]}catch(e){return t.props.showWarnings&&console.warn(e),t.props.onError&&t.props.onError(e),t.props.renderError?t.props.renderError({error:String(e)}):null}return r.map(me(ue(t),xe)).filter(Boolean)}}),xe.set(ue(t),{writable:!0,value:function(e){switch(e.type){case"JSXAttribute":return null===e.value||me(ue(t),xe).call(ue(t),e.value);case"JSXElement":case"JSXFragment":return me(ue(t),be).call(ue(t),e);case"JSXExpressionContainer":return me(ue(t),xe).call(ue(t),e.expression);case"JSXText":var i=t.props.disableKeyGeneration?void 0:Wt();return t.props.disableFragments?e.value:jt().createElement(Dt.Fragment,{key:i},e.value);case"ArrayExpression":return e.elements.map(me(ue(t),xe));case"BinaryExpression":switch(e.operator){case"-":return me(ue(t),xe).call(ue(t),e.left)-me(ue(t),xe).call(ue(t),e.right);case"!=":return me(ue(t),xe).call(ue(t),e.left)!=me(ue(t),xe).call(ue(t),e.right);case"!==":return me(ue(t),xe).call(ue(t),e.left)!==me(ue(t),xe).call(ue(t),e.right);case"*":return me(ue(t),xe).call(ue(t),e.left)*me(ue(t),xe).call(ue(t),e.right);case"**":return Math.pow(me(ue(t),xe).call(ue(t),e.left),me(ue(t),xe).call(ue(t),e.right));case"/":return me(ue(t),xe).call(ue(t),e.left)/me(ue(t),xe).call(ue(t),e.right);case"%":return me(ue(t),xe).call(ue(t),e.left)%me(ue(t),xe).call(ue(t),e.right);case"+":return me(ue(t),xe).call(ue(t),e.left)+me(ue(t),xe).call(ue(t),e.right);case"<":return me(ue(t),xe).call(ue(t),e.left)<me(ue(t),xe).call(ue(t),e.right);case"<=":return me(ue(t),xe).call(ue(t),e.left)<=me(ue(t),xe).call(ue(t),e.right);case"==":return me(ue(t),xe).call(ue(t),e.left)==me(ue(t),xe).call(ue(t),e.right);case"===":return me(ue(t),xe).call(ue(t),e.left)===me(ue(t),xe).call(ue(t),e.right);case">":return me(ue(t),xe).call(ue(t),e.left)>me(ue(t),xe).call(ue(t),e.right);case">=":return me(ue(t),xe).call(ue(t),e.left)>=me(ue(t),xe).call(ue(t),e.right)}return;case"CallExpression":var s=me(ue(t),xe).call(ue(t),e.callee);return void 0===s?void t.props.onError(new Error("The expression '".concat(e.callee,"' could not be resolved, resulting in an undefined return value."))):s.apply(void 0,ae(e.arguments.map(me(ue(t),xe))));case"ConditionalExpression":return me(ue(t),xe).call(ue(t),e.test)?me(ue(t),xe).call(ue(t),e.consequent):me(ue(t),xe).call(ue(t),e.alternate);case"ExpressionStatement":return me(ue(t),xe).call(ue(t),e.expression);case"Identifier":return(t.props.bindings||{})[e.name];case"Literal":return e.value;case"LogicalExpression":var r=me(ue(t),xe).call(ue(t),e.left);return"||"===e.operator&&r?r:!!("&&"===e.operator&&r||"||"===e.operator&&!r)&&me(ue(t),xe).call(ue(t),e.right);case"MemberExpression":return me(ue(t),ye).call(ue(t),e);case"ObjectExpression":var a={};return e.properties.forEach((function(e){a[e.key.name||e.key.value]=me(ue(t),xe).call(ue(t),e.value)})),a;case"TemplateElement":return e.value.cooked;case"TemplateLiteral":return[].concat(ae(e.expressions),ae(e.quasis)).sort((function(t,e){return t.start<e.start?-1:1})).map(me(ue(t),xe)).join("");case"UnaryExpression":switch(e.operator){case"+":return e.argument.value;case"-":return-e.argument.value;case"!":return!e.argument.value}return}}}),ye.set(ue(t),{writable:!0,value:function(e){var i,s,r,a,n=e.object,o=[null!==(i=null===(s=e.property)||void 0===s?void 0:s.name)&&void 0!==i?i:JSON.parse(null!==(r=null===(a=e.property)||void 0===a?void 0:a.raw)&&void 0!==r?r:'""')];if("Literal"!==e.object.type)for(;n&&["MemberExpression","Literal"].includes(null===(h=n)||void 0===h?void 0:h.type);){var h,p,c,l=n.property;if(n.computed)o.unshift(me(ue(t),xe).call(ue(t),l));else o.unshift(null!==(p=null==l?void 0:l.name)&&void 0!==p?p:JSON.parse(null!==(c=null==l?void 0:l.raw)&&void 0!==c?c:'""'));n=n.object}var u=me(ue(t),xe).call(ue(t),n);try{var d=u,f=o.reduce((function(t,e){return d=t,t[e]}),u);return"function"==typeof f?f.bind(d):f}catch(e){var m,g=(null===(m=n)||void 0===m?void 0:m.name)||"unknown";t.props.onError(new Error("Unable to parse ".concat(g,'["').concat(o.join('"]["'),'"]}')))}}}),ve.set(ue(t),{writable:!0,value:function(e){return"JSXIdentifier"===e.type?e.name:"".concat(me(ue(t),ve).call(ue(t),e.object),".").concat(me(ue(t),ve).call(ue(t),e.property))}}),be.set(ue(t),{writable:!0,value:function(e){var i=t.props,s=i.allowUnknownElements,r=i.components,a=i.componentsOnly,n=i.onError,o=e.children,h=void 0===o?[]:o,p="JSXElement"===e.type?e.openingElement:e.openingFragment,c=p.attributes,l=void 0===c?[]:c,u="JSXElement"===e.type?me(ue(t),ve).call(ue(t),p.name):"",d=(t.props.blacklistedAttrs||[]).map((function(t){return t instanceof RegExp?t:new RegExp(t,"i")})),f=(t.props.blacklistedTags||[]).map((function(t){return t.trim().toLowerCase()})).filter(Boolean);if(/^(html|head|body)$/i.test(u))return h.map((function(e){return me(ue(t),be).call(ue(t),e)}));var m,g=u.trim().toLowerCase();if(-1!==f.indexOf(g))return n(new Error("The tag <".concat(u,"> is blacklisted, and will not be rendered."))),null;if(""!==u&&!te(r,u)){if(a)return n(new Error("The component <".concat(u,"> is unrecognized, and will not be rendered."))),t.props.renderUnrecognized(u);if(!s&&document.createElement(u)instanceof HTMLUnknownElement)return n(new Error("The tag <".concat(u,"> is unrecognized in this browser, and will not be rendered."))),t.props.renderUnrecognized(u)}var x="JSXElement"===e.type?te(r,u):Dt.Fragment;if(x||Gt(u))if(m=h.map(me(ue(t),xe)),x||Ht(u)||(m=m.filter((function(t){return"string"!=typeof t||!/^\s*$/.test(t)}))),0===m.length)m=void 0;else if(1===m.length){m=re(m,1)[0]}else m.length>1&&!t.props.disableKeyGeneration&&(m=m.map((function(t,e){return null==t||!t.type||null!=t&&t.key?t:se(se({},t),{},{key:t.key||e})})));var y={key:t.props.disableKeyGeneration?void 0:Wt()};l.forEach((function(e){if("JSXAttribute"===e.type){var i=e.name.name,s=Ut[i]||i,r=me(ue(t),xe).call(ue(t),e);0===d.filter((function(t){return t.test(s)})).length&&(y[s]=r)}else if("JSXSpreadAttribute"===e.type&&"Identifier"===e.argument.type||"MemberExpression"===e.argument.type){var a=me(ue(t),xe).call(ue(t),e.argument);"object"===ee(a)&&Object.keys(a).forEach((function(t){var e=Ut[t]||t;0===d.filter((function(t){return t.test(e)})).length&&(y[e]=a[t])}))}})),"string"==typeof y.style&&(y.style=Jt(y.style));var v=u.toLowerCase();return"option"===v&&(m=m.props.children),jt().createElement(x||v,y,m)}}),fe(ue(t),"render",(function(){var e=(t.props.jsx||"").trim().replace(/<!DOCTYPE([^>]*)>/g,"");t.ParsedChildren=me(ue(t),ge).call(ue(t),e);var i=ae(new Set(["jsx-parser"].concat(ae(String(t.props.className).split(" "))))).filter(Boolean).join(" ");return t.props.renderInWrapper?jt().createElement("div",{className:i},t.ParsedChildren):jt().createElement(jt().Fragment,null,t.ParsedChildren)})),t}return i}(jt().Component);fe(_e,"displayName","JsxParser"),fe(_e,"defaultProps",{allowUnknownElements:!0,autoCloseVoidElements:!1,bindings:{},blacklistedAttrs:[/^on.+/i],blacklistedTags:["script"],className:"",components:{},componentsOnly:!1,disableFragments:!1,disableKeyGeneration:!1,jsx:"",onError:function(){},showWarnings:!1,renderError:void 0,renderInWrapper:!0,renderUnrecognized:function(){return null}})}},e={};function i(s){if(e[s])return e[s].exports;var r=e[s]={exports:{}};return t[s].call(r.exports,r,r.exports,i),r.exports}return i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(219)})();
//# sourceMappingURL=react-jsx-parser.min.js.map
|
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__
/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
/* RT-Thread Kernel */
#define RT_NAME_MAX 8
#define RT_USING_SMP
#define RT_CPUS_NR 4
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
#define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
#define SYSTEM_THREAD_STACK_SIZE 256
/* kservice optimization */
/* end of kservice optimization */
#define RT_DEBUG
#define RT_DEBUG_COLOR
/* Inter-Thread communication */
#define RT_USING_SEMAPHORE
#define RT_USING_MUTEX
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
/* end of Inter-Thread communication */
/* Memory Management */
#define RT_USING_MEMPOOL
#define RT_USING_SMALL_MEM
#define RT_USING_MEMHEAP
#define RT_MEMHEAP_FAST_MODE
#define RT_USING_SMALL_MEM_AS_HEAP
#define RT_USING_MEMTRACE
#define RT_USING_HEAP
/* end of Memory Management */
/* Kernel Device Object */
#define RT_USING_DEVICE
#define RT_USING_DEVICE_OPS
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
/* end of Kernel Device Object */
#define RT_VER_NUM 0x40100
/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
#define ARCH_ARM_CORTEX_A
#define RT_NO_USING_GIC
#define ARCH_ARM_CORTEX_A7
/* RT-Thread Components */
#define RT_USING_COMPONENTS_INIT
#define RT_USING_USER_MAIN
#define RT_MAIN_THREAD_STACK_SIZE 2048
#define RT_MAIN_THREAD_PRIORITY 10
/* C++ features */
/* end of C++ features */
/* Command shell */
#define RT_USING_FINSH
#define RT_USING_MSH
#define FINSH_USING_MSH
#define FINSH_THREAD_NAME "tshell"
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_USING_HISTORY
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_CMD_SIZE 80
#define MSH_USING_BUILT_IN_COMMANDS
#define FINSH_USING_DESCRIPTION
#define FINSH_ARG_MAX 10
/* end of Command shell */
/* Device virtual file system */
#define RT_USING_DFS
#define DFS_USING_POSIX
#define DFS_USING_WORKDIR
#define DFS_FILESYSTEMS_MAX 2
#define DFS_FILESYSTEM_TYPES_MAX 2
#define DFS_FD_MAX 16
#define RT_USING_DFS_ELMFAT
/* elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_DFS_ELM_CODE_PAGE 437
#define RT_DFS_ELM_WORD_ACCESS
#define RT_DFS_ELM_USE_LFN_3
#define RT_DFS_ELM_USE_LFN 3
#define RT_DFS_ELM_LFN_UNICODE_0
#define RT_DFS_ELM_LFN_UNICODE 0
#define RT_DFS_ELM_MAX_LFN 255
#define RT_DFS_ELM_DRIVES 2
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512
#define RT_DFS_ELM_REENTRANT
#define RT_DFS_ELM_MUTEX_TIMEOUT 3000
/* end of elm-chan's FatFs, Generic FAT Filesystem Module */
#define RT_USING_DFS_DEVFS
/* end of Device virtual file system */
/* Device Drivers */
#define RT_USING_DEVICE_IPC
#define RT_USING_SERIAL
#define RT_USING_SERIAL_V1
#define RT_SERIAL_RB_BUFSZ 64
#define RT_USING_HWTIMER
#define RT_USING_I2C
#define RT_USING_PIN
#define RT_USING_RTC
#define RT_USING_SDIO
#define RT_SDIO_STACK_SIZE 512
#define RT_SDIO_THREAD_PRIORITY 15
#define RT_MMCSD_STACK_SIZE 1024
#define RT_MMCSD_THREAD_PREORITY 22
#define RT_MMCSD_MAX_PARTITION 16
#define RT_USING_SPI
#define RT_USING_WDT
/* Using USB */
/* end of Using USB */
/* end of Device Drivers */
/* POSIX layer and C standard library */
#define RT_USING_LIBC
#define RT_LIBC_USING_TIME
#define RT_LIBC_DEFAULT_TIMEZONE 8
/* POSIX (Portable Operating System Interface) layer */
/* Interprocess Communication (IPC) */
/* Socket is in the 'Network' category */
/* end of Interprocess Communication (IPC) */
/* end of POSIX (Portable Operating System Interface) layer */
/* end of POSIX layer and C standard library */
/* Network */
/* Socket abstraction layer */
/* end of Socket abstraction layer */
/* Network interface device */
/* end of Network interface device */
/* light weight TCP/IP stack */
/* end of light weight TCP/IP stack */
/* AT commands */
/* end of AT commands */
/* end of Network */
/* VBUS(Virtual Software BUS) */
/* end of VBUS(Virtual Software BUS) */
/* Utilities */
/* end of Utilities */
/* end of RT-Thread Components */
/* RT-Thread Utestcases */
/* end of RT-Thread Utestcases */
/* RT-Thread online packages */
/* IoT - internet of things */
/* Wi-Fi */
/* Marvell WiFi */
/* end of Marvell WiFi */
/* Wiced WiFi */
/* end of Wiced WiFi */
/* end of Wi-Fi */
/* IoT Cloud */
/* end of IoT Cloud */
/* end of IoT - internet of things */
/* security packages */
/* end of security packages */
/* language packages */
/* end of language packages */
/* multimedia packages */
/* LVGL: powerful and easy-to-use embedded GUI library */
/* end of LVGL: powerful and easy-to-use embedded GUI library */
/* u8g2: a monochrome graphic library */
/* end of u8g2: a monochrome graphic library */
/* PainterEngine: A cross-platform graphics application framework written in C language */
/* end of PainterEngine: A cross-platform graphics application framework written in C language */
/* end of multimedia packages */
/* tools packages */
/* end of tools packages */
/* system packages */
/* enhanced kernel services */
/* end of enhanced kernel services */
/* acceleration: Assembly language or algorithmic acceleration packages */
/* end of acceleration: Assembly language or algorithmic acceleration packages */
/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
/* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
/* Micrium: Micrium software products porting for RT-Thread */
/* end of Micrium: Micrium software products porting for RT-Thread */
/* end of system packages */
/* peripheral libraries and drivers */
/* end of peripheral libraries and drivers */
/* AI packages */
/* end of AI packages */
/* miscellaneous packages */
/* samples: kernel and components samples */
/* end of samples: kernel and components samples */
/* entertainment: terminal games and other interesting software packages */
/* end of entertainment: terminal games and other interesting software packages */
/* end of miscellaneous packages */
/* end of RT-Thread online packages */
#define BCM2836_SOC
/* Hardware Drivers Config */
/* BCM Peripheral Drivers */
#define BSP_USING_UART
#define RT_USING_UART1
#define BSP_USING_PIN
#define BSP_USING_SYSTIMER
#define RT_USING_SYSTIMER1
#define RT_USING_SYSTIMER3
#define BSP_USING_I2C
#define BSP_USING_I2C0
#define BSP_USING_I2C1
#define BSP_USING_SPI
#define BSP_USING_SPI0_BUS
#define BSP_USING_SPI0_DEVICE0
#define BSP_USING_SPI0_DEVICE1
#define BSP_USING_WDT
#define BSP_USING_RTC
#define BSP_USING_SDIO
#define BSP_USING_SDIO0
#define BSP_USING_HDMI
/* end of BCM Peripheral Drivers */
/* end of Hardware Drivers Config */
#endif
|
const deleteAddress = (params) => ({
type: "DELETE_ADDRESS",
params,
});
const deleteAddressSucceeded = (message) => ({
type: "DELETE_ADDRESS_SUCCEEDED",
message,
});
const deleteAddressFailed = (error) => ({
type: "DELETE_ADDRESS_FAILED",
error,
});
export { deleteAddress, deleteAddressSucceeded, deleteAddressFailed };
|
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule getNodeForCharacterOffset
*/
'use strict';
/**
* Given any node return the first leaf node without children.
*
* @param {DOMElement|DOMTextNode} node
* @return {DOMElement|DOMTextNode}
*/
function getLeafNode(node) {
while (node && node.firstChild) {
node = node.firstChild;
}
return node;
}
/**
* Get the next sibling within a container. This will walk up the
* DOM if a node's siblings have been exhausted.
*
* @param {DOMElement|DOMTextNode} node
* @return {?DOMElement|DOMTextNode}
*/
function getSiblingNode(node) {
while (node) {
if (node.nextSibling) {
return node.nextSibling;
}
node = node.parentNode;
}
}
/**
* Get object describing the nodes which contain characters at offset.
*
* @param {DOMElement|DOMTextNode} root
* @param {number} offset
* @return {?object}
*/
function getNodeForCharacterOffset(root, offset) {
var node = getLeafNode(root);
var nodeStart = 0;
var nodeEnd = 0;
while (node) {
if (node.nodeType === 3) {
nodeEnd = nodeStart + node.textContent.length;
if (nodeStart <= offset && nodeEnd >= offset) {
return {
node: node,
offset: offset - nodeStart,
};
}
nodeStart = nodeEnd;
}
node = getLeafNode(getSiblingNode(node));
}
}
module.exports = getNodeForCharacterOffset;
|
class Cursor{
constructor(x, y, height, maxX, maxY) {
this.x = x;
this.y = y;
this.height = height;
this.max = {
x: maxX,
y: maxY
};
}
reset() {
this.x = 1;
this.y = 0;
}
plus(x) {
if (this.x + x <= this.max.x) {
this.x += x;
} else {
this.line();
}
}
minus(x) {
if (this.x + x >= 0) {
this.x -= x;
} else {
this.line(-1);
}
}
line(offset = 1) {
var distance = offset * this.height;
this.x = 1;
if (this.y + distance <= this.max.y && this.y + distance >= 0) {
this.y += distance;
} else {
this.reset();
}
}
}
module.exports = Cursor;
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_ANIMATABLE_IMAGE_H_
#define CHROME_BROWSER_UI_COCOA_ANIMATABLE_IMAGE_H_
#pragma once
#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
#include "base/scoped_nsobject.h"
// This class helps animate an NSImage's frame and opacity. It works by creating
// a blank NSWindow in the size specified and giving it a layer on which the
// image can be animated. Clients are free to embed this object as a child
// window for easier window management. This class will clean itself up when
// the animation has finished. Clients that install this as a child window
// should listen for the NSWindowWillCloseNotification to perform any additional
// cleanup.
@interface AnimatableImage : NSWindow {
@private
// The image to animate.
scoped_nsobject<NSImage> image_;
// The frame of the image before and after the animation. This is in this
// window's coordinate system.
CGRect startFrame_;
CGRect endFrame_;
// Opacity values for the animation.
CGFloat startOpacity_;
CGFloat endOpacity_;
// The amount of time it takes to animate the image.
CGFloat duration_;
}
@property (nonatomic) CGRect startFrame;
@property (nonatomic) CGRect endFrame;
@property (nonatomic) CGFloat startOpacity;
@property (nonatomic) CGFloat endOpacity;
@property (nonatomic) CGFloat duration;
// Designated initializer. Do not use any other NSWindow initializers. Creates
// but does not show the blank animation window of the given size. The
// |animationFrame| should usually be big enough to contain the |startFrame|
// and |endFrame| properties of the animation.
- (id)initWithImage:(NSImage*)image
animationFrame:(NSRect)animationFrame;
// Begins the animation.
- (void)startAnimation;
@end
#endif // CHROME_BROWSER_UI_COCOA_ANIMATABLE_IMAGE_H_
|
#********************************************************************************#
# #
# нεℓℓσ,вαтεs! #
# #
# filename: serializers.py #
# created: 2022-03-19 #
# system: Windows #
# version: 64bit #
# by: Bates <https://github.com/batestin1> #
#********************************************************************************#
# import your librarys below #
#********************************************************************************#
# django library
# third library
from rest_framework import serializers
# my library
from instructions import models
class InstructionsSerializer(serializers.ModelSerializer):
class Meta:
model = models.Instructions
fields = '__all__'
|
from django.contrib import admin
from nautobot.core.admin import admin_site
from .models import DummyModel
@admin.register(DummyModel, site=admin_site)
class DummyModelAdmin(admin.ModelAdmin):
list_display = ("name", "number")
|
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"../../../../moduleWrappers/goosemod/webpack.js":[function(require,module,exports) {
module.exports=goosemodScope.webpackModules;
},{}],"../../../../moduleWrappers/goosemod/logger.js":[function(require,module,exports) {
module.exports=goosemodScope.logger;
},{}],"../../../../moduleWrappers/goosemod/toast.js":[function(require,module,exports) {
module.exports=goosemodScope.showToast;
},{}],"index.js":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t,e=i(require("@goosemod/webpack")),r=i(require("@goosemod/logger")),n=o(require("@goosemod/toast"));function o(t){return t&&t.__esModule?t:{default:t}}function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function i(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=n?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}return r.default=t,e&&e.set(t,r),r}function u(t){return l(t)||f(t)||y(t)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function l(t){if(Array.isArray(t))return v(t)}function s(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(f){return void r(f)}u.done?e(c):Promise.resolve(c).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function i(t){s(a,n,o,i,u,"next",t)}function u(t){s(a,n,o,i,u,"throw",t)}i(void 0)})}}function m(t,e){return h(t)||b(t,e)||y(t,e)||p()}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(c){o=!0,a=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw a}}return r}}function h(t){if(Array.isArray(t))return t}var g={goosemodHandlers:{onImport:function(){var o=e.common.React,a=e.findByProps("getGuilds"),i=e.findByProps("uploadEmoji"),c=e.findByProps("canWithPartialContext"),f=e.findByProps("Permissions"),l=e.findByProps("sanitizeEmojiName"),s=e.findByProps("MenuItem"),p=e.find(function(t){return t.default&&"function"==typeof t.default&&t.default.toString().includes('id:"copy-native-link"')}),y=p.default;p.default=function(t,e){var p=y(t,e);if(!t)return p;var v=l.sanitizeEmojiName(t.substring(t.lastIndexOf("/"),t.lastIndexOf("."))),b=Object.entries(a.getGuilds()).filter(function(t){var e=m(t,2),r=(e[0],e[1]);return c.can(f.Permissions.MANAGE_EMOJIS,r)}).sort(function(t,e){var r=m(t,2),n=(r[0],r[1]),o=m(e,2),a=(o[0],o[1]);return n.name.localeCompare(a.name)}).map(function(e){var a=m(e,2),u=a[0],c=a[1];return o.createElement(s.MenuItem,{id:"createEmoji-create-"+u,label:c.name,action:function(){var e=d(regeneratorRuntime.mark(function e(){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t,{mode:"cors"});case 3:o=e.sent,e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(0),r.debug("Clone Emoji","Error fetching from: "+t,e.t0),(0,n.default)("Couldn't create emoji.",{type:"error"}),e.abrupt("return");case 11:return e.t1=i,e.t2=u,e.t3="data:".concat(o.headers.get("Content-Type"),";base64,"),e.t4=btoa,e.t5=String.fromCharCode,e.t6=Uint8Array,e.next=19,o.arrayBuffer();case 19:return e.t7=e.sent,e.t8=new e.t6(e.t7),e.t9=e.t5.apply.call(e.t5,null,e.t8),e.t10=(0,e.t4)(e.t9),e.t11=e.t3.concat.call(e.t3,e.t10),e.t12=v,e.next=27,e.t1.uploadEmoji.call(e.t1,e.t2,e.t11,e.t12).then(function(){(0,n.default)('Created emoji "'.concat(v,'" in ').concat(c.name,"."))});case 27:case"end":return e.stop()}},e,null,[[0,6]])}));return function(){return e.apply(this,arguments)}}()})});return b&&b.length?[o.createElement(s.MenuItem,{id:"createEmoji-create",label:"Create Emoji: "+v,action:function(){}},b)].concat(u(p)):p},t=function(){return p.default=y}},onRemove:function(){t()}}};exports.default=g;
},{"@goosemod/webpack":"../../../../moduleWrappers/goosemod/webpack.js","@goosemod/logger":"../../../../moduleWrappers/goosemod/logger.js","@goosemod/toast":"../../../../moduleWrappers/goosemod/toast.js"}]},{},["index.js"], null);parcelRequire('index.js').default
|
const { Pool } = require('pg');
const config = require('@app/config');
const Logger = require('@app/loaders/logger');
const pool = new Pool(config.db);
let queryCounter = 0;
module.exports = {
executeQuery: async (text, ...params) => {
if (typeof pool === 'undefined') {
return undefined;
}
let client = undefined;
try {
client = await pool.connect();
} catch (error) {
Logger.error("Failed to initialized connection.");
return undefined;
}
const start = Date.now();
let query = {
name: "Q" + queryCounter++,
text: text,
values: params
}
await client.query('BEGIN');
let res = undefined;
try {
res = await client.query(query);
const duration = Date.now() - start;
await client.query('COMMIT');
Logger.info("Query executed: %o", { query: query, duration: duration });
} catch (error) {
await client.query('ROLLBACK');
client.release();
Logger.error("Failed to execute query: %o", { query: query, error: error.stack });
}
await client.end();
return res;
},
close: async () => {
if (typeof pool !== 'undefined') {
try {
pool.end();
return true;
} catch (error) {
Logger.error("Failed to properly close connection pool: %o", { error: error.stack });
return false;
}
}
}
}
|
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World! Public</p>"
|
#pragma once
#include <limits>
#include "DrawableGameComponent.h"
#include "NormalMappingEffect.h"
#include "ShadowcastedDirectionalEffect.h"
#include "DepthPass.h"
#include "FogEffect.h"
#include "ColorHelper.h"
#include "TextureProjector.h"
#include "RenderedMesh.h"
#include "ProjectingLight.h"
#include "DeferredScreen.h"
#include "DeferredFramebuffer.h"
#include "Game.h"
#include "ScreenRect.h"
#include "Skybox.h"
#include "ImGuiComponent.h"
#include "Presentation.h"
#include "DeferredAmbientLight.h"
#include "DeferredPointLight.h"
namespace Library
{
class Light;
class DirectionalLight;
class SpotLight;
class ProxyModel;
}
namespace Rendering
{
class GraphicsProgram final : public Library::DrawableGameComponent
{
RTTI_DECLARATIONS(GraphicsProgram, Library::DrawableGameComponent)
public:
GraphicsProgram(Library::Game& game, std::shared_ptr<Library::Camera> camera);
GraphicsProgram(const GraphicsProgram&) = delete;
GraphicsProgram& operator=(const GraphicsProgram&) = delete;
GraphicsProgram(GraphicsProgram&&) = delete;
GraphicsProgram& operator=(GraphicsProgram&&) = delete;
~GraphicsProgram();
virtual void Initialize() override;
virtual void Update(const Library::GameTime& gameTime) override;
virtual void Draw(const Library::GameTime& gameTime) override;
float AmbientLightIntensity() const;
float DepthBias() const;
std::shared_ptr<Library::MovableGameObject> ControlledObject();
bool ShowingShadowMapping() const;
std::string DeferredRenderingStatus() const;
std::string DeferredDebugDisplayed() const;
private:
void UpdateAmbientLight(const Library::GameTime& gameTime);
void UpdateDirectionalLight(const Library::GameTime& gameTime);
void UpdateSpecularLight(const Library::GameTime& gameTime);
void UpdateControlledObjects(const Library::GameTime& gameTime);
void UpdateShadowProperties(const Library::GameTime& gameTime);
void OnKey(int key, int scancode, int action, int mods);
inline static const glm::vec2 LightRotationRate{ glm::two_pi<float>(), glm::two_pi<float>() };
inline static const float LightModulationRate{ std::numeric_limits<unsigned char>::max() };
std::shared_ptr<Library::ImGuiComponent> mDebugTextWindow;
std::shared_ptr<Library::Skybox> mSkybox;
std::shared_ptr<Library::Light> mAmbientLight;
std::shared_ptr<Library::DirectionalLight> mDirectionalLight;
std::shared_ptr<Library::ProjectingLight> mSpotLight;
std::shared_ptr<Library::ProxyModel> mProxyModel;
std::shared_ptr<Library::RenderedMesh> mDog;
std::shared_ptr<Library::RenderedMesh> mBuilding;
std::shared_ptr<Library::RenderedMesh> mBuildingB;
std::shared_ptr<Library::RenderedMesh> mCan;
std::shared_ptr<Library::RenderedMesh> mFlashlight;
std::shared_ptr<Library::ScreenRect> mDebugRect;
std::shared_ptr<Library::ScreenRect> mDeferredDebugRect;
std::shared_ptr<Library::DeferredScreen> mDeferredDisplay;
std::shared_ptr<Library::Presentation> mPresentation;
std::shared_ptr<Library::DeferredAmbientLight> mDeferredAmbientLight;
std::vector<std::shared_ptr<Library::DeferredPointLight>> mPointLights;
std::shared_ptr<Library::DeferredFramebuffer> mGBuffer;
const std::vector<std::function<void()>> gBufferSwitch = {
[this]() { mDeferredDebugRect->SetTexture(mGBuffer->PositionID()); },
[this]() { mDeferredDebugRect->SetTexture(mGBuffer->NormalID()); },
[this]() { mDeferredDebugRect->SetTexture(mGBuffer->ColorID()); }
};
const std::vector<std::string> gBufferDataNames = {
"Position",
"Normals",
"Color"
};
std::vector<std::shared_ptr<Library::RenderedMesh>> mMeshes;
std::vector<std::shared_ptr<Library::MovableGameObject>> mControlledObjects;
size_t mControlledObject = 0;
float ItemRotationRate = glm::two_pi<float>();
float ItemMovementRate = 50.f;
float mDepthBias = 0.001f;
Library::Game::KeyboardHandler mKeyboardHandler;
bool mShowShadowMapping = false;
int mShownGBuffer = 0;
size_t tenPower = 0;
size_t currentPointLightCount = 1;
float mRadiusMultiplier = 3.1f;
};
}
|
from .base import AuthenticationBase
class Passwordless(AuthenticationBase):
"""Passwordless connections endpoints.
Args:
domain (str): Your auth0 domain (e.g: username.auth0.com)
"""
def __init__(self, domain):
self.domain = domain
def email(self, client_id, email, send='link', auth_params={}):
"""Start flow sending an email.
Given the user email address, it will send an email with:
- A link (default, send:"link"). You can then authenticate with
this user opening the link and he will be automatically logged in
to the application. Optionally, you can append/override
parameters to the link (like scope, redirect_uri, protocol,
response_type, etc.) using auth_params dict.
- A verification code (send:"code"). You can then authenticate with
this user using email as username and code as password.
Args:
client_id (str): Id of the client.
email (str): Email address.
send (str, optional): Can be: 'link' or 'code'. Defaults to 'link'.
auth_params (dict, optional): Parameters to append or override.
"""
return self.post(
'https://%s/passwordless/start' % self.domain,
data={
'client_id': client_id,
'connection': 'email',
'email': email,
'send': send,
'authParams': auth_params,
},
headers={'Content-Type': 'application/json'}
)
def sms(self, client_id, phone_number):
"""Start flow sending a SMS message.
"""
return self.post(
'https://%s/passwordless/start' % self.domain,
data={
'client_id': client_id,
'connection': 'sms',
'phone_number': phone_number,
},
headers={'Content-Type': 'application/json'}
)
def sms_login(self, client_id, phone_number, code, scope='openid'):
"""Login using phone number/verification code.
"""
return self.post(
'https://%s/oauth/ro' % self.domain,
data={
'client_id': client_id,
'connection': 'sms',
'grant_type': 'password',
'username': phone_number,
'password': code,
'scope': scope,
},
headers={'Content-Type': 'application/json'}
)
|
import React, {useEffect} from 'react'
import {useHttp} from '../hooks/http.hook'
import {useMessage} from '../hooks/message.hook'
import {SignInCard} from "../components/SignIn/SignInCard";
import {SignUpCard} from "../components/SignUp/SignUpCard";
import {Navbar} from "../components/Navbar/Navbar";
import {Navigation} from "../components/Navigation/Navigation";
export const AuthPage = () => {
const message = useMessage()
const {error, clearError} = useHttp()
useEffect(() => {
message(error)
clearError()
}, [error, message, clearError])
return (
<div>
{/*<Navbar/>*/}
{/*<Navigation/>*/}
<SignInCard/>
</div>
)
}
|
Search.setIndex({docnames:["appendix","bind_paths_and_mounts","build_a_container","build_env","cgroups","checkpoint","cli","cli/apptainer","cli/apptainer_build","cli/apptainer_cache","cli/apptainer_cache_clean","cli/apptainer_cache_list","cli/apptainer_capability","cli/apptainer_capability_add","cli/apptainer_capability_avail","cli/apptainer_capability_drop","cli/apptainer_capability_list","cli/apptainer_checkpoint","cli/apptainer_checkpoint_create","cli/apptainer_checkpoint_delete","cli/apptainer_checkpoint_instance","cli/apptainer_checkpoint_list","cli/apptainer_config","cli/apptainer_config_fakeroot","cli/apptainer_config_global","cli/apptainer_delete","cli/apptainer_exec","cli/apptainer_inspect","cli/apptainer_instance","cli/apptainer_instance_list","cli/apptainer_instance_start","cli/apptainer_instance_stop","cli/apptainer_key","cli/apptainer_key_export","cli/apptainer_key_import","cli/apptainer_key_list","cli/apptainer_key_newpair","cli/apptainer_key_pull","cli/apptainer_key_push","cli/apptainer_key_remove","cli/apptainer_key_search","cli/apptainer_oci","cli/apptainer_oci_attach","cli/apptainer_oci_create","cli/apptainer_oci_delete","cli/apptainer_oci_exec","cli/apptainer_oci_kill","cli/apptainer_oci_mount","cli/apptainer_oci_pause","cli/apptainer_oci_resume","cli/apptainer_oci_run","cli/apptainer_oci_start","cli/apptainer_oci_state","cli/apptainer_oci_umount","cli/apptainer_oci_update","cli/apptainer_overlay","cli/apptainer_overlay_create","cli/apptainer_plugin","cli/apptainer_plugin_compile","cli/apptainer_plugin_create","cli/apptainer_plugin_disable","cli/apptainer_plugin_enable","cli/apptainer_plugin_inspect","cli/apptainer_plugin_install","cli/apptainer_plugin_list","cli/apptainer_plugin_uninstall","cli/apptainer_pull","cli/apptainer_push","cli/apptainer_remote","cli/apptainer_remote_add","cli/apptainer_remote_add-keyserver","cli/apptainer_remote_list","cli/apptainer_remote_login","cli/apptainer_remote_logout","cli/apptainer_remote_remove","cli/apptainer_remote_remove-keyserver","cli/apptainer_remote_status","cli/apptainer_remote_use","cli/apptainer_run","cli/apptainer_run-help","cli/apptainer_search","cli/apptainer_shell","cli/apptainer_sif","cli/apptainer_sif_add","cli/apptainer_sif_del","cli/apptainer_sif_dump","cli/apptainer_sif_header","cli/apptainer_sif_info","cli/apptainer_sif_list","cli/apptainer_sif_new","cli/apptainer_sif_setprim","cli/apptainer_sign","cli/apptainer_test","cli/apptainer_verify","cli/apptainer_version","contributing","definition_files","docker_and_oci","encryption","endpoint","environment_and_metadata","fakeroot","gpu","index","introduction","key_commands","library_api","license","mpi","networking","oci_runtime","persistent_overlays","plugins","quick_start","running_services","security","security_options","signNverify","singularity_compatibility"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["appendix.rst","bind_paths_and_mounts.rst","build_a_container.rst","build_env.rst","cgroups.rst","checkpoint.rst","cli.rst","cli/apptainer.rst","cli/apptainer_build.rst","cli/apptainer_cache.rst","cli/apptainer_cache_clean.rst","cli/apptainer_cache_list.rst","cli/apptainer_capability.rst","cli/apptainer_capability_add.rst","cli/apptainer_capability_avail.rst","cli/apptainer_capability_drop.rst","cli/apptainer_capability_list.rst","cli/apptainer_checkpoint.rst","cli/apptainer_checkpoint_create.rst","cli/apptainer_checkpoint_delete.rst","cli/apptainer_checkpoint_instance.rst","cli/apptainer_checkpoint_list.rst","cli/apptainer_config.rst","cli/apptainer_config_fakeroot.rst","cli/apptainer_config_global.rst","cli/apptainer_delete.rst","cli/apptainer_exec.rst","cli/apptainer_inspect.rst","cli/apptainer_instance.rst","cli/apptainer_instance_list.rst","cli/apptainer_instance_start.rst","cli/apptainer_instance_stop.rst","cli/apptainer_key.rst","cli/apptainer_key_export.rst","cli/apptainer_key_import.rst","cli/apptainer_key_list.rst","cli/apptainer_key_newpair.rst","cli/apptainer_key_pull.rst","cli/apptainer_key_push.rst","cli/apptainer_key_remove.rst","cli/apptainer_key_search.rst","cli/apptainer_oci.rst","cli/apptainer_oci_attach.rst","cli/apptainer_oci_create.rst","cli/apptainer_oci_delete.rst","cli/apptainer_oci_exec.rst","cli/apptainer_oci_kill.rst","cli/apptainer_oci_mount.rst","cli/apptainer_oci_pause.rst","cli/apptainer_oci_resume.rst","cli/apptainer_oci_run.rst","cli/apptainer_oci_start.rst","cli/apptainer_oci_state.rst","cli/apptainer_oci_umount.rst","cli/apptainer_oci_update.rst","cli/apptainer_overlay.rst","cli/apptainer_overlay_create.rst","cli/apptainer_plugin.rst","cli/apptainer_plugin_compile.rst","cli/apptainer_plugin_create.rst","cli/apptainer_plugin_disable.rst","cli/apptainer_plugin_enable.rst","cli/apptainer_plugin_inspect.rst","cli/apptainer_plugin_install.rst","cli/apptainer_plugin_list.rst","cli/apptainer_plugin_uninstall.rst","cli/apptainer_pull.rst","cli/apptainer_push.rst","cli/apptainer_remote.rst","cli/apptainer_remote_add.rst","cli/apptainer_remote_add-keyserver.rst","cli/apptainer_remote_list.rst","cli/apptainer_remote_login.rst","cli/apptainer_remote_logout.rst","cli/apptainer_remote_remove.rst","cli/apptainer_remote_remove-keyserver.rst","cli/apptainer_remote_status.rst","cli/apptainer_remote_use.rst","cli/apptainer_run.rst","cli/apptainer_run-help.rst","cli/apptainer_search.rst","cli/apptainer_shell.rst","cli/apptainer_sif.rst","cli/apptainer_sif_add.rst","cli/apptainer_sif_del.rst","cli/apptainer_sif_dump.rst","cli/apptainer_sif_header.rst","cli/apptainer_sif_info.rst","cli/apptainer_sif_list.rst","cli/apptainer_sif_new.rst","cli/apptainer_sif_setprim.rst","cli/apptainer_sign.rst","cli/apptainer_test.rst","cli/apptainer_verify.rst","cli/apptainer_version.rst","contributing.rst","definition_files.rst","docker_and_oci.rst","encryption.rst","endpoint.rst","environment_and_metadata.rst","fakeroot.rst","gpu.rst","index.rst","introduction.rst","key_commands.rst","library_api.rst","license.rst","mpi.rst","networking.rst","oci_runtime.rst","persistent_overlays.rst","plugins.rst","quick_start.rst","running_services.rst","security.rst","security_options.rst","signNverify.rst","singularity_compatibility.rst"],objects:{},objnames:{},objtypes:{},terms:{"0":[0,1,3,4,5,8,25,26,30,62,78,81,83,92,96,97,98,100,101,102,105,106,108,109,110,112,113,114,116,117,118],"00":[3,30,81,97,102,106,108,114],"000":116,"0000":[72,102],"00000000":72,"000000000000":72,"0022":[26,30,78,81,92,100],"005d5ae1dc3f":102,"01":[81,96,100,113],"02":[81,97,114,117],"0200":105,"02ee8bf9dc335c2":3,"04":[0,2,96,97,98,102,105,106,108,113],"0400":109,"05":[3,108,114],"0500":97,"06":[3,97],"0620":110,"0666":110,"07":[3,97,105],"0755":114,"08":[3,105],"0800":117,"09":[0,97,102,109],"0ed5a98249068fe0592edb":3,"0m":116,"0s":[97,106,110],"0t0":96,"0x":117,"0x565246634360":102,"0x5652469263d0":102,"0x8883491f4268f173c6e5dc49edece4f3f38d871":117,"0xf38d871e":117,"1":[0,1,3,4,5,25,26,30,59,62,70,78,81,83,84,85,87,90,92,96,97,99,100,101,102,105,106,108,109,110,111,112,113,114,116,117,118],"10":[3,4,5,26,30,31,78,81,83,92,95,97,98,100,102,109,111,114],"100":[4,40,106,114],"1000":[1,4,101,102,113,116],"100000":4,"100000u":4,"1006":102,"100912":110,"100916":110,"100m":[1,4],"100mb":1,"1024":[4,26,56,78,81,92,101,105,110,111],"102400":1,"107":109,"107409":96,"11":[0,3,83,97,100,102,105,106],"1113904":114,"116":[97,113],"1179476":114,"118356480":97,"119":97,"11963":29,"11964":29,"11965":29,"12":[0,3,96,97,105,113,117],"12045c8c0b1004d058de4beda20c27ee7ff7ba84":96,"12144":114,"123":97,"12345":96,"123456":100,"126":113,"127":109,"128":116,"13":[0,3,105,106,110,113],"131072":[1,101],"131073":101,"13349913758992036690":102,"14":[0,3,97,102,109,110],"142":102,"14474280960":102,"14583":114,"1499":97,"15":[0,3,31,97,100,102,104,109,110,114,117],"1554389921452964253":110,"15883996":110,"16":[0,1,2,3,97,102,109,113,114],"1604":110,"1618":102,"16219":29,"1651":102,"16777216":4,"168":102,"16ec32c2132b":97,"16ec32c2132b43494832a05f2b02f7a822479f8250c173d0ab27b3de78b2f058":97,"16mb":4,"17":[0,97,113,114],"172":109,"175":102,"1777":110,"178":116,"18":[96,98,101,102,106,108,116],"18204":114,"183":102,"188mb":97,"19":[3,117],"19035":96,"19061":96,"1908":106,"19130":114,"192":3,"19519312":110,"196607":101,"1969":97,"1b07":102,"1d9cd1b99a7eca56d8f2b":3,"1e":102,"1k":[1,110],"1m":111,"2":[0,1,3,4,5,26,30,78,81,83,96,97,98,99,100,101,102,106,108,109,110,111,114,117],"20":[0,1,3,81,96,97,102],"200":[5,109],"20000":4,"2017":107,"2018":[96,107,109],"2019":[0,102,105],"2020":[1,3,97],"20200514":106,"2021":[97,113],"2022":[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,107,117],"2048":98,"2080505856":110,"209072":5,"20m":4,"21":[3,97,111],"219c332183ec3800bdfda4":3,"22":[3,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,97,105,109],"22045c8c0b1004d058de4beda20c27ee7ff7ba84":[0,96],"22084":114,"22443":114,"22493":114,"23":[3,97,109,117],"23727":114,"23845":31,"23858":31,"24":[0,3,97,106,113],"24577":1,"247679":5,"25":[0,3,109],"251":109,"256":117,"25688":1,"256color":100,"26":[3,105,114],"2620740":110,"266":97,"2690":97,"27":[3,97,113,114],"2781184":117,"2782981":117,"28":[0,3,105,110],"2880":114,"29":[0,3],"2adae3950d4d0f11875568":3,"2f0514a4c044af1ff4f47a46e14b6d46143044522fcd7a9901124209d16d6171":97,"2faf36b5a781":1,"2nd":102,"3":[1,4,5,26,30,78,81,83,96,97,100,101,102,105,106,107,108,113,114,117],"30":[3,10,97,110,113],"3072":105,"31":[0,97],"3188":114,"32":[3,102],"32768":117,"32800":117,"3292620000":102,"33":[97,102,113],"34":[3,109],"35":[0,3,102],"35em":[109,114],"36640":114,"36864":117,"37":[3,97],"376057ac6fa17f65688c56":3,"379":3,"386":83,"39":[3,97,114],"39492":114,"39751":117,"3d":102,"3rd":102,"3u":96,"4":[1,3,26,30,78,81,83,97,100,102,108,109,110,111,113,114,117],"401":97,"40312":114,"4096":[1,36,110,111,117],"40960":117,"40961":1,"41055":117,"42":[0,97,102],"4294967295":110,"4296":114,"43":97,"433fe984155206bd962725e20e8713472a879943":83,"438":3,"44":[97,102],"45":[1,3,97,105,106],"45056":117,"46":113,"461":114,"468":114,"47282bdc661f58fa4bebef47ca576cbd8ef1a2b4":105,"475192":110,"48":[3,97,102],"48e81523aaad3d74e7af8b154ac5e75f2726cc6cab37f718237d8f89d905ff89":106,"49":[96,97],"496548a8c952b37bdf149a":3,"4b82":1,"5":[0,1,83,97,100,102,106,108,110,113,114,117],"50":[3,4,97,113],"500":[96,111],"500mb":[4,111],"504560":110,"51":[3,100,102],"5111f59250ac94f":3,"512":4,"5120":110,"52":116,"524288000":4,"53":[0,109],"54":97,"55":[3,97,113],"550":102,"550x":102,"55mb":0,"56":[3,96,97,116],"565392":114,"57":[3,97],"5720799fe7b048cf36fab8445ee1e2bd7b6342c5":105,"57345":1,"575":110,"58":[3,102,109,114],"59":[3,114,116],"59_cst":100,"5_pst":96,"5a15b484bc65":97,"5a15b484bc657d2b418f2c20628c29945ec19f1a0c019d004eaf0ca1db9f952b":97,"5a63a0a859d859478f3046":3,"5c89852c":102,"5ca731fc36c2":97,"5ca731fc36c28789c5ddc3216563e8bfca2ab3ea10347e07554ebba1c953242":97,"5efaeecfa72afde779c946":3,"5fffaf1f2c1830a6a8cf90eb27c7a1a8476b8c49b4b6261a20d6257d031ce4f3":110,"6":[0,1,2,3,83,96,100,106,108,109,114,115,116,117],"61":3,"612":109,"61220":114,"6154df8ff9882934dc5bf2":3,"63259fd0a2acb88bb652702c08c1460b071df51149ff85dc88db5034532a14a0":106,"64":[56,108,116],"65536":101,"65536k":110,"6578":110,"673":116,"696k":0,"696kib":0,"6b44b0bc9cd273cc6a71da8ced6fa43ef8771a02":106,"6d60f95e86a593603897164f8e09e44d12a7111c":106,"6s":97,"7":[0,1,3,4,8,13,15,83,96,97,98,100,102,106,108,109,114],"700kb":0,"700m":111,"700mb":111,"70ca7d49f8e9c44705431e3dade0636a2156300ae646ff4f09c904c138728839":97,"70d0b3967cd8abe96c9719":3,"72":106,"73":116,"730":102,"73729":1,"73750":114,"738":110,"73d5b1025fbfa138f2cacf45bbf3f61f7de891559fa25b28ab365c7d9c3cbd82":97,"743600":102,"747d2dbbaaee995098c979":3,"74993664":97,"750509":102,"75156480":97,"752":114,"755":110,"759e71f0d3":0,"760":3,"77":3,"77cae8ab23bf":0,"78":3,"782":3,"784482":102,"7853f08767a4596b3c1ad95e48e1080ab16ed1bc":106,"787911":102,"787939":102,"798428":102,"7a49":1,"7f7a065d245a6501a782bf674f4d7e9d0a62fa6bd212edbf1f17bad0d5cd0bfc":97,"7mib":106,"8":[0,1,81,83,97,101,102,106,108,109,110,114,116],"80":[101,109],"8080":[101,109],"81":3,"8193":1,"8232570480b868e1473aeeb03dbcba1ee9d661e5":117,"83":[3,97],"838":116,"84":116,"842683":102,"843252":102,"843265":102,"843380":102,"843984":102,"85":3,"8883491f4268f173c6e5dc49edece4f3f38d871":[37,38,40,106],"8888":[5,100],"89bf":1,"8c10b902f438e4d504c3acf689fcffaed5f34a77":105,"8f5af4048c33630473b396":3,"9":[0,1,8,83,96,97,100,102,106,111],"90":100,"900":110,"9000":[109,114],"9015":102,"91":[96,100],"93":3,"936444":114,"94":[100,102],"946":97,"95":100,"95c3f3755f37380edb2f8f":3,"965ea09ff2eb":0,"96878229af8adf91bcbf11":3,"9879":110,"99":100,"99312":110,"9a839e63dad54c3a6d1834":3,"9d56fa7cafb4a37729751b8a21749d0d6447b268":106,"9ff48d6202271d3c842c53bd0d237be8bb5b5c76":106,"abstract":97,"break":[5,96,113,116],"byte":[0,4,5,116],"case":[1,3,4,5,13,15,96,98,100,101,102,103,105,108,111,113,114,116,118],"char":108,"class":[4,5,102,106],"default":[0,1,2,4,5,7,8,10,11,20,24,25,26,27,30,31,35,36,43,46,50,56,57,66,68,70,75,76,77,78,80,81,83,91,92,93,96,102,104,106,108,109,110,113,115,116,117,118],"do":[0,1,2,3,8,10,12,26,30,66,67,68,78,81,92,96,97,99,100,102,105,108,111,113,114,115,118],"export":[0,1,2,3,6,8,32,96,97,98,100,102,108,112,113,114],"final":[5,96,100,108,112,113,114,118],"function":[0,1,4,57,95,96,99,102,108,111,112,113,115],"goto":108,"import":[0,4,5,6,32,33,35,37,38,39,95,96,97,99,100,102,116],"int":[5,10,31,36,46,56,83,91,108],"long":[40,100,102,108,117],"new":[0,1,2,5,6,26,30,32,34,36,59,68,69,78,81,82,92,96,97,99,100,102,103,104,105,109,111,113,114,115,116,117],"null":[4,101,114],"public":[0,2,3,5,32,33,34,35,36,37,38,39,40,92,96,98,99,105,115,117,118],"qu\u00e9bec":113,"return":[8,96,102,105,106,108],"short":[1,2,96,97,112],"static":[0,1,5,102,108],"switch":[68,99],"true":[0,3,4,114],"try":[2,3,5,97,102,114,117],"var":[0,1,3,26,30,47,53,78,81,92,97,100,108,110,111,114],"while":[0,1,4,5,96,97,98,99,100,104,114,115],A:[1,3,4,5,8,25,26,30,58,62,68,72,78,81,82,92,96,97,98,99,100,101,104,107,108,109,111,112,113,114,115],AND:107,AS:107,And:[2,5,95,100,105,109,113,114,116],As:[4,26,30,78,81,95,96,97,102,104,108,114,115,116,117],At:[5,95,97,100,102,108],BE:107,BUT:107,BY:107,Be:[96,97],But:[2,114,116,117],By:[0,2,3,4,10,27,91,93,96,99,102,106,108,109,110,113,115,116],FOR:107,For:[0,1,2,4,5,92,95,96,97,98,99,100,101,102,103,105,107,108,109,110,111,113,114,115,116],IF:107,IN:107,IS:107,If:[0,1,2,3,4,5,8,26,27,30,70,72,73,75,76,78,79,81,92,93,95,96,97,98,99,100,101,102,104,105,106,108,109,110,111,113,114,115,116,117,118],In:[0,1,4,5,95,96,98,100,102,105,108,110,111,112,113,114,115,117,118],Is:[3,108],It:[0,2,4,5,8,67,78,82,96,97,99,100,102,103,104,108,109,110,111,114,115,116,117],Its:[96,97,102],NO:[97,99,107,117],NOT:[8,26,30,66,78,81,92,107],No:[97,100,111],Not:[97,102],OF:107,ON:107,OR:107,Of:[2,97,98,101,105,106,110,116],On:[0,4,95,97,108,113,114,115],One:[0,96,114],Or:[0,1,113,117],SUCH:107,THE:107,TO:[107,108],That:[4,113],The:[0,1,2,3,4,5,8,13,15,17,18,19,20,21,22,23,24,25,27,29,30,31,33,34,36,37,38,39,40,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,91,92,93,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118],Then:[0,97,102,105,111,113,116],There:[0,3,4,93,97,102,104,108,112,113,114],These:[96,97,99,100,102,105,113],To:[0,1,2,3,4,8,13,15,16,18,19,20,21,23,24,27,56,67,68,70,72,73,91,95,96,97,98,100,102,105,106,108,110,111,112,113,114,115,116,117],Will:[35,99],With:[2,3,7,97,99,101,113,115,116,118],_:[102,114],__:[97,102,113],___:102,____:102,_____:113,_______:[97,113],________:102,_______________:102,_________________________:113,_____________________________:97,______________________________:113,__________________________________:102,________________________________________:113,_into_:2,_llseek:110,_newselect:110,a2022691bf950a72f9d2d84d557183cb9eee07c065a76485f1695784855c5193:97,abc:97,abil:[1,99,100,105,108,109,113,114,116,117],abl:[1,4,97,101,104,108,109,112,114,115,116,117],abort:100,about:[0,4,5,87,95,96,100,104,108,109,112,113,114,116],abov:[0,1,96,97,98,99,100,104,107,109,110,111,113,114,115,116,117],absenc:[1,117],absolut:[1,4,5],academ:104,academia:104,acceler:102,accept4:110,accept:[1,2,4,30,78,96,97,109,110,113,116],access:[0,2,8,26,30,78,81,92,97,98,99,100,101,102,103,104,106,110,111,113,115,116],accompani:113,accomplish:[109,115],accord:[1,102,111],account:[1,3,4,95,96,97,101,114,115,116],accountid:97,acr:[0,72],acronym:110,across:[104,108,111],action:[1,8,68,100,109,110,111,113,115],activ:[20,27,68,71,72,73,77,96,99,116,117],actual:[4,10,97,116],ad:[0,1,2,27,37,56,91,96,97,99,100,105,109,111,113,117],adapt:108,add:[0,1,3,5,6,12,23,24,26,30,34,37,56,57,68,78,81,82,91,92,95,96,97,100,102,105,106,108,109,111,112,113,114],add_argu:5,addit:[0,1,3,5,7,70,92,95,97,100,102,104,108,109,110,111,113,114,115],addition:[101,104,111,112],address:[0,26,68,78,81,92,97,99,110,117],adjust:113,adm:113,admin:[5,99,101,102,103,113,116],admin_quickstart:113,administr:[1,5,24,95,97,99,101,102,105,108,109,113,115,116,118],adminstr:97,adopt:[96,115],advanc:[1,100,113],advantag:[97,102,108,116],advic:108,advis:[107,113],ae620432889d2553535199dbdd8ba5a264ce85fcdcd5a430974d81fc27c02b45:97,af7e389ea6636873dbc5adc17826e8401d96d3d384135b2f9fe990865af202ab:97,af88fdb253aac46693de78:3,affect:[97,101,109,111,113,115],after:[0,3,4,8,31,66,96,97,100,105,106,111,112,113,114,118],again:[97,98,114,117,118],against:[5,96,100,106,110,111,115],agent:[97,110],ago:[0,3,97],aim:[0,97,103,108,113,115],alarm:110,alert:0,algorithm:117,alic:[96,113],align:83,all:[0,1,2,3,4,8,9,10,11,12,13,14,15,16,17,19,22,26,27,28,29,30,31,32,41,48,49,55,57,68,70,71,78,81,82,92,93,95,96,97,99,100,101,102,103,104,106,107,108,110,111,112,113,115,116,117],alloc:[1,26,78,81,92,108,109],allow:[0,1,2,3,4,5,12,17,22,23,24,25,26,28,29,30,31,33,34,36,37,38,40,41,55,56,57,58,59,60,61,62,66,67,68,69,70,72,73,74,75,78,81,91,92,93,96,97,98,99,100,101,102,103,104,105,109,110,111,113,114,115,117,118],allow_http:114,allowedcpu:4,almost:[95,101],alon:[98,109],along:[97,104,110,113],alongsid:[96,97],alphabet:0,alphanumer:100,alpin:[0,2,4,66,80,96,97,100,101,106,113,114,118],alpine3:96,alpine_3:106,alpine_latest:[114,117],alreadi:[0,1,2,60,61,62,92,97,98,99,100,101,108,111,113,118],also:[0,1,3,4,95,96,97,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118],alter:[96,113],altern:[1,3,80,96,97,99,100,106,113,115],although:[96,97,101,114],alvarcarto:114,alwai:[0,3,67,95,96,97,99,100,101,106,114,115,116,117],am:108,amazonaw:97,ambient:110,amd64:[25,66,80,83,96,100,106,111,113,117],amd:2,amdgpu:102,amount:[0,3,4,26,78,81,92,104],amper:102,an:[0,1,3,4,5,7,8,18,20,25,26,27,30,41,43,47,53,55,56,57,58,60,61,62,66,67,68,72,73,74,76,77,78,79,80,81,91,92,93,96,97,99,100,101,102,103,104,105,106,109,111,112,113,114,115,116,117,118],anaconda2:100,anaconda:100,ani:[0,1,2,3,4,7,8,10,77,95,96,97,100,102,103,104,105,106,107,108,110,112,113,115,117,118],anonym:[97,99],anoth:[3,26,30,66,78,81,95,96,97,99,100,108,114,115,116],answer:[103,113],anticip:[3,96],anymor:116,anyth:101,api:[68,96,97,99,103,114,115],app:[5,26,27,78,79,81,92,97,100,102,108,113,114],apparmor:[0,26,30,78,81,92,115,116],appear:[96,97,100,101,112],append:[0,96,97,99,100],append_path:100,appendix:[96,103],appenv:96,appfil:96,apphelp:[79,96],appinstal:[96,114],applabel:96,appli:[0,3,4,26,30,78,81,92,93,97,100,101,103,113,115,117],applic:[0,5,7,26,27,78,79,81,92,97,100,103,104,113,115,118],appnam:27,appreci:95,approach:[97,100,102,108,110,115],appropri:[0,1,5,63,96,97,100,102,108,116],approv:115,apprun:[96,114],appsbas:100,apptain:[1,3,5,6,95,96,98,101,102,105,106,107,109,110,111,112,116,117,118],apptainer_:[102,118],apptainer_add_cap:0,apptainer_al:0,apptainer_allow_setuid:0,apptainer_app:0,apptainer_appdata:114,apptainer_apply_cgroup:0,apptainer_appnam:[0,100],apptainer_bind:[0,1,2,3,100],apptainer_bindpath:[0,1,2,3],apptainer_boot:0,apptainer_cachedir:[0,3,10,11],apptainer_cleanenv:0,apptainer_command:100,apptainer_confdir:2,apptainer_contain:[0,100],apptainer_containal:0,apptainer_containlib:0,apptainer_cuda_visible_devic:102,apptainer_deffil:0,apptainer_desc:0,apptainer_disable_cach:0,apptainer_dn:0,apptainer_docker_login:[0,3],apptainer_docker_password:[0,3,97],apptainer_docker_usernam:[0,3,97],apptainer_download_buffer_s:0,apptainer_download_concurr:0,apptainer_download_part_s:0,apptainer_drop_cap:0,apptainer_encryption_passphras:[0,2,3,98],apptainer_encryption_pem_path:[0,2,3,98],apptainer_environ:[0,96,100],apptainer_fakeroot:0,apptainer_forc:0,apptainer_group:0,apptainer_helpfil:0,apptainer_hom:0,apptainer_hostnam:0,apptainer_imag:0,apptainer_json:0,apptainer_keep_priv:0,apptainer_keysdir:32,apptainer_label:[0,100],apptainer_librari:[0,3],apptainer_mount:[0,1],apptainer_nam:[0,100],apptainer_network:0,apptainer_network_arg:0,apptainer_no_hom:0,apptainer_no_init:0,apptainer_no_nv:0,apptainer_no_priv:0,apptainer_nocleanup:0,apptainer_nohttp:[0,3],apptainer_noshiminit:0,apptainer_nv:[0,2],apptainer_nvccli:0,apptainer_overlai:0,apptainer_overlayimag:0,apptainer_pwd:0,apptainer_remot:3,apptainer_rocm:2,apptainer_rootf:[0,2,8,96],apptainer_runscript:0,apptainer_sandbox:0,apptainer_scratch:0,apptainer_scratchdir:0,apptainer_secret:0,apptainer_sect:0,apptainer_secur:0,apptainer_shel:0,apptainer_sign:0,apptainer_sourc:59,apptainer_target_pwd:0,apptainer_test:0,apptainer_tmpdir:[0,3],apptainer_unshare_ipc:0,apptainer_unshare_net:0,apptainer_unshare_pid:0,apptainer_unshare_usern:0,apptainer_unshare_ut:0,apptainer_upd:0,apptainer_url:0,apptainer_us:0,apptainer_usern:0,apptainer_workdir:0,apptainer_writ:0,apptainer_writable_tmpf:0,apptainer_xxx:100,apptainerenv_:[0,97,118],apptainerenv_append_path:[0,100],apptainerenv_cuda_visible_devic:102,apptainerenv_foo:118,apptainerenv_force_var:97,apptainerenv_java_hom:97,apptainerenv_myvar:100,apptainerenv_path:0,apptainerenv_prepend_path:[0,100],apptainerenv_xxx:100,apr:[110,111],apt:[0,2,8,26,96,100,108,111,113,114],aptli:0,ar:[0,1,2,3,4,5,6,8,26,27,29,30,33,34,35,37,38,39,43,50,68,71,78,79,81,82,92,95,96,97,98,99,100,101,102,105,106,107,108,109,110,111,112,113,114,115,116,117,118],arbitrari:[96,97,100],arbitrarili:110,arch:[25,66,80,96,100,102,106,113],arch_prctl:110,architectur:[5,66,80,83,106,110,111,116],archiv:[8,96,100,104,113],archmap:116,area:104,aren:97,arg:[5,26,30,45,78,81,92,100,101,110,116],argc:108,argonn:113,argpars:5,argument:[0,1,2,3,5,13,15,26,30,40,45,78,81,92,96,109,110,114,116],argumentpars:5,argv:108,arial:[109,114],aris:107,arm64:[80,83,106],arm:83,armi:[2,113],armor:[33,105],around:[97,100,113,114],arrai:96,artifact:[2,110],asc:[33,34,105],ascii:[33,105],ask:[3,97,100,101,108,113,115],assembl:[0,2],assign:[26,78,81,92,96,100],associ:[0,4,27,99],assum:[4,8,96,106,108,111,113,116],asterisk:99,asymmetr:98,atmospher:104,atom:3,attach:[1,4,6,7,26,30,41,50,78,81,91,92,93,110,111,113],attachsocket:110,attack:116,attempt:[2,97,108,116,117],attent:8,attribut:100,atyp:116,audit:110,audit_read:[13,15],audit_writ:15,aug:[97,113],augment:112,auth:[67,69,72,99],authent:[0,68,69,72,76,99,106,117],author:[62,96,101,112,113,115,116,117],auto:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,109,114],autom:114,automat:[1,6,27,56,68,69,78,95,96,97,99,100,105,106,112,113,114,115],auxf:114,avail:[0,2,4,6,12,13,15,26,27,30,43,50,76,78,81,92,96,97,99,100,101,102,104,108,109,110,111,113,114],averag:114,avg:116,avoid:[0,2,97,99,102],avx2:102,awar:99,az:97,azur:[0,66,72],azurecr:[66,97],b7761495f83e6bf7686ca5f0c1a7d02200787921:106,b:[1,8,26,30,36,41,43,50,78,81,92,95,98,100,110],back:[1,95,97,108],background:[4,28,29,30,109,113,114],backslash:114,backup:1,bad:116,badgui:8,balloon:105,bar:[1,96,100,118],barcelona:113,bare:[0,111],base:[0,1,8,27,72,95,96,97,99,104,106,108,111,113,114,115,118],basearch:[0,96],basehttprequesthandl:5,bash:[3,30,81,100,108,114],bashrc:[1,96,113],basi:[5,97,99,116],basic:[43,50,97,100,102,103,108,113,114],batch:[4,97,102],bauer:112,baz:[100,118],bb94ffe723890b4d62d742:3,bbolt:3,becam:104,becaus:[0,1,2,4,37,96,97,100,104,106,110,113,114,115,117,118],becom:[1,3,5,70,95,96,115,116],been:[0,1,5,8,20,60,61,92,95,96,97,99,100,102,104,108,113,114,115,116,117,118],befor:[0,1,2,3,8,26,30,46,67,78,81,92,95,96,97,99,100,102,105,108,113,114,115,117],begin:[0,2,30,97,113,114,115],behalf:115,behav:[97,113,116],behavior:[1,2,10,96,97,100,113,116,117,118],behaviour:[102,113,117],behind:[97,108],being:[3,97,102,111,114,118],believ:97,belong:[31,97,117],below:[0,4,5,6,8,96,97,98,100,101,110,111,113,114,118],benefit:[1,97,103,113,115],berkelei:[0,104,113],best:[0,1,2,100,102,104,113],bestapp:96,better:[2,116],between:[0,2,4,68,96,97,99,103,104,108,112,113],bewar:[1,2],beyond:[104,110],bfp:100,bin:[0,3,27,78,81,83,96,100,101,108,110,111,113,114,116],binari:[0,2,5,26,30,78,81,92,96,97,102,105,107,108,112,113,115,116,118],bind:[0,3,8,24,26,30,78,81,92,96,97,100,101,102,103,110,113,114],bionic:109,bit:[36,106,116,117],bitnami:97,black:96,blacklist:[115,116],blah:106,blake2b_256:83,blake2s_256:83,blank:0,blob:[0,3,4,10,11,66,96,97,110,118],block:[1,4,93,100,101,102,110,113],blockio:4,blueprint:96,blur:104,bodi:[109,113,114],boot:[0,30,114],bootstrap:[2,5,8,79,97,100,101,106,108,110,113,114],bootstrap_histori:[0,100],borrow:96,both:[0,3,4,7,27,96,97,102,108,112,113,114,118],bottom:[27,105],bound:[1,102,108,110],box:96,br:[109,114],branch:5,brand:102,bridg:[0,26,30,78,81,92,109],brief:103,briefli:110,bring:[0,26,30,78,81,92,109],brk:110,broad:113,broken:[96,104],browser:[106,114],bs:111,bsd:107,bu:102,buffer:0,bug:[95,97,113],build:[5,6,7,27,66,79,98,99,102,104,108,110,111,112,118],builddir:113,built:[0,2,3,8,96,97,100,104,106,108,110,112,113,114,118],bundl:[0,8,41,43,47,50,53,66,96],bundle_path:[43,47,50,53],bus_id:102,busi:107,buster:5,busybox1:110,busybox:[79,96,110,113],busybox_latest:110,bwa:96,bz2:108,bzip2:100,c080bf936f6a1fdd2045e3:3,c1:101,c3f3:102,c561538251751e3685c7c6e7479d488745455ad7f84e842019dcb452c7b6fecc:97,c:[1,2,4,7,26,30,36,68,78,81,92,96,100,102,105,107,108,111,113,114,116,117],ca:[100,114],cach:[0,2,5,6,7,8,26,30,66,78,81,92,102,110,111,113,118],calcul:113,call:[0,1,2,27,95,96,97,100,106,108,109,111,113,114,116],can:[0,1,2,3,4,5,8,9,20,26,28,30,40,66,68,70,71,78,80,81,92,95,96,97,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118],canari:100,cancel:3,cannot:[1,2,3,96,97,102,104,108,111,114,115],cap:[26,30,78,81,92],cap_audit_writ:[13,110],cap_chown:[14,110],cap_dac_overrid:110,cap_fown:110,cap_fsetid:110,cap_kil:110,cap_mknod:110,cap_net_bind_servic:110,cap_net_raw:[14,110,116],cap_setfcap:110,cap_setgid:110,cap_setpcap:110,cap_setuid:110,cap_sys_chroot:110,capabl:[0,6,7,26,30,78,81,92,102,110,113,115],capget:110,capset:110,captur:[4,96,114],card:102,care:[2,96,97,113],carefulli:[97,102,108],carri:[1,96,97,100,108,114,115],cash:105,cat:[1,4,5,26,54,78,79,96,98,100,108,109,110,111,113,114],catalog:97,caus:[2,3,96,97,100,107,108,109,114,115,116],caution:116,cbdbe7a5bc2a134ca8ec91:3,cc:102,cd:[95,96,97,100,108,113,114,115],cdrom:113,cdt:[97,113],ceas:96,center:113,cento:[0,2,8,26,96,98,104,106,113,115,116],centos6:106,centos7:106,centos_benchmark:106,centr:113,certain:[3,99,104,109,110],certif:[100,114],certifi:104,cest:105,cgroup:[0,26,30,41,54,78,81,92,103,110,115],ch:[2,8],challeng:95,chang:[0,1,2,3,5,8,71,96,97,99,100,101,104,105,109,110,111,113,115,116,117,118],changed1:95,changed2:95,channel:[97,100,108,115],chao:105,charact:[0,1,96,100],chdir:110,check:[2,5,58,68,76,95,96,97,100,102,105,106,108,109,114,116,117],checkpoint:[6,7,30,103],checksum:3,chicago:113,child:4,children:5,chmod:[0,110,114],chocol:105,choic:[96,97],choos:[3,96,100,113,114,116,117],chosen:[5,110],chown32:110,chown:[13,15,110,111],chromium:114,chroot:[2,8,110],ci:[97,115],circumst:[96,100,115],claus:107,clean:[0,6,8,9,26,30,31,66,78,79,81,92,97,100,114],cleanenv:[26,30,78,81,92,96,97,100],cleaner:114,cleanup:[8,66],clear:100,cli:[0,3,6,8,26,30,78,81,92,111],client:[102,114],clock_getr:110,clock_gettim:110,clock_nanosleep:110,clone:[95,110,114],close:[95,97,102,110,112,114],cloud:[0,3,68,69,72,97,99,102,104,105,106,116,117],cluster:[97,104,108,109,115],cm:108,cmd:[3,8,30,81,100,110],cni:[0,26,30,78,81,92,109],cobra:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],code:[0,1,3,5,8,58,96,97,100,107,108,112,115],codec:102,collabor:118,colleagu:118,collect:[0,66,67,96,114],colon:[0,100],color:[7,113],column:[71,99],com:[0,3,4,8,36,59,68,69,70,72,75,95,97,99,102,105,106,109,113,114,117],combin:[1,2,3,100,104,109,113],come:[0,97,105,108,114],comma:[0,1,2,8,13,15,26,30,78,81,92,100,106,109],command:[0,1,2,4,5,7,8,9,10,11,12,13,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,36,37,38,39,40,41,45,50,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,81,82,91,92,93,96,99,100,101,102,103,106,108,109,110,111,112,114,115,116,117],commandlin:98,comment:[36,116,117],commerci:[109,114],commit:95,common:[0,4,8,96,97,99,102,104,108,113,115],common_runtim:102,commonli:[8,96,101,102,109,115],commun:[0,5,97,99,103,104,108,113,115,117,118],compani:[99,104],compar:97,comparison:[96,113],compat:[0,1,5,26,30,68,78,81,92,96,100,102,104,108],compet:4,compil:[0,6,57,63,96,102,104,108,112,115],complain:96,complet:[0,2,26,30,78,81,92,97,98,102,110,111,113,114,118],complex:[96,104,112],complianc:110,compliant:[96,108],compon:104,compos:96,comprehens:110,compress:[1,2,8],compressor:2,compris:[0,96,117],compromis:96,comput:[1,3,7,8,9,12,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,95,102,104,108,113,117,118],concept:[96,97,113,114],concern:[110,113,118],concurr:[0,97],conda:100,condarc:100,condit:[2,107],conduct:95,conf:[0,1,2,5,7,22,24,26,30,78,81,92,97,101,102,109,115,116],confidenti:98,config:[0,4,6,7,68,97,100,101,110,112,113,116,118],configur:[0,1,4,5,7,22,23,24,66,67,68,69,71,74,77,92,96,97,100,103,104,108,109,110,114,116,117],confin:115,confirm:[3,25,114],conflict:[1,4,97],conform:110,conjunct:[1,2,97,109],connect:[38,40,70,108,110,114],consequenti:107,conserv:4,consid:[0,96,97,100,101,102,105,110,113,117],consider:104,consist:[1,100,108],consol:[41,42],consolid:104,constraint:[4,83,97,102,118],construct:[3,100],consult:[37,72,97,108],consum:[3,4,100],contact:[97,113,115,117],contain:[0,5,7,8,9,12,17,18,19,20,21,22,25,26,27,28,29,30,31,32,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,57,62,66,67,68,78,79,80,81,82,91,92,93,94,96,99,109,111,115,118],containal:[26,30,78,81,92,96,97,100,108,113],container:[5,97,103,108,110,114],container_id:[42,43,44,45,46,48,49,50,51,52,54],containerd:97,content:[3,5,8,96,97,105,115],context:[100,108,113,116],continu:[3,95,96,104,114,118],continuum:100,contract:107,contribut:103,contributor:107,control:[1,4,12,97,100,102,110,114,115,116,117],controlsocket:110,convei:110,conveni:[4,97,98,109],convent:96,convers:[2,95,97],convert:[0,8,97,98,106,114,118],coordin:115,copi:[0,1,95,96,97,108,110,113],copy_file_rang:110,copyright:[97,102,107],core:[0,4,26,78,81,92,96,102,104,116],correct:[0,96,99,100,115],correctli:[1,4,5,96,97,100,101,105,108,114],correl:99,correspond:[0,4,96,99,100,105,109,110,113,115],corrupt:[31,115],could:[0,1,2,96,98,99,100,101,102,104,105,111,114,115,117],couldn:114,count:111,counter:0,counterpart:118,coupl:5,cours:[2,101,105,106,116],cover:[100,103],cow_advic:113,cowsai:[2,113],cpu:[26,78,81,92,102,114],cpu_feature_guard:102,cpu_util:102,craft:96,creat:[0,1,3,5,6,8,17,26,27,30,32,36,41,44,47,50,51,52,54,55,57,66,69,78,81,82,89,92,95,96,97,98,99,100,101,102,104,106,108,109,111,113,114,115,116,117,118],createdat:110,creation:[0,2,4,5,17,101,108,110,113,115,117],credenti:[2,3,7,68,69,70,71,72,73,74,75,76,77,97,98,99],credit:[97,102],critic:[108,110,113],crypt:98,cryptograph:[7,93,104,113],cryptomessag:83,cryptsetup:[98,113],csv:[1,95],cuda:[0,2],cuda_gpu_executor:102,cuda_visible_devic:102,cudnn:0,cupi:106,curl:[0,5,109,113,114],current:[0,1,4,5,26,29,30,66,70,71,72,73,78,81,92,95,96,97,98,99,101,102,104,106,112,113,114,118],custom:[0,2,3,27,96,113],custom_registri:0,cve:115,cwd:[1,110],cycl:4,d268:102,d4038bdde21017435dfe5ada9f2d10a25d64c1ef:106,d51af753c3d3a984351448:3,d87fe3af5c1f063fcbcc9b02f812842b5eee5934:39,d9cbbca60e5f0fc028b13c:3,d:[1,3,5,7,10,23,24,27,67,96,97,103,106,108,110,111,113,114],daemon:[1,4,26,30,78,81,92,96,101,108,114,115],dai:[3,10],damag:[96,107],danger:96,data:[0,1,2,3,8,18,26,27,30,31,78,81,82,83,84,85,87,88,92,93,96,97,100,103,107,110,111,113,114,115,116,118],databas:[0,3,28,114],datacent:102,datatyp:[1,83,111],date:[2,3,95,96,97,100,102,110,112,113,117],dave:[0,1,8,100,113,114],david:[113,116],db8816f445487e48e1d614:3,db:0,dcsouthwick:106,dd:111,dear:113,debian0:8,debian1:8,debian2:8,debian:[0,8,26,78,81,92,96,98,100,102,113],debian_frontend:108,debian_vers:26,debootstrap:[8,96,97,100,101],debug:[0,7,8,66,113],dec:[96,97],decid:[2,4,113,116,118],decis:118,declar:[96,97],decod:5,decrypt:[2,3,98,103,104,115,116],dedic:[0,26,30,78,81,92,101,109],deep:106,def:[0,2,3,5,8,79,83,96,98,100,101,106,113,114,117],defaultact:[110,116],defaultremot:[99,117],deffil:[0,8,27,79,83,96],defin:[0,2,7,8,27,30,70,75,78,79,92,96,97,100,113,114],definit:[0,8,79,92,102,103,111,114],del:[6,82],deleg:4,delet:[2,3,5,6,7,17,41,50,53,82,84,105,106,113,117],delimit:[1,2,109],demo:96,demonstr:[0,96,104,108,113,114,117],deni:[1,97],depend:[0,95,96,97,100,101,102,104,108,114,116],deploi:[97,115],deploy:[97,110],deprec:118,depth:96,deriv:[1,107],describ:[0,95,96,97,99,100,108,114,116],descript:[0,5,12,14,62,67,97,100,106,112,113,114],descriptor:[1,82,100,110],design:[0,97,106,114],desir:[0,26,30,78,81,92,116],dest:[0,1,8,20,26,30,78,81,92],destin:[0,1,2,8,26,30,78,81,92,96,97,100,110],detach:[1,26,30,78,81,92,114],detail:[0,2,3,4,5,72,97,98,100,101,102,103,108,109,110,112,114,115,116],detect:[99,105,118],determin:[27,96,110,111,113],dev:[0,1,4,26,30,78,81,92,97,101,102,108,110,111,113,114,116],devel:[96,106,113],develop:[2,8,27,58,59,95,96,104,108,110,112,113,114,115,116,117],devic:[1,101,102,108,110,115],device_lib:102,device_typ:102,devpt:110,df:110,dhcp:[26,78,81,92],did:118,diego:113,differ:[0,2,3,4,8,96,100,101,102,103,104,105,106,108,113,114,116,118],difficult:[102,104,114,115],difficulti:97,digest:0,digit:[7,91],dilemma:95,dip:113,dir:[1,26,30,56,66,78,81,92,106,111,114],direct:[24,95,97,100,102,104,106,107,110,115],directli:[1,2,3,4,78,95,96,97,99,100,102,106,108,109,113,114,115],directori:[0,1,3,4,5,8,20,26,30,41,43,50,56,57,58,59,63,66,78,81,92,96,97,99,101,102,104,105,108,109,110,112,114,115,118],disabl:[0,3,6,8,23,26,30,57,58,61,66,78,81,92,97,102,108,112],disadvantag:115,disallow:[1,116],disappear:113,discard:[2,97,111],disclaim:107,disclos:115,discourag:96,discov:68,discoveri:102,discuss:[3,95,96,97,100,110,113],disk:[0,2,3,98,103,109,115,116],displai:[0,8,11,24,29,35,82,86,87,96,100,102],disrupt:115,dist:113,distribut:[1,2,3,4,95,96,97,100,102,104,107,111,112,113,115],divid:[96,113],dkm:102,dkr:97,dl:113,dladdr1:5,dload:114,dm:98,dmtcp:[20,30],dn:[0,26,30,78,81,92],do_get:5,do_post:5,doc:[2,4,6,92,95,97,100,102,104,113,114,116],docker2singular:100,docker:[1,4,5,7,8,25,26,30,66,68,69,70,71,72,73,74,75,76,77,78,79,81,92,96,99,100,101,102,103,106,108,109,110,111,113,114,115,118],dockerfil:[96,100,113],dockerhub:[8,99,113],doctyp:[109,114],document:[4,72,92,96,97,100,107,108,109,111,112,113,114,115,116],doe:[0,1,2,3,4,78,96,97,99,102,108,113,117,118],doesn:[0,2,3,4,24,96,118],domain:97,domin:97,don:[0,1,2,97,100,101,104,106,112,113],done:[0,1,93,95,97,101,102,104,113,115,117],doubl:[0,1,4,100],down:[0,104],download:[0,32,37,66,96,97,99,103,106,108,114,117],draft:113,drawback:108,dri:102,drink:113,driver:[1,102,108],drop:[0,6,12,26,30,78,81,92],drwx:110,drwxr:[97,111],drwxrwxrwt:110,dry:[3,10,24],dso_load:102,dst:1,dtrudg:106,due:[4,5,97,100,104],dummi:1,dump:[6,24,82,116],dup2:110,dup3:110,dup:110,dure:[0,2,3,4,8,27,96,100,105,113,114,117],dynam:[5,102,112],e23c29c9:1,e2fsck:111,e:[1,3,4,8,23,26,27,30,36,66,68,72,77,78,81,92,96,97,98,102,106,108,110,111,113,114,117],each:[0,1,3,26,30,78,81,91,92,96,97,99,100,104,108,109,111,113,114,115,117],eas:[1,118],easi:[5,97,102,103,104,109,113,114,115],easier:97,easili:[0,96,100,102,104,108,110,111,113,114,115,117],eat:113,eb7c47c7f0fd0054242f35366d166e6b041dfb0b89e5f93a82ad3a3206222502:0,ebpf:4,echo:[0,5,8,78,92,96,97,100,106,108,111,113,114,118],ecl:[105,115],ecosystem:104,edit:[22,24,69,74,77,95,99,101,114],educ:104,ef:[26,81],effect:[96,100,104,110,115,116],effort:[104,110],eg:[0,43],either:[0,2,5,20,26,30,56,57,62,78,81,92,96,97,98,100,104,105,114,118],el7:1,el8:1,elast:97,element:82,elementari:114,elev:[96,115,116],els:[96,100],elsewher:[100,110],em:[109,114],email:[36,40,95,117],emb:111,embed:100,emit:118,emmeff:106,emploi:110,empow:113,empti:[0,1,3,17,18,26,30,43,78,81,89,92,97,98,99],enabl:[0,1,5,6,7,23,26,30,57,60,64,78,81,92,93,96,97,102,104,106,112,113,115,117],encapsul:[96,110,112,113,114],encod:[110,112],encount:[5,117],encourag:[98,115],encrypt:[0,8,26,30,78,81,92,97,111,115],end:[0,2,96,97,100,104,106,114,117],end_head:5,endeavor:95,endors:107,endpath:100,endpoint:[3,7,68,69,70,71,72,73,74,75,76,77,103,106,113,117,118],enforc:[4,96,102],engin:104,enhanc:[98,102,116],enough:[3,4],ensur:[1,2,8,96,97,100,101,102,106,108,113,117,118],enter:[8,26,30,78,81,92,97,98,99,105,113,116,117],enterpris:[7,8,9,12,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,99,113,115],entir:[2,3,10,96,97,104,113,116,117],entiti:[0,40,83,117],entri:[3,10,11,22,23,96,99,100,102,108,109,114],entrypoint:[3,8,100,110],env:[3,26,30,78,81,92,96,97,108,110,118],environ:[1,2,4,5,7,8,26,27,30,58,78,81,92,99,102,103,108,110,111,112,113,114,115,116],envvar:83,eof:[5,96],epc:[7,8,9,12,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,113],epel:[0,1,113],ephemer:[5,113],epoll_cr:110,epoll_create1:110,epoll_ctl:110,epoll_ctl_old:110,epoll_pwait:110,epoll_wait:110,epoll_wait_old:110,eq:96,equal:[1,8,26,30,78,81,92],equat:[96,110],equival:[1,50,96,97],err:[26,78,81,92],error:[2,7,96,97,99,108,113,114,117],escal:[12,102],escap:[1,97,113,114],especi:[97,104],essen1999:106,essenti:[0,100,113,114,115],establish:[107,110],etc:[0,1,3,7,24,26,32,96,97,99,100,101,102,104,106,108,109,110,112,113,114,115,116,118],etcd:3,etern:105,ethernet:108,evalu:[97,113],even:[1,4,97,98,104,107,108,115,117],event:[95,107],eventfd2:110,eventfd:110,ever:[2,3,116],everi:[0,1,96,97,108,112,116,117],everyth:[3,115],evid:110,exact:[95,97,100,105,112,114],exactli:[3,95,97,104],examin:97,exampl:[0,2,96,97,98,99,100,104,105,106,108,110,111,112,113,114,115,116,117,118],examplecloud:[69,74,77],excel:97,except:[3,4,96,97,100],exclud:[100,116],exclus:[77,99,117],exec:[1,2,6,7,8,41,78,92,96,97,98,99,100,101,102,108,109,111,113,114,116,118],execstart:114,execstop:114,execut:[0,2,3,4,5,8,26,30,41,43,45,78,81,92,95,96,97,100,101,102,108,110,111,112,114,115,116],execv:110,execveat:110,exemplari:107,exercis:[113,116],exhaust:97,exhibit:97,exist:[0,1,4,8,27,30,56,66,68,74,96,97,99,100,101,104,110,111,113,118],exit:[2,8,81,96,97,110,111,113,114],exit_failur:108,exit_group:110,exit_success:108,exit_with_error:108,expand:104,expect:[27,58,96,97,100,102,108,109,110,114,116],experi:[3,97,102,118],experiment:[0,5,7,8,17,18,19,20,21,26,30,78,81,92,102,112],expir:[99,117],explain:[96,116],explan:111,explicit:97,explicitli:[0,100,102],explor:103,expos:[1,3,97,102,108,114],express:107,ext3:[7,26,30,55,56,78,81,83,111],ext3_overlai:111,extend:96,extens:[5,108,110],extern:[2,97,113],extra:[97,113],extract:[96,97,113,115],extrem:[112,116],f38d871e:40,f96e6b25195f1b36ad02598b5d4381e41997c93ce6170cab1b81d9c68c514db0:97,f:[3,8,10,25,26,27,30,31,46,54,66,78,81,92,96,98,101,105,111,114,117],faccessat:110,face:97,facil:[100,113],facilit:113,fact:[104,108],fadvise64:110,fadvise64_64:110,fail:[0,8,66,96,97,106,108,116,117],failur:[5,8],fair:114,fairli:108,fake:[8,97,101],fakeroot:[3,5,6,8,22,26,30,78,81,92,97,100,102,103,116],fallback:3,falloc:110,fals:[0,3,4,7,36,100,110,113],famili:[109,114],familiar:[98,104,110],fanotify_mark:110,fatal:[99,117],favor:[97,115],fc1a6b909f82ce4b72204198d49de3aaf757b3ab2bb823cb6e47c416b97c5985:110,fc878cd0a91c7bece56f66:3,fchdir:110,fchmod:110,fchmodat:110,fchown32:110,fchown:110,fchownat:110,fcntl64:110,fcntl:110,fd0daa4d89:97,fdatasync:110,featur:[0,1,2,23,26,30,78,81,92,95,96,97,98,100,102,103,104,115,116,117],fedora:104,fee5db0ff82f7aa5ace634:3,feedback:5,feel:95,fetch:[0,3,97,117],few:[8,98,101,113],ff110406d51ca9ea722112:3,fgetxattr:110,fi:[96,100,114],field:[0,1,4,97],file1:96,file2:96,file:[0,3,4,5,7,8,24,26,27,29,30,32,33,34,43,50,54,58,66,68,69,72,78,79,81,82,91,92,93,95,99,102,103,104,105,109,110,112,115,116,117,118],filenam:[0,83,97],filesystem:[0,1,2,3,26,30,78,81,83,92,96,97,100,104,111,114,115,118],filter:[101,110,114],find:[2,3,4,95,97,100,102,105,106,108,111,114],fine:[12,116,117],fingerprint:[0,37,38,39,40,105,106,117],finish:[111,114],firewal:101,first:[1,2,5,67,96,97,99,102,103,104,105,108,111,113,114,116,117,118],fit:[2,104,107],fix:[8,95,97,100,103,104,113,115],flag:[0,2,3,4,5,10,25,27,83,98,99,100,101,102,105,106,108,109,112,114,115,116,117],flexibl:[5,96,104],flistxattr:110,flock:110,florida:113,flow:[95,99],fma:102,fmt:96,focu:95,focus:[97,104,110],folder:[0,27,105],follow:[0,2,3,5,8,26,27,30,78,81,95,96,97,98,99,100,101,102,104,105,107,108,109,110,111,113,114,115,116,117,118],font:[109,114],foo:[1,72,79,96,100,113,116,118],forc:[0,3,8,10,25,26,30,31,46,66,78,81,92,100,114],force_var:97,foreground:114,forg:100,forgotten:97,fork:[110,114],form:[1,26,30,78,81,92,96,107],format:[0,1,3,4,5,7,8,26,27,30,33,43,50,78,81,82,83,84,85,86,87,88,89,90,92,96,97,98,100,103,104,105,106,110,112,118],former:96,fortran:108,forward:[108,118],found:[1,5,63,92,93,95,96,97,100,102,106,110,113,114,115,118],foundat:118,fprintf:108,framework:[102,108],freedesktop:4,fremovexattr:110,frequenc:102,frequent:102,fresh:[99,100,113],friendli:104,from:[0,1,3,4,5,7,8,12,15,22,24,25,26,27,29,30,32,34,37,38,39,41,43,47,50,54,57,65,66,68,72,73,74,75,78,79,81,84,85,86,87,88,91,92,95,96,99,102,103,105,107,108,109,110,111,112,114,115,116,118],front:97,fs:[1,4,110,117],fsetxattr:110,fstat64:110,fstat:110,fstatat64:110,fstatf:110,fstatfs64:110,fsync:110,ftruncat:110,ftruncate64:110,fulfil:113,full:[100,101,102,104,109,113,114,115,116],fulli:[0,1,3,5,102],func:96,fund:104,further:[95,100,109,111,113,114],furthermor:[96,110,112],fuse:[26,30,78,81,92,115],fusemount:[1,26,30,78,81,92],futex:110,futimesat:110,futur:[3,95,100,112,118],g:[1,3,4,8,13,15,24,26,30,33,34,35,36,37,38,39,66,68,69,72,74,77,78,81,91,92,93,96,97,98,100,102,106,108,110,111,113,114,117],gain:[104,115],gallig:106,game:[2,113],gather:[93,113],gcc:[97,102,108],gconf:114,geforc:102,gener:[0,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,108,114],genericjson:83,geoffroi:106,get:[0,2,4,5,8,24,26,96,100,108,109,110,111,112,113,114,118],get_robust_list:110,get_thread_area:110,getconfig:95,getcpu:110,getcwd:110,getdent:110,getdents64:110,getegid32:110,getegid:110,geteuid32:110,geteuid:110,getgid32:110,getgid:110,getgroup:110,getgroups32:110,getitim:110,getpeernam:110,getpgid:110,getpgrp:110,getpid:110,getppid:110,getprior:110,getrandom:110,getresgid32:110,getresgid:110,getresuid32:110,getresuid:110,getrlimit:110,getrusag:110,getsid:110,getsocknam:110,getsockopt:110,gettid:110,gettimeofdai:110,getuid32:110,getuid:110,getxattr:110,gfortran:108,gfx803:102,ghcr:[97,117],ghz:102,gib:[106,111],gid:[97,101,110,113,116],git:[5,95,96,100,108,113,114],github:[3,4,27,59,95,96,102,106,113,114],give:[2,5,12,97,100,101,103,105,113,114,117],given:[0,1,2,4,8,12,16,19,26,28,30,31,66,67,78,81,92,95,96,99,106,114],glibc:5,glob:29,global:[5,6,7,22,27,32,33,34,35,37,38,39,69,74,77,82,86,96,99,113,117],gmail:117,gmk:[81,106],gnu:5,gnupgp:105,go:[59,95,96,100,112,114],goal:[97,108,118],godlov:[106,117],godlovedc:106,golang:96,gone:111,good:[2,67,95,96,100,104,106,107,116],goodby:100,goodgui:8,googl:[108,109,113],govern:106,gpg:105,gpu:[0,2,8,26,30,78,81,92,97,103,104,115],gpu_devic:102,gracefulli:114,grad:104,grain:[12,116,117],grant:[12,104,115,116],graphic:102,grate:95,great:102,greater:[0,1,96,115],greatest:96,greatli:[95,108],green:105,grep:[96,97,100,109,112],grew:[97,115],group:[0,1,4,5,7,9,10,11,12,13,14,15,16,26,28,30,32,41,57,68,78,81,91,93,96,97,99,101,102,106,108,109,110,111,113,114,115,116],group_id:1,groupid:[83,111],groupinstal:113,gsi:113,gt:[100,102],guest:97,gui:[95,106],guid:[2,5,97,99,101,102,109,110,113,117],gvalle:108,gz:[97,108,113],gzip:[2,97],h1:[109,114],h:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,108,113],ha:[0,1,3,4,5,8,26,30,60,61,78,81,92,95,96,97,98,99,100,101,102,103,104,105,108,110,113,114,115,116,117,118],had:[2,97,102],hal:109,hall:104,halt:96,hamburg:113,han:8,hand:97,handl:[83,100,102,114,118],handler:5,happen:[97,100,114,115],happi:95,hard:[3,4,108,110],harden:115,hardwar:[5,96,103,104,108],hash:[3,83,93,113],hat:0,have:[0,1,2,3,5,9,10,11,12,17,20,22,28,32,41,55,57,68,76,82,92,95,96,97,98,99,100,101,102,104,106,108,110,111,113,114,115,116,117,118],head:[109,114],header:[0,2,6,8,82,97,113],headless:114,health:[97,113],healthcheck:97,heavi:113,heavili:[4,113],heffaywrit:106,held:115,hello:[0,8,78,92,96,97,100,106,108,113],hello_world:26,hellseva:106,helmholtz:113,help:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,100,102,103,111,113,114,116,118],helper:[97,100],helpfil:[0,27,113],here:[1,2,3,78,95,96,97,99,100,106,110,113,114,115,117],hidden:99,hide:1,hierarchi:4,high:[7,8,9,12,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,97,104,108,113,115],highest:[7,113],highlight:97,him:23,hint:[3,111],hold:[1,3,8,68,69,72,97,100,111,115],holder:107,home:[0,3,5,8,10,11,20,21,26,29,30,36,58,63,67,68,78,81,92,96,98,99,100,104,105,110,113,114,116,117],honor:[1,92,102],hopefulli:95,host:[0,2,5,8,12,26,30,58,63,64,78,81,92,96,97,98,99,101,102,105,108,109,113,114,115,116],host_path:[58,59],host_var:97,hostf:1,hostfil:113,hostnam:[0,1,8,25,26,30,66,78,81,92,97,99,100,110,113],hostopt:[8,26,30,78,81,92],hour:97,how:[0,1,2,4,95,96,97,98,99,100,103,104,105,106,108,111,114,116],howev:[1,95,97,102,107,108,112,113,115],hpc110:106,hpc:[7,8,9,12,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,97,104,108,113,115,116],href:[109,114],html:[4,97,102,109,113,114],http:[0,3,4,5,8,25,26,27,30,66,70,75,78,81,92,95,96,97,99,100,102,106,107,108,109,113,114,115,117],httpserver:5,hub:[0,3,8,26,30,66,78,81,96,102,109,113],huge:95,hyphen:4,hz:102,i686:0,i:[1,4,26,30,70,72,78,81,91,92,93,96,97,100,102,104,108,109,110,113,117],ian:[5,99,117],icd:102,icmp_seq:116,id:[0,1,40,42,44,45,46,48,49,51,52,54,84,85,87,90,91,93,97,102,110,111,113,115],id_rsa:98,idea:[2,108],ideal:104,ident:[3,4,72,95,97,101,108,114,116],identifi:[42,44,45,46,51,52,97,102,105,110,114],idl:4,ignor:[2,96,97],ikaneshiro:117,illus:[101,111],illustr:[96,108,110,114],imag:[0,2,3,5,7,8,25,26,27,28,29,30,31,41,47,55,56,57,62,66,67,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,97,98,99,101,102,103,104,105,106,108,109,110,112,117],imagefil:66,imageref:25,img:[1,8,26,30,56,78,81,111],immedi:104,immuobj:83,immut:[2,8,97,104,111,113,115],impact:[5,96,97,100,115,118],implement:[0,1,4,96,99,102,108,110,114,115,116],impli:[26,27,30,37,77,78,81,92,97,107],implicitli:98,importantli:113,improv:[5,95,100,102],inaccess:[1,97,115],inc:107,incarn:102,incident:107,includ:[0,1,2,3,8,11,26,30,66,67,78,81,92,95,96,97,99,100,102,104,107,108,110,112,113,116,118],includecmd:[8,114],inclus:96,incompat:[108,118],inconsist:3,incorpor:104,incorrect:99,increas:[26,30,78,81,92],increasingli:97,incur:113,independ:[3,104,110],index:[0,91,97,110,114,117],indic:[0,71,96,97,98,99,102,113],indirect:107,individu:115,industri:104,infer:[1,26,30,78,81,92],infiniband:108,inflex:104,influenc:100,info:[0,3,5,6,82,96,97,98,99,100,102,110,118],inform:[0,1,2,3,4,5,7,27,95,96,97,100,102,108,109,112,113,115,116],inherit:[4,110],init:[0,26,30,78,81,92,114],initi:[0,5,18,26,78,81,92,97,100,102,104,109,110,116],inject:[5,8,100],inod:1,inotify_add_watch:110,inotify_init1:110,inotify_init:110,inotify_rm_watch:110,input:[0,1,2,27,34,72,78,83],insecur:[70,72,93,99,113,117],insensit:116,insert:96,insid:[0,1,2,3,5,8,12,26,27,30,41,48,49,78,81,92,97,100,101,102,104,108,109,113,114,115,116,118],inspect:[3,6,7,57,96,112,113],instal:[0,1,2,3,6,7,8,22,24,27,33,34,35,37,38,39,57,60,61,62,64,95,96,97,99,100,101,102,103,108,109,111,112,114,115,116,118],instanc:[0,1,2,3,5,6,7,8,17,21,26,43,78,81,92,96,97,98,99,100,101,109,111,113,116],instance1:[96,114],instance2:114,instance3:114,instancea:114,instanti:108,instead:[0,1,2,3,5,8,24,25,26,27,29,30,35,66,78,79,81,92,96,97,100,105,108,114,118],institut:113,instnac:20,instruct:[1,4,5,95,97,102,103,106,113],int32:83,integ:5,integr:[3,5,93,95,96,97,104,108,109,113,115,117],intend:[0,2,5,95,96,97,104,113,117,118],intent:118,inter:97,interact:[0,2,3,4,8,26,30,66,77,78,81,92,96,99,102,103,108,114,117],interchang:1,interconnect:115,interest:[5,100,106,112,113],interfac:[0,1,26,30,78,81,92,97,103,106,108,109,112,114],interfer:[3,97],intermedi:[2,3,98,116],intern:[0,2,96,97,104,113],internet:[96,113],interpret:[2,8,96,100,102],interrupt:[3,107],introduc:[97,106],introduct:[103,110,114],intuit:0,invalid:99,invest:[0,113],investig:115,invoc:[110,118],invok:[2,43,44,46,50,51,52,81,96,100,109,110,114,116],involv:96,io:[0,3,27,62,66,72,73,92,96,99,100,102,112,113,114,117],io_cancel:110,io_destroi:110,io_getev:110,io_setup:110,io_submit:110,ioctl:110,ion:113,ioprio_get:110,ioprio_set:110,iotool:106,ip:[26,78,81,92,97,100,114],ipc:[0,26,30,78,81,92,97,101,110],ipnam:100,ipv4:96,ipvlan:109,ipython:102,iqube_latest:118,isa:102,isn:[96,97,112],isol:[95,102,104,109,113,114,115],issu:[0,5,96,100,102,108,110,118],item:113,iter:104,its:[1,4,5,24,27,37,68,96,97,99,100,107,112,115],itself:[0,1,3,96,97,99,108,110,115],j8:108,j:[27,29,93,113],java:97,java_hom:97,jess:0,joana:[100,105],job:[4,5,97,102,108],john:[105,117],johnni:105,join:109,journal:1,jq:110,js:114,json:[0,4,8,27,29,43,50,54,93,96,97,110,113,116,117],jul:102,jup_ipnam:100,jup_port:100,jupyt:100,just:[2,95,96,97,100,105,106,108,113,114],k:[91,110],kaneshiro:117,kb:3,keep:[0,3,26,30,78,81,92,97,100],kei:[0,2,3,6,7,8,26,30,68,70,75,78,81,91,92,93,96,97,98,99,103,106,113,115,118],kept:[97,111],kernel:[0,1,2,3,4,26,30,78,81,92,98,101,102,104,115,116],keygen:98,keyidx:91,keyr:[32,34,35,36,37,38,39,93,117,118],keyserv:[6,7,68,69,71,72,73,74,76,77,117],keyserver_url:[70,75],keystor:[36,68,105,117],keyword:[96,116],kib:[97,110],kill:[0,6,31,41,110,114],kind:[3,111],kindli:113,knife:[2,113],know:[100,104,108,118],knowledg:117,known:[100,101,102,116],kubernet:[43,50],l:[27,29,40,43,50,81,93,97,102,105,113,117],la:110,lab:113,label:[0,2,8,27,83,97,113],laboratori:[104,113],lah:0,lang:100,languag:[108,112,113],laptop:104,larg:[1,3,97,102,115],largest:104,lasd:111,last:[5,96],later:[0,3,97,100,114],latest:[0,3,5,8,66,67,97,100,102,106,113,114,115],latter:96,launch:[5,20,30,78,100,108],lawrenc:[104,113],layer:[0,2,3,7,26,30,78,81,92,96,97,113],layout:[56,96],lc_all:[2,96,113],lchown32:110,lchown:110,ld:[97,110],ld_library_path:[27,100,102,108],ld_preload:100,ldconfig:[5,97,102],lead:[102,113],leadership:113,leafweight:4,learn:[96,102,103,113,114],least:[102,114],leav:[3,104,113],led:0,left:[0,95,114],legaci:[8,93,100,102,113,117],length:[36,117],less:[96,98,104],let:[0,2,26,30,78,81,92,95,96,100,101,105,106,109,114,116,118],letter:117,level:[37,97,100,102,116,118],leverag:[0,101,115,116],lexa:102,lf:107,lfproject:107,lgetxattr:110,liabil:107,liabl:107,lib:[0,47,53,100,108,114],libappindicator1:114,libasound2:114,libatk1:114,libc6:114,libcairo2:114,libcuda:102,libcups2:114,libdbu:114,liber:114,libexpat1:114,libfontconfig1:114,libfuse3:1,libgcc1:114,libgconf:114,libgdk:114,libglib2:[100,114],libgtk:114,libnspr4:114,libnss3:114,libnvidia:102,libpango:114,libpangocairo:114,librari:[5,7,8,10,11,25,26,27,30,66,67,68,78,80,81,92,96,97,98,100,102,103,104,108,111,113,114,115,116,117,118],libseccomp:[113,116],libsm6:100,libstdc:114,libstdcxx:5,libx11:114,libxcb1:114,libxcomposite1:114,libxcursor1:114,libxdamage1:114,libxext6:[100,114],libxfixes3:114,libxi6:114,libxrandr2:114,libxrender1:[100,114],libxss1:114,libxtst6:114,licens:[97,102,103],life:104,light:0,like:[0,2,4,12,22,27,92,95,96,98,99,100,101,105,106,108,110,111,113,114,115,116,117],limit:[0,3,80,95,106,107,115,116],limit_in_byt:4,line:[1,22,24,40,96,97,100,101,103,104,113],link:[0,4,5,6,26,30,78,81,83,92,95,96,97,100,102,110,114,117],linkat:110,linux2:102,linux:[0,1,3,4,7,8,9,12,13,14,15,16,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,96,97,98,100,101,102,104,106,110,111,113,115,118],list:[0,2,5,6,8,9,10,12,17,26,27,28,30,32,40,57,68,69,74,77,78,81,82,91,92,93,95,96,97,98,100,101,102,105,107,109,112,113,114,115,116,117],list_local_devic:102,listen:[5,96,101,110],listen_port:96,listxattr:110,liter:100,littl:114,live:114,ll:[96,97,100,116],llc:107,llistxattr:110,lmod:100,load:[97,102,108,112,115],local:[0,1,2,3,7,8,9,10,11,17,21,26,30,32,34,35,36,38,39,78,81,93,96,97,100,102,104,105,106,109,110,113,114,115,116,117,118],localdomain:1,localhost:[1,5,100,109,114],localimag:[8,96],locat:[0,1,2,3,5,8,18,26,27,29,30,36,58,78,81,92,96,97,99,100,102,105,108,110,112,114,117],lock:[97,110],log:[29,43,50,68,72,73,76,97,99,110],logic:[83,96],login:[3,6,8,26,30,66,68,69,78,81,92,106,117],logout:[6,68,97],lolcat:[2,113],lolcow:[2,29,80,97,113],lolcow_from_docker_cach:97,lolcow_latest:[97,113],lolcow_tar:97,longer:[1,3,5,68,100,116],look:[2,40,96,97,100,105,106,108,114,118],loop0:4,loop1:4,loopback:109,loss:[107,116],lost:[1,97],lot:100,love:[95,103],lp:96,lpadmin:113,lremovexattr:110,ls:[0,1,59,81,97,110,111,112,113,114],lsb:114,lseek:110,lsetxattr:110,lsof:96,lstat64:110,lstat:110,luke:8,luks2:[103,115],m:[95,98],mac:113,machin:[1,2,8,26,78,81,92,96,97,102,104,106,113,117],macvlan:109,made:[2,95,96,97,100,118],madvis:110,mai:[0,1,2,3,5,8,26,30,31,67,78,81,92,93,95,96,97,98,100,101,102,105,107,108,109,112,113,114,115,116,118],mail:[36,95,97,98],main:[59,83,95,96,99,108,113],maintain:[95,102,104,113,116],mainten:113,major:[0,4,102,108],make:[0,1,2,8,26,30,78,81,92,96,97,99,102,104,106,108,109,110,111,113,115,118],malici:96,man:[4,13,15,108,116],manag:[0,3,4,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,68,69,70,71,72,73,74,75,76,77,96,100,101,103,105,108,111,113,114,115,116],mandat:110,mandatori:[0,96,110],mani:[0,1,3,72,96,97,99,104,106,108,109,111,113,114,115,116],manifest:[0,3,97,110],manipul:[7,82,83,84,85,86,87,88,89,90,97,99,103,111,113],manner:[97,102,113,115],manpath:108,manual:[3,13,15,96,97,100,108,111,114,116,118],map:[1,22,23,97,100,101,102,109],mapper:110,mar:[1,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],margin:[109,114],mark:[3,5],master:[4,5],match:[0,24,40,80,96,100,102,105,106,112],materi:[37,107],matter:[104,113],matur:5,max:[4,108,116],maxim:5,maximum:[40,97],mayb:[0,2,113],mb:3,mcgill:113,mconfig:113,md:[0,4,95],mdev:116,mean:[2,3,4,92,95,96,97,101,104,108,111,112,113,115,116,118],mechan:[108,112],mem:[4,114],memfd_creat:110,memori:[2,3,104,109,111],memory_limit:102,memoryclockr:102,mention:[3,97,108],merchant:107,merg:95,messag:[3,95,97,108,113,114,117],met:[5,107],meta:[2,26,30,78,81],metadata:[0,7,27,30,78,96,97,103,110,113,114,115,118],meter:4,method:[1,2,96,97,98,99,101,102,108,116,117],mib:[26,56,78,81,92,97,106],mibauer:[29,30],michael:112,mig:102,might:[0,4,96,97,100,104,113,116],milk:113,min:116,mincor:110,mind:97,miniconda:106,minim:[0,5,8,26,30,78,81,92,97,100,102,106,108,116,118],minimum:113,minor:[4,58,102],minut:100,mip:83,mips64:83,mips64l:83,mipsl:83,mirror:[0,8,96,97,102,106],mirrorurl:[0,8,96],mislead:0,mismatch:[108,112],miss:[97,100],mitig:96,mkdir:[2,5,108,110,111,114,116],mkdirat:110,mke2f:1,mkf:[1,111],mknod:110,mknodat:110,mksquashf:1,mlock2:110,mlock:110,mlockal:110,mmap2:110,mmap:110,mnt:[1,2,113],mobil:[7,104,113],mod:59,mode:[3,8,10,97,101,102,110,114,115],model:[97,102,103,104],modern:[3,4],modif:[97,107,111,115],modifi:[0,1,3,5,82,96,97,99,100,101,102,105,109,111,117],modify_ldt:110,modprob:102,modul:[96,97,100,102,103,108,113,116],modular:2,moment:[95,105,108],mon:[97,113],monei:104,monitor:[5,115],moo:113,more:[0,3,4,5,26,27,30,78,81,91,92,95,96,97,98,100,101,102,104,109,111,112,113,114,115,116,117],most:[3,97,99,100,102,104,108,111,113,115,116],moto:8,mount:[0,2,3,6,8,26,30,41,53,78,81,92,100,102,103,108,111,113,114,115],mountpoint:[1,26,30,78,81,92],move:[97,99,100,114,118],mpi:[0,103],mpi_comm_rank:108,mpi_comm_s:108,mpi_comm_world:108,mpi_dir:108,mpi_fin:108,mpi_init:108,mpi_success:108,mpicc:108,mpich_dir:108,mpich_url:108,mpich_vers:108,mpiexec:108,mpirun:108,mpitest:108,mprotect:110,mq_getsetattr:110,mq_notifi:110,mq_open:110,mq_timedrec:110,mq_timedsend:110,mq_unlink:110,mqueue:110,mremap:110,mrsdallowai:110,ms:116,msgctl:110,msgget:110,msgrcv:110,msgsnd:110,msync:110,much:[97,104,116],multi:[24,114,116],multiarch:106,multipl:[0,1,2,4,8,26,30,78,81,92,93,96,98,99,100,104,106,110,111,113,114,115,116],multitud:110,munlock:110,munlockal:110,munmap:110,musl:0,must:[0,1,2,3,4,5,13,15,20,23,54,68,96,97,100,101,102,107,108,109,110,111,112,113,114,115,116,117],mv:98,my:[1,30,31,34,67,100,106,108,113,117],my_contain:[1,4,79,96,109,116,117],my_inst:[26,81],my_job:108,my_overlai:[56,111],myapp:97,mycontain:[1,4,41,42,43,44,45,46,48,49,50,51,52,54,97,100],mydef:3,myenv:100,myfil:100,myhost:100,myimag:[3,97],mykei:105,mylabel:96,mypath:100,myplugin:59,myprog:100,myrank:108,myregistri:[72,97],myremot:99,mysql1:31,mysql2:31,mysql:[30,31],mytoken:97,myuser:[97,106],myvar2:100,myvar:100,n:[1,3,10,26,30,36,78,81,92,96,97,99,100,108],name:[0,1,2,3,5,18,19,20,27,28,29,30,31,36,40,57,59,60,61,62,64,65,78,95,96,97,98,99,100,102,105,106,107,108,110,112,113,114,116,117,118],nameserv:109,namespac:[0,8,26,30,66,67,78,81,92,101,103,108,109,110,114],nanosleep:110,nation:[104,113],nativ:[4,26,30,78,81,97,102,108,113,116],natur:[4,97],nc:96,nearli:96,necessari:[0,1,5,95,96,98,102,104,109,110,113,116],need:[0,1,2,3,4,5,10,12,67,68,83,95,96,97,98,99,100,101,102,104,105,106,108,109,111,112,113,114,115,116,117,118],neg:102,negat:97,neglig:107,neither:107,net:[0,3,10,26,30,78,81,92,97,101],netcat:96,network:[0,3,4,26,30,78,81,92,97,103,104,110,114,115],never:[97,104,113,115],newer:[0,4,95,102,108,113,115],newfstatat:110,newinst:110,newli:[69,100],newlin:[0,1],newpair:[6,32,91,117],next:[5,95,96,99,108,118],nfsshare:108,nginx:[101,109,111],ni:97,nice:[98,114],nnode:108,no_mkdir:116,noarch:0,nobodi:[13,15,16,95],nocolor:[7,113],node:[0,2,4,102,108,114],node_env:114,node_modul:114,nodemon:114,nodev:[1,110],noexec:110,nohup:114,non:[0,1,2,8,26,30,31,78,81,92,96,97,100,101,103,109,112],none:[0,2,8,105,109,117],noninteract:108,nor:107,norc:[81,114],normal:[2,5,7,108,113,114,115,116,118],nosuid:[1,110,115],note:[1,4,8,10,12,13,15,37,41,67,72,78,92,95,96,97,99,102,106,110,114,116,117],notebook:100,notest:[8,96],noth:117,notic:[107,118],notif:115,novemb:97,now:[1,5,96,97,99,100,101,102,104,106,109,113,114,116,117],np:108,npm:114,nslookup:109,numa:102,number:[1,3,4,10,26,78,81,92,97,100,102,108,110,114,115,117],number_of_rank:108,numer:[100,102],nut:95,nv:[8,26,30,78,81,92,97,100,102],nvbliblist:102,nvccli:[8,26,30,78,81,92,102],nvcr:97,nvida:102,nvidia:[0,2,8,26,30,78,81,92,100],nvidia_disable_requir:102,nvidia_driver_cap:102,nvidia_require_:102,nvidia_uvm:102,nvidia_visible_devic:102,nvidiax:102,nvliblist:2,o:[4,26,30,58,70,78,81,92,96,97,108,114],oak:113,oauthtoken:97,obei:96,object:[82,83,84,85,87,88,91,93,97,111,113,115,117],object_path:83,obscur:97,observ:[3,96],obtain:[3,95,97,100,105,115,117],obvious:95,occur:[2,69,96,98,114],oci:[0,1,2,3,4,6,7,8,10,11,26,30,66,67,68,69,70,71,72,73,74,75,76,77,78,81,92,96,100,102,103,106,113,117,118],oci_cmd:100,oci_entrypoint:100,ocivers:110,oct:[97,109],off:[97,99,114],offer:[95,97],offici:[0,95,96,102,109,113,114],offlin:117,often:[1,2,96,97,100,102],okai:96,old:[105,113,114],older:[0,1,3,10,96,98,100,102,115,117],oldstabl:0,omit:96,omnipath:108,ompi:108,ompi_dir:108,ompi_url:108,ompi_vers:108,onc:[5,18,95,103,104,106,110,113,114,115,118],one:[0,1,3,4,7,8,26,30,57,62,78,81,91,92,96,97,98,99,100,102,104,105,106,110,111,114,115,117,118],ones:[0,35,112],onli:[0,1,2,3,4,7,8,22,23,24,26,27,30,33,34,35,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54,67,68,69,70,72,75,77,78,80,81,92,93,96,99,100,101,102,104,105,106,108,109,111,113,115,117],onlin:[95,109,111,114],onto:[97,104],oo:[97,113],op:110,open:[95,97,102,104,106,110,115,116],openat:110,opencontain:4,opengl:102,openjdk:97,openmpi:108,openpgp:[7,32,33,34,35,36,37,38,39,40,99,105,113,115,117],opensus:96,oper:[0,1,2,3,10,43,44,46,51,52,68,70,96,97,99,100,102,106,108,110,111,112,113,115,116,118],opinion:115,oppos:110,opposit:0,opt:[1,8,26,30,78,81,92,96,97,108],optim:[7,8,9,12,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,108,113],option:[0,1,3,4,5,96,97,99,101,103,105,108,109,110,111,113,114,117],ora:[2,3,8,10,25,26,30,66,67,68,72,78,81,92,96,97,99,113,117],order:[0,1,5,70,96,97,99,100,104,111,113,115,117,118],org:[0,4,8,40,60,61,64,65,95,96,99,100,107,108,109,113,114,115,117],organ:110,origin:[95,96,97,106,115,117],orphan:114,ort:108,os:[0,8,26,96,113,114],osvers:[0,8,96],other:[0,1,2,3,7,26,30,78,81,92,95,98,99,100,101,103,104,106,107,108,109,113,115,116,117],other_host:1,otherwis:[102,106,107],our:[0,3,4,5,78,92,95,99,100,106,108,111,113,114,115,117],out:[1,2,3,58,68,73,95,96,97,99,100,102,106,107,108,114,115,116,118],outcom:110,outdat:102,output:[2,7,8,9,10,11,12,17,22,27,28,32,33,40,41,55,57,58,66,68,82,93,95,97,99,100,105,106,113,114,117,118],outsid:[0,1,8,20,26,30,78,81,92,96,97,100,101,104,108,109,113,114,115],over:[0,1,8,12,96,97,100,104,113,115,117,118],overal:5,overhead:113,overlai:[0,1,2,6,7,8,26,30,78,81,83,92,97,102,103,110],overlap:101,overlayf:[26,30,78,81,92],overrid:[0,4,10,20,26,30,78,81,92,97,116],overridden:[3,4,97,100,118],overview:103,overwrit:[2,3,8,66,100,114],overwritten:100,own:[0,1,4,9,10,11,12,17,22,27,28,32,41,55,57,68,82,96,97,100,101,105,108,111,114,115,116],owner:[8,36,37,100],ownership:101,p700:[97,113],p:[4,26,36,72,78,81,92,97,108,109,114],pack:58,packag:[0,1,3,5,58,96,97,100,102,104,108,112,113,114,116,118],packet:116,pacman:0,page:[83,92,95,97,102,106,108,109,113,114],pai:8,pair:[3,20,26,30,32,36,78,81,91,92,96,97,98,100,117],parallel:[1,3,97,104],paramet:[0,96,111,115,116],parent:97,pars:96,parse_arg:5,parser:5,part:[0,1,56,96,97,100,110],partarch:[1,83,111],partf:[1,83,111],particular:[0,1,96,99,107,110,113],particularli:111,partit:[1,82,83,90,93,97,102,111,113,115],parttyp:[1,83,111],pass:[0,1,2,3,4,26,27,30,40,78,81,92,96,97,98,100,102,108,109,113,114,115,116],passphras:[0,3,8,26,30,78,81,92,105,115,117],passphrase_encrypted_alpin:106,passwd:[0,1,96],password:[0,3,34,36,72,97,99,105],past:[99,118],patch:[113,115],path:[0,4,5,8,20,24,26,27,30,43,50,52,54,58,68,69,72,78,79,81,91,92,93,96,97,98,102,103,108,110,112,113],pattern:[97,114],paus:[6,41,49,110],payload:[0,26,78,81,92,97],pci:102,pcibusid:102,pdf:114,pdf_client:114,pdf_server:114,pem:[0,8,26,30,78,81,92],peopl:[104,115],per:[4,99,100],perform:[0,3,7,8,9,12,17,22,25,26,27,28,30,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,96,97,98,99,100,102,103,106,108,110,113,114,115,118],perhap:[0,2,113],period:[4,118],perl:96,perm:8,perman:97,permiss:[1,2,3,8,12,97,107,110,113,115],permit:[0,97,100,107,109,110,116],persist:[0,1,8,26,30,78,81,92,103,114],persistenc:102,person:[97,110],perspect:110,pgp:[0,32,99,103,105,106,115,118],physical_device_desc:102,pick:113,pid:[0,5,26,29,30,31,43,50,78,81,92,96,97,110,115],pidfil:114,pie:105,piec:[100,104,115],ping:116,pinger:116,pinki:105,pip:97,pipe2:110,pipe:[110,113],pipelin:97,pixbuf2:114,pkcs1:98,pkg:[113,116],place:[2,3,97,99,100,102,113,114,118],plain:[5,27,98],plaintext:[0,2,3,98],platform:[7,8,9,12,17,22,25,26,27,28,32,41,55,57,66,67,68,78,79,80,81,82,91,92,93,94,102,104,108,113,115],pleas:[0,1,2,92,95,96,97,100,103,108,109,110,113,114,115,116,118],plu:[26,30,78,81,92,100],plugdev:113,plugin:[0,6,7,26,30,78,81,92,97,103,109,113],plugin_path:63,pm:97,pmi2:108,pmi:108,pmix:108,pod:43,point:[0,1,2,27,96,97,100,108,110,113,114,115],pointer:83,poke:114,polici:[95,103,107,113],poll:110,popul:[8,110],popular:[104,108],port:[5,96,100,101,104,109,113,114],portabl:[5,7,104,108,113],portion:[2,102,104],portmap:[101,109],posit:[113,117],posix:97,possibl:[1,2,3,10,11,82,96,97,100,102,107,108,111,115,116,117],post:[0,2,5,8,95,97,104,108,113,114],potenti:[74,96,100,106],power:102,ppc64:83,ppc64le:83,ppid:81,ppoll:110,pr:95,pr_no_new_priv:115,practic:[0,2,67,100,106,108],prctl:110,pre:[1,8,104,113,114,118],pread64:110,preadv:110,precaut:116,preced:[3,96,98],preclud:100,prefer:[100,116],prefix:[97,99,108],premis:97,premption:5,prep:96,prepar:1,prepend:[0,100,102],prepend_path:100,prescrib:110,presenc:[98,110,115],present:[0,2,3,23,78,96,97,100,102,104,112,116,117],preserv:96,preval:115,prevent:[23,97,99,100,115],preview:97,previou:[0,95,96,99,100,104,118],previous:[41,49,51,53,60,61,97,99,100,113,115,118],primari:[1,70,82,90,93,96,104,113,116],primsi:83,principl:97,print:[7,27,29,78,96,102,112,113],printf:96,prior:[2,37,102,107],prioriti:118,priv:[26,30,78,81,92],privaci:[98,107],privat:[0,3,32,33,34,35,36,91,98,105,106,115,117,118],privileg:[0,2,4,8,12,26,30,78,81,92,96,101,102,103,104,105,109,110,111,112,113,114,116],prlimit64:110,pro:102,probabl:95,problem:[3,95,96,97,102,104,108],proc:[1,110],proce:[0,113],procedur:[95,114,116],process:[0,1,4,5,26,28,30,41,42,43,46,48,49,51,78,81,92,96,100,102,104,105,108,110,114,115,117],processor:1,procur:107,produc:[0,2,96,97,113],product:[2,8,96,98,102,104,107,113],profil:[96,97,116],profile_util:102,profit:107,program:[0,3,4,81,96,97,100,101,102,104,108,112,113,115,116,118],project:[1,5,25,95,96,97,102,104,106,107,114,118],prolong:104,promot:107,prompt:[0,2,8,10,26,30,78,81,92,99,100,113],prompt_command:100,propag:[26,30,78,81,92],proper:[0,2],properli:[0,5,96,97,108,113,114,118],properti:[4,102,110],protect:96,protocol:66,prove:112,provid:[0,1,7,25,45,57,58,66,67,72,82,95,96,97,98,100,101,102,103,104,106,107,108,109,110,111,113,114,115,116,117],ps1:100,ps:[26,30,81,114],pselect6:110,psk:36,pst:117,pt:[30,81,110,114],ptmxmode:110,ptp:109,pub:98,publish:[97,102,104,115],pull:[0,3,6,7,32,33,34,35,38,39,68,96,97,99,100,102,110,113,114,115,117],pun:0,puppet:114,purdu:113,purpos:[2,4,100,107,110],push:[6,7,32,36,68,99,113,117],put:[1,97],pwd:[0,1,26,30,78,81,92,100,113],pwrite64:110,pwritev:110,py3:97,py:[5,26],python3:5,python:[0,5,8,26,95,97,100,102,108,115],python_3:97,python_vers:100,pythonpath:100,pytorch:97,q:[7,96,113],qa:115,qualifi:104,qualiti:113,queri:[41,52,80,106],question:[103,108,113],queue:97,quick:[96,97,103,105],quickli:[97,104],quickstart:113,quiet:[7,113],quit:112,quot:[1,96,97,113],quota:[4,106],r:[4,23,24,27,97,108,113,114],radeon:102,rain:105,ram:[3,26,78,81,92],random:[5,100],rang:97,rank:108,rare:102,rate:4,rather:[1,4,97,100,108,113],ratio:4,raw:[83,111,116],rc1:100,rc:[100,108],re:[3,97,105,111,112,114],reach:[95,99,115,118],reachabl:113,read:[0,1,2,4,5,8,26,30,54,78,81,92,95,96,102,104,105,110,111,112,114,115],readahead:110,reader:5,readi:[106,113],readili:111,readlink:110,readlinkat:110,readm:0,readthedoc:95,readv:110,real:[97,110],realli:113,reap:97,reason:[95,102,108,111],reassign:104,rebuild:104,rebuilt:114,recal:110,receiv:[96,114,116],recent:[0,3,26,30,78,81,92,97,98,102,113],recip:[0,8,27,79,83],reclaim:3,recogn:116,recommend:[2,5,37,97,98,100,101,108,113],reconstruct:118,record:[2,98,100],recv:110,recvfrom:110,recvmmsg:110,recvmsg:110,red:0,redirect:[96,100,113],redistribut:107,reduc:[115,116],reduct:115,redund:96,refer:[0,5,8,13,15,96,97,100,101,102,109,110,113,114,116],referenc:[95,110],refus:[97,114],regardless:[1,27,95,102],region:97,registri:[0,3,7,8,26,30,66,67,68,69,70,71,72,73,74,75,76,77,78,81,96,103,110,113,115,117,118],registry_uri:[72,73],regular:[1,99,111],rel:115,relat:[3,4,5,70,95,98,105,108,110,114,118],relatim:1,relative_fil:8,releas:[0,5,26,96,102,103,108,112,114,115],releasev:0,relev:[3,27,103],reli:[97,100,101,108,113],reluct:115,remain:[96,105],remap_file_pag:110,rememb:[3,105,114],remot:[1,3,6,7,8,25,36,37,67,95,103,106,113,118],remote_nam:[69,72,73,74,76,77,99],remote_uri:[69,99],remotenam:[70,75],remov:[3,6,10,12,15,19,23,24,32,33,34,35,37,38,57,65,68,102,113,117],removexattr:110,renam:[3,98,110,118],renameat2:110,renameat:110,render:[2,102,114],repeat:114,repeatedli:97,replac:[95,96,97,99,100,102,106,113,115],replic:[97,100,104,113],repo:[0,67,100],report:[76,97,106,115],repositori:[0,1,5,8,26,30,66,78,81,92,95,96,97,102,113],repres:[3,4,100],reproduc:[0,2,96,100,107,113],reproduct:[106,117],request:[1,4,5,7,25,97,100,101,108,109,110,113,114,115,116],requir:[0,2,3,4,8,12,13,15,41,43,50,67,68,72,96,97,98,99,100,106,108,109,110,112,113,114,115],research:[104,113],reserv:107,reset:[3,24,100],resid:[0,110],resiz:111,resize2f:111,resolv:[0,1,5,24,26,30,78,81,92,102,109],resourc:[2,41,44,54,95,108,110,115,116],respect:[0,1,3,4,5,97,98,110,116,118],respond:113,respons:[0,99,101,115],resproduct:117,rest:[96,98],restart:[5,20,30,114],restart_syscal:110,restor:[5,100,102,117,118],restrict:[4,33,34,35,37,38,39,112,115],restructur:95,result:[0,1,2,3,24,80,96,97,100,104,106,115,116,117],resum:[6,41],retain:[107,110,118],retriev:[3,37,96,97,117],retyp:[105,117],reveal:110,revert:95,revok:[99,115,116],rf:100,rfile:5,rhel:[0,8,98,102,113],ridg:113,right:[101,107],rlimit:110,rlimit_nofil:110,rm:[3,97,100,113,114],rmdir:110,ro:[1,8,26,30,78,81,92,110],rocm:[8,26,30,78,81,92,97,100],rocmliblist:2,root:[0,1,2,3,4,7,8,10,12,13,15,22,23,24,26,27,29,30,31,33,34,35,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54,68,70,75,77,78,81,92,96,97,98,99,100,101,102,103,105,109,110,111,112,113,114,115,116],rootf:[8,83,110],rootless:101,rout:12,routin:115,row:50,rpm:[0,113],rsa:[8,26,30,78,81,92,98,117],rsa_pri:98,rsa_pub:98,rss:114,rst:95,rstcheck:97,rt_sigact:110,rt_sigpend:110,rt_sigprocmask:110,rt_sigqueueinfo:110,rt_sigreturn:110,rt_sigsuspend:110,rt_sigtimedwait:110,rt_tgsigqueueinfo:110,rtt:116,rule:[1,4,101,115],run:[0,1,2,3,5,6,7,8,10,12,13,15,17,20,24,26,27,28,29,30,31,37,41,42,43,46,52,54,81,92,95,96,97,99,100,101,102,103,104,105,109,110,111,115,116,117,118],runner:[20,26,30,68,78,81,92],runni:3,runscript:[0,1,2,8,27,78,97,102,106,110,113,114],runscript_command:3,runtim:[0,1,2,3,4,96,97,98,102,103,104,111,112,113,116],rw:[1,4,8,26,30,78,81,92,97,110],rwm:[4,110],rwx:8,rwxr:[0,97],rx:102,s390x:83,s:[1,2,3,4,5,7,8,11,24,26,27,30,31,33,35,43,46,50,52,56,58,66,67,78,79,81,91,92,93,96,97,100,101,102,103,105,106,108,109,110,111,112,113,114,115,117],safe:[3,5,97,115],safer:96,safest:108,safeti:[96,97],sai:[2,105,109],sambashar:113,same:[0,1,2,68,78,92,96,97,98,99,100,101,102,104,105,106,108,110,112,113,114,115,116,117,118],sampl:[112,114],samtool:96,san:[109,113,114],sandbox:[0,8,26,30,78,81,92,96,97,102,115],sandia:113,satisfi:[102,104,113],save:[0,2,5,30,33,96,97,98,105,114,116,117],sbatch:108,sbin:[0,30,100,110],scenario:[97,104,113,116],scene:97,sched_get_priority_max:110,sched_get_priority_min:110,sched_getaffin:110,sched_getattr:110,sched_getparam:110,sched_getschedul:110,sched_rr_get_interv:110,sched_setaffin:110,sched_setattr:110,sched_setparam:110,sched_setschedul:110,sched_yield:110,schedul:[4,97,102,115],schema:[96,100],school:104,sci:[27,96,114],scientif:[0,96,104,114],scientist:[104,113],scif:[27,97,100,114],scif_app:27,scif_appbin:27,scif_appdata:27,scif_appdata_:27,scif_appenv:27,scif_appfil:27,scif_apphelp:27,scif_appinput:27,scif_applabel:27,scif_applib:27,scif_appmeta:27,scif_appnam:27,scif_appoutput:27,scif_approot:27,scif_approot_:27,scif_apprun:27,scif_apptest:27,scif_data:27,scmp_act_allow:[110,116],scmp_act_errno:110,scmp_act_kil:116,scmp_arch_x32:[110,116],scmp_arch_x86:[110,116],scmp_arch_x86_64:[110,116],scmp_cmp_eq:110,scmp_cmp_masked_eq:110,scope:[4,97,116],scratch:[2,8,26,30,78,81,92,96,103],screen:96,script:[0,4,27,30,96,97,100,104,108,113,114,118],scriptlet:[8,96],sdk:102,seamlessli:0,search:[6,7,32,93,96,97,99,102,109,113],search_queri:80,search_str:40,seccomp:[0,26,30,78,81,92,101,110,115,116],second:[1,2,4,31,46,96,99],secret:[2,33,35,91,96,97,98,105],section:[0,4,8,27,79,92,95,97,98,99,100,108,110,113,114,116],secur:[0,26,30,78,81,92,95,97,98,99,102,103,104,106,111,113],see:[0,2,3,4,5,95,96,97,99,100,101,102,103,105,107,109,110,113,114,115,116,117,118],seem:0,seen:102,select:110,self:5,selinux:[0,26,30,78,81,92,116],semctl:110,semget:110,semi:108,semop:110,semtimedop:110,send:[3,31,95,110,113,114],send_head:5,send_respons:5,sendfil:110,sendfile64:110,sendmmsg:110,sendmsg:110,sendto:110,sensit:[13,15,96,97,101],sent:[0,31,46],sep:97,separ:[0,1,3,4,8,13,15,26,30,78,81,92,97,100,102,103,106,109,111,114,115],seri:107,serif:[109,114],serv:[113,114],serve_forev:5,server:[0,1,5,26,28,30,32,37,38,40,78,81,92,93,99,102,104,109,113,114,115,117],servic:[4,7,28,29,30,31,68,69,73,76,77,95,97,99,101,102,104,107,113,116,117],session:[100,111],set:[0,1,2,3,4,5,8,10,11,16,24,26,27,30,32,34,68,72,77,78,81,82,83,90,92,96,97,98,100,101,102,106,108,109,110,111,113,114,115,116,118],set_robust_list:110,set_thread_area:110,set_tid_address:110,setfsgid32:110,setfsgid:110,setfsuid32:110,setfsuid:110,setgid32:110,setgid:110,setgroup:110,setgroups32:110,setitim:110,setpgid:110,setprim:[6,82],setprior:110,setregid32:110,setregid:110,setresgid32:110,setresgid:110,setresuid32:110,setresuid:110,setreuid32:110,setreuid:110,setrlimit:110,setsid:110,setsockopt:110,setuid32:110,setuid:[0,26,30,78,81,92,97,101,102,103,110],setup:[0,2,4,8,26,30,78,81,92,97,99,100,102,108,113,114,115],setuptool:97,setxattr:110,sever:[0,8,96,97,108,109,113],sh:[0,27,78,96,100,108,111,114],sha256:[0,3,83,97,106,110],sha384:83,sha512:83,sha:117,shadow:[96,101],shall:107,share:[0,3,4,26,30,78,81,92,95,97,104,108,111,115,116,117],shell:[0,1,2,4,6,7,27,30,78,95,96,97,98,99,100,101,102,108,109,111,114,116],shim:[0,26,30,78,81,92],ship:1,shm:110,shmat:110,shmctl:110,shmdt:110,shmget:110,should:[0,1,2,3,8,12,27,68,72,95,96,97,98,99,100,102,108,110,111,113,114,115,116],show:[0,2,7,12,14,16,27,79,94,96,98,99,100,106,108,111,113,117],shown:[27,102,106,114],shub:[2,3,8,10,11,26,30,66,78,81,96,97,106,113],shutdown:[31,110,114],sif:[0,2,3,4,5,6,7,8,26,27,29,30,31,41,47,56,58,63,66,67,78,79,81,91,92,93,97,98,99,100,101,102,103,104,106,108,109,110,112,113,114,116],sif_imag:47,sif_path:[83,84,85,86,87,88,89,90],siftool:113,sigaltstack:110,sigkil:46,sign:[0,6,7,67,80,83,93,96,97,100,111,113,115],signal:[0,31,46,97],signalfd4:110,signalfd:110,signatur:[0,7,83,91,93,96,97,99,103,104,110,111,113,115,117],signent:83,signhash:83,signifi:115,signific:[0,115],sigreturn:110,sigterm:[31,46],silent:[7,113],silli:96,similar:[96,97,102,104,108,113,116],similarli:[1,96,114],simpl:[0,4,5,97,104,108,114,115,116],simpler:[111,116],simplest:102,simpli:[103,105,110,113,114],simplic:108,simplifi:[4,104],sinc:[97,98,99,102,105,108,114,115,118],singl:[1,3,4,27,56,68,96,97,99,100,104,106,108,110,111,115],singular:[0,2,7,8,26,30,66,78,81,82,83,84,85,86,87,88,89,90,96,103,106,110,112,113,117],singularity_:[100,118],singularity_oci_run:100,singularityenv_:[100,118],singularityenv_foo:118,singularityhub:8,singularitywar:107,sinit:[30,81,114],sinstanc:29,sit:111,site:[96,102,104,114,115],situat:[96,100,102,114],size:[0,1,3,56,83,97,108,110,111],skeleton:[57,59],skip:[0,2,8,69,118],sl:114,slack:[95,97,108],slash:0,slew:114,slightli:[97,113],slimmer:96,small:[3,113,115],smaller:108,smi:102,snip:[79,98],so:[0,1,2,3,4,67,92,93,95,96,97,98,100,101,102,104,105,106,108,109,111,112,113,114,115,116,117,118],sock:110,socket:[43,50,52,97,110,113,116],socketcal:110,socketpair:110,soft:110,softwar:[0,2,3,4,95,96,97,100,107,111,113,115],solut:102,solv:104,some:[0,1,3,26,30,78,79,81,92,96,97,99,100,101,102,104,108,109,113,114,115],some_contain:116,somegui:8,someon:113,somepackag:0,someth:114,sometim:[96,97,108],somewhat:[0,96,104,114],soon:111,sort:117,sourc:[0,1,3,8,20,26,30,58,78,81,92,95,96,97,99,100,104,107,108,110,112,115],space:[0,2,3,96,98,100,104,109,115,116],spawn:[5,113,116],speak:3,spec:[4,8,20,26,30,78,81,92,102],special:[96,97,100,107,116],specif:[0,1,2,3,4,8,9,20,26,27,30,32,33,34,66,72,73,75,78,81,92,96,97,98,100,102,106,107,109,110,112,113,114,115,116,117],specifi:[0,1,2,3,4,5,7,8,10,25,26,30,36,37,38,40,43,48,49,50,52,54,70,72,73,75,76,78,80,81,91,92,93,96,97,99,100,102,105,106,108,109,110,111,113,114,116,117],speed:[104,114,115],spent:114,spf13:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],sphinx:95,splice:110,spot:114,sql:[30,31],sqsh:[26,30,78,81],squash:83,squashf:[26,30,78,81,83,97,111,113,115,117],src:[1,8,20,26,30,78,81,92,114],srun:108,ssh:[1,98],sshf:[1,26,30,78,81,92],stabl:[0,102,113],stack:[96,102,108],staff:108,stage:97,stage_nam:96,stand:117,standalon:[1,68],standard:[72,96,97,98,100,104,105,108,110,111,112,114,115],standpoint:116,start:[0,1,2,4,5,6,7,8,20,26,28,31,41,50,59,78,81,92,96,98,100,101,102,108,109,110,111,112,114,115,117,118],starter:[8,115],startpath:100,startscript:[5,8,27,30,97,100,114],startup:[100,102,115],stat64:110,stat:[110,114],state:[3,5,6,7,17,18,19,20,21,30,41,43,50,54,110],statement:97,statf:110,statfs64:110,statist:116,statu:[6,68,95,97,105,110,117],stderr:[26,78,81,92,108],stdin:[54,72],stdio:108,stdlib:108,stdout:[24,29,108],step:[3,69,96,100,103,108,111,114,115],sterr:29,still:[1,72,99,102,104,114,118],stime:81,stop:[5,6,28,30,52,96,97,114,118],storag:[0,3,17,18,26,30,78,81,92,99,106],store:[0,1,5,10,11,18,21,36,68,97,99,100,105,110,111,113,115,118],straight:108,straightforward:97,strang:100,strategi:4,stream:0,stream_executor:102,streamexecutor:102,streamlin:114,stretch:[0,100],strict:[97,107],strictatim:110,string:[0,1,2,7,8,10,11,13,15,20,25,26,27,29,30,31,36,37,38,40,43,46,50,52,54,56,58,66,67,68,69,72,78,79,80,81,83,92,93,96,109,113],stringarrai:[8,26,30,78,81,92],strip:0,strive:103,strongli:100,structur:[0,4,8,27,29,59],student:104,style:[0,109,114],su:101,sub:[97,100,110,113],subarchitectur:116,subcommand:[7,68,113,117],subgid:101,subject:107,submit:108,subsequ:[92,110,118],substitut:[100,107],subsystem:112,subuid:101,succeed:[97,101],success:[97,102,112],successfulli:[5,96,97,102,105,109,114,117],sudo:[0,2,3,4,10,13,15,26,29,79,81,96,97,98,99,101,105,106,109,110,111,112,113,114,115,116],suffic:116,suffici:3,suggest:95,suid:115,suit:97,suitabl:[2,98,106,113,115],summari:3,superblock:1,supercomput:113,supervisor:114,supplement:99,suppli:[0,96,97,98,99,113,114],support:[0,1,2,3,4,8,26,30,66,67,78,81,92,95,96,98,99,100,103,106,108,109,111,113,114,115,116],suppos:[110,114,116],suppress:[7,10,113],sure:[3,97,106,108,114],surfac:[113,116],suse:[0,96],suspect:115,suspend:[41,48],swap:1,swappabl:104,swiss:[2,113],sy:[1,4,110],sylab:[0,62,66,92,96,99,102,106,107,112,114,116],sylabscloud:99,sylabsio:[97,113],symbol:[96,97,100,110],symlink:[97,110],symlinkat:110,sync:[43,50,52,110],sync_file_rang:110,syncf:110,synchron:[43,50,52],syntax:[0,1,96,105,113,114],syo:81,syscal:[110,116],sysf:[102,110],sysinfo:110,syslog:110,system:[0,2,3,4,5,7,8,12,26,30,57,60,61,62,65,78,81,82,83,90,92,95,96,97,98,99,100,101,102,106,108,110,115,116,117,118],systemd:114,systemv:97,t4:102,t:[1,2,3,4,8,10,11,24,27,31,46,96,98,101,104,106,112,113,114,115,118],tabl:[1,96,97],tag:[0,3,66,67,95,97,102,106],tahoma:[109,114],take:[0,1,3,4,72,96,97,100,102,104,113,116,118],taken:118,talk:[104,113],tamper:115,tandem:108,tar:[0,96,97,108,113],tarbal:[0,113],target:[1,2,8,97,108,114,116],task:[4,96,100,108,114,115],tcp:[96,101,109],team:[95,113],technic:108,technolog:[5,115],tee:110,tell:[96,97,100,113,114],templat:114,temporari:[0,2,26,30,78,81,92,96,97,111,114],tempt:97,tenant:116,tend:95,tensorflow:[8,66,80],tensorflow_latest:102,term:[31,100,107,110],termin:[97,114],tesla:102,tesrt:100,test2:[29,100],test:[0,1,2,6,7,8,27,29,58,62,63,81,95,97,101,102,103,106,111,112,113,116],testscript:92,texa:113,text:[5,8,27,79,95,96,98,100],tgkill:110,tgz:97,than:[0,1,3,4,10,96,97,98,100,101,104,108,111,113,115,117],thank:[109,113,114],thei:[1,2,5,27,95,96,97,99,100,101,102,104,106,108,113,114,115,116,118],them:[0,1,2,3,5,12,27,67,95,96,97,100,103,104,108,111,113,114,115,117,118],themselv:98,theori:107,therefor:[1,70,96,98,100,111,113,115],thi:[0,1,2,3,4,5,8,10,11,13,15,26,28,30,37,78,79,81,82,92,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118],thing:[0,3,5,8,78,100,101,108,113,118],third:100,those:[2,3,93,95,96,100,101,113,114,116],though:[2,97,111,113,114],thought:113,thread:95,three:[78,99,114],throttlereadbpsdevic:4,throttlewritebpsdevic:4,through:[3,4,68,95,96,97,100,102,103,108,109,110,112,115,117,118],thu:[37,96,104],thursday_12_november_2020_10:100,time:[0,1,2,4,5,27,30,81,95,96,97,98,99,102,103,104,108,110,111,112,113,114,115,116,117,118],timeout:[31,46,100],timer_cr:110,timer_delet:110,timer_getoverrun:110,timer_gettim:110,timer_settim:110,timerfd_cr:110,timerfd_gettim:110,timerfd_settim:110,tini:97,tini_exampl:97,tip:5,titl:[109,114],tkill:110,tl:99,tmp:[0,1,3,8,26,30,47,54,56,78,81,92,96,97,101,108,110,111,113,114,116],tmpdir:3,tmpf:[3,8,26,30,78,81,92,97,109,110,111,114],token:[67,68,69,72,76,97,99,106],tokenfil:[69,72],toler:108,toml:[4,115],tool:[4,82,96,97,100,102,104,111,113,118],toolchain:[0,113],toolkit:102,top:[0,27,96,111,113],topic:[3,103],tort:107,total:[3,81,105,108,110,114],touch:[1,96,100,113],toward:[5,97,116],track:[3,102],trademark:107,tradit:[95,102],tradition:104,traffic:[96,101],transcrib:96,transfer:0,transit:[98,118],translat:[4,97],transmit:116,transpar:[5,113],transport:[104,111],transpos:0,travel:[103,115],treat:111,tree:[4,97,102,106,111,112],trigger:[5,98,102,113,118],truli:110,truncat:110,truncate64:110,trust:[32,35,37,115,117],trusti:[0,8],ttl:116,tty:[30,81,114],tuesday_1_march_2022_16:96,turn:[96,99],tutori:96,tvf:97,tweak:2,twice:97,two:[0,1,2,4,78,96,97,98,104,108,113,118],txt:[4,8,96,98,113],type:[1,3,4,5,8,9,10,11,13,15,26,30,78,81,83,92,96,97,99,100,102,109,110,111,114,117],typic:[3,5,106],u:[8,13,15,24,26,29,30,31,36,37,38,40,67,72,78,81,92,93,97,102,105,113,117],ubuntu:[0,1,2,8,27,81,96,97,98,100,102,104,106,108,109,111,113,114,116],ubuntu_latest:111,ubuntu_p:116,uclibc:0,udev:110,ufit:113,ugetrlimit:110,uid:[0,26,30,78,81,92,96,97,101,102,110,113,116],uint32:[46,70,83,91,93,113],ultim:108,umask:[26,30,78,81,92,97,110],umount:[6,41,110],un:104,unam:110,unawar:118,uncompress:3,under:[2,3,4,97,99,100,101,102,105,108,110,114,115,118],underli:118,underneath:104,understand:[95,96,100,102,103,114],understood:[0,103],unencrypt:99,unexpect:1,unfortun:1,unfund:104,unifi:4,unimport:96,uninstal:[6,57,112],uniqu:[3,97,103,114,115],unit:114,univers:[104,113],unix:[43,50,52,104],unless:[1,4,97,100,102],unlik:[97,113,115],unlink:110,unlinkat:110,unload:102,unmodifi:103,unpack:[0,97],unpredict:2,unprivileg:[0,1,2,3,4,7,22,24,26,30,33,34,35,37,38,39,78,81,92,97,101,102,109,115],unprivleg:102,unreach:114,unrestrict:109,unset:[24,100],unsign:[67,96],unstabl:0,unsur:97,until:[4,100,113],up:[0,3,5,8,26,30,31,66,78,79,81,92,97,99,102,104,108,109,113,114,115],updat:[0,5,6,8,26,41,95,96,97,98,100,102,104,108,111,113,114],upgrad:100,upload:[7,32,38,67,113,114],upon:[5,104,110,112],upstream:[95,102],uri:[0,2,3,5,7,8,25,26,30,66,67,68,78,80,81,92,97,99,100,113,114,117],url:[0,3,8,37,38,40,93,99,106,113,114],us:[0,2,3,5,6,8,9,10,18,21,23,25,26,27,28,30,66,68,69,70,71,72,74,75,78,79,81,83,91,92,95,96,97,99,101,102,103,105,107,108,109,110,111,113,114,115,116,117,118],usabl:[0,5,99,111,113],usag:[3,4,26,78,81,92,96,99,100,106,113,114,118],useless:[2,114],user:[0,2,3,4,5,7,8,12,13,14,15,16,22,23,24,26,29,30,31,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54,59,60,61,62,66,67,68,70,75,77,78,79,81,91,92,93,95,96,98,99,100,101,102,104,105,106,108,109,110,111,113,114,116,117],user_id:1,usern:[26,30,78,81,92,97],usernam:[0,3,25,29,59,66,72,95,97,99,101],userspac:1,usr:[2,7,32,81,96,97,100,109,110,111,113,114,116,118],usual:[4,96,97,102,108,111,114,116],ut:[0,26,30,78,81,92,97,101,110],utc:[96,97],utf8:5,util:[98,102,111,114],utim:110,utimensat:110,uuid:[1,102],uw:102,uwc:102,v0:96,v1:[3,4,26,30,66,78,81,106,116],v2:4,v4:108,v:[3,7,11,96,113],vader:8,vagrant:[23,96,98,110],val:100,valid:[2,4,26,30,76,78,81,96,97,99,101,115],valle:106,valu:[0,2,3,4,5,8,10,24,96,97,100,102,110,113,118],valuabl:[5,112],vari:[97,105,108],variabl:[1,2,5,26,27,30,78,81,92,96,99,102,103,108,111,112,113,114],variat:108,variou:[7,22,23,24,97,99,100,104,108,112],ve:[95,103,109,111,114,117],vendor:[95,102,112],verbatim:100,verbos:[7,11,113],verdana:[109,114],veri:[0,95,96,97,113,114],verif:[93,97,99,105,113,115,117],verifi:[0,4,5,6,7,27,37,96,97,99,102,103,104,109,113,115],versatil:112,version:[0,1,4,6,7,26,30,58,62,76,78,81,95,96,97,98,100,101,102,103,104,106,108,110,112,113,114,117,118],versu:4,vfork:110,vg:110,via:[1,2,3,4,5,7,82,96,97,98,99,100,102,105,106,108,110,113,114,115,116,117],viabl:0,vibrant:113,video:102,view:[3,29,100,102,105,106,112,113],vim:111,virtual:[7,26,78,81,92,102,113],visibl:[100,102],visit:[92,113,114],vm:[26,78,81,92],vmsplice:110,vsoch:66,vsz:114,vulkan:102,vulner:115,w:[4,26,30,78,81,92,97,101,102,113],wa:[0,2,26,27,30,78,81,92,96,97,99,100,102,104,105,106,112,115,116,117,118],wai:[1,2,5,95,96,97,98,100,102,104,107,108,109,110,113,114],wait4:110,waitid:110,waitpid:110,want:[0,1,2,3,4,5,27,95,96,97,99,100,102,105,106,108,109,111,113,114,115,116,118],wantedbi:114,warn:[0,96,97,100,102,116,118],warrant:5,warranti:107,watch:114,we:[3,4,5,78,95,96,97,99,100,102,103,105,108,109,111,113,114,115,116,117,118],weather:104,web2:109,web:[28,95,97,99,102,106,109,114],websit:[5,102,107],wed:97,week:0,weigh:4,weight:[0,4],weightdevic:4,welcom:[103,109,114],well:[4,12,30,97,103,108,114,116,117],were:[2,3,44,96,99,100,111,113,114,115,118],wfile:5,wget:[96,100,108,113,114],what:[0,1,3,95,97,100,104,105,106,111,114],whatev:104,wheel:97,wheezi:0,when:[0,1,2,3,4,5,8,27,37,40,68,70,72,78,95,96,97,98,99,100,106,108,109,110,111,112,113,114,115,116,117,118],whenev:100,where:[0,1,2,4,7,8,26,30,78,81,92,95,96,97,99,100,102,104,105,108,110,113,116],whether:[1,2,96,97,102,103,104,105,107,113],which:[0,1,2,3,4,5,8,26,27,30,35,57,60,61,68,78,81,92,95,96,97,98,99,100,101,102,103,104,105,108,109,111,113,114,115,116,117],whitelist:[115,116],who:[12,100,113,115],whoami:[113,116],whole:117,whose:[110,113],why:103,wide:[97,99,108],widespread:115,width:[109,114],wikipedia:100,wil:118,wildcard:114,window:113,wish:[1,3,4,97,100,108,114],within:[0,1,2,3,4,5,7,8,20,26,27,30,41,42,45,46,78,81,92,96,97,98,100,102,103,104,108,109,110,111,113,114,116,117,118],without:[0,1,2,3,4,7,8,25,43,96,97,100,101,102,103,104,106,107,111,113,114,115,116,117,118],won:[97,101,115],word:[0,98],work:[0,1,2,3,4,5,26,30,78,81,92,95,96,97,100,101,102,103,105,108,109,112,114,115,116,118],workaround:[2,97],workdir:[26,30,78,81,92],workflow:[0,8,97,98,100,102,104,108],workload:115,workstat:104,world:[78,96,104,106,108,113],worri:104,would:[0,1,3,4,27,95,96,98,99,100,102,104,105,108,109,113,114,117],wouldn:115,wrap:[1,5],writabl:[7,8,26,30,55,56,78,81,92,97,102,109,111,113,114],write:[0,1,2,4,5,8,24,26,30,78,81,92,96,97,100,102,103,109,110,111,113,114,116],writev:110,written:[0,5,96,97,100,107,112,113],www:[0,4,92,108,113,114],x11:102,x86_64:[0,8,100],x:[0,5,31,96,97,100,102,111],xcb1:114,xdg:114,xenial:0,xferd:114,xjf:108,xla:102,xr:[0,97,111],xterm:[100,110],xxx:[26,30,78,81,92,100],xz:2,xzf:[108,113],xzvf:113,y:[2,3,96,99,100,108,111,113,114],yakketi:0,yaml:[5,68,97,99],ye:[1,8,64,71,99,112,117],year:104,yet:[62,102],yield:96,you:[0,1,2,3,4,5,9,10,12,25,27,28,29,30,31,33,34,36,37,38,40,41,57,66,67,68,69,72,73,74,76,79,80,92,95,96,97,98,99,100,101,102,103,104,105,106,108,109,111,112,113,114,115,116,117,118],your:[0,1,2,3,4,5,8,9,10,11,12,26,27,30,32,34,35,36,37,39,67,68,72,76,78,81,92,96,97,98,99,100,101,102,105,108,111,113,114,115,116],yq:114,ysub:114,ythel:1,yum:[8,96,97,100,101,106,113],z:[100,114],zero:[8,96,102,111,116],zombi:97,zypper:96},titles:["Appendix","Bind Paths and Mounts","Build a Container","Build Environment","Limiting Container Resources with Cgroups","Checkpoint Feature","Command Line Interface","apptainer","apptainer build","apptainer cache","apptainer cache clean","apptainer cache list","apptainer capability","apptainer capability add","apptainer capability avail","apptainer capability drop","apptainer capability list","apptainer checkpoint","apptainer checkpoint create","apptainer checkpoint delete","apptainer checkpoint instance","apptainer checkpoint list","apptainer config","apptainer config fakeroot","apptainer config global","apptainer delete","apptainer exec","apptainer inspect","apptainer instance","apptainer instance list","apptainer instance start","apptainer instance stop","apptainer key","apptainer key export","apptainer key import","apptainer key list","apptainer key newpair","apptainer key pull","apptainer key push","apptainer key remove","apptainer key search","apptainer oci","apptainer oci attach","apptainer oci create","apptainer oci delete","apptainer oci exec","apptainer oci kill","apptainer oci mount","apptainer oci pause","apptainer oci resume","apptainer oci run","apptainer oci start","apptainer oci state","apptainer oci umount","apptainer oci update","apptainer overlay","apptainer overlay create","apptainer plugin","apptainer plugin compile","apptainer plugin create","apptainer plugin disable","apptainer plugin enable","apptainer plugin inspect","apptainer plugin install","apptainer plugin list","apptainer plugin uninstall","apptainer pull","apptainer push","apptainer remote","apptainer remote add","apptainer remote add-keyserver","apptainer remote list","apptainer remote login","apptainer remote logout","apptainer remote remove","apptainer remote remove-keyserver","apptainer remote status","apptainer remote use","apptainer run","apptainer run-help","apptainer search","apptainer shell","apptainer sif","apptainer sif add","apptainer sif del","apptainer sif dump","apptainer sif header","apptainer sif info","apptainer sif list","apptainer sif new","apptainer sif setprim","apptainer sign","apptainer test","apptainer verify","apptainer version","Contributing","Definition Files","Support for Docker and OCI Containers","Encrypted Containers","Remote Endpoints","Environment and Metadata","Fakeroot feature","GPU Support (NVIDIA CUDA & AMD ROCm)","Apptainer User Guide","Introduction to Apptainer","Key commands","Library API Registries","License","Apptainer and MPI applications","Network virtualization","OCI Runtime Support","Persistent Overlays","Plugins","Quick Start","Running Services","Security in Apptainer","Security Options","Signing and Verifying Containers","Singularity Compatibility"],titleterms:{"1":95,"2":95,"3":95,"4":95,"5":95,"6":95,"case":104,"default":[3,97,99,100],"export":[33,105],"final":111,"import":[34,105],"new":[89,95],"public":97,"static":104,A:0,In:97,To:99,access:4,acr:97,action:116,add:[13,69,70,83,99,116],advanc:[103,117],agent:[0,96],all:114,allow:116,also:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],altern:108,amd:102,an:[2,95,98,108,110],anoth:[2,113],api:[2,106],app:96,appendix:0,applianc:104,applic:[102,108],apptain:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,97,99,100,103,104,108,113,114,115],apptainerenv_:100,ar:104,arch:0,archiv:[0,97],arg:109,argument:[97,113],attach:42,authent:97,automat:118,avail:14,avoid:100,aw:97,azur:97,b:0,background:[103,115],base:100,batch:108,behavior:99,behaviour:97,best:[96,97],bind:[1,2,108],blender:102,boltdb:3,bootstrap:[0,96],branch:95,bring:104,build:[0,2,3,8,96,97,100,101,103,106,113,114,116],bundl:110,busybox:0,byoe:104,c:0,cach:[3,9,10,11,97],cap:116,capabl:[12,13,14,15,16,116],cgroup:4,chang:95,checkout:95,checkpoint:[5,17,18,19,20,21],clean:[3,10],cli:[97,102,106],cmd:97,code:[95,104,113],command:[3,6,97,98,105,113,118],commerci:104,commun:95,compat:[97,103,118],compil:[58,113],compliant:110,complic:104,config:[22,23,24],configur:[99,101,102,115,118],contain:[1,2,3,4,97,98,100,101,102,103,104,106,108,110,113,114,116,117],containal:1,content:110,contribut:95,convert:[2,113],correctli:102,corrupt:3,cpu:4,creat:[2,4,18,43,56,59,110],cuda:102,cuda_error_unknown:102,custom:[100,104],d:[0,100],daemon:[0,97],data:104,debootstrap:0,deffil:100,defin:1,definit:[1,2,96,97,100,101,106,108,113],del:84,delet:[19,25,44],depend:113,devic:[4,97],differ:97,directori:[2,100,111,113],disabl:[1,60],dmtcp:5,dn:109,docker:[0,2,3,97],dockerfil:97,document:95,doesn:97,download:[2,113],drop:[15,116],dump:85,dure:97,dynam:100,e:[0,100],ecr:97,embed:111,enabl:61,encrypt:[2,3,98,103,116],endpoint:99,entrypoint:97,env:100,environ:[0,3,96,97,98,100,104,118],error:3,escap:100,evalu:100,everyth:102,exampl:[1,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,101,102],exec:[26,45],execut:[1,113],exist:2,ext3:1,f:0,fakeroot:[2,23,101],fanci:114,featur:[5,101],file:[1,2,96,97,98,100,101,106,108,111,113,114],filesystem:[101,110],fingerprint:96,flag:[1,97],flow:104,folder:3,forc:2,fork:95,format:[2,113,115],from:[2,97,100,101,106,113,117],fuse:1,g:0,gener:117,get:[97,103],github:97,global:[24,105],go:113,gpu:102,group:117,guid:103,h:[0,100],handl:97,header:[86,96],hello:114,help:[79,96,97],helpfil:100,home:[1,97],host:[1,100,104],hostnam:109,http:101,hub:[2,97],hybrid:108,i:0,id:117,imag:[1,96,100,111,113,114,115,118],info:87,inform:103,inherit:100,init:97,insid:4,inspect:[27,62,100],instal:[5,63,104,113],instanc:[20,28,29,30,31,110,114],integr:114,interact:[97,98,113],interconnect:108,interfac:[6,113],introduct:104,involv:103,io:[4,97],isol:97,issu:[95,97],j:[0,100],join:95,json:[2,100],k:0,keep:[95,116],kei:[32,33,34,35,36,37,38,39,40,105,117],keyr:105,keyserv:[70,75,99],keyword:0,kill:46,l:[0,100],label:[96,100],launcher:108,legaci:104,librari:[0,2,3,99,106],licens:107,like:97,limit:[4,97,102],line:[6,98],linux:116,list:[3,11,16,21,29,35,64,71,88,99],localimag:0,login:[72,97,99],logout:73,m:0,make:[95,114],manag:[99,117],manipul:100,memori:4,metadata:100,migrat:118,mode:108,model:[108,115],modul:0,more:2,mount:[1,47,97,110],mpi:108,mpich:108,multi:96,multipl:102,n:0,namespac:[97,115],net:109,network:[101,108,109],newpair:36,ngc:97,nginx:114,note:[0,111],notest:2,nv:2,nvidia:[97,102],o:0,oci:[41,42,43,44,45,46,47,48,49,50,51,52,53,54,97,99,110],old:104,one:[2,113],onli:97,onlin:103,open:108,opencl:102,oper:104,option:[2,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,98,100,102,115,116],ora:0,other:[4,96,97,102],overlai:[55,56,111],overrid:100,overview:[0,1,2,3,5,96,98,99,100,101,106,110,111,112,113,114],own:[104,106,117],p:0,particular:104,passphras:[2,98],path:[1,2,100],paus:48,pem:[2,98],permiss:100,persist:111,pgp:117,pid:114,ping:101,plugin:[57,58,59,60,61,62,63,64,65,112],polici:115,post:[96,100],practic:[96,97],pre:99,preced:100,prefer:96,prefix:[100,118],priv:116,privat:97,privileg:115,process:97,propag:97,pull:[37,66,95,106],push:[38,67,95,106],put:114,quai:97,quick:113,quot:100,r:[0,100],rais:95,read:97,recip:96,refer:103,registri:[2,97,99,106],relat:116,releas:113,remot:[68,69,70,71,72,73,74,75,76,77,97,99,117],remov:[39,74,75,99,105],repo:95,reproduc:104,request:95,requir:[1,5,101,102,104],resourc:[4,113],restor:99,restrict:101,resum:49,rocm:[2,102],run:[4,50,78,79,98,108,113,114],runscript:[96,100],runtim:[100,110,115],s:0,sandbox:[2,113],schedul:108,scienc:104,scif:96,scratch:[0,113],search:[40,80,106,117],section:[2,96],secur:[101,115,116],see:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],seem:102,select:102,server:101,servic:[103,114],set:99,setprim:90,setuid:[115,116],setup:96,share:[103,113],shell:[81,113],shim:97,shub:0,sif:[1,82,83,84,85,86,87,88,89,90,96,111,115,117,118],sign:[91,103,106,117],singular:[100,115,118],slurm:108,softwar:104,sourc:[113,117],specif:104,squashf:1,stack:104,stage:96,standard:102,start:[30,51,97,103,113],startscript:96,state:52,statu:76,step:[95,113],stop:31,submit:95,support:[97,102,104,110,118],symlink:118,sync:95,synopsi:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],system:[1,104,111,113,114],systemd:4,t:[0,97,100],temporari:3,tensorflow:102,test:[92,96,100,108],time:100,tip:108,tmpf:2,togeth:114,topic:2,troubleshoot:[97,102,108],u:0,umask:100,umount:53,unexpect:97,uninstal:65,unmount:110,updat:[2,54],us:[1,4,77,98,100,104,106,112],usag:[101,103,111],user:[1,97,103,115,118],valid:117,variabl:[0,3,97,98,100,118],veri:104,verif:96,verifi:[93,106,117],version:94,virtual:109,vs:97,w:0,when:102,why:104,work:[104,113],world:114,writabl:[1,2],write:[95,112],your:[95,104,106,117],yum:0,zypper:0}})
|
import fileinput from './fileinput';
import extend from 'lodash/extend';
import { dataComponentId, formControlFile, formControlSm, draggableComponent, defaultInputWidth } from '../common';
import { bootstrapfileinputid } from './ids';
const bootstrapfileinput = extend({}, fileinput, {
html: `<input type="file" ${dataComponentId}="${bootstrapfileinputid}" class="${formControlSm} ${draggableComponent}" style="width: ${defaultInputWidth};">`
});
export default bootstrapfileinput;
|
# -*- coding: utf8 -*-
# Copyright 1999-2017 Tencent Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import json
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
from tencentcloud.common.abstract_client import AbstractClient
from tencentcloud.postgres.v20170312 import models
class PostgresClient(AbstractClient):
_apiVersion = '2017-03-12'
_endpoint = 'postgres.tencentcloudapi.com'
def CloseDBExtranetAccess(self, request):
"""本接口(CloseDBExtranetAccess)用于关闭实例外网链接。
:param request: 调用CloseDBExtranetAccess所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.CloseDBExtranetAccessRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.CloseDBExtranetAccessResponse`
"""
try:
params = request._serialize()
body = self.call("CloseDBExtranetAccess", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.CloseDBExtranetAccessResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def CreateDBInstances(self, request):
"""本接口 (CreateDBInstances) 用于创建一个或者多个PostgreSQL实例。
:param request: 调用CreateDBInstances所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.CreateDBInstancesRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.CreateDBInstancesResponse`
"""
try:
params = request._serialize()
body = self.call("CreateDBInstances", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.CreateDBInstancesResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeAccounts(self, request):
"""本接口(DescribeAccounts)用于获取实例用户列表。
:param request: 调用DescribeAccounts所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeAccountsRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeAccountsResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeAccounts", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeAccountsResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeDBBackups(self, request):
"""本接口(DescribeDBBackups)用于查询实例备份列表。
:param request: 调用DescribeDBBackups所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBBackupsRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBBackupsResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeDBBackups", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeDBBackupsResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeDBErrlogs(self, request):
"""本接口(DescribeDBErrlogs)用于获取错误日志。
:param request: 调用DescribeDBErrlogs所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBErrlogsRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBErrlogsResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeDBErrlogs", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeDBErrlogsResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeDBInstanceAttribute(self, request):
"""本接口 (DescribeDBInstanceAttribute) 用于查询某个实例的详情信息。
:param request: 调用DescribeDBInstanceAttribute所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceAttributeRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstanceAttributeResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeDBInstanceAttribute", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeDBInstanceAttributeResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeDBInstances(self, request):
"""本接口 (DescribeDBInstances) 用于查询一个或多个实例的详细信息。
:param request: 调用DescribeDBInstances所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstancesRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBInstancesResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeDBInstances", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeDBInstancesResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeDBSlowlogs(self, request):
"""本接口(DescribeDBSlowlogs)用于获取慢查询日志。
:param request: 调用DescribeDBSlowlogs所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBSlowlogsRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBSlowlogsResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeDBSlowlogs", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeDBSlowlogsResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeDBXlogs(self, request):
"""本接口(DescribeDBXlogs)用于获取实例Xlog列表。
:param request: 调用DescribeDBXlogs所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBXlogsRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBXlogsResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeDBXlogs", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeDBXlogsResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeOrders(self, request):
"""本接口(DescribeOrders)用于获取订单信息。
:param request: 调用DescribeOrders所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeOrdersRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeOrdersResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeOrders", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeOrdersResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeProductConfig(self, request):
"""本接口 (DescribeProductConfig) 用于查询售卖规格配置。
:param request: 调用DescribeProductConfig所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeProductConfigRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeProductConfigResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeProductConfig", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeProductConfigResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeRegions(self, request):
"""本接口 (DescribeRegions) 用于查询售卖地域信息。
:param request: 调用DescribeRegions所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeRegionsRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeRegionsResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeRegions", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeRegionsResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def DescribeZones(self, request):
"""本接口 (DescribeZones) 用于查询支持的可用区信息。
:param request: 调用DescribeZones所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeZonesRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeZonesResponse`
"""
try:
params = request._serialize()
body = self.call("DescribeZones", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.DescribeZonesResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def InitDBInstances(self, request):
"""本接口 (InitDBInstances) 用于初始化云数据库PostgreSQL实例。
:param request: 调用InitDBInstances所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.InitDBInstancesRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.InitDBInstancesResponse`
"""
try:
params = request._serialize()
body = self.call("InitDBInstances", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.InitDBInstancesResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def InquiryPriceCreateDBInstances(self, request):
"""本接口 (InquiryPriceCreateDBInstances) 用于查询购买一个或多个实例的价格信息。
:param request: 调用InquiryPriceCreateDBInstances所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.InquiryPriceCreateDBInstancesRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.InquiryPriceCreateDBInstancesResponse`
"""
try:
params = request._serialize()
body = self.call("InquiryPriceCreateDBInstances", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.InquiryPriceCreateDBInstancesResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def InquiryPriceRenewDBInstance(self, request):
"""本接口(InquiryPriceRenewDBInstance)用于查询续费实例的价格。
:param request: 调用InquiryPriceRenewDBInstance所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.InquiryPriceRenewDBInstanceRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.InquiryPriceRenewDBInstanceResponse`
"""
try:
params = request._serialize()
body = self.call("InquiryPriceRenewDBInstance", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.InquiryPriceRenewDBInstanceResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def InquiryPriceUpgradeDBInstance(self, request):
"""本接口(InquiryPriceUpgradeDBInstance)用于查询升级实例的价格。
:param request: 调用InquiryPriceUpgradeDBInstance所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.InquiryPriceUpgradeDBInstanceRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.InquiryPriceUpgradeDBInstanceResponse`
"""
try:
params = request._serialize()
body = self.call("InquiryPriceUpgradeDBInstance", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.InquiryPriceUpgradeDBInstanceResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def ModifyAccountRemark(self, request):
"""本接口(ModifyAccountRemark)用于修改帐号备注。
:param request: 调用ModifyAccountRemark所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.ModifyAccountRemarkRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyAccountRemarkResponse`
"""
try:
params = request._serialize()
body = self.call("ModifyAccountRemark", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.ModifyAccountRemarkResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def ModifyDBInstanceName(self, request):
"""本接口(ModifyDBInstanceName)用于修改postgresql实例名字。
:param request: 调用ModifyDBInstanceName所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstanceNameRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstanceNameResponse`
"""
try:
params = request._serialize()
body = self.call("ModifyDBInstanceName", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.ModifyDBInstanceNameResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def ModifyDBInstancesProject(self, request):
"""本接口(ModifyDBInstancesProject)用于将实例转至其他项目。
:param request: 调用ModifyDBInstancesProject所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstancesProjectRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyDBInstancesProjectResponse`
"""
try:
params = request._serialize()
body = self.call("ModifyDBInstancesProject", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.ModifyDBInstancesProjectResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def OpenDBExtranetAccess(self, request):
"""本接口(OpenDBExtranetAccess)用于开通外网。
:param request: 调用OpenDBExtranetAccess所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.OpenDBExtranetAccessRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.OpenDBExtranetAccessResponse`
"""
try:
params = request._serialize()
body = self.call("OpenDBExtranetAccess", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.OpenDBExtranetAccessResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def RenewInstance(self, request):
"""本接口(RenewInstance)用于续费实例。
:param request: 调用RenewInstance所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.RenewInstanceRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.RenewInstanceResponse`
"""
try:
params = request._serialize()
body = self.call("RenewInstance", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.RenewInstanceResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def ResetAccountPassword(self, request):
"""本接口(ResetAccountPassword)用于重置实例的账户密码。
:param request: 调用ResetAccountPassword所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.ResetAccountPasswordRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.ResetAccountPasswordResponse`
"""
try:
params = request._serialize()
body = self.call("ResetAccountPassword", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.ResetAccountPasswordResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def RestartDBInstance(self, request):
"""本接口(RestartDBInstance)用于重启实例。
:param request: 调用RestartDBInstance所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.RestartDBInstanceRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.RestartDBInstanceResponse`
"""
try:
params = request._serialize()
body = self.call("RestartDBInstance", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.RestartDBInstanceResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def SetAutoRenewFlag(self, request):
"""本接口(SetAutoRenewFlag)用于设置自动续费。
:param request: 调用SetAutoRenewFlag所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.SetAutoRenewFlagRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.SetAutoRenewFlagResponse`
"""
try:
params = request._serialize()
body = self.call("SetAutoRenewFlag", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.SetAutoRenewFlagResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
def UpgradeDBInstance(self, request):
"""本接口(UpgradeDBInstance)用于升级实例。
:param request: 调用UpgradeDBInstance所需参数的结构体。
:type request: :class:`tencentcloud.postgres.v20170312.models.UpgradeDBInstanceRequest`
:rtype: :class:`tencentcloud.postgres.v20170312.models.UpgradeDBInstanceResponse`
"""
try:
params = request._serialize()
body = self.call("UpgradeDBInstance", params)
response = json.loads(body)
if "Error" not in response["Response"]:
model = models.UpgradeDBInstanceResponse()
model._deserialize(response["Response"])
return model
else:
code = response["Response"]["Error"]["Code"]
message = response["Response"]["Error"]["Message"]
reqid = response["Response"]["RequestId"]
raise TencentCloudSDKException(code, message, reqid)
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise e
else:
raise TencentCloudSDKException(e.message, e.message)
|
"""
The models module defines custom bokeh models which extend upon the
functionality that is provided in bokeh by default. The models are
defined as pairs of Python classes and TypeScript models defined in .ts
files.
"""
from .datetime_picker import DatetimePicker # noqa
from .idom import IDOM # noqa
from .ipywidget import IPyWidget # noqa
from .layout import Card # noqa
from .location import Location # noqa
from .markup import JSON, HTML # noqa
from .reactive_html import ReactiveHTML # noqa
from .state import State # noqa
from .tabulator import DataTabulator # noqa
from .trend import TrendIndicator # noqa
from .widgets import ( # noqa
Audio, FileDownload, Player, Progress, SingleSelect, Video, VideoStream
)
|
# coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
# the specific language governing permissions and limitations under the License.
#
import pprint
import re # noqa: F401
import six
import typing
from enum import Enum
from abc import ABCMeta, abstractmethod
if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union
from datetime import datetime
class Card(object):
"""
:param object_type:
:type object_type: (optional) str
.. note::
This is an abstract class. Use the following mapping, to figure out
the model class to be instantiated, that sets ``type`` variable.
| LinkAccount: :py:class:`ask_sdk_model.ui.link_account_card.LinkAccountCard`,
|
| Standard: :py:class:`ask_sdk_model.ui.standard_card.StandardCard`,
|
| AskForPermissionsConsent: :py:class:`ask_sdk_model.ui.ask_for_permissions_consent_card.AskForPermissionsConsentCard`,
|
| Simple: :py:class:`ask_sdk_model.ui.simple_card.SimpleCard`
"""
deserialized_types = {
'object_type': 'str'
} # type: Dict
attribute_map = {
'object_type': 'type'
} # type: Dict
discriminator_value_class_map = {
'LinkAccount': 'ask_sdk_model.ui.link_account_card.LinkAccountCard',
'Standard': 'ask_sdk_model.ui.standard_card.StandardCard',
'AskForPermissionsConsent': 'ask_sdk_model.ui.ask_for_permissions_consent_card.AskForPermissionsConsentCard',
'Simple': 'ask_sdk_model.ui.simple_card.SimpleCard'
}
json_discriminator_key = "type"
__metaclass__ = ABCMeta
@abstractmethod
def __init__(self, object_type=None):
# type: (Optional[str]) -> None
"""
:param object_type:
:type object_type: (optional) str
"""
self.__discriminator_value = None # type: str
self.object_type = object_type
@classmethod
def get_real_child_model(cls, data):
# type: (Dict[str, str]) -> Optional[str]
"""Returns the real base class specified by the discriminator"""
discriminator_value = data[cls.json_discriminator_key]
return cls.discriminator_value_class_map.get(discriminator_value)
def to_dict(self):
# type: () -> Dict[str, object]
"""Returns the model properties as a dict"""
result = {} # type: Dict
for attr, _ in six.iteritems(self.deserialized_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else
x.value if isinstance(x, Enum) else x,
value
))
elif isinstance(value, Enum):
result[attr] = value.value
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else
(item[0], item[1].value)
if isinstance(item[1], Enum) else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
# type: () -> str
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
# type: () -> str
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
# type: (object) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, Card):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
# type: (object) -> bool
"""Returns true if both objects are not equal"""
return not self == other
|
// 1275. Find Winner on a Tic Tac Toe Game
// https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/
// Runtime: 0 ms, faster than 100.00% of C++ online submissions for Find Winner on a Tic Tac Toe Game.
// Memory Usage: 8.8 MB, less than 74.72% of C++ online submissions for Find Winner on a Tic Tac Toe Game.
class Solution {
bool win(vector<vector<int>>& board, int c) {
for (int i = 0; i < 3; ++i) {
if (board[i][0] == c && board[i][1] == c && board[i][2] == c) return true;
if (board[0][i] == c && board[1][i] == c && board[2][i] == c) return true;
}
if (board[0][0] == c && board[1][1] == c && board[2][2] == c) return true;
if (board[0][2] == c && board[1][1] == c && board[2][0] == c) return true;
return false;
}
bool full(vector<vector<int>>& board) {
for (int i = 0; i < 3; ++i)
for (int j = 0; j < 3; ++j)
if (!board[i][j])
return false;
return true;
}
public:
string tictactoe(vector<vector<int>>& moves) {
vector<vector<int>> board(3, vector<int>(3, 0));
int p = 'A';
for (const auto& m : moves) {
board[m[0]][m[1]] = p;
p = p != 'A' ? 'A' : 'B';
}
if (win(board, 'A')) return "A";
if (win(board, 'B')) return "B";
if (full(board)) return "Draw";
return "Pending";
}
};
|
#!pip install deepface
from deepface.basemodels import VGGFace, OpenFace, Facenet, FbDeepFace
from deepface.commons import functions
import matplotlib.pyplot as plt
import numpy as np
#----------------------------------------------
#build face recognition model
model = VGGFace.loadModel()
#model = Facenet.loadModel()
#model = OpenFace.loadModel()
#model = FbDeepFace.loadModel()
input_shape = model.layers[0].input_shape[1:3]
print("model input shape: ", model.layers[0].input_shape[1:])
print("model output shape: ", model.layers[-1].input_shape[-1])
#----------------------------------------------
#load images and find embeddings
img1 = functions.detectFace("dataset/img1.jpg", input_shape)
img1_representation = model.predict(img1)[0,:]
img2 = functions.detectFace("dataset/img3.jpg", input_shape)
img2_representation = model.predict(img2)[0,:]
#----------------------------------------------
#distance between two images
distance_vector = np.square(img1_representation - img2_representation)
#print(distance_vector)
distance = np.sqrt(distance_vector.sum())
print("Euclidean distance: ",distance)
#----------------------------------------------
#expand vectors to be shown better in graph
img1_graph = []; img2_graph = []; distance_graph = []
for i in range(0, 200):
img1_graph.append(img1_representation)
img2_graph.append(img2_representation)
distance_graph.append(distance_vector)
img1_graph = np.array(img1_graph)
img2_graph = np.array(img2_graph)
distance_graph = np.array(distance_graph)
#----------------------------------------------
#plotting
fig = plt.figure()
ax1 = fig.add_subplot(3,2,1)
plt.imshow(img1[0][:,:,::-1])
plt.axis('off')
ax2 = fig.add_subplot(3,2,2)
im = plt.imshow(img1_graph, interpolation='nearest', cmap=plt.cm.ocean)
plt.colorbar()
ax3 = fig.add_subplot(3,2,3)
plt.imshow(img2[0][:,:,::-1])
plt.axis('off')
ax4 = fig.add_subplot(3,2,4)
im = plt.imshow(img2_graph, interpolation='nearest', cmap=plt.cm.ocean)
plt.colorbar()
ax5 = fig.add_subplot(3,2,5)
plt.text(0.35, 0, "Distance: %s" % (distance))
plt.axis('off')
ax6 = fig.add_subplot(3,2,6)
im = plt.imshow(distance_graph, interpolation='nearest', cmap=plt.cm.ocean)
plt.colorbar()
plt.show()
#----------------------------------------------
|
/*=========================================================================
Program: ParaView
Module: vtkSMReaderReloadHelper.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkSMReaderReloadHelper
* @brief helper to help reload a reader.
*
* vtkSMReaderReloadHelper helps make a reader reload its files. There are two
* ways of reloading: reload existing data files, or extend the file series
* with any new files that are now available. This class supports both. Use
* vtkSMReaderReloadHelper::ReloadFiles() to reload existing files (potentially
* using a specific property on the reader proxy for reloading, if available).
* Use vtkSMReaderReloadHelper::ExtendFileSeries() to detect new files in a file
* series and update the reader to use those.
*/
#ifndef vtkSMReaderReloadHelper_h
#define vtkSMReaderReloadHelper_h
#include "vtkObject.h"
#include "vtkPVServerManagerDefaultModule.h" //needed for exports
class vtkSMSourceProxy;
class VTKPVSERVERMANAGERDEFAULT_EXPORT vtkSMReaderReloadHelper : public vtkObject
{
public:
static vtkSMReaderReloadHelper* New();
vtkTypeMacro(vtkSMReaderReloadHelper, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
/**
* Returns true if its possible to reload data files for the given proxy i.e.
* checks if the proxy is a reader. If not, returns false.
*/
virtual bool SupportsReload(vtkSMSourceProxy* proxy);
/**
* Returns true if the reader supports file series.
*/
virtual bool SupportsFileSeries(vtkSMSourceProxy* proxy);
/**
* Make the reader reload its data file(s). If a reader supports API to
* support such reloads in a smart way, then the reader proxy should use the
* `<ReloadFiles />` hint to name the property. In that case, this method will
* use that property. Otherwise, it will use vtkSMProxy::RecreateVTKObjects()
* to simply recreate the VTK object and update its state.
*/
virtual bool ReloadFiles(vtkSMSourceProxy* proxy);
/**
* Attempts to find more files in a file series specified on the reader proxy
* and all those files to the reader. This should be called only when
* IsFileSeriesCapable() returns true.
*/
virtual bool ExtendFileSeries(vtkSMSourceProxy* proxy);
protected:
vtkSMReaderReloadHelper();
~vtkSMReaderReloadHelper();
private:
vtkSMReaderReloadHelper(const vtkSMReaderReloadHelper&) VTK_DELETE_FUNCTION;
void operator=(const vtkSMReaderReloadHelper&) VTK_DELETE_FUNCTION;
};
#endif
|
"""
A permission has to be defined first (using grok.Permission for
example) before it can be used in grok.require() in an XMLRPC
class. However, this is *not* the the case for a default permission
that is never used.
>>> grok.testing.grok(__name__)
"""
import grok
import zope.interface
class Foo(grok.Permission):
grok.name('foo')
class MissingPermission(grok.XMLRPC):
grok.context(zope.interface.Interface)
grok.require('doesnt.exist')
@grok.require(Foo)
def foo(self):
pass
|
let posX;
let posY;
let velX;
let velY;
let radius;
let circleClr;
//UI
let sliderHue;
let clickCounter;
function setup(){
let myCanvas = createCanvas(800, 600);
myCanvas.parent('canvasParent');
colorMode(HSB, 360, 100, 100);
sliderHue = createSlider(0, 360, 0, 15);
sliderHue.parent('canvasUI');
sliderHue.style('width', '100px');
posX = width/2;
posY = height/2;
velX = 3.7;
velY = 1.3;
radius = 50;
circleClr = color(0, 80, 100);
clickCounter = 0;
}
function draw(){
background(170, 60, 100);
noFill();
stroke(270, 80, 80);
strokeWeight(10);
rect (5, 5, 70, 30);
textSize(24);
strokeWeight (2);
fill(270, 80, 80);
text (clickCounter, 12, 28);
noStroke();
circleClr = color(sliderHue.value(), 80, 100);
fill (circleClr);
circle(posX, posY, radius * 2);
if(posX + radius >= width || posX - radius <= 0){
velX = velX * -1;
}
if (posY + radius >= height || posY - radius <= 0){
velY = velY * -1;
}
posX += velX;
posY += velY;
} // end of draw
function mouseReleased(){
if(dist(mouseX, mouseY, posX, posY) < radius){
// circleClr = color(255, 80, 100);
clickCounter++;
if(velX > 0){
velX++;
}
else{
velX--;
}
if(velY > 0){
velY++;
}
else{
velY--;
}
}
else {
// circleClr = color(0, 80, 100);
}
}
|
/*!@license
* Infragistics.Web.ClientUI Dialog localization resources 13.2.20132.2157
*
* Copyright (c) 2011-2014 Infragistics Inc.
*
* http://www.infragistics.com/
*
*/
(function($){$.ig=$.ig||{};if(!$.ig.Dialog){$.ig.Dialog={locale:{closeButtonTitle:"Close",minimizeButtonTitle:"Minimize",maximizeButtonTitle:"Maximize",pinButtonTitle:"Pin",unpinButtonTitle:"Unpin",restoreButtonTitle:"Restore"}}}})(jQuery);/*!@license
* Infragistics.Web.ClientUI Dialog 13.2.20132.2157
*
* Copyright (c) 2011-2014 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends on:
* jquery-1.6.1.js
* jqueryui/1.8.11/jquery-ui.js
* Example to use:
* <script type="text/javascript">
* $(function () {
* $("#dialog1").igDialog();
* });
* </script>
* <div id="dialog1"></div>
*/
(function($){var _lastTop,_iframe,_visCount=0,_modals=[],_lastZ=0,_maxZ=0,CLOSE=0,OPEN=1,MIN=2,MAX=3,PIN=4,UNPIN=5,RESTORE=6,_pos={my:"center",at:"center",collision:"fit",of:window,using:function(pos){if(pos.top<0){pos.top=0}if(pos.left<0){pos.left=0}var p=$(this).css(pos).offset();if(p.top<0){$(this).css("top",pos.top-p.top)}if(p.left<0){$(this).css("left",pos.left-p.left)}}},_isSrc=function(elem,src){return elem&&src&&(elem.has(src).length>0||elem[0]===src)},_notab=function(elem){return elem.attr("zIndex",-1).css("outline",0).attr("unselectable","on")},_toPx=function(elem,css){var val=elem.css(css);if(!val){return 0}css=parseFloat(val);if(val.indexOf("px")>0){css+=.7}else if(val.indexOf("em")>0){css*=12}else{return 0}return Math.floor(css)},_getPadding=function(elem,vert,margin){return _toPx(elem,(margin||"padding")+(vert?"Top":"Left"))+_toPx(elem,(margin||"padding")+(vert?"Bottom":"Right"))+_toPx(elem,"border"+(vert?"Top":"Left")+"Width")+_toPx(elem,"border"+(vert?"Bottom":"Right")+"Width")},_stopEvt=function(e){try{e.preventDefault();e.stopPropagation()}catch(ex){}};$.widget("ui.igDialog",{options:{mainElement:null,state:"opened",pinned:false,closeOnEscape:true,showCloseButton:true,showMaximizeButton:false,showMinimizeButton:false,showPinButton:false,pinOnMinimized:false,imageClass:null,headerText:null,showHeader:true,showFooter:false,footerText:null,dialogClass:null,container:null,height:null,width:300,minHeight:100,minWidth:150,maxHeight:null,maxWidth:null,draggable:true,position:null,resizable:true,tabIndex:0,openAnimation:null,closeAnimation:null,zIndex:null,modal:false,trackFocus:true,closeButtonTitle:null,minimizeButtonTitle:null,maximizeButtonTitle:null,pinButtonTitle:null,unpinButtonTitle:null,restoreButtonTitle:null,temporaryUrl:null,enableHeaderFocus:true,enableDblclick:"auto"},events:{stateChanging:null,stateChanged:null,animationEnded:null,focus:null,blur:null},css:{dialog:"ui-igdialog ui-dialog ui-widget ui-widget-content ui-corner-all",header:"ui-igdialog-header ui-dialog-titlebar ui-widget-header ui-corner-top ui-helper-clearfix",headerFocus:"ui-igdialog-header-focus ui-state-focus",headerMinimized:"ui-corner-bottom",headerText:"ui-igdialog-headertext ui-dialog-title",headerImage:"ui-igdialog-headerimage",headerTextMinimized:"ui-igdialog-headertext-minimized",headerButton:"ui-igdialog-headerbutton ui-corner-all ui-state-default",headerButtonHover:"ui-igdialog-headerbutton-hover ui-state-hover",close:"ui-igdialog-buttonclose",minimize:"ui-igdialog-buttonminimize",maximize:"ui-igdialog-buttonmaximize",pin:"ui-igdialog-buttonpin",closeIcon:"ui-igdialog-close-icon ui-icon ui-icon-close",minimizeIcon:"ui-igdialog-minimize-icon ui-icon ui-icon-minus",maximizeIcon:"ui-igdialog-maximize-icon ui-icon ui-icon-extlink",restoreIcon:"ui-igdialog-restore-icon ui-icon ui-icon-copy",pinIcon:"ui-igdialog-pin-icon ui-icon ui-icon-pin-s",unpinIcon:"ui-igdialog-unpin-icon ui-icon ui-icon-pin-w",footer:"ui-igdialog-footer ui-widget-header ui-corner-bottom ui-helper-clearfix",resizing:"ui-igdialog-resizing",dragging:"ui-igdialog-dragging",unmovable:"ui-igdialog-unmovable",overlay:"ui-igdialog-overlay ui-widget-overlay",contentIframe:"ui-igdialog-content-iframe",content:"ui-igdialog-content ui-widget-content ui-dialog-content"},_create:function(){var elem,self=this,elem0=self.element,el=elem0[0],url=el&&el.nodeName==="IFRAME"?el.src:null,o=self.options,state=o.state,parent,css=self.css;o.container=o.container||this.element.parent();parent=o.container;self._fixIE(elem0);self._old={position:elem0.css("position"),left:elem0.css("left"),top:elem0.css("top"),display:elem0.css("display"),visibility:elem0.css("visibility"),width:el.style.width,height:el.style.height};if(url){el.src=o.temporaryUrl||""}self._min=state==="minimized"||state===MIN;self._max=state==="maximized"||state===MAX;self._opened=state&&state!=="closed";self._oldDad=el.parentNode;self._next=self._oldDad?el.nextSibling:null;self._dad=parent;elem0=$("<div />");this.element.contents().appendTo(elem0);self._elem=el=elem=this.element;elem.css({zIndex:o.zIndex||1e3,outline:0}).attr("tabIndex",o.tabIndex).keydown(function(e){if(o.closeOnEscape&&e.keyCode===$.ui.keyCode.ESCAPE){self.close(e);e.preventDefault()}if(e.keyCode!==$.ui.keyCode.TAB){return}self._tabTime=(new Date).getTime();if(!self._modal&&!self._max){return}var min,max,ti,next,iNext=-1,big=999999,iMin=big,iMax=-1,targ=e.target,ti0=self._getTabIndex(targ),shift=e.shiftKey,tabs=$(":tabbable",elem[0]),len=tabs.length,i=len;while(i-->0){ti=self._getTabIndex(el=tabs[i]);if(ti>iMax){iMax=ti;max=el}if(ti<=iMin){iMin=ti;min=el}if(ti===ti0){if(!next){next=el===targ;if(!next){iNext=i}}else if(iNext<0){iNext=i}}}if(iNext<0){i=len}iMin=shift?-1:big;while(i-->0){ti=self._getTabIndex(tabs[i]);if(ti>ti0&&ti<iMin&&!shift||ti<ti0&&ti>iMin&&shift){iMin=ti;iNext=i}}max=max||elem[0];min=min||max;self._nextTabElem=iNext>=0?tabs[iNext]:shift?max:min;if(targ===elem[0]||targ===min&&shift||targ===max&&!shift){_stopEvt(e);el=shift?max:min;try{el.focus()}catch(ex){}}}).mousedown(function(e){self.moveToTop(e)});el.addClass(css.dialog);if(o.dialogClass){el.addClass(o.dialogClass)}elem0.show().addClass(css.content).appendTo(el);if(url!==null){elem0[0].src=url;elem0.addClass(css.contentIframe)}self._modal=self._hasFocus=false;self._lastFoc="blur";self._doHeader();self._doFooter();self._doDraggable();self._doResizable();if(self._min){self._onMin(true,true,true)}if(self._max){o.pinned=false;self._onMax(true,true,true)}if(o.pinned){self._onPin(true,true,true)}if(self._opened){self._open()}else{elem.hide()}self._created=true;self._save()},_fixIE:function(elem){elem=elem.find("*");var n,e,i=elem.length;while(i-->0){e=elem[i];n=e.nodeName;if(n==="/INPUT"||n==="/IMG"){e.parentNode.removeChild(e)}}},destroy:function(){var self=this,elem0=this.element.children(".ui-igdialog-content");this._doClose(null,true);delete this._elem;if(self._winResize){$(window).unbind("resize",self._winResize)}this.element.children(".ui-igdialog-header").remove();this.element.children(".ui-igdialog-footer").remove();elem0.contents().unwrap();this.element.removeClass(self.css.dialog).css(self._old);this.element.draggable("destroy");this.element.resizable("destroy");this.element.unbind();$.Widget.prototype.destroy.apply(this,arguments);return this},state:function(state){if(!arguments.length){return this.options.state}if((state==="minimized"||state===MIN)&&(!this._min||!this._opened)){if(!this._min){this._minimize()}else{this._open(null,1)}}if((state==="maximized"||state===MAX)&&(!this._max||!this._opened)){if(!this._max){this._maximize()}else{this._open(null,1)}}if((state==="opened"||state===OPEN)&&(this._min||this._max||!this._opened)){this._onMin();this._onMax();this._open();this.options.state=state}if((state==="closed"||!state)&&(this._min||this._max||this._opened)){this._onMin();this._onMax();this.close()}return this},mainElement:function(){return this._elem},close:function(e){if(this._opened){this._doClose(e)}return this},open:function(){return this._open(null,1)},minimize:function(){if(!this._min){this._minimize()}return this},maximize:function(){if(!this._max){this._maximize()}return this},restore:function(){if(this._max){this._onMax()}if(this._min){this._onMin()}return this},pin:function(){if(!this.options.pinned){this._pin()}return this},unpin:function(){if(this.options.pinned){this._pin()}return this},getTopModal:function(){return _modals[_modals.length-1]},isTopModal:function(){return this.getTopModal()===this},moveToTop:function(e){var src,name,self=this,o=self.options,zi=o.zIndex,elem=self._elem,zi0=self._created?null:zi,modal=o.modal,elem0=this.element[0],scrollTop=elem0.scrollTop,scrollLeft=elem0.scrollLeft;if($.ig&&$.ig.util&&$.ig.util.evtButton(e)){return}zi=zi||1e3;src=e?e.target:null;if(_isSrc(self._header,src)||_isSrc(self._footer,src)){name=src.nodeName;if(name!=="INPUT"&&name!=="BUTTON"){_stopEvt(e);self._setFocus()}}else if(e&&!this._hasFocus){self._setFocus()}_maxZ=Math.max(zi0||zi,_maxZ);if(o.pinned){return self}if(modal&&self._lastZ){elem=self._modalDiv;if(elem&&elem[0].offsetWidth<10){self._onResize()}return self}if(_lastTop===self&&(zi0||zi)>=_maxZ){return self}if(_lastTop&&!zi0){_lastTop._elem.css("zIndex",_lastTop._lastZ||-1);_lastTop._save()}if(_lastZ>=_maxZ){_maxZ++}if(modal&&!zi0){_maxZ++;_maxZ++}_lastTop=self;self._lastZ=_lastZ=zi0||(modal||_modals.length>0?_maxZ:zi);if(!zi0){elem.css("zIndex",zi0||_maxZ);self._save()}elem0.scrollTop=scrollTop;elem0.scrollLeft=scrollLeft;if(modal){self._doModal(_maxZ)}return self},_save:function(){var str,input,pos,o=this.options,name=o.inputName;if(!name){return}input=$('input[name="'+name+'"]');if(input.length===0){input=input.parents("form")[0]||document.forms[0];if(!input){return}input=$('<input type="hidden" name="'+name+'" />').appendTo(input)}str="s"+(o.pinned?"1":"")+(this._opened?this._min?2:this._max?3:1:0)+(o.width?":w"+o.width:"")+(o.height?":h"+o.height:"")+(":z"+this._elem.css("zIndex")||o.zIndex);pos=o.position;if(pos&&pos.length===2){str+=":p"+pos[0]+","+pos[1]}input.val(str)},_open:function(e,raiseEvt){var self=this,o=self.options,elem=self._elem,anim=self._min?null:o.openAnimation,arg={action:"open",owner:this};if(self._opened&&self._vis||raiseEvt&&!self._fireState(e,true,arg)){return self}if(!o.pinned){elem.css("position","absolute")}if(o.width!==null){elem.show()}self._opened=true;self._doSize(1);if(anim){elem.hide().show(anim,function(){self._trigger("animationEnded",e,arg)})}self._vis=true;_visCount++;self._trackFocus(elem);self.moveToTop(true);self._fixState();if(raiseEvt){self._fireState(e,false,arg)}self._save();return self},_initContainer:function(container,change){if(container){if(typeof container==="string"){container=$(container)}if(container&&container[0]){container=container[0]}}if(!container||!container.parentNode){container=this.element.parents("form")[0]||document.body}else if(container.nodeName!=="BODY"){var style=container.style,pos=style?style.position:null;if(style&&(!pos||pos==="static")){style.position="relative"}}if(change){this._elem.appendTo(container)}return container},_fixState:function(){this.options.state=this._opened?this._min?"minimized":this._max?"maximized":"opened":"closed"},_minimize:function(e){return this._doState(e,{action:this._min?"restore":"minimize"},e?"minimize":null,"_onMin",true)},_maximize:function(e){return this._doState(e,{action:this._max?"restore":"maximize"},e?"maximize":null,"_onMax",true)},_pin:function(e){return this._doState(e,{action:this.options.pinned?"unpin":"pin"},e?"pin":null,"_onPin")},_close:function(e){return this._opened?this.close(e):this._open(e)},_getTabIndex:function(e){return isNaN(e=parseInt(e.tabIndex,10))||e<1?0:e},_doHeader:function(){var button,id,evts,i=4,self=this,header=self._header,o=self.options,txt=o.headerText,css=self.css;if(header){header.remove()}delete self._minHW;header=self._header=_notab($("<div />").addClass(css.header).css("display","block").prependTo(self._elem)).dblclick(function(e){var dbl=o.enableDblclick;if(!dbl){return}if(self._min){self._doState(e,{action:"restore"},null,"_onMin",true)}else if(dbl===true||dbl==="auto"&&o.showMaximizeButton){self._doState(e,{action:self._max?"restore":"maximize"},null,"_onMax",true)}});if(o.imageClass){self._img=$("<span />").addClass(css.headerImage).addClass(o.imageClass).html(" ").appendTo(header)}self._headerText=$("<span />").addClass(css.headerText).html(txt||" ").appendTo(header);evts={mouseover:function(){$(this).addClass(css.headerButtonHover)},mouseleave:function(){$(this).removeClass(css.headerButtonHover)},mousedown:function(e){this._mdb=$.ig&&$.ig.util&&$.ig.util.evtButton(e)},click:function(e){if(!e||this._mdb){return}try{self["_"+$(this).attr("data-id")](e)}catch(ex){}_stopEvt(e)},touchstart:function(e){this._drag=null;_stopEvt(e)},touchmove:function(e){this._drag=1;_stopEvt(e)},touchend:function(e){if(!this._drag){$(this).trigger("click")}}};while(i-->=0){if(i===3&&o.showCloseButton){id="close"}else if(i===2&&o.showMaximizeButton){id="maximize"}else if(i===1&&o.showMinimizeButton){id="minimize"}else{id=i===0&&o.showPinButton?"pin":null}if(id){button=$("<a />").addClass(css.headerButton+" "+css[id]).attr("data-id",id).attr("href","#").attr("role","button").bind(evts).appendTo(header);$("<span />").addClass(css[id+"Icon"]).appendTo(button);self._loc(button,i===3?CLOSE:i===2?MAX:i===1?MIN:PIN)}}if(!o.showHeader){header.hide()}},_doFooter:function(){var self=this,o=self.options,txt=o.footerText,css=self.css;if(self._footer){self._footer.remove();delete self._footer}if(o.showFooter){self._footer=_notab($("<div />").addClass(css.footer).css("display","block").html(txt||" ").appendTo(self._elem))}},_onMin:function(e,noSize,noFocus){var but,o=this.options,bar=this._footer,css=this.css,header=this._header,min=e&&e.type?!this._min:!!e;if(min===this._min&&this._created){return}this._min=min;if(min&&o.pinOnMinimized){this._onPin(min,true,true)}but=header.find("."+css.minimize);but.find("*").removeClass(min?css.minimizeIcon:css.restoreIcon).addClass(min?css.restoreIcon:css.minimizeIcon);if(e&&e.type&&min&&this._max){this._onMax(false,true,true)}this._loc(but,min?RESTORE:MIN);if(min){header.addClass(css.headerMinimized);if(bar){bar.hide()}}else{header.removeClass(css.headerMinimized);if(bar){bar.show()}}if(!noSize&&this._vis){this._doSize()}if(!noFocus&&this._vis){this._setFocus()}this._save()},_onMax:function(e,noSize,noFocus){var but,o=this.options,header=this._header,css=this.css,max=e&&e.type?!this._max:!!e;if(max===this._max&&this._created){return}this._max=max;if(!max){this._restoreHtml()}but=header.find("."+css.maximize);but.find("*").removeClass(max?css.maximizeIcon:css.restoreIcon).addClass(max?css.restoreIcon:css.maximizeIcon);this._loc(but,max?RESTORE:MAX);if(max){if(this._min){this._onMin(false,true,true)}if(o.pinned){this._onPin(false,true,true)}}if(max){header.addClass(css.unmovable)}else{header.removeClass(css.unmovable)}if(!noSize&&this._vis){this._doSize()}if(!noFocus&&this._vis){this._setFocus()}this._save()},_onPin:function(e,noSize,noFocus){var but,elem,parent,dad,pos,old=this._old,next=this._next,css=this.css,header=this._header,o=this.options,pin=e&&e.type?!o.pinned:!!e;if(pin===o.pinned&&this._created){return}o.pinned=pin;but=header.find("."+css.pin);but.find("*").removeClass(pin?css.pinIcon:css.unpinIcon).addClass(pin?css.unpinIcon:css.pinIcon);if(this._max&&pin){this._onMax(false,false,true)}this._loc(but,pin?UNPIN:PIN);if(pin){header.addClass(css.unmovable)}else{header.removeClass(css.unmovable)}elem=this._elem;if(pin){pos=old.position;if(this._resize&&(pos==="static"||!pos)){pos="relative"}this._pinPos=pos={position:pos,left:old.left,top:old.top}}else{pos={position:"absolute"}}elem.css(pos);parent=elem.parent()[0];dad=pin?this._oldDad:this._dad;if(dad&&dad!==parent){if(pin&&next&&next.parentNode===dad){elem.insertBefore(next)}else{elem.appendTo(dad)}}if(!noFocus&&this._vis){this._setFocus()}if(!noSize&&this._vis){if(!pin){this._doSize(1)}else{this._doModal()}}this._save()},_doClose:function(e,destroy){var i,self=this,elem=self._elem,arg={action:"close"},o=self.options,anim=self._min||destroy?null:o.closeAnimation;if(!self._opened||!destroy&&!self._fireState(e,true,arg,e?"close":null)){return}self._trackFocus(elem,1);self._restoreHtml();if(_lastTop===self){_lastTop=null}self._fireFoc(false);self._hasFocus=false;delete self._lastZ;self._vis=self._opened=false;if(destroy){o.modal=false}self._doModal();if(anim){elem.hide(anim,function(){self._trigger("animationEnded",e,arg)})}else if(!destroy){elem.hide()}if(!destroy){self._fixState();self._fireState(e,false,arg)}if(--_visCount<1){_visCount=_lastZ=_maxZ=0}else if(_visCount===(i=_modals.length)){_modals[i-1]._setFocus()}self._save()},_fireState:function(e,before,arg,but){if(before){var o=this.options;arg.oldState=o.state;arg.oldPinned=o.pinned;arg.owner=this;if(but){arg.button=but}}return this._created?this._trigger("stateChang"+(before?"ing":"ed"),e,arg):true},_doState:function(e,arg,but,fnName,show){if(this._fireState(e,true,arg,but)){this[fnName](e||{type:1});if(show&&!this._opened){this._open(null,true)}this._fixState();if(this._created){this._trigger("stateChanged",e,arg)}}return this},_fireFoc:function(foc,e){var name=foc?"focus":"blur";if(name!==this._lastFoc){this._trigger(this._lastFoc=name,e,{owner:this});if(this.options.enableHeaderFocus){name=this.css.headerFocus;if(foc){this._header.addClass(name)}else{this._header.removeClass(name)}}}},_trackFocus:function(elem,remove){var self=this,focusEvt=self._focusEvt,track=self.options.trackFocus;if(!focusEvt&&!track){return}if(remove){if(self._focBind){self._focBind.unbind(focusEvt);delete self._focBind}return}if(!focusEvt){focusEvt=function(e){var elems,old=self._focBind,foc=e.type==="focus";if(!foc&&old&&elem){elems=elem.find("*").not(old);if(elems.length){self._focBind=old.add(elems);elems.bind(focusEvt)}}self._hasFocus=foc;setTimeout(function(){var focusTo=self.getTopModal(),elem=self._elem;if(elem&&focusTo&&!self._hasFocus&&!foc&&_lastTop===self){if(self._max||focusTo===self){focusTo=self._nextTabElem||elem[0]}else{focusTo=self._tabTime&&(new Date).getTime()-self._tabTime<200?elem[0]:null}if(focusTo){self._setFocus(focusTo)}}self._fireFoc(self._hasFocus,e)},50)};focusEvt=self._focusEvt={focus:focusEvt,blur:focusEvt}}if(track&&elem){self._focBind=elem.find("*").add(elem).bind(focusEvt)}},_setFocus:function(elem){var self=this;setTimeout(function(){try{if(!self._hasFocus){if(!self.options.trackFocus){self._hasFocus=true}elem=elem||self._elem[0];elem.focus()}}catch(ex){}},100)},_restoreHtml:function(){var html,old=this._oldHtml;if(old){html=old.html;if(html.style){html.style.overflow=old.overflow}html.scrollLeft=old.scrollLeft;html.scrollTop=old.scrollTop;delete this._oldHtml}},_touch:function(elem,name){var start,self=this,evt=function(evt,type){var act,e=evt.originalEvent,touches=e?e.touches:null,one=touches&&touches.length===1;if(one&&type){_stopEvt(evt)}one=one&&type==="move";if(start){start=one?start:null;act=one?"Drag":"Stop"}else if(one){start=true;elem.trigger("mouseover");act="Start"}if(act){e=self._elem.data(name);act="_mouse"+act;if(e&&e[act]){evt.pageX=one?touches[0].pageX:0;evt.pageY=one?touches[0].pageY:0;e[act](evt)}}};elem.bind({touchstart:function(e){evt(e,"start")},touchmove:function(e){evt(e,"move")},touchend:function(e){evt(e)}})},_doDraggable:function(){var self=this,o=self.options,elem=self._elem;if(elem.draggable&&o.draggable){self._touch(self._header,"draggable");elem.draggable({cancel:".ui-igdialog-content, .ui-igdialog-headerbutton",handle:".ui-igdialog-header",containment:"document",start:function(){if(o.pinned||self._max){return false}$(this).addClass(self.css.dragging)},stop:function(e,ui){var doc=$(document);o.position=[ui.position.left-doc.scrollLeft(),ui.position.top-doc.scrollTop()];$(this).removeClass(self.css.dragging);self._save()}})}},_doResizable:function(){var elems,r,i=0,self=this,o=self.options,elem=self._elem,pos;if(!elem.resizable){return}self._resize=o.resizable;if(!self._resize){return}elem.css("position",elem.css("position")).resizable({cancel:"."+self.css.content,containment:"document",alsoResize:self.element.children(".ui-igdialog-content"),maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:self._minWidth(),minHeight:o.minHeight,handles:typeof o.resizable==="string"?o.resizable:"n,e,s,w,se,sw,ne,nw",start:function(event,ui){$(this).addClass(self.css.resizing);pos=ui.originalPosition;if(o.pinned&&self._pinPos){elem.css(self._pinPos)}},resize:function(){self._fixCaption();elem.css(pos);if(o.pinned&&self._pinPos){elem.css(self._pinPos)}},stop:function(){$(this).removeClass(self.css.resizing);o.height=$(this).height();o.width=$(this).width();self._save()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se");r=elem.data("resizable")||elem.data("ui-resizable");if(r){if(!r._dragFix){r._dragFix=r._mouseDrag;r._mouseDrag=function(e){var x,y,d=r.parentData;if(d&&e){x=e.pageX;y=e.pageY;if(x<=d.left||y<=d.top||x>=d.left+d.width||y>=d.top+d.height){return false}}return r._dragFix(e)}}elems=r._handles;i=elems.length}while(i-->0){self._touch($(elems[i]),"resizable")}},_toPx:function(val,height){if(typeof val==="number"){return val}if(!val){return height?val:0}val=val.toString();var elem,num=parseInt(val,10);if(isNaN(num)){return 0}if(val.indexOf("m")>0||val.indexOf("e")>0||val.indexOf("i")>0||val.indexOf("t")>0){elem=$("<div />").css({visibility:"hidden",width:val}).appendTo(this._dad);num=elem.width();elem.remove()}else if(val.indexOf("%")>0){val=this._winRect(1);val=height?val.height:val.width;return Math.floor(num*val/100)}return num},_doSize:function(fixPos){var self=this,o=self.options,max=self._max,pos=max?[0,0]:o.position,resize=self._resize?".ui-resizable-handle":null,elem0=self.element.children(".ui-igdialog-content"),elem=self._elem;if(resize){if(self._min||max){$(resize,elem).hide()}else{$(resize,elem).show()}}self._headerText.css("width",0);if(self._min){elem0.hide();self._fixCaption(elem)}else if(max){elem0.show().css({width:"auto",height:"auto"});elem.css({width:100,height:50})}else if(o.width!==null){this._doSizePX(elem0,elem,Math.max(self._minWidth(),self._toPx(o.width)),self._toPx(o.height,true),o.minHeight);if(resize){elem.resizable("option","minHeight",o.minHeight)}}if(o.width===null){elem.show()}if(!o.pinned&&(fixPos||max||self._oldMax)){self._oldMax=max;if(max){self._onResize()}if(elem.position){if(pos){if(pos.length===2&&typeof pos[0]==="number"){if($.ig.util.jQueryUIMainVersion<=1&&$.ig.util.jQueryUISubVersion<9){pos={my:"left top",at:"left top",offset:pos[0]+" "+pos[1]}}else{pos={my:"left+"+pos[0]+" top+"+pos[1],at:"left top"}}}pos=$.extend({},_pos,pos)}elem.css({top:0,left:0}).position(pos||_pos)}}self._doModal();self._save()},_doSizePX:function(elem0,elem,width,height,minHeight){elem0.show().css({width:"auto",height:0,minHeight:0});var ie7,zeroHeight=elem.css({width:width,height:"auto",display:"block"}).height(),nodeName=elem0[0].nodeName;this._fixCaption(elem);if(typeof height==="string"){if(height.indexOf("px")>0){height=parseInt(height,10)}}if(typeof height!=="number"){height=elem0.css("height","auto").height()+zeroHeight}if(nodeName!=="DIV"){if(nodeName==="IFRAME"){width-=_getPadding(elem0);ie7=$.ig.util.isIE7;if(!ie7||isNaN(ie7)||ie7>7){height+=5}}elem0.width(width-_getPadding(elem0,false,"margin"))}height=Math.max(minHeight,height);elem0.height(Math.max(height-zeroHeight,0));minHeight=height-elem[0].offsetHeight;if(minHeight>0){elem0.height(Math.max(height-zeroHeight+minHeight,0))}},_onResize:function(){var rect,self=this,div=self.isTopModal()?self._modalDiv:null;if(!self._winResize){$(window).bind("resize",self._winResize=function(){setTimeout(function(){self._onResize()},50)})}if(!self._opened||self.options.pinned){return}if(div){div.hide();self._doIframe(div,1)}if(self._max){self._doMaxSize(self._elem)}if(div){rect=self._winRect();div.css({width:rect.maxWidth-1,height:rect.maxHeight-1}).show();self._doIframe(div)}},_minHeaderWidth:function(){var outerWidth,elem,width=this._minHW,elems=this._header.children().not(this._headerText),i=elems.length;if(!width){width=3+_getPadding(this._header);while(--i>=0){elem=elems[i];try{outerWidth=$(elem).outerWidth(true)}catch(ex){}width+=1+(outerWidth&&outerWidth>2&&outerWidth<100?outerWidth:elem.offsetWidth)}this._minHW=width}return width},_minWidth:function(){if(!this._minW){this._minW=this._minHeaderWidth()}return Math.max(this.options.minWidth,this._minW)},_fixCaption:function(elem){var width,widths,top,len,topi,j=0,i=-1,header=this._header,cap=this._headerText,minCss=this.css.headerTextMinimized;if(this._min){cap.css("width","").addClass(minCss);if(!elem){return}elem.css({height:"auto",width:"auto",display:"inline-block"});widths=_getPadding(header)+3;cap=header.children();len=cap.length;while(++i<len){widths+=cap[i].offsetWidth+_toPx($(cap[i]),"marginLeft")+_toPx($(cap[i]),"marginRight")}while(j++<2){elem.css("width",widths);widths+=2;i=len;while(i-->0){topi=cap[i].offsetTop;if(i>0&&i<len-1&&Math.abs(top-topi)>4){break}top=topi}if(i<0){j=4}}return}cap.removeClass(minCss);try{width=header.innerWidth()-3}catch(ex){}if(!width||width>1e3){width=header[0].clientWidth-4}width=Math.max(1,width-this._minHeaderWidth());cap.css("width","auto");if(cap[0].offsetWidth*1.3>width){cap.css("width",width)}},_doMaxSize:function(elem){var html,old=this._oldHtml,elem0=this.element,rect=this._winRect(),paddingX=_getPadding(elem),paddingY=_getPadding(elem,1);html=rect.html;if(!old){this._oldHtml=old={html:html,scrollLeft:html.scrollLeft,scrollTop:html.scrollTop};html.scrollLeft=html.scrollTop=0;if(html.style){old.overflow=html.style.overflow;html.style.overflow="hidden";if(rect.maxWidth>rect.width||rect.maxHeight>rect.height){rect=this._winRect(1)}}}this._doSizePX(elem0,elem,rect.width-paddingX-1,rect.height-paddingY-1,0)},_winRect:function(sizeOnly){var size,docElem,width,height,widthOk,heightOk,container=this.options.container,maxWidth=0,maxHeight=0,big=999999,win=window,doc=win.document,body=doc.body,html=body;while(html&&html.nodeName!=="HTML"){html=html.parentNode}if(!html){html=body}docElem=doc.documentElement||html;size=doc.compatMode!=="CSS1Compat"&&$.ig.util.isIE?body:html;width=size.clientWidth;height=size.clientHeight;if(sizeOnly){return{width:width,height:height}}if(width&&width>50){maxWidth=width;maxHeight=height}else{width=height=big}widthOk=html.scrollWidth;heightOk=html.scrollHeight;if(widthOk&&heightOk){maxWidth=Math.max(maxWidth,widthOk);maxHeight=Math.max(maxHeight,heightOk)}maxWidth=Math.max(maxWidth,body.scrollWidth);maxHeight=Math.max(maxHeight,body.scrollHeight);widthOk=body.offsetWidth;heightOk=body.offsetHeight;maxWidth=Math.max(maxWidth,widthOk);maxHeight=Math.max(maxHeight,heightOk);return{width:width===big?widthOk:width,height:height===big?heightOk:height,maxWidth:maxWidth,maxHeight:maxHeight,html:html}},_doIframe:function(div,hide){var src="javascript";if(!_iframe){_iframe=_notab($("<iframe />").attr("frameBorder",0).attr("scrolling","no").attr("src",src+":''").css({position:"absolute",filter:"alpha(opacity=50)",opacity:0}))}if(_iframe.parent()[0]!==div.parent()[0]){_iframe.css({width:"1px",height:"1px",marginLeft:div.css("marginLeft"),marginTop:div.css("marginTop"),left:div.css("left"),top:div.css("top"),zIndex:div.attr("zIndex")-1}).insertBefore(div)}_iframe.css({width:hide?"1px":div.css("width"),height:hide?"1px":div.css("height")})},_doModal:function(zi){var i,pos,on,obj,len=_modals.length,self=this,o=self.options,elem=self._elem,div=self._modalDiv;on=o.modal&&!o.pinned&&!self._min&&self._opened;i=$.inArray(self,_modals);if(self._modal===on){if(zi&&div){div.css("zIndex",zi-1);self._onResize()}if(!on&&!_lastTop&&len>0){_modals[len-1].moveToTop()}return}if(i<0&&on){if(len>0){_modals[len-1]._modalDiv.hide()}_modals.push(self)}if(i>=0&&!on){if(i>0&&i+1===len){obj=_modals[i-1]}_modals.splice(i,1)}self._modal=on;if(on){self._modalDiv=div=_notab($("<div />").css({position:"absolute",left:0,top:0,zIndex:_maxZ-1}).addClass(self.css.overlay).mousedown(function(e){self._setFocus();_stopEvt(e)}).insertBefore(elem));pos=div.offset();div.css({marginLeft:-pos.left+"px",marginTop:-pos.top+"px"});self._onResize()}else{div.remove();_iframe.remove();delete self._modalDiv;if(obj){obj.moveToTop()}}},_loc:function(but,state){state=(state===MIN?"minimize":state===MAX?"maximize":state===RESTORE?"restore":state===CLOSE?"close":state===PIN?"pin":state===UNPIN?"unpin":"open")+"ButtonTitle";var val=this.options[state]||($.ig&&$.ig.Dialog&&$.ig.Dialog.locale?$.ig.Dialog.locale[state]:null)||"";but.attr("title",val).attr("longdesc",val)},_setOption:function(key,val){var pos,size,drag,resize,elem=this._elem,o=this.options,container=key==="container";if(!elem||!key||o[key]===val||key==="mainElement"){return this}if(key==="state"){return this.state(val)}if(key==="pinned"){return this._pin()}if(container){if(o.draggable&&elem.draggable){elem.draggable("destroy");drag=true}if(o.resizable&&elem.resizable){elem.resizable("destroy");resize=true}}$.Widget.prototype._setOption.apply(this,arguments);if(typeof val==="function"){return this}if(container){this._initContainer(val,1);if(drag){this._doDraggable()}if(resize){this._doResizable()}}if(key==="draggable"){if(val){this._doDraggable()}else if(elem.draggable){elem.draggable("destroy")}}if(key==="resizable"){if(val){this._doResizable()}else if(this._resize){this._resize=val;elem.resizable("destroy")}}if(key==="modal"){this._doModal()}if(key.indexOf("Button")>0||key==="image"||key==="headerText"||key==="showHeader"){this._doHeader();size=true}if(key.indexOf("ooter")>0){this._doFooter();size=true}if(key==="tabIndex"){elem.attr("tabIndex",val)}if(key==="zIndex"){elem.css("zIndex",val);this._save()}if(this._vis){pos=key==="position";if(container||size||pos||key.indexOf("idth")>0||key.indexOf("eight")>0){this._doSize(pos||container)}}if(key.indexOf("Foc")>0){this._header.removeClass(this.css.headerFocus);if(key==="trackFocus"&&val!==!!this._focBind){if(this._opened){this._doClose();this._open()}else{this._open();this._doClose()}}}return this}});$.extend($.ui.igDialog,{version:"13.2.20132.2157"})})(jQuery);(function($){$(document).ready(function(){var wm=$("#__ig_wm__").length>0?$("#__ig_wm__"):$('<div id="__ig_wm__"></div>').appendTo(document.body);wm.css({position:"fixed",bottom:0,right:0,zIndex:1e3})})})(jQuery);
|
export default class Animate {
constructor() {
this.timer = null;
}
start(fn){
if (!fn) {
throw new Error('需要执行函数');
}
if (this.timer) {
this.stop();
}
this.timer = requestAnimationFrame(fn);
}
stop(){
if (!this.timer) {
return;
}
cancelAnimationFrame(this.timer);
this.timer = null;
}
}
|
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* NaCl Service Runtime. IMC API.
*/
#ifndef EXPORT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_NACL_SYSCALLS_H_
#define EXPORT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_NACL_SYSCALLS_H_
/**
* @file
* Defines <a href="group__syscalls.html">Service Runtime Calls</a>.
* The ABI is implicitly defined.
*
* @addtogroup syscalls
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* @nacl
* A stub library routine used to evaluate syscall performance.
*/
extern void null_syscall(void);
/**
* @nacl
* Sets the system break to the given address and return the address after
* the update. If new_break is NULL, simply returns the current break address.
* @param new_break The address to set the break to.
* @return On success, sysbrk returns the value of the break address. On
* failure, it returns -1 and sets errno appropriately.
*/
extern void *sysbrk(void *new_break);
#ifdef __cplusplus
}
#endif
/**
* @}
* End of System Calls group
*/
#endif
|
from datetime import timedelta
import json
from django.conf import settings
from django.utils import timezone
from django.template import RequestContext
from django.template.loader import render_to_string
from django.views import generic
from django.contrib.admin.views.decorators import staff_member_required
from jsonview.decorators import json_view
from twitter_stream.models import FilterTerm, StreamProcess
from swapper import load_model
from django.db import models
def _render_to_string_request(request, template, dictionary):
"""
Wrapper around render_to_string that includes the request context
This is necessary to get all of the TEMPLATE_CONTEXT_PROCESSORS
activated in the template.
"""
context = RequestContext(request, dictionary)
return render_to_string(template, context_instance=context)
def stream_status():
terms = FilterTerm.objects.filter(enabled=True)
processes = StreamProcess.get_current_stream_processes()
running = False
for p in processes:
if p.status == StreamProcess.STREAM_STATUS_RUNNING:
running = True
break
Tweet = load_model("twitter_stream", "Tweet")
tweet_count = Tweet.count_approx()
earliest_time = Tweet.get_earliest_created_at()
latest_time = Tweet.get_latest_created_at()
avg_rate = None
if earliest_time is not None and latest_time is not None:
avg_rate = float(tweet_count) / (latest_time - earliest_time).total_seconds()
# Get the tweets / minute over the past 10 minutes
tweet_counts = []
if latest_time is not None:
latest_time_minute = latest_time.replace(second=0, microsecond=0)
if settings.DATABASES['default']['ENGINE'].endswith('mysql'):
drop_seconds = "created_at - INTERVAL SECOND(created_at) SECOND"
elif settings.DATABASES['default']['ENGINE'].endswith('postgresql_psycopg2'):
drop_seconds = "date_trunc('minute', created_at)"
else:
drop_seconds = "created_at"
tweet_counts = Tweet.objects.extra(select={
'time': drop_seconds
}) \
.filter(created_at__gt=latest_time_minute - timedelta(minutes=20)) \
.values('time') \
.order_by('time') \
.annotate(tweets=models.Count('id'))
tweet_counts = list(tweet_counts)
for row in tweet_counts:
row['time'] = row['time'].isoformat()
return {
'running': running,
'terms': [t.term for t in terms],
'processes': processes,
'tweet_count': tweet_count,
'earliest': earliest_time,
'latest': latest_time,
'avg_rate': avg_rate,
'timeline': tweet_counts
}
class StatusView(generic.TemplateView):
template_name = 'twitter_stream/status.html'
def get_context_data(self, **kwargs):
status = stream_status()
status['timeline'] = json.dumps(status['timeline'])
return {
'status': status
}
status = staff_member_required(StatusView.as_view())
@staff_member_required
@json_view
def json_status(request, task=None):
"""
Returns a JSON representation of the status, with
HTML conveniently included.
"""
status = stream_status()
display = _render_to_string_request(request, 'twitter_stream/status_display.html', {
'status': status
})
return {
'display': display,
'timeline': status['timeline']
}
|
import Text from "./Text.js";
export default function ActivityMeta({post}) {
const date = new Date(post.properties.Date.date.start).toLocaleString(
"de-DE",
post.properties.Date.date.start.length > 10 ? {
month: "long",
day: "2-digit",
year: "numeric",
hour: "2-digit",
minute: "2-digit"
} : {
month: "long",
day: "2-digit",
year: "numeric"
}
);
let enddate = false;
if (post.properties.Date.date.end && post.properties.Date.date.start.length > 10) {
enddate = new Date(post.properties.Date.date.end).toLocaleString(
"de-DE",
post.properties.Date.date.end && post.properties.Date.date.start.substr(0,10) === post.properties.Date.date.end.substr(0,10) ? {
hour: "2-digit",
minute: "2-digit"
} : {
month: "long",
day: "2-digit",
year: "numeric",
hour: "2-digit",
minute: "2-digit"
});
} else if (post.properties.Date.date.end) {
enddate = new Date(post.properties.Date.date.end).toLocaleString(
"de-DE",
{
month: "long",
day: "2-digit",
year: "numeric",
});
}
return (<p className="my-2 text-white">
<span className="icon-cal">{date}
{enddate && (
<>{` - ${enddate}`}</>
)}
</span>
<span className="block md:inline md:ml-4 icon-pin">
<Text text={post.properties.Location.rich_text} />
</span>
</p>)
}
|
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import React from "react";
import { Menu, MenuList, MenuItem } from "@patternfly/react-core";
import EditIcon from "@patternfly/react-icons/dist/js/icons/edit-alt-icon";
import RegerateIcon from "@patternfly/react-icons/dist/js/icons/sync-alt-icon";
class MenuToggle extends React.Component {
constructor(props) {
super(props);
this.state = { expanded: false, activeItem: 0 };
}
componentDidMount = () => {
document.addEventListener("mousedown", this.handleMouseOutside);
};
componentWillUnmount() {
document.removeEventListener("mousedown", this.handleMouseOutside);
}
handleMouseOutside = (event) => {
if (
this.menuRef &&
this.buttonRef &&
(this.menuRef.contains(event.target) ||
this.buttonRef.contains(event.target))
) {
return;
}
this.setState({ expanded: false });
};
update = () => {};
handleMenuClick = () => {
const { expanded } = this.state;
this.setState({ expanded: !expanded });
};
handleMenuSelect = (_event, itemId) => {
this.setState(
{
activeItem: itemId,
expanded: false,
},
() => {
// notify parent that a menu item was clicked
switch (itemId) {
case 0:
this.props.handleStartEdit();
break;
case 1:
this.props.handleRegenCA();
break;
default:
console.log(`need to implement selecting menu id ${itemId}`);
}
}
);
};
render() {
const { expanded, activeItem } = this.state;
return (
<React.Fragment>
<button
ref={(el) => (this.buttonRef = el)}
className={`pf-c-menu-toggle pf-m-plain ${
expanded ? "pf-m-expanded" : ""
}`}
type="button"
aria-expanded="false"
aria-label="Actions"
onClick={this.handleMenuClick}
>
<i className="fas fa-ellipsis-v" aria-hidden="true"></i>
</button>
{expanded && (
<div ref={(el) => (this.menuRef = el)}>
<Menu
className="sk-popup-menu"
onSelect={this.handleMenuSelect}
activeItemId={activeItem}
>
<MenuList>
<MenuItem icon={<EditIcon aria-hidden />} itemId={0}>
Edit this site name
</MenuItem>
<MenuItem icon={<RegerateIcon aria-hidden />} itemId={1}>
Regenerate site CA
</MenuItem>
</MenuList>
</Menu>
</div>
)}
</React.Fragment>
);
}
}
export default MenuToggle;
|
$(document).ready(function(){
// Write your Javascript!
});
|
(function(e){const i=e["el"]=e["el"]||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"",Aquamarine:"",Black:"","Block quote":"Περιοχή παράθεσης",Blue:"",Bold:"Έντονη","Break text":"","Bulleted List":"Λίστα κουκκίδων","Bulleted list styles toolbar":"",Cancel:"Ακύρωση","Centered image":"","Change image text alternative":"Αλλαγή εναλλακτικού κείμενου","Choose heading":"Επιλέξτε κεφαλίδα",Circle:"",Code:"",Decimal:"","Decimal with leading zero":"","Dim grey":"",Disc:"",Downloadable:"","Dropdown toolbar":"","Edit block":"","Edit link":"","Editor toolbar":"","Enter image caption":"Λεζάντα","Full size image":"Εικόνα πλήρης μεγέθους",Green:"",Grey:"",Heading:"Κεφαλίδα","Heading 1":"Κεφαλίδα 1","Heading 2":"Κεφαλίδα 2","Heading 3":"Κεφαλίδα 3","Heading 4":"","Heading 5":"","Heading 6":"","Image resize list":"","Image toolbar":"","image widget":"","In line":"",Insert:"","Insert image":"Εισαγωγή εικόνας","Insert image via URL":"",Italic:"Πλάγια","Left aligned image":"","Light blue":"","Light green":"","Light grey":"",Link:"Σύνδεσμος","Link image":"","Link URL":"Διεύθυνση συνδέσμου","Lower-latin":"","Lower–roman":"",Next:"","Numbered List":"Αριθμημένη λίστα","Numbered list styles toolbar":"","Open in a new tab":"","Open link in new tab":"",Orange:"",Original:"",Paragraph:"Παράγραφος",Previous:"",Purple:"",Red:"",Redo:"Επανάληψη","Remove color":"","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Restore default":"","Rich Text Editor":"Επεξεργαστής Πλούσιου Κειμένου","Rich Text Editor, %0":"Επεξεργαστής Πλούσιου Κειμένου, 0%","Right aligned image":"",Save:"Αποθήκευση","Show more items":"","Side image":"",Square:"","Text alternative":"Εναλλακτικό κείμενο","This link has no URL":"","Toggle the circle list style":"","Toggle the decimal list style":"","Toggle the decimal with leading zero list style":"","Toggle the disc list style":"","Toggle the lower–latin list style":"","Toggle the lower–roman list style":"","Toggle the square list style":"","Toggle the upper–latin list style":"","Toggle the upper–roman list style":"",Turquoise:"",Underline:"",Undo:"Αναίρεση",Unlink:"Αφαίρεση συνδέσμου",Update:"","Update image URL":"","Upload failed":"","Upper-latin":"","Upper-roman":"",White:"","Wrap text":"",Yellow:""});i.getPluralForm=function(e){return e!=1}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
from collections import deque
# Initializing a Queue object
Q = deque()
# Inserting to the Queue
Q.append(1)
Q.append(2)
Q.append(3)
# Printing the Queue
print(list(Q))
# Popping an element from the created Queue (i.e., which pops from the front)
Q.popleft()
print(list(Q))
|
class GithubGraphqlQuery {
// Override this if you need a custom accept header
// for example for API previews. Otherwise the default
// is fine.
static accept() {
return "";
}
static query(org_name, repo_name, after_clause) {
// this query is a placeholder, a kind of
// "hello world" for graphql. Always override this
return ( /* GraphQL */ `
query {
viewer {
login
}
}
`); /* EndGraphQL */
}
}
export default GithubGraphqlQuery;
|
/**
* lib/bcs.js ~ 2013/05/11 19:14:35
* @author leeight(liyubei@baidu.com)
* @ignore
* 静态资源上传的功能
**/
var edp = require( 'edp-core' );
/**
* @param {Object} opts 命令行参数.
* @return {number}
*/
exports.getMaxSize = function( opts ) {
var maxSize = opts[ 'max-size' ];
if ( !maxSize ) {
maxSize = 10 * 1024 * 1024; // 10M
}
else {
var msptn = /^([\d\.]+)([mk])?/i;
var match = maxSize.match( msptn );
if ( !match ) {
edp.log.error( 'Invalid arguments: %s', maxSize );
process.exit( 1 );
}
maxSize = parseInt( match[1], 10 );
var unit = match[ 2 ];
if (unit == 'm' || unit == 'M') {
maxSize = maxSize * (1024 * 1024);
} else if (unit == 'k' || unit == 'K') {
maxSize = maxSize * (1024);
}
if (!maxSize) {
maxSize = 10 * 1024 * 1024;
}
}
return maxSize;
};
/**
* @param {Array.<string>} args 命令行参数.
* @param {Object.<string, string>} opts 命令的可选参数.
*/
exports.start = function (args, opts) {
var file = args[ 0 ];
if ( !file || args.length != 2 ) {
edp.log.error( 'Invalid arguments' );
process.exit( 1 );
}
var maxSize = exports.getMaxSize( opts );
var bktptn = /^bs:\/\/([^\/]+)(.*)?$/;
var match = args[ 1 ].match( bktptn );
if ( !match ) {
edp.log.error( 'Invalid arguments: %s', args[ 1 ] );
process.exit( 1 );
}
var bucket = match[ 1 ];
var target = (match[ 2 ] || '').replace(/^\/+/, '');
var fs = require( 'fs' );
if ( !fs.existsSync( file ) ) {
edp.log.error( 'No such file or directory = [%s]', file );
process.exit( 1 );
}
var config = require( 'edp-config' );
var ak = config.get( 'bcs.' + bucket + '.ak' ) || config.get( 'bcs.ak' );
var sk = config.get( 'bcs.' + bucket + '.sk' ) || config.get( 'bcs.sk' );
if ( !ak || !sk ) {
edp.log.warn( 'Please set `bcs.ak` and `bcs.sk` first.' );
edp.log.warn( 'You can apply them from ' +
'http://bcs-console.bae.baidu.com/' );
process.exit( 1 );
}
var autoUri = !!opts['auto-uri'];
var bcs = require( './lib/sdk' );
var sdk = new bcs.BaiduCloudStorage( ak, sk, maxSize, autoUri );
return sdk.upload( bucket, file, target );
};
exports.sdk = require( './lib/sdk' );
/* vim: set ts=4 sw=4 sts=4 tw=100: */
|
import React from 'react';
import reactCSS from '../helpers/reactcss';
export const Swatch = ({ color, style, onClick, title = color }) => {
const styles = reactCSS(
{
default: {
swatch: {
background: color,
height: '100%',
width: '100%',
cursor: 'pointer',
},
},
custom: {
swatch: style,
},
},
'custom'
);
const handleClick = e => {
onClick(color, e);
};
return <div style={styles.swatch} onClick={handleClick} title={title} />;
};
export default Swatch;
|
/* ticksToWig - Convert tab-delimited file of Unix time ticks, and possibly also numerical values to wig file(s).. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "apacheLog.h"
int tickCol = 0;
int valCol = 1;
void usage()
/* Explain usage and exit. */
{
errAbort(
"ticksToWig - Convert tab-delimited file of Unix time ticks, and possibly also numerical values to wig file(s).\n"
"usage:\n"
" ticksToWig in.tab density.wig [averageVal.wig]\n"
"options:\n"
" -tickCol=N - Column for ticks, defaults to 0\n"
" -valCol=N - Column for value, defaults to 1\n"
" -startTime=day/Mon/Year:HR:MN:SC\n"
" -startTick=tick - start time as a unix tick.\n"
"The startTime and startTick values set where the zero time should be. Otherwise it defaults\n"
"to the tick in the first line of in.tab.\n"
);
}
static struct optionSpec options[] = {
{"tickCol", OPTION_INT},
{"valCol", OPTION_INT},
{"startTime", OPTION_STRING},
{"startTick", OPTION_INT},
{NULL, 0},
};
void printVarStepHead(FILE *f)
/* Print variable step header. */
{
fprintf(f, "variableStep chrom=chr1 span=1\n");
}
void ticksToWig(int startTick, char *inTable, char *outDensity, char *outAverage)
/* ticksToWig - Convert tab-delimited file of Unix time ticks, and possibly also
* numerical values to wig file(s).. */
{
struct lineFile *lf = lineFileOpen(inTable, TRUE);
FILE *densityFile = mustOpen(outDensity, "w");
printVarStepHead(densityFile);
FILE *averageFile = NULL;
if (outAverage != NULL)
{
averageFile = mustOpen(outAverage, "w");
printVarStepHead(averageFile);
}
int colsToParse = 1 + max(tickCol, valCol);
char *row[colsToParse];
time_t curTick = 0;
int sameTickCount = 0;
double tickTotal = 0;
double val = 0;
time_t tick;
while (lineFileNextRow(lf, row, colsToParse))
{
tick = lineFileNeedNum(lf, row, tickCol);
if (averageFile != NULL)
val = lineFileNeedDouble(lf, row, valCol);
if (curTick != tick)
{
if (curTick > tick)
errAbort("Input isn't sorted - %ld > %ld line %d of %s\n",
(long)curTick, (long)tick, lf->lineIx, lf->fileName);
if (startTick == 0)
startTick = tick;
if (sameTickCount > 0)
{
fprintf(densityFile, "%ld\t%d\n", curTick - startTick + 1, sameTickCount);
time_t i;
for (i=curTick+1; i<tick; ++i)
{
fprintf(densityFile, "%ld\t%d\n", i - startTick + 1, 0);
}
if (averageFile != NULL)
{
fprintf(averageFile, "%ld\t%f\n",
(long)curTick - startTick + 1, tickTotal/sameTickCount);
tickTotal = 0;
}
sameTickCount = 0;
}
curTick = tick;
}
tickTotal += val;
sameTickCount += 1;
}
if (sameTickCount > 0)
{
fprintf(densityFile, "%ld\t%d\n", curTick - startTick + 1, sameTickCount);
if (averageFile != NULL)
fprintf(averageFile, "%ld\t%f\n",
(long)curTick - startTick + 1, tickTotal/sameTickCount);
}
carefulClose(&densityFile);
carefulClose(&averageFile);
}
int main(int argc, char *argv[])
/* Process command line. */
{
optionInit(&argc, argv, options);
if (argc != 3 && argc != 4)
usage();
time_t startTick = 0;
char *startTime = optionVal("startTime", NULL);
if (startTime != NULL)
{
startTick = apacheAccessLogTimeToTick(startTime);
}
else if (optionExists("startTick"))
{
startTick = optionInt("startTick", 0);
}
tickCol = optionInt("tickCol", tickCol);
valCol = optionInt("valCol", valCol);
ticksToWig(startTick, argv[1], argv[2], (argc == 4 ? argv[3] : NULL));
return 0;
}
|
if __name__ == '__main__':
start_list = [34, -203.4, 44.9, 68.3, -12.2, 44.6, 12.7]
sorted_list_ascending = sorted(start_list)
print("sorted: ", sorted_list_ascending)
sorted_list_descending = sorted(start_list, reverse=True)
sorted_list_descending = sorted(start_list)[::-1]
print("sorted: ", sorted_list_descending)
squared_list = [nb**2 for nb in start_list]
squared_list = [pow(nb, 2) for nb in start_list]
print("squared: ", squared_list)
only_negative = [number for number in start_list if number < 0]
print("negative: ", only_negative)
combined_list = [
start_list,
sorted_list_ascending,
squared_list,
only_negative
]
print("combined: ", combined_list)
total_sum = sum([sum(lst) for lst in combined_list])
total_sum = sum([item for lst in combined_list for item in lst]) # flatten the matrix
print("sum: ", total_sum)
average_with_initial_len = total_sum / len(start_list)
print("average: ", average_with_initial_len)
rounded_down = int(average_with_initial_len)
print("rounded: ", rounded_down) # -> 7384
|
"""
Utility functions.
"""
import os
from collections import Counter
import random
import json
import unicodedata
import torch
import numpy as np
from classla.models.common.constant import lcode2lang
import classla.models.common.seq2seq_constant as constant
import classla.utils.conll18_ud_eval as ud_eval
# filenames
def get_wordvec_file(wordvec_dir, shorthand, wordvec_type=None):
""" Lookup the name of the word vectors file, given a directory and the language shorthand.
"""
lcode, tcode = shorthand.split('_', 1)
lang = lcode2lang[lcode]
# locate language folder
word2vec_dir = os.path.join(wordvec_dir, 'word2vec', lang)
fasttext_dir = os.path.join(wordvec_dir, 'fasttext', lang)
lang_dir = None
if wordvec_type is not None:
lang_dir = os.path.join(wordvec_dir, wordvec_type, lang)
if not os.path.exists(lang_dir):
raise FileNotFoundError("Word vector type {} was specified, but directory {} does not exist".format(wordvec_type, lang_dir))
elif os.path.exists(word2vec_dir): # first try word2vec
lang_dir = word2vec_dir
elif os.path.exists(fasttext_dir): # otherwise try fasttext
lang_dir = fasttext_dir
else:
raise FileNotFoundError("Cannot locate word vector directory for language: {} Looked in {} and {}".format(lang, word2vec_dir, fasttext_dir))
# look for wordvec filename in {lang_dir}
filename = os.path.join(lang_dir, '{}.vectors'.format(lcode))
if os.path.exists(filename + ".xz"):
filename = filename + ".xz"
elif os.path.exists(filename + ".txt"):
filename = filename + ".txt"
return filename
# training schedule
def get_adaptive_eval_interval(cur_dev_size, thres_dev_size, base_interval):
""" Adjust the evaluation interval adaptively.
If cur_dev_size <= thres_dev_size, return base_interval;
else, linearly increase the interval (round to integer times of base interval).
"""
if cur_dev_size <= thres_dev_size:
return base_interval
else:
alpha = round(cur_dev_size / thres_dev_size)
return base_interval * alpha
# ud utils
def ud_scores(gold_conllu_file, system_conllu_file):
gold_ud = ud_eval.load_conllu_file(gold_conllu_file)
system_ud = ud_eval.load_conllu_file(system_conllu_file)
evaluation = ud_eval.evaluate(gold_ud, system_ud)
return evaluation
def harmonic_mean(a, weights=None):
if any([x == 0 for x in a]):
return 0
else:
assert weights is None or len(weights) == len(a), 'Weights has length {} which is different from that of the array ({}).'.format(len(weights), len(a))
if weights is None:
return len(a) / sum([1/x for x in a])
else:
return sum(weights) / sum(w/x for x, w in zip(a, weights))
# torch utils
def get_optimizer(name, parameters, lr, betas=(0.9, 0.999), eps=1e-8, momentum=0):
if name == 'sgd':
return torch.optim.SGD(parameters, lr=lr, momentum=momentum)
elif name == 'adagrad':
return torch.optim.Adagrad(parameters, lr=lr)
elif name == 'adam':
return torch.optim.Adam(parameters, lr=lr, betas=betas, eps=eps)
elif name == 'adamax':
return torch.optim.Adamax(parameters) # use default lr
else:
raise Exception("Unsupported optimizer: {}".format(name))
def change_lr(optimizer, new_lr):
for param_group in optimizer.param_groups:
param_group['lr'] = new_lr
def flatten_indices(seq_lens, width):
flat = []
for i, l in enumerate(seq_lens):
for j in range(l):
flat.append(i * width + j)
return flat
def set_cuda(var, cuda):
if cuda:
return var.cuda()
return var
def keep_partial_grad(grad, topk):
"""
Keep only the topk rows of grads.
"""
assert topk < grad.size(0)
grad.data[topk:].zero_()
return grad
# other utils
def ensure_dir(d, verbose=True):
if not os.path.exists(d):
if verbose:
print("Directory {} do not exist; creating...".format(d))
os.makedirs(d)
def save_config(config, path, verbose=True):
with open(path, 'w') as outfile:
json.dump(config, outfile, indent=2)
if verbose:
print("Config saved to file {}".format(path))
return config
def load_config(path, verbose=True):
with open(path) as f:
config = json.load(f)
if verbose:
print("Config loaded from file {}".format(path))
return config
def print_config(config):
info = "Running with the following configs:\n"
for k,v in config.items():
info += "\t{} : {}\n".format(k, str(v))
print("\n" + info + "\n")
return
def normalize_text(text):
return unicodedata.normalize('NFD', text)
def unmap_with_copy(indices, src_tokens, vocab):
"""
Unmap a list of list of indices, by optionally copying from src_tokens.
"""
result = []
for ind, tokens in zip(indices, src_tokens):
words = []
for idx in ind:
if idx >= 0:
words.append(vocab.id2word[idx])
else:
idx = -idx - 1 # flip and minus 1
words.append(tokens[idx])
result += [words]
return result
def prune_decoded_seqs(seqs):
"""
Prune decoded sequences after EOS token.
"""
out = []
for s in seqs:
if constant.EOS in s:
idx = s.index(constant.EOS_TOKEN)
out += [s[:idx]]
else:
out += [s]
return out
def prune_hyp(hyp):
"""
Prune a decoded hypothesis
"""
if constant.EOS_ID in hyp:
idx = hyp.index(constant.EOS_ID)
return hyp[:idx]
else:
return hyp
def prune(data_list, lens):
assert len(data_list) == len(lens)
nl = []
for d, l in zip(data_list, lens):
nl.append(d[:l])
return nl
def sort(packed, ref, reverse=True):
"""
Sort a series of packed list, according to a ref list.
Also return the original index before the sort.
"""
assert (isinstance(packed, tuple) or isinstance(packed, list)) and isinstance(ref, list)
packed = [ref] + [range(len(ref))] + list(packed)
sorted_packed = [list(t) for t in zip(*sorted(zip(*packed), reverse=reverse))]
return tuple(sorted_packed[1:])
def unsort(sorted_list, oidx):
"""
Unsort a sorted list, based on the original idx.
"""
assert len(sorted_list) == len(oidx), "Number of list elements must match with original indices."
_, unsorted = [list(t) for t in zip(*sorted(zip(oidx, sorted_list)))]
return unsorted
def tensor_unsort(sorted_tensor, oidx):
"""
Unsort a sorted tensor on its 0-th dimension, based on the original idx.
"""
assert sorted_tensor.size(0) == len(oidx), "Number of list elements must match with original indices."
backidx = [x[0] for x in sorted(enumerate(oidx), key=lambda x: x[1])]
return sorted_tensor[backidx]
def set_random_seed(seed, cuda):
"""
Set a random seed on all of the things which might need it.
torch, np, python random, and torch.cuda
"""
if seed is None:
seed = random.randint(0, 1000000000)
torch.manual_seed(seed)
np.random.seed(seed)
random.seed(seed)
if cuda:
torch.cuda.manual_seed(seed)
return seed
|
# SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.
import unittest
import PyOpenColorIO as OCIO
class FixedFunctionTransformTest(unittest.TestCase):
TEST_STYLE = OCIO.FIXED_FUNCTION_ACES_GLOW_03
TEST_PARAMS = [0, 1, 2]
TEST_DIRECTION = OCIO.TRANSFORM_DIR_INVERSE
def setUp(self):
self.fixed_func_tr = OCIO.FixedFunctionTransform(OCIO.FIXED_FUNCTION_ACES_RED_MOD_03)
def tearDown(self):
self.fixed_func_tr = None
def test_transform_type(self):
"""
Test the getTransformType() method.
"""
self.assertEqual(self.fixed_func_tr.getTransformType(), OCIO.TRANSFORM_TYPE_FIXED_FUNCTION)
def test_direction(self):
"""
Test the setDirection() and getDirection() methods.
"""
# Default initialized direction is forward.
self.assertEqual(self.fixed_func_tr.getDirection(),
OCIO.TRANSFORM_DIR_FORWARD)
for direction in OCIO.TransformDirection.__members__.values():
self.fixed_func_tr.setDirection(direction)
self.assertEqual(self.fixed_func_tr.getDirection(), direction)
# Wrong type tests.
for invalid in (None, 1, 'test'):
with self.assertRaises(TypeError):
self.fixed_func_tr.setDirection(invalid)
def test_format_metadata(self):
"""
Test the getFormatMetadata() method.
"""
format_metadata = self.fixed_func_tr.getFormatMetadata()
self.assertIsInstance(format_metadata, OCIO.FormatMetadata)
self.assertEqual(format_metadata.getElementName(), 'ROOT')
self.assertEqual(format_metadata.getName(), '')
self.assertEqual(format_metadata.getID(), '')
format_metadata.setName('name')
format_metadata.setID('id')
self.assertEqual(format_metadata.getName(), 'name')
self.assertEqual(format_metadata.getID(), 'id')
def test_params(self):
"""
Test the setParams() and getParams() methods.
"""
# Default initialized params is an empty list.
self.assertEqual(self.fixed_func_tr.getParams(), [])
self.fixed_func_tr.setParams(self.TEST_PARAMS)
self.assertEqual(self.fixed_func_tr.getParams(), self.TEST_PARAMS)
def test_style(self):
"""
Test the setStyle() and getStyle() methods.
"""
# Default initialized style is red mod 3.
self.assertEqual(self.fixed_func_tr.getStyle(),
OCIO.FIXED_FUNCTION_ACES_RED_MOD_03)
for style in OCIO.FixedFunctionStyle.__members__.values():
if style not in [OCIO.FIXED_FUNCTION_ACES_GAMUTMAP_02,
OCIO.FIXED_FUNCTION_ACES_GAMUTMAP_07,
OCIO.FIXED_FUNCTION_ACES_GAMUTMAP_13]:
self.fixed_func_tr.setStyle(style)
self.assertEqual(self.fixed_func_tr.getStyle(), style)
def test_validate_direction(self):
"""
Test the validate() method for direction.
Direction must be forward or inverse.
"""
self.fixed_func_tr.setDirection(OCIO.TRANSFORM_DIR_FORWARD)
self.assertIsNone(self.fixed_func_tr.validate())
def test_validate_params(self):
"""
Test the validate() method for params.
Initialization must have the correct number of params required for the style (possibly
none).
"""
self.fixed_func_tr = OCIO.FixedFunctionTransform(
style=self.TEST_STYLE,
direction=self.TEST_DIRECTION)
self.assertIsNone(self.fixed_func_tr.validate())
self.fixed_func_tr.setParams(self.TEST_PARAMS)
with self.assertRaises(OCIO.Exception):
self.fixed_func_tr.validate()
self.fixed_func_tr.setStyle(OCIO.FIXED_FUNCTION_REC2100_SURROUND)
self.fixed_func_tr.setParams([0.78])
self.assertIsNone(self.fixed_func_tr.validate())
def test_constructor_with_keywords(self):
"""
Test FixedFunctionTransform constructor with keywords and validate its values.
Initialization must have the correct number of params required for the style (possibly
none).
"""
fixed_func_tr = OCIO.FixedFunctionTransform(
style=self.TEST_STYLE,
params=[],
direction=self.TEST_DIRECTION)
self.assertEqual(fixed_func_tr.getStyle(), self.TEST_STYLE)
self.assertEqual(fixed_func_tr.getParams(), [])
self.assertEqual(fixed_func_tr.getDirection(), self.TEST_DIRECTION)
# With keywords not in their proper order.
fixed_func_tr2 = OCIO.FixedFunctionTransform(
direction=self.TEST_DIRECTION,
style=self.TEST_STYLE,
params=[])
self.assertEqual(fixed_func_tr2.getStyle(), self.TEST_STYLE)
self.assertEqual(fixed_func_tr2.getParams(), [])
self.assertEqual(fixed_func_tr2.getDirection(), self.TEST_DIRECTION)
with self.assertRaises(OCIO.Exception):
self.fixed_func_tr = OCIO.FixedFunctionTransform(
style=self.TEST_STYLE,
params=self.TEST_PARAMS,
direction=self.TEST_DIRECTION)
self.fixed_func_tr = OCIO.FixedFunctionTransform(
style=OCIO.FIXED_FUNCTION_REC2100_SURROUND,
params=[0.78])
params = self.fixed_func_tr.getParams()
self.assertEqual(len(params), 1)
self.assertEqual(params[0], 0.78)
with self.assertRaises(OCIO.Exception):
self.fixed_func_tr = OCIO.FixedFunctionTransform(
style=OCIO.FIXED_FUNCTION_REC2100_SURROUND,
params=[0.78, 0.42])
with self.assertRaises(OCIO.Exception):
self.fixed_func_tr = OCIO.FixedFunctionTransform(
style=OCIO.FIXED_FUNCTION_REC2100_SURROUND)
def test_constructor_with_positional(self):
"""
Test FixedFunctionTransform constructor without keywords and validate its values.
"""
fixed_func_tr = OCIO.FixedFunctionTransform(
self.TEST_STYLE,
[],
self.TEST_DIRECTION)
self.assertEqual(fixed_func_tr.getStyle(), self.TEST_STYLE)
self.assertEqual(fixed_func_tr.getParams(), [])
self.assertEqual(fixed_func_tr.getDirection(), self.TEST_DIRECTION)
def test_constructor_wrong_parameter_type(self):
"""
Test FixedFunctionTransform constructor with a wrong parameter type.
"""
for invalid in (None, 1):
with self.assertRaises(TypeError):
fixed_func_tr = OCIO.FixedFunctionTransform(invalid)
|
import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Row, Col, CardBody, Card } from 'reactstrap';
export default function LivePreviewExample() {
return (
<>
<Row>
<Col xl="3" md="6">
<Card className="mb-5 card-box card-box-border-bottom border-success">
<CardBody>
<div className="text-center">
<div className="mt-1">
<FontAwesomeIcon
icon={['far', 'user']}
className="font-size-xxl text-success"
/>
</div>
<div className="mt-3 line-height-sm">
<b className="font-size-lg pr-1">2,345</b>
<span className="text-black-50">users</span>
</div>
</div>
</CardBody>
</Card>
</Col>
<Col xl="3" md="6">
<Card className="mb-5 card-box card-box-border-bottom border-danger">
<CardBody>
<div className="text-center">
<div className="mt-1">
<FontAwesomeIcon
icon={['far', 'keyboard']}
className="font-size-xxl text-danger"
/>
</div>
<div className="mt-3 line-height-sm">
<b className="font-size-lg pr-1">3,568</b>
<span className="text-black-50">clicks</span>
</div>
</div>
</CardBody>
</Card>
</Col>
<Col xl="3" md="6">
<Card className="mb-5 card-box card-box-border-bottom border-warning">
<CardBody>
<div className="text-center">
<div className="mt-1">
<FontAwesomeIcon
icon={['far', 'chart-bar']}
className="font-size-xxl text-warning"
/>
</div>
<div className="mt-3 line-height-sm">
<b className="font-size-lg pr-1">$9,693</b>
<span className="text-black-50">revenue</span>
</div>
</div>
</CardBody>
</Card>
</Col>
<Col xl="3" md="6">
<Card className="mb-5 card-box card-box-border-bottom border-info">
<CardBody>
<div className="text-center">
<div className="mt-1">
<FontAwesomeIcon
icon={['far', 'building']}
className="font-size-xxl text-info"
/>
</div>
<div className="mt-3 line-height-sm">
<b className="font-size-lg pr-1">431</b>
<span className="text-black-50">sales</span>
</div>
</div>
</CardBody>
</Card>
</Col>
</Row>
</>
);
}
|
#ifndef KMTERM_FONT_BASIC_H
#define KMTERM_FONT_BASIC_H
#include <linux/types.h>
extern const u8 kmterm_font_basic[0xFF][14];
#endif // KMTERM_FONT_BASIC_H
|
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
from os import path
from io import open
REQUIRED = [
'requests', 'feedparser',
]
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='requests-google',
version='0.0.7',
description='A simple google related Parsing Package.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/yangxuhui/requests-google',
author='Xuhui Yang',
author_email='yangxuhui1992@163.com',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='google parse crawler',
packages=find_packages(),
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
install_requires=REQUIRED,
entry_points={
'console_scripts': [
'requests_googlenews=requests_google.cli.requests_googlenews:main',
],
},
)
|
var annotated_dup =
[
[ "bigint", "namespacebigint.html", "namespacebigint" ],
[ "combinatorics", "namespacecombinatorics.html", null ],
[ "convex_hull_trick", "namespaceconvex__hull__trick.html", "namespaceconvex__hull__trick" ],
[ "coroutine", "namespacecoroutine.html", null ],
[ "dsu_ds", "namespacedsu__ds.html", "namespacedsu__ds" ],
[ "flow", "namespaceflow.html", "namespaceflow" ],
[ "graph_draw", "namespacegraph__draw.html", null ],
[ "graph_theory", "namespacegraph__theory.html", "namespacegraph__theory" ],
[ "hld", "namespacehld.html", "namespacehld" ],
[ "linear_algebra", "namespacelinear__algebra.html", "namespacelinear__algebra" ],
[ "link_cut", "namespacelink__cut.html", null ],
[ "modulo_namespace", "namespacemodulo__namespace.html", "namespacemodulo__namespace" ],
[ "permutation", "namespacepermutation.html", "namespacepermutation" ],
[ "persistent", "namespacepersistent.html", "namespacepersistent" ],
[ "polynomial_ns", "namespacepolynomial__ns.html", "namespacepolynomial__ns" ],
[ "queue_tools", "namespacequeue__tools.html", "namespacequeue__tools" ],
[ "sat2", "namespacesat2.html", null ],
[ "segment_tree", "namespacesegment__tree.html", "namespacesegment__tree" ],
[ "sparse_table", "namespacesparse__table.html", "namespacesparse__table" ],
[ "splay_tree", "namespacesplay__tree.html", "namespacesplay__tree" ],
[ "std", null, [
[ "hash< ll >", "structstd_1_1hash_3_01ll_01_4.html", null ],
[ "hash< modulo >", "structstd_1_1hash_3_01modulo_01_4.html", "structstd_1_1hash_3_01modulo_01_4" ],
[ "is_integral< ll >", "structstd_1_1is__integral_3_01ll_01_4.html", null ],
[ "is_signed< ll >", "structstd_1_1is__signed_3_01ll_01_4.html", null ],
[ "is_unsigned< ll >", "structstd_1_1is__unsigned_3_01ll_01_4.html", null ],
[ "numeric_limits< ll >", "structstd_1_1numeric__limits_3_01ll_01_4.html", null ]
] ],
[ "string_tools", "namespacestring__tools.html", "namespacestring__tools" ],
[ "time_tools", "namespacetime__tools.html", "namespacetime__tools" ],
[ "tree", "namespacetree.html", "namespacetree" ],
[ "utility", "namespaceutility.html", "namespaceutility" ],
[ "BIT", "classBIT.html", "classBIT" ],
[ "bytehash", "structstring__tools_1_1bytehash.html", "structstring__tools_1_1bytehash" ],
[ "CHT", "structconvex__hull__trick_1_1CHT.html", "structconvex__hull__trick_1_1CHT" ],
[ "dsu", "structdsu__ds_1_1dsu.html", "structdsu__ds_1_1dsu" ],
[ "hash_str", "structstring__tools_1_1hash__str.html", "structstring__tools_1_1hash__str" ],
[ "HLD", "classhld_1_1HLD.html", "classhld_1_1HLD" ],
[ "int_it", "structint__it.html", "structint__it" ],
[ "it_base", "structit__base.html", "structit__base" ],
[ "lets_add", "structlets__add.html", "structlets__add" ],
[ "ll", "structll.html", "structll" ],
[ "matrix", "structlinear__algebra_1_1matrix.html", "structlinear__algebra_1_1matrix" ],
[ "Max", "structMax.html", "structMax" ],
[ "Min", "structMin.html", "structMin" ],
[ "MinQueue", "classqueue__tools_1_1MinQueue.html", "classqueue__tools_1_1MinQueue" ],
[ "MinStack", "classqueue__tools_1_1MinStack.html", "classqueue__tools_1_1MinStack" ],
[ "QueueAdaptor", "classqueue__tools_1_1QueueAdaptor.html", "classqueue__tools_1_1QueueAdaptor" ],
[ "range", "structrange.html", "structrange" ],
[ "rin", "structrin.html", "structrin" ],
[ "search_it", "structstring__tools_1_1search__it.html", "structstring__tools_1_1search__it" ],
[ "SegmentTree", "classsegment__tree_1_1SegmentTree.html", "classsegment__tree_1_1SegmentTree" ],
[ "set_multitest", "structset__multitest.html", "structset__multitest" ],
[ "size_data", "structsize__data.html", "structsize__data" ],
[ "Subgraph", "structSubgraph.html", "structSubgraph" ],
[ "treap", "structtreap.html", "structtreap" ],
[ "Trie", "structstring__tools_1_1Trie.html", "structstring__tools_1_1Trie" ]
];
|
import testUtils
import p2p_test_peers
import random
RemoteCmd = p2p_test_peers.P2PTestPeers
class ImpairedNetwork:
cmd="tc qdisc add dev {dev} root tbf limit 65536 burst 65536 rate"
args=["1mbps","500kbps","100kbps","10kbps","1kbps"] #,"1bps"]
resetcmd="tc qdisc del dev {dev} root"
def maxIndex(self):
return len(self.args)
def execute(self, cmdInd, node, testerAccount, ETAio):
print("\n==== impaired network test: set network speed to %s ====" % (self.args[cmdInd]))
RemoteCmd.exec(self.cmd + " " + self.args[cmdInd])
s=""
for i in range(12):
s=s+random.choice("abcdefghijklmnopqrstuvwxyz12345")
testerAccount.name = s
transIdlist = []
print("==== creating account %s ====" % (s))
trans = node.createAccount(testerAccount, ETAio, stakedDeposit=0, waitForTransBlock=True)
if trans is None:
return ([], "", 0.0, "failed to create account")
transIdlist.append(node.getTransId(trans))
return (transIdlist, "", 0.0, "")
def on_exit(self):
RemoteCmd.exec(self.resetcmd)
|
'use strict';
const controller = require('..');
describe('controller', () => {
it('needs tests');
});
|
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:49:06 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/Frameworks/CoreLocation.framework/CoreLocation
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
@protocol NSSecureCoding <NSCoding>
@required
+(BOOL)supportsSecureCoding;
@end
|
/**
* @fileoverview Tests for JSON reporter.
* @author Chris Meyer
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const assert = require("chai").assert,
formatter = require("../../../../lib/cli-engine/formatters/json-with-metadata");
//------------------------------------------------------------------------------
// Tests
//------------------------------------------------------------------------------
describe("formatter:json", () => {
const rulesMeta = {
foo: {
type: "problem",
docs: {
description: "This is rule 'foo'",
category: "error",
recommended: true,
url: "https://eslint.org/docs/rules/foo"
},
fixable: "code",
messages: {
message1: "This is a message for rule 'foo'."
}
},
bar: {
type: "suggestion",
docs: {
description: "This is rule 'bar'",
category: "error",
recommended: false
},
messages: {
message1: "This is a message for rule 'bar'."
}
}
};
const code = {
results: [{
filePath: "foo.js",
messages: [{
message: "Unexpected foo.",
severity: 2,
line: 5,
column: 10,
ruleId: "foo"
}]
}, {
filePath: "bar.js",
messages: [{
message: "Unexpected bar.",
severity: 1,
line: 6,
column: 11,
ruleId: "bar"
}]
}],
metadata: {
rulesMeta
}
};
it("should return passed results and data as a JSON string without any modification", () => {
const result = JSON.parse(formatter(code.results, code.metadata));
assert.deepStrictEqual(result, code);
});
});
|
/**
* @flow
*/
import React from 'react';
import {storiesOf} from '@kadira/storybook';
import Card, {CardItem} from './Card';
storiesOf('<Card />', module)
.add('Basic', () => (
<Card>
Card content
</Card>
))
.add('Basic with padding', () => (
<Card padding={10}>
Card content
</Card>
))
.add('With header', () => (
<Card padding={10} header="Header">
Card content
</Card>
))
.add('With footer', () => (
<Card padding={10} footer="Footer">
Card content
</Card>
))
.add('With header & footer', () => (
<Card padding={10} header="Header" footer="Footer">
Card content
</Card>
))
.add('Success variant', () => (
<Card padding={10} variant={{success: true}} header="Header" footer="Footer">
Card content
</Card>
))
.add('With card item', () => (
<Card>
<CardItem padding={10}>
Item 1
</CardItem>
<CardItem padding={10}>
Item 2
</CardItem>
</Card>
));
|
# -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import logging
from nailgun import consts
from nailgun import objects
from nailgun.db.sqlalchemy.models import IPAddr
from nailgun.db.sqlalchemy.models import NetworkGroup
from nailgun.db.sqlalchemy.models import Node
from nailgun.test.base import BaseIntegrationTest
from nailgun.test.base import fake_tasks
from nailgun.utils import reverse
logger = logging.getLogger(__name__)
class TestNodeDeletion(BaseIntegrationTest):
def setUp(self):
super(TestNodeDeletion, self).setUp()
self.env.create(nodes_kwargs=[{"pending_addition": True}])
self.cluster = self.env.clusters[0]
self.node_ids = [node.id for node in self.cluster.nodes]
@fake_tasks()
def test_node_deletion_and_attributes_clearing(self):
node_id = self.node_ids[0]
resp = self.app.delete(
reverse(
'NodeHandler',
kwargs={'obj_id': node_id}),
headers=self.default_headers
)
self.assertEqual(202, resp.status_code)
task = objects.Task.get_by_uuid(resp.json_body['uuid'])
self.env.wait_ready(task)
node_try = self.db.query(Node).filter_by(
cluster_id=self.cluster.id
).first()
self.assertIsNone(node_try)
management_net = self.db.query(NetworkGroup).\
filter(NetworkGroup.group_id ==
objects.Cluster.get_default_group(self.cluster).id).\
filter_by(name='management').first()
ipaddrs = self.db.query(IPAddr).\
filter_by(node=node_id).all()
self.assertEqual(list(management_net.nodes), [])
self.assertEqual(list(ipaddrs), [])
@fake_tasks()
def test_batch_node_deletion_and_attributes_clearing(self):
url = reverse('NodeCollectionHandler')
query_str = 'ids={0}'.format(','.join(map(str, self.node_ids)))
resp = self.app.delete(
'{0}?{1}'.format(url, query_str),
headers=self.default_headers
)
self.assertEqual(202, resp.status_code)
task = objects.Task.get_by_uuid(resp.json_body['uuid'])
self.env.wait_ready(task)
node_query = self.db.query(Node).filter_by(cluster_id=self.cluster.id)
self.assertEquals(node_query.count(), 0)
@fake_tasks(fake_rpc=False, mock_rpc=True)
def test_mclient_remove_is_false_on_node_deletion(self, mrpc):
url = reverse(
'NodeHandler',
kwargs={'obj_id': self.node_ids[0]}
)
self.app.delete(
url,
headers=self.default_headers
)
msg = mrpc.call_args[0][1]
self.assertTrue(
all([node['mclient_remove'] is False
for node in msg['args']['nodes']])
)
@fake_tasks(fake_rpc=False, mock_rpc=True)
def test_mclient_remove_is_false_on_node_collection_deletion(self, mrpc):
url = reverse('NodeCollectionHandler')
query_str = 'ids={0}'.format(','.join(map(str, self.node_ids)))
self.app.delete(
'{0}?{1}'.format(url, query_str),
headers=self.default_headers
)
msg = mrpc.call_args[0][1]
self.assertTrue(
all([node['mclient_remove'] is False
for node in msg['args']['nodes']])
)
class TestNodeDeletionBadRequest(BaseIntegrationTest):
def test_node_handlers_deletion_bad_request(self):
self.env.create(nodes_kwargs=[
{'roles': ['controller'], 'status': consts.NODE_STATUSES.error}
])
cluster_db = self.env.clusters[0]
node_to_delete = self.env.create_node(
cluster_id=cluster_db.id,
roles=['controller'],
status=consts.NODE_STATUSES.ready
)
err_msg = ("One of the cluster controllers is in error state, "
"please, eliminate the problem prior to proceeding further")
resp = self.app.delete(
reverse(
'NodeHandler',
kwargs={'obj_id': node_to_delete.id}),
headers=self.default_headers,
expect_errors=True
)
self.assertEqual(resp.status_code, 403)
self.assertIn(err_msg, resp.body)
url = reverse('NodeCollectionHandler')
query_str = 'ids={0}'.format(node_to_delete.id)
resp = self.app.delete(
'{0}?{1}'.format(url, query_str),
headers=self.default_headers,
expect_errors=True
)
self.assertEqual(resp.status_code, 403)
self.assertIn(err_msg, resp.body)
|
from __future__ import unicode_literals
import warnings
from django.conf import settings
from django.utils.html import format_html, format_html_join
from django.utils.encoding import force_text, python_2_unicode_compatible
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.utils import six
import sys
# Import ValidationError so that it can be imported from this
# module to maintain backwards compatibility.
from django.core.exceptions import ValidationError
def flatatt(attrs):
"""
Convert a dictionary of attributes to a single string.
The returned string will contain a leading space followed by key="value",
XML-style pairs. It is assumed that the keys do not need to be XML-escaped.
If the passed dictionary is empty, then return an empty string.
The result is passed through 'mark_safe'.
"""
for attr_name, value in attrs.items():
if type(value) is bool:
warnings.warn(
"In Django 1.8, widget attribute %(attr_name)s=%(bool_value)s "
"will %(action)s. To preserve current behavior, use the "
"string '%(bool_value)s' instead of the boolean value." % {
'attr_name': attr_name,
'action': "be rendered as '%s'" % attr_name if value else "not be rendered",
'bool_value': value,
},
DeprecationWarning
)
return format_html_join('', ' {0}="{1}"', sorted(attrs.items()))
@python_2_unicode_compatible
class ErrorDict(dict):
"""
A collection of errors that knows how to display itself in various formats.
The dictionary keys are the field names, and the values are the errors.
"""
def __str__(self):
return self.as_ul()
def as_ul(self):
if not self: return ''
return format_html('<ul class="errorlist">{0}</ul>',
format_html_join('', '<li>{0}{1}</li>',
((k, force_text(v))
for k, v in self.items())
))
def as_text(self):
return '\n'.join('* %s\n%s' % (k, '\n'.join(' * %s' % force_text(i) for i in v)) for k, v in self.items())
@python_2_unicode_compatible
class ErrorList(list):
"""
A collection of errors that knows how to display itself in various formats.
"""
def __str__(self):
return self.as_ul()
def as_ul(self):
if not self: return ''
return format_html('<ul class="errorlist">{0}</ul>',
format_html_join('', '<li>{0}</li>',
((force_text(e),) for e in self)
)
)
def as_text(self):
if not self: return ''
return '\n'.join('* %s' % force_text(e) for e in self)
def __repr__(self):
return repr([force_text(e) for e in self])
# Utilities for time zone support in DateTimeField et al.
def from_current_timezone(value):
"""
When time zone support is enabled, convert naive datetimes
entered in the current time zone to aware datetimes.
"""
if settings.USE_TZ and value is not None and timezone.is_naive(value):
current_timezone = timezone.get_current_timezone()
try:
return timezone.make_aware(value, current_timezone)
except Exception:
message = _(
'%(datetime)s couldn\'t be interpreted '
'in time zone %(current_timezone)s; it '
'may be ambiguous or it may not exist.'
)
params = {'datetime': value, 'current_timezone': current_timezone}
six.reraise(ValidationError, ValidationError(
message,
code='ambiguous_timezone',
params=params,
), sys.exc_info()[2])
return value
def to_current_timezone(value):
"""
When time zone support is enabled, convert aware datetimes
to naive dateimes in the current time zone for display.
"""
if settings.USE_TZ and value is not None and timezone.is_aware(value):
current_timezone = timezone.get_current_timezone()
return timezone.make_naive(value, current_timezone)
return value
|
import { OrderSync } from 'sphere-node-sdk'
const buildOrderMethods = {
customLineItems: (order, existingOrder) =>
order.customLineItems.reduce((actions, lineItem) => {
if (lineItem.state)
actions.push(
...lineItem.state.reduce((stateActions, state) => {
if (state.fromState && state.toState) {
const quantityTally = buildOrderMethods.checkIffromStateQtytally(
existingOrder,
state.fromState.id,
state._fromStateQty,
'customLineItems',
)
if (quantityTally) {
const action = {
action: 'transitionCustomLineItemState',
customLineItemId: lineItem.id,
quantity: state.quantity,
fromState: state.fromState,
toState: state.toState,
}
// Check for optional fields
if (state.actualTransitionDate)
action.actualTransitionDate = state.actualTransitionDate
stateActions.push(action)
}
}
return stateActions
}, []),
)
return actions
}, []),
checkIffromStateQtytally: (existingOrder, stateid, quantity, lineItems) =>
existingOrder[lineItems].some(lineItem =>
lineItem.state.some((state) => {
const stateRef = state.state
return (stateRef.id === stateid) && (quantity === state.quantity)
}),
),
lineItems: (order, existingOrder) =>
order.lineItems.reduce((actions, lineItem) => {
if (lineItem.state)
actions.push(
...lineItem.state.reduce((stateActions, state) => {
if (state.fromState && state.toState) {
const quantityTally = buildOrderMethods.checkIffromStateQtytally(
existingOrder,
state.fromState.id,
state._fromStateQty,
'lineItems',
)
if (quantityTally) {
const action = {
action: 'transitionLineItemState',
lineItemId: lineItem.id,
quantity: state.quantity,
fromState: state.fromState,
toState: state.toState,
}
// Check for optional fields
if (state.actualTransitionDate)
action.actualTransitionDate = state.actualTransitionDate
stateActions.push(action)
}
}
return stateActions
}, []),
)
return actions
}, []),
syncInfo: order => order.syncInfo.reduce((actions, syncInfo) => {
const action = Object.assign({
action: 'updateSyncInfo',
}, syncInfo)
actions.push(action)
return actions
}, []),
returnInfo: (order, existingOrder) => {
const sync = new OrderSync()
const enabledActions = [
'setReturnShipmentState',
'setReturnPaymentState',
'addReturnInfo',
]
/* eslint-disable no-param-reassign */
order.returnInfo = order.returnInfo || []
existingOrder.returnInfo = existingOrder.returnInfo || []
/* eslint-enable no-param-reassign */
const payload = sync.config()
.buildActions(order, existingOrder)
.getUpdatePayload()
const actions = (payload && payload.actions) || []
// filter only whitelisted actions
return actions
.filter(action => enabledActions.indexOf(action.action) >= 0)
},
shippingInfo: (order, existingOrder) => {
const sync = new OrderSync()
const enabledActions = [
'addDelivery',
'addParcelToDelivery',
]
const modOrder = { shippingInfo: { deliveries: [] }, ...order }
const modExistOrder = { shippingInfo: { deliveries: [] }, ...existingOrder }
const payload = sync.config()
.buildActions(modOrder, modExistOrder)
.getUpdatePayload()
const actions = (payload && payload.actions) || []
// filter only whitelisted actions
return actions
.filter(action => enabledActions.indexOf(action.action) >= 0)
},
}
export default buildOrderMethods
|
/*!
=========================================================
* Argon Design System React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-design-system-react
* Copyright 2020 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://github.com/creativetimofficial/argon-design-system-react/blob/main/LICENSE.md)
* Coded by Creative Tim
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
import React from "react";
// nodejs library that concatenates classes
import classnames from "classnames";
import promo1 from "assets/img/theme/promo-1.png";
import cardImg from "assets/img/theme/img-1-1200x1000.jpg";
import ill2 from "assets/img/ill/ill-2.svg";
import team1 from "assets/img/theme/team-1-800x800.jpg";
import team2 from "assets/img/theme/team-2-800x800.jpg";
import team3 from "assets/img/theme/team-3-800x800.jpg";
import team4 from "assets/img/theme/photo_2021-06-10_12-43-25.jpg";
// reactstrap components
import {
Badge,
Button,
Card,
CardBody,
CardImg,
FormGroup,
Input,
InputGroupAddon,
InputGroupText,
InputGroup,
Container,
Row,
Col,
} from "reactstrap";
// core components
import DemoNavbar from "components/Navbars/DemoNavbar.js";
import CardsFooter from "components/Footers/CardsFooter.js";
// index page sections
import Download from "../IndexSections/Download.js";
class Landing extends React.Component {
state = {};
componentDidMount() {
document.documentElement.scrollTop = 0;
document.scrollingElement.scrollTop = 0;
this.refs.main.scrollTop = 0;
}
render() {
return (
<>
<DemoNavbar />
<main ref="main">
<div className="position-relative">
{/* shape Hero */}
<section className="section section-lg section-shaped pb-250">
<div className="shape shape-style-1 shape-default">
<span />
<span />
<span />
<span />
<span />
<span />
<span />
<span />
<span />
</div>
<Container className="py-lg-md d-flex">
<div className="col px-0">
<Row>
<Col lg="6">
<h1 className="display-3 text-white">
what you are excited about in tech.
<span> web Development </span>
</h1>
<p className="lead text-white">
I came with an engineering background;
I switch my career to web Developer to satisfies my passion.
here are samples of Projects I made.
</p>
<div className="btn-wrapper">
{/* <Button
className="btn-icon mb-3 mb-sm-0"
color="info"
href="https://demos.creative-tim.com/argon-design-system-react/#/documentation/alerts?ref=adsr-landing-page"
>
<span className="btn-inner--icon mr-1">
<i className="fa fa-code" />
</span>
<span className="btn-inner--text">Components</span>
</Button>
<Button
className="btn-white btn-icon mb-3 mb-sm-0 ml-1"
color="default"
href="https://www.creative-tim.com/product/argon-design-system-react?ref=adsr-landing-page"
>
<span className="btn-inner--icon mr-1">
<i className="ni ni-cloud-download-95" />
</span>
<span className="btn-inner--text">
Download React
</span>
</Button> */}
</div>
</Col>
</Row>
</div>
</Container>
{/* SVG separator */}
<div className="separator separator-bottom separator-skew">
<svg
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
version="1.1"
viewBox="0 0 2560 100"
x="0"
y="0"
>
<polygon
className="fill-white"
points="2560 0 2560 100 0 100"
/>
</svg>
</div>
</section>
{/* 1st Hero Variation */}
</div>
<section className="section section-lg pt-lg-0 mt--200">
<Container>
<Row className="justify-content-center">
<Col lg="12">
<Row className="row-grid">
<Col lg="4">
<Card className="card-lift--hover shadow border-0">
<CardBody className="py-5">
<div className="icon icon-shape icon-shape-primary rounded-circle mb-4">
<i className="ni ni-check-bold" />
</div>
<h6 className="text-primary text-uppercase">
Ethar Site
</h6>
<p className="description mt-3">
Ethar project created to enhance the values of
cooperation and volunteering in the community by
making it easier for users to donate.
</p>
<div>
<Badge color="primary" pill className="mr-1">
design
</Badge>
<Badge color="primary" pill className="mr-1">
system
</Badge>
<Badge color="primary" pill className="mr-1">
creative
</Badge>
</div>
<Button
className="mt-4"
color="primary"
href="https://ethar-team.github.io/ethar/"
// onClick={e => e.preventDefault()}
>
Learn more
</Button>
</CardBody>
</Card>
</Col>
<Col lg="4">
<Card className="card-lift--hover shadow border-0">
<CardBody className="py-5">
<div className="icon icon-shape icon-shape-success rounded-circle mb-4">
<i className="ni ni-istanbul" />
</div>
<h6 className="text-success text-uppercase">
301 Project
</h6>
<p className="description mt-3">
Argon is a great free UI package based on Bootstrap
4 that includes the most important components and
features.
</p>
<div>
<Badge color="success" pill className="mr-1">
business
</Badge>
<Badge color="success" pill className="mr-1">
vision
</Badge>
<Badge color="success" pill className="mr-1">
success
</Badge>
</div>
<Button
className="mt-4"
color="success"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
Learn more
</Button>
</CardBody>
</Card>
</Col>
<Col lg="4">
<Card className="card-lift--hover shadow border-0">
<CardBody className="py-5">
<div className="icon icon-shape icon-shape-warning rounded-circle mb-4">
<i className="ni ni-planet" />
</div>
<h6 className="text-warning text-uppercase">
401 Project
</h6>
<p className="description mt-3">
Argon is a great free UI package based on Bootstrap
4 that includes the most important components and
features.
</p>
<div>
<Badge color="warning" pill className="mr-1">
marketing
</Badge>
<Badge color="warning" pill className="mr-1">
product
</Badge>
<Badge color="warning" pill className="mr-1">
launch
</Badge>
</div>
<Button
className="mt-4"
color="warning"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
Learn more
</Button>
</CardBody>
</Card>
</Col>
</Row>
</Col>
</Row>
</Container>
</section>
<section className="section section-lg">
<Container>
<Row className="row-grid align-items-center">
<Col className="order-md-2" md="6">
<img alt="..." className="img-fluid floating" src={promo1} />
</Col>
<Col className="order-md-1" md="6">
<div className="pr-md-5">
<div className="icon icon-lg icon-shape icon-shape-success shadow rounded-circle mb-5">
<i className="ni ni-settings-gear-65" />
</div>
<h3>Ethar features</h3>
<p>
Ethar project created to enhance the values of cooperation
and volunteering in the community by making it easier for
users to donate tools, clothes, food, and electronic
devices in addition to providing some services through a
team of specialized volunteers, who provide services such
as construction, carpentry and paint to the needy people
for free.
</p>
<ul className="list-unstyled mt-5">
<li className="py-2">
<div className="d-flex align-items-center">
<div>
<Badge
className="badge-circle mr-3"
color="success"
>
<i className="ni ni-settings-gear-65" />
</Badge>
</div>
<div>
<h6 className="mb-0">
Carefully crafted components
</h6>
</div>
</div>
</li>
<li className="py-2">
<div className="d-flex align-items-center">
<div>
<Badge
className="badge-circle mr-3"
color="success"
>
<i className="ni ni-html5" />
</Badge>
</div>
<div>
<h6 className="mb-0">Amazing Donation page </h6>
</div>
</div>
</li>
<li className="py-2">
<div className="d-flex align-items-center">
<div>
<Badge
className="badge-circle mr-3"
color="success"
>
<i className="ni ni-satisfied" />
</Badge>
</div>
<div>
<h6 className="mb-0">
Super friendly support team
</h6>
</div>
</div>
</li>
</ul>
</div>
</Col>
</Row>
</Container>
</section>
<section className="section bg-secondary">
<Container>
<Row className="row-grid align-items-center">
<Col md="6">
<Card className="bg-default shadow border-0">
<CardImg alt="..." src={cardImg} top />
<blockquote className="card-blockquote">
<svg
xmlns="http://www.w3.org/2000/svg"
className="svg-bg"
preserveAspectRatio="none"
viewBox="0 0 583 95"
>
<polygon
className="fill-default"
points="0,52 583,95 0,95"
/>
<polygon
className="fill-default"
opacity=".2"
points="0,42 583,95 683,0 0,95"
/>
</svg>
<h4 className="display-3 font-weight-bold text-white">
Design System
</h4>
<p className="lead text-italic text-white">
The Arctic Ocean freezes every winter and much of the
sea-ice then thaws every summer, and that process will
continue whatever happens.
</p>
</blockquote>
</Card>
</Col>
<Col md="6">
<div className="pl-md-5">
<div className="icon icon-lg icon-shape icon-shape-warning shadow rounded-circle mb-5">
<i className="ni ni-settings" />
</div>
<h3>301 PROJECT</h3>
<p className="lead">
Don't let your uses guess by attaching tooltips and
popoves to any element. Just make sure you enable them
first via JavaScript.
</p>
<p>
The kit comes with three pre-built pages to help you get
started faster. You can change the text and images and
you're good to go.
</p>
<p>
The kit comes with three pre-built pages to help you get
started faster. You can change the text and images and
you're good to go.
</p>
<a
className="font-weight-bold text-warning mt-5"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
A beautiful UI Kit for impactful websites
</a>
</div>
</Col>
</Row>
</Container>
</section>
<section className="section pb-0 bg-gradient-warning">
<Container>
<Row className="row-grid align-items-center">
<Col className="order-lg-2 ml-lg-auto" md="6">
<div className="position-relative pl-md-5">
<img
alt="..."
className="img-center img-fluid"
src={ill2}
/>
</div>
</Col>
<Col className="order-lg-1" lg="6">
<div className="d-flex px-3">
<div>
<div className="icon icon-lg icon-shape bg-gradient-white shadow rounded-circle text-primary">
<i className="ni ni-building text-primary" />
</div>
</div>
<div className="pl-4">
<h4 className="display-3 text-white">401 PROJECT</h4>
<p className="text-white">
The Arctic Ocean freezes every winter and much of the
sea-ice then thaws every summer, and that process will
continue whatever.
</p>
</div>
</div>
<Card className="shadow shadow-lg--hover mt-5">
<CardBody>
<div className="d-flex px-3">
<div>
<div className="icon icon-shape bg-gradient-success rounded-circle text-white">
<i className="ni ni-satisfied" />
</div>
</div>
<div className="pl-4">
<h5 className="title text-success">
Awesome Support
</h5>
<p>
The Arctic Ocean freezes every winter and much of
the sea-ice then thaws every summer, and that
process will continue whatever.
</p>
<a
className="text-success"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
Learn more
</a>
</div>
</div>
</CardBody>
</Card>
<Card className="shadow shadow-lg--hover mt-5">
<CardBody>
<div className="d-flex px-3">
<div>
<div className="icon icon-shape bg-gradient-warning rounded-circle text-white">
<i className="ni ni-active-40" />
</div>
</div>
<div className="pl-4">
<h5 className="title text-warning">
Modular Components
</h5>
<p>
The Arctic Ocean freezes every winter and much of
the sea-ice then thaws every summer, and that
process will continue whatever.
</p>
<a
className="text-warning"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
Learn more
</a>
</div>
</div>
</CardBody>
</Card>
</Col>
</Row>
</Container>
{/* SVG separator */}
<div className="separator separator-bottom separator-skew zindex-100">
<svg
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
version="1.1"
viewBox="0 0 2560 100"
x="0"
y="0"
>
<polygon
className="fill-white"
points="2560 0 2560 100 0 100"
/>
</svg>
</div>
</section>
{/* <section className="section section-lg">
<Container>
<Row className="justify-content-center text-center mb-lg">
<Col lg="8">
<h2 className="display-3">The amazing Team</h2>
<p className="lead text-muted">
According to the National Oceanic and Atmospheric
Administration, Ted, Scambos, NSIDClead scentist, puts the
potentially record maximum.
</p>
</Col>
</Row>
<Row>
<Col className="mb-5 mb-lg-0" lg="3" md="6">
<div className="px-4">
<img
alt="..."
className="rounded-circle img-center img-fluid shadow shadow-lg--hover"
src={team1}
style={{ width: "200px" }}
/>
<div className="pt-4 text-center">
<h5 className="title">
<span className="d-block mb-1">Ryan Tompson</span>
<small className="h6 text-muted">Web Developer</small>
</h5>
<div className="mt-3">
<Button
className="btn-icon-only rounded-circle"
color="warning"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-twitter" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="warning"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-facebook" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="warning"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-dribbble" />
</Button>
</div>
</div>
</div>
</Col>
<Col className="mb-5 mb-lg-0" lg="3" md="6">
<div className="px-4">
<img
alt="..."
className="rounded-circle img-center img-fluid shadow shadow-lg--hover"
src={team2}
style={{ width: "200px" }}
/>
<div className="pt-4 text-center">
<h5 className="title">
<span className="d-block mb-1">Romina Hadid</span>
<small className="h6 text-muted">
Marketing Strategist
</small>
</h5>
<div className="mt-3">
<Button
className="btn-icon-only rounded-circle"
color="primary"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-twitter" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="primary"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-facebook" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="primary"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-dribbble" />
</Button>
</div>
</div>
</div>
</Col>
<Col className="mb-5 mb-lg-0" lg="3" md="6">
<div className="px-4">
<img
alt="..."
className="rounded-circle img-center img-fluid shadow shadow-lg--hover"
src={team3}
style={{ width: "200px" }}
/>
<div className="pt-4 text-center">
<h5 className="title">
<span className="d-block mb-1">Alexander Smith</span>
<small className="h6 text-muted">UI/UX Designer</small>
</h5>
<div className="mt-3">
<Button
className="btn-icon-only rounded-circle"
color="info"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-twitter" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="info"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-facebook" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="info"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-dribbble" />
</Button>
</div>
</div>
</div>
</Col>
<Col className="mb-5 mb-lg-0" lg="3" md="6">
<div className="px-4">
<img
alt="..."
className="rounded-circle img-center img-fluid shadow shadow-lg--hover"
src={team4}
style={{ width: "200px" }}
/>
<div className="pt-4 text-center">
<h5 className="title">
<span className="d-block mb-1">John Doe</span>
<small className="h6 text-muted">Founder and CEO</small>
</h5>
<div className="mt-3">
<Button
className="btn-icon-only rounded-circle"
color="success"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-twitter" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="success"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-facebook" />
</Button>
<Button
className="btn-icon-only rounded-circle ml-1"
color="success"
href="#pablo"
onClick={(e) => e.preventDefault()}
>
<i className="fa fa-dribbble" />
</Button>
</div>
</div>
</div>
</Col>
</Row>
</Container>
</section> */}
<section className="section section-lg pt-0">
<Container>
<Card className="bg-gradient-warning shadow-lg border-0">
<div className="p-5">
<Row className="align-items-center">
<Col lg="8">
<h3 className="text-white">
We made website building easier for you.
</h3>
<p className="lead text-white mt-3">
I will be the leader of a company that ends up being
worth billions of dollars, because I got the answers. I
understand culture.
</p>
</Col>
<Col className="ml-lg-auto" lg="3">
{/* <Button
block
className="btn-white"
color="default"
href="https://www.creative-tim.com/product/argon-design-system-react?ref=adsr-landing-page"
size="lg"
>
Download React
</Button> */}
</Col>
</Row>
</div>
</Card>
</Container>
</section>
<section className="section section-lg bg-gradient-default">
<Container className="pt-lg pb-300">
<Row className="text-center justify-content-center">
<Col lg="10">
<h2 className="display-3 text-white">Skills </h2>
<p className="lead text-white">
According to the National Oceanic and Atmospheric
Administration, Ted, Scambos, NSIDClead scentist, puts the
potentially record low maximum sea ice extent tihs year down
to low ice.
</p>
</Col>
</Row>
<Row className="row-grid mt-5">
<Col lg="4">
<div className="icon icon-lg icon-shape bg-gradient-white shadow rounded-circle text-primary">
<i className="ni ni-settings text-primary" />
</div>
<h5 className="text-white mt-3">Building tools</h5>
<p className="text-white mt-3">
Some quick example text to build on the card title and make
up the bulk of the card's content.
</p>
</Col>
<Col lg="4">
<div className="icon icon-lg icon-shape bg-gradient-white shadow rounded-circle text-primary">
<i className="ni ni-ruler-pencil text-primary" />
</div>
<h5 className="text-white mt-3">Grow your market</h5>
<p className="text-white mt-3">
Some quick example text to build on the card title and make
up the bulk of the card's content.
</p>
</Col>
<Col lg="4">
<div className="icon icon-lg icon-shape bg-gradient-white shadow rounded-circle text-primary">
<i className="ni ni-atom text-primary" />
</div>
<h5 className="text-white mt-3">Launch time</h5>
<p className="text-white mt-3">
Some quick example text to build on the card title and make
up the bulk of the card's content.
</p>
</Col>
</Row>
</Container>
{/* SVG separator */}
<div className="separator separator-bottom separator-skew zindex-100">
<svg
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="none"
version="1.1"
viewBox="0 0 2560 100"
x="0"
y="0"
>
<polygon
className="fill-white"
points="2560 0 2560 100 0 100"
/>
</svg>
</div>
</section>
{/* <section className="section section-lg pt-lg-0 section-contact-us">
<Container>
<Row className="justify-content-center mt--300">
<Col lg="8">
<Card className="bg-gradient-secondary shadow">
<CardBody className="p-lg-5">
<h4 className="mb-1">Want to work with us?</h4>
<p className="mt-0">
Your project is very important to us.
</p>
<FormGroup
className={classnames("mt-5", {
focused: this.state.nameFocused,
})}
>
<InputGroup className="input-group-alternative">
<InputGroupAddon addonType="prepend">
<InputGroupText>
<i className="ni ni-user-run" />
</InputGroupText>
</InputGroupAddon>
<Input
placeholder="Your name"
type="text"
onFocus={() => this.setState({ nameFocused: true })}
onBlur={() => this.setState({ nameFocused: false })}
/>
</InputGroup>
</FormGroup>
<FormGroup
className={classnames({
focused: this.state.emailFocused,
})}
>
<InputGroup className="input-group-alternative">
<InputGroupAddon addonType="prepend">
<InputGroupText>
<i className="ni ni-email-83" />
</InputGroupText>
</InputGroupAddon>
<Input
placeholder="Email address"
type="email"
onFocus={() =>
this.setState({ emailFocused: true })
}
onBlur={() =>
this.setState({ emailFocused: false })
}
/>
</InputGroup>
</FormGroup>
<FormGroup className="mb-4">
<Input
className="form-control-alternative"
cols="80"
name="name"
placeholder="Type a message..."
rows="4"
type="textarea"
/>
</FormGroup>
<div>
<Button
block
className="btn-round"
color="default"
size="lg"
type="button"
>
Send Message
</Button>
</div>
</CardBody>
</Card>
</Col>
</Row>
</Container>
</section> */}
{/* <Download /> */}
</main>
</>
);
}
}
export default Landing;
|
from django.apps import AppConfig
class AvdbConfig(AppConfig):
name = 'avdb'
|
# Copyright (c) 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Copyright (c) 2016-2017 Wind River Systems, Inc.
#
"""Tests for resource tracker claims."""
import uuid
import mock
from nova.compute import claims
from nova import context
from nova import exception
from nova import objects
from nova.pci import manager as pci_manager
from nova import test
from nova.tests.unit import fake_instance
from nova.tests.unit.pci import fakes as pci_fakes
_NODENAME = 'fake-node'
class FakeResourceHandler(object):
test_called = False
usage_is_instance = False
def test_resources(self, usage, limits):
self.test_called = True
self.usage_is_itype = usage.get('name') == 'fakeitype'
return []
class DummyTracker(object):
icalled = False
rcalled = False
def __init__(self):
self.new_pci_tracker()
def abort_instance_claim(self, *args, **kwargs):
self.icalled = True
def drop_move_claim(self, *args, **kwargs):
self.rcalled = True
def new_pci_tracker(self):
ctxt = context.RequestContext('testuser', 'testproject')
self.pci_tracker = pci_manager.PciDevTracker(ctxt)
def normalized_vcpus(self, usage, nodename):
retval = usage.get('vcpus', 0)
return retval
class ClaimTestCase(test.NoDBTestCase):
def setUp(self):
super(ClaimTestCase, self).setUp()
self.context = context.RequestContext('fake-user', 'fake-project')
self.instance = None
self.resources = self._fake_resources()
self.tracker = DummyTracker()
self.empty_requests = objects.InstancePCIRequests(
requests=[]
)
def _claim(self, limits=None, overhead=None, requests=None, **kwargs):
numa_topology = kwargs.pop('numa_topology', None)
instance = self._fake_instance(**kwargs)
instance.flavor = self._fake_instance_type(**kwargs)
if numa_topology:
db_numa_topology = {
'id': 1, 'created_at': None, 'updated_at': None,
'deleted_at': None, 'deleted': None,
'instance_uuid': instance.uuid,
'numa_topology': numa_topology._to_json(),
'pci_requests': (requests or self.empty_requests).to_json()
}
else:
db_numa_topology = None
if overhead is None:
overhead = {'memory_mb': 0}
requests = requests or self.empty_requests
@mock.patch('nova.db.instance_extra_get_by_instance_uuid',
return_value=db_numa_topology)
def get_claim(mock_extra_get):
return claims.Claim(self.context, instance, _NODENAME,
self.tracker, self.resources, requests,
overhead=overhead, limits=limits)
return get_claim()
def _fake_instance(self, **kwargs):
instance = {
'uuid': str(uuid.uuid1()),
'memory_mb': 1024,
'root_gb': 10,
'ephemeral_gb': 5,
'vcpus': 1,
'system_metadata': {},
'numa_topology': None
}
instance.update(**kwargs)
return fake_instance.fake_instance_obj(self.context, **instance)
def _fake_instance_type(self, **kwargs):
instance_type = {
'id': 1,
'name': 'fakeitype',
'memory_mb': 1024,
'vcpus': 1,
'root_gb': 10,
'ephemeral_gb': 5,
'extra_specs': {}
}
instance_type.update(**kwargs)
return objects.Flavor(**instance_type)
def _fake_resources(self, values=None):
resources = {
'hypervisor_type': 'fake',
'memory_mb': 2048,
'memory_mb_used': 0,
'free_ram_mb': 2048,
'local_gb': 20,
'local_gb_used': 0,
'free_disk_gb': 20,
'vcpus': 2,
'vcpus_used': 0,
'l3_closids': 16,
'l3_closids_used': 1,
'numa_topology': objects.NUMATopology(
cells=[objects.NUMACell(id=1, cpuset=set([1, 2]), memory=512,
memory_usage=0, cpu_usage=0,
mempages=[], siblings=[],
pinned_cpus=set([])),
objects.NUMACell(id=2, cpuset=set([3, 4]), memory=512,
memory_usage=0, cpu_usage=0,
mempages=[], siblings=[],
pinned_cpus=set([]))]
)._to_json()
}
if values:
resources.update(values)
return objects.ComputeNode(**resources)
def test_memory_unlimited(self):
self._claim(memory_mb=99999999)
def test_disk_unlimited_root(self):
self._claim(root_gb=999999)
def test_disk_unlimited_ephemeral(self):
self._claim(ephemeral_gb=999999)
def test_memory_with_overhead(self):
overhead = {'memory_mb': 8}
limits = {'memory_mb': 2048}
self._claim(memory_mb=2040, limits=limits,
overhead=overhead)
def test_memory_with_overhead_insufficient(self):
overhead = {'memory_mb': 9}
limits = {'memory_mb': 2048}
self.assertRaises(exception.ComputeResourcesUnavailable,
self._claim, limits=limits, overhead=overhead,
memory_mb=2040)
def test_memory_oversubscription(self):
self._claim(memory_mb=4096)
def test_disk_with_overhead(self):
overhead = {'memory_mb': 0,
'disk_gb': 1}
limits = {'disk_gb': 100}
claim_obj = self._claim(root_gb=99, ephemeral_gb=0, limits=limits,
overhead=overhead)
self.assertEqual(100, claim_obj.disk_gb)
def test_disk_with_overhead_insufficient(self):
overhead = {'memory_mb': 0,
'disk_gb': 2}
limits = {'disk_gb': 100}
self.assertRaises(exception.ComputeResourcesUnavailable,
self._claim, limits=limits, overhead=overhead,
root_gb=99, ephemeral_gb=0)
def test_disk_with_overhead_insufficient_no_root(self):
overhead = {'memory_mb': 0,
'disk_gb': 2}
limits = {'disk_gb': 1}
self.assertRaises(exception.ComputeResourcesUnavailable,
self._claim, limits=limits, overhead=overhead,
root_gb=0, ephemeral_gb=0)
def test_memory_insufficient(self):
limits = {'memory_mb': 8192}
self.assertRaises(exception.ComputeResourcesUnavailable,
self._claim, limits=limits, memory_mb=16384)
def test_disk_oversubscription(self):
limits = {'disk_gb': 60}
self._claim(root_gb=10, ephemeral_gb=40,
limits=limits)
def test_disk_insufficient(self):
limits = {'disk_gb': 45}
self.assertRaisesRegex(
exception.ComputeResourcesUnavailable,
"disk",
self._claim, limits=limits, root_gb=10, ephemeral_gb=40)
def test_disk_and_memory_insufficient(self):
limits = {'disk_gb': 45, 'memory_mb': 8192}
self.assertRaisesRegex(
exception.ComputeResourcesUnavailable,
"memory.*disk",
self._claim, limits=limits, root_gb=10, ephemeral_gb=40,
memory_mb=16384)
@mock.patch('nova.pci.stats.PciDeviceStats.support_requests',
return_value=True)
def test_pci_pass(self, mock_pci_supports_requests):
request = objects.InstancePCIRequest(count=1,
spec=[{'vendor_id': 'v', 'product_id': 'p'}])
requests = objects.InstancePCIRequests(requests=[request])
self._claim(requests=requests)
mock_pci_supports_requests.assert_called_once_with([request])
@mock.patch('nova.pci.stats.PciDeviceStats.support_requests',
return_value=False)
def test_pci_fail(self, mock_pci_supports_requests):
request = objects.InstancePCIRequest(count=1,
spec=[{'vendor_id': 'v', 'product_id': 'p'}])
requests = objects.InstancePCIRequests(requests=[request])
self.assertRaisesRegex(
exception.ComputeResourcesUnavailable,
'Claim pci failed.',
self._claim, requests=requests)
mock_pci_supports_requests.assert_called_once_with([request])
@mock.patch('nova.pci.stats.PciDeviceStats.support_requests')
def test_pci_pass_no_requests(self, mock_pci_supports_requests):
self._claim()
self.assertFalse(mock_pci_supports_requests.called)
def test_numa_topology_no_limit(self):
huge_instance = objects.InstanceNUMATopology(
cells=[objects.InstanceNUMACell(
id=1, cpuset=set([1, 2]), memory=512)])
self._claim(numa_topology=huge_instance)
def test_numa_topology_fails(self):
huge_instance = objects.InstanceNUMATopology(
cells=[objects.InstanceNUMACell(
id=1, cpuset=set([1, 2, 3, 4, 5]), memory=2048)])
limit_topo = objects.NUMATopologyLimits(
cpu_allocation_ratio=1, ram_allocation_ratio=1)
self.assertRaises(exception.ComputeResourcesUnavailable,
self._claim,
limits={'numa_topology': limit_topo},
numa_topology=huge_instance)
def test_numa_topology_passes(self):
huge_instance = objects.InstanceNUMATopology(
cells=[objects.InstanceNUMACell(
id=1, cpuset=set([1, 2]), memory=512)])
limit_topo = objects.NUMATopologyLimits(
cpu_allocation_ratio=1, ram_allocation_ratio=1)
self._claim(limits={'numa_topology': limit_topo},
numa_topology=huge_instance)
@pci_fakes.patch_pci_whitelist
@mock.patch('nova.objects.InstancePCIRequests.get_by_instance')
def test_numa_topology_with_pci(self, mock_get_by_instance):
dev_dict = {
'compute_node_id': 1,
'address': 'a',
'product_id': 'p',
'vendor_id': 'v',
'numa_node': 1,
'dev_type': 'type-PCI',
'parent_addr': 'a1',
'status': 'available'}
self.tracker.new_pci_tracker()
self.tracker.pci_tracker._set_hvdevs([dev_dict])
request = objects.InstancePCIRequest(count=1,
spec=[{'vendor_id': 'v', 'product_id': 'p'}])
requests = objects.InstancePCIRequests(requests=[request])
mock_get_by_instance.return_value = requests
huge_instance = objects.InstanceNUMATopology(
cells=[objects.InstanceNUMACell(
id=1, cpuset=set([1, 2]), memory=512)])
self._claim(requests=requests, numa_topology=huge_instance)
@pci_fakes.patch_pci_whitelist
@mock.patch('nova.objects.InstancePCIRequests.get_by_instance')
def test_numa_topology_with_pci_fail(self, mock_get_by_instance):
dev_dict = {
'compute_node_id': 1,
'address': 'a',
'product_id': 'p',
'vendor_id': 'v',
'numa_node': 1,
'dev_type': 'type-PCI',
'parent_addr': 'a1',
'status': 'available'}
dev_dict2 = {
'compute_node_id': 1,
'address': 'a',
'product_id': 'p',
'vendor_id': 'v',
'numa_node': 2,
'dev_type': 'type-PCI',
'parent_addr': 'a1',
'status': 'available'}
self.tracker.new_pci_tracker()
self.tracker.pci_tracker._set_hvdevs([dev_dict, dev_dict2])
request = objects.InstancePCIRequest(count=2,
spec=[{'vendor_id': 'v', 'product_id': 'p'}])
requests = objects.InstancePCIRequests(requests=[request])
mock_get_by_instance.return_value = requests
huge_instance = objects.InstanceNUMATopology(
cells=[objects.InstanceNUMACell(
id=1, cpuset=set([1, 2]), memory=512)])
self.assertRaises(exception.ComputeResourcesUnavailable,
self._claim,
requests=requests,
numa_topology=huge_instance)
@pci_fakes.patch_pci_whitelist
@mock.patch('nova.objects.InstancePCIRequests.get_by_instance')
def test_numa_topology_with_pci_no_numa_info(self, mock_get_by_instance):
dev_dict = {
'compute_node_id': 1,
'address': 'a',
'product_id': 'p',
'vendor_id': 'v',
'numa_node': None,
'dev_type': 'type-PCI',
'parent_addr': 'a1',
'status': 'available'}
self.tracker.new_pci_tracker()
self.tracker.pci_tracker._set_hvdevs([dev_dict])
request = objects.InstancePCIRequest(count=1,
spec=[{'vendor_id': 'v', 'product_id': 'p'}])
requests = objects.InstancePCIRequests(requests=[request])
mock_get_by_instance.return_value = requests
huge_instance = objects.InstanceNUMATopology(
cells=[objects.InstanceNUMACell(
id=1, cpuset=set([1, 2]), memory=512)])
self._claim(requests=requests, numa_topology=huge_instance)
def test_abort(self):
claim = self._abort()
self.assertTrue(claim.tracker.icalled)
def _abort(self):
claim = None
try:
with self._claim(memory_mb=4096) as claim:
raise test.TestingException("abort")
except test.TestingException:
pass
return claim
class MoveClaimTestCase(ClaimTestCase):
def _claim(self, limits=None, overhead=None, requests=None,
image_meta=None, **kwargs):
instance_type = self._fake_instance_type(**kwargs)
numa_topology = kwargs.pop('numa_topology', None)
image_meta = image_meta or {}
self.instance = self._fake_instance(**kwargs)
self.instance.numa_topology = None
if numa_topology:
self.db_numa_topology = {
'id': 1, 'created_at': None, 'updated_at': None,
'deleted_at': None, 'deleted': None,
'instance_uuid': self.instance.uuid,
'numa_topology': numa_topology._to_json(),
'pci_requests': (requests or self.empty_requests).to_json()
}
else:
self.db_numa_topology = None
if overhead is None:
overhead = {'memory_mb': 0}
requests = requests or self.empty_requests
@mock.patch('nova.virt.hardware.numa_get_constraints',
return_value=numa_topology)
@mock.patch('nova.db.instance_extra_get_by_instance_uuid',
return_value=self.db_numa_topology)
def get_claim(mock_extra_get, mock_numa_get):
return claims.MoveClaim(self.context, self.instance, _NODENAME,
instance_type, image_meta, self.tracker,
self.resources, requests,
overhead=overhead, limits=limits)
return get_claim()
@mock.patch('nova.objects.Instance.drop_migration_context')
def test_abort(self, mock_drop):
claim = self._abort()
self.assertTrue(claim.tracker.rcalled)
mock_drop.assert_called_once_with()
def test_image_meta(self):
claim = self._claim()
self.assertIsInstance(claim.image_meta, objects.ImageMeta)
def test_image_meta_object_passed(self):
image_meta = objects.ImageMeta()
claim = self._claim(image_meta=image_meta)
self.assertIsInstance(claim.image_meta, objects.ImageMeta)
|
/* ==========================================================================
* ./src/shared/actions/blurbs.js
*
* Blurbs Actions
* ========================================================================== */
import { getBlurbs } from 'src/shared/api/blurbs';
export const GET_BLURBS = 'GET_BLURBS';
export function fetchBlurbs() {
const promise = getBlurbs();
return {
type: GET_BLURBS,
promise
};
}
|
module.exports = async (req,res,next) => {
const { role } = req
// console.log(`time period middleware`,req)
//set values for freePeriod/paidPeriod in milliseconds
const freePeriod = Number(604800000)
const paidPeriod = Number(63072000000)
if (role === 'freeUser'){
req.allowableTimePeriod = freePeriod
next()
} else if (role === 'paidUser' || role === 'admin') {
req.allowableTimePeriod = freePeriod
next()
} else if (role === undefined || role === null){
req.allowableTimePeriod = freePeriod
next()
}
}
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2007, 2012 Red Hat, Inc
# Michael DeHaan <michael.dehaan@gmail.com>
# Seth Vidal <skvidal@fedoraproject.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: virt
short_description: Manages virtual machines supported by libvirt
description:
- Manages virtual machines supported by I(libvirt).
options:
name:
description:
- name of the guest VM being managed. Note that VM must be previously
defined with xml.
- This option is required unless I(command) is C(list_vms) or C(info).
type: str
aliases:
- guest
state:
description:
- Note that there may be some lag for state requests like C(shutdown)
since these refer only to VM states. After starting a guest, it may not
be immediately accessible.
state and command are mutually exclusive except when command=list_vms. In
this case all VMs in specified state will be listed.
choices: [ destroyed, paused, running, shutdown ]
type: str
command:
description:
- In addition to state management, various non-idempotent commands are available.
choices: [ create, define, destroy, freemem, get_xml, info, list_vms, nodeinfo, pause, shutdown, start, status, stop, undefine, unpause, virttype ]
type: str
autostart:
description:
- start VM at host startup.
type: bool
uri:
description:
- libvirt connection uri.
default: qemu:///system
type: str
xml:
description:
- XML document used with the define command.
- Must be raw XML content using C(lookup). XML cannot be reference to a file.
type: str
requirements:
- python >= 2.6
- libvirt-python
author:
- Ansible Core Team
- Michael DeHaan
- Seth Vidal (@skvidal)
'''
EXAMPLES = '''
# a playbook task line:
- community.libvirt.virt:
name: alpha
state: running
# /usr/bin/ansible invocations
# ansible host -m virt -a "name=alpha command=status"
# ansible host -m virt -a "name=alpha command=get_xml"
# ansible host -m virt -a "name=alpha command=create uri=lxc:///"
# defining and launching an LXC guest
- name: define vm
community.libvirt.virt:
command: define
xml: "{{ lookup('template', 'container-template.xml.j2') }}"
uri: 'lxc:///'
- name: start vm
community.libvirt.virt:
name: foo
state: running
uri: 'lxc:///'
# setting autostart on a qemu VM (default uri)
- name: set autostart for a VM
community.libvirt.virt:
name: foo
autostart: yes
# Defining a VM and making is autostart with host. VM will be off after this task
- name: define vm from xml and set autostart
community.libvirt.virt:
command: define
xml: "{{ lookup('template', 'vm_template.xml.j2') }}"
autostart: yes
# Listing VMs
- name: list all VMs
community.libvirt.virt:
command: list_vms
register: all_vms
- name: list only running VMs
community.libvirt.virt:
command: list_vms
state: running
register: running_vms
'''
RETURN = '''
# for list_vms command
list_vms:
description: The list of vms defined on the remote system
type: list
returned: success
sample: [
"build.example.org",
"dev.example.org"
]
# for status command
status:
description: The status of the VM, among running, crashed, paused and shutdown
type: str
sample: "success"
returned: success
'''
import traceback
try:
import libvirt
from libvirt import libvirtError
except ImportError:
HAS_VIRT = False
else:
HAS_VIRT = True
import re
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_native
VIRT_FAILED = 1
VIRT_SUCCESS = 0
VIRT_UNAVAILABLE = 2
ALL_COMMANDS = []
VM_COMMANDS = ['create', 'define', 'destroy', 'get_xml', 'pause', 'shutdown', 'status', 'start', 'stop', 'undefine', 'unpause']
HOST_COMMANDS = ['freemem', 'info', 'list_vms', 'nodeinfo', 'virttype']
ALL_COMMANDS.extend(VM_COMMANDS)
ALL_COMMANDS.extend(HOST_COMMANDS)
VIRT_STATE_NAME_MAP = {
0: 'running',
1: 'running',
2: 'running',
3: 'paused',
4: 'shutdown',
5: 'shutdown',
6: 'crashed',
}
class VMNotFound(Exception):
pass
class LibvirtConnection(object):
def __init__(self, uri, module):
self.module = module
cmd = "uname -r"
rc, stdout, stderr = self.module.run_command(cmd)
if "xen" in stdout:
conn = libvirt.open(None)
elif "esx" in uri:
auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_NOECHOPROMPT], [], None]
conn = libvirt.openAuth(uri, auth)
else:
conn = libvirt.open(uri)
if not conn:
raise Exception("hypervisor connection failure")
self.conn = conn
def find_vm(self, vmid):
"""
Extra bonus feature: vmid = -1 returns a list of everything
"""
conn = self.conn
vms = []
# this block of code borrowed from virt-manager:
# get working domain's name
ids = conn.listDomainsID()
for id in ids:
vm = conn.lookupByID(id)
vms.append(vm)
# get defined domain
names = conn.listDefinedDomains()
for name in names:
vm = conn.lookupByName(name)
vms.append(vm)
if vmid == -1:
return vms
for vm in vms:
if vm.name() == vmid:
return vm
raise VMNotFound("virtual machine %s not found" % vmid)
def shutdown(self, vmid):
return self.find_vm(vmid).shutdown()
def pause(self, vmid):
return self.suspend(vmid)
def unpause(self, vmid):
return self.resume(vmid)
def suspend(self, vmid):
return self.find_vm(vmid).suspend()
def resume(self, vmid):
return self.find_vm(vmid).resume()
def create(self, vmid):
return self.find_vm(vmid).create()
def destroy(self, vmid):
return self.find_vm(vmid).destroy()
def undefine(self, vmid):
return self.find_vm(vmid).undefine()
def get_status2(self, vm):
state = vm.info()[0]
return VIRT_STATE_NAME_MAP.get(state, "unknown")
def get_status(self, vmid):
state = self.find_vm(vmid).info()[0]
return VIRT_STATE_NAME_MAP.get(state, "unknown")
def nodeinfo(self):
return self.conn.getInfo()
def get_type(self):
return self.conn.getType()
def get_xml(self, vmid):
vm = self.conn.lookupByName(vmid)
return vm.XMLDesc(0)
def get_maxVcpus(self, vmid):
vm = self.conn.lookupByName(vmid)
return vm.maxVcpus()
def get_maxMemory(self, vmid):
vm = self.conn.lookupByName(vmid)
return vm.maxMemory()
def getFreeMemory(self):
return self.conn.getFreeMemory()
def get_autostart(self, vmid):
vm = self.conn.lookupByName(vmid)
return vm.autostart()
def set_autostart(self, vmid, val):
vm = self.conn.lookupByName(vmid)
return vm.setAutostart(val)
def define_from_xml(self, xml):
return self.conn.defineXML(xml)
class Virt(object):
def __init__(self, uri, module):
self.module = module
self.uri = uri
def __get_conn(self):
self.conn = LibvirtConnection(self.uri, self.module)
return self.conn
def get_vm(self, vmid):
self.__get_conn()
return self.conn.find_vm(vmid)
def state(self):
vms = self.list_vms()
state = []
for vm in vms:
state_blurb = self.conn.get_status(vm)
state.append("%s %s" % (vm, state_blurb))
return state
def info(self):
vms = self.list_vms()
info = dict()
for vm in vms:
data = self.conn.find_vm(vm).info()
# libvirt returns maxMem, memory, and cpuTime as long()'s, which
# xmlrpclib tries to convert to regular int's during serialization.
# This throws exceptions, so convert them to strings here and
# assume the other end of the xmlrpc connection can figure things
# out or doesn't care.
info[vm] = dict(
state=VIRT_STATE_NAME_MAP.get(data[0], "unknown"),
maxMem=str(data[1]),
memory=str(data[2]),
nrVirtCpu=data[3],
cpuTime=str(data[4]),
autostart=self.conn.get_autostart(vm),
)
return info
def nodeinfo(self):
self.__get_conn()
data = self.conn.nodeinfo()
info = dict(
cpumodel=str(data[0]),
phymemory=str(data[1]),
cpus=str(data[2]),
cpumhz=str(data[3]),
numanodes=str(data[4]),
sockets=str(data[5]),
cpucores=str(data[6]),
cputhreads=str(data[7])
)
return info
def list_vms(self, state=None):
self.conn = self.__get_conn()
vms = self.conn.find_vm(-1)
results = []
for x in vms:
try:
if state:
vmstate = self.conn.get_status2(x)
if vmstate == state:
results.append(x.name())
else:
results.append(x.name())
except Exception:
pass
return results
def virttype(self):
return self.__get_conn().get_type()
def autostart(self, vmid, as_flag):
self.conn = self.__get_conn()
# Change autostart flag only if needed
if self.conn.get_autostart(vmid) != as_flag:
self.conn.set_autostart(vmid, as_flag)
return True
return False
def freemem(self):
self.conn = self.__get_conn()
return self.conn.getFreeMemory()
def shutdown(self, vmid):
""" Make the machine with the given vmid stop running. Whatever that takes. """
self.__get_conn()
self.conn.shutdown(vmid)
return 0
def pause(self, vmid):
""" Pause the machine with the given vmid. """
self.__get_conn()
return self.conn.suspend(vmid)
def unpause(self, vmid):
""" Unpause the machine with the given vmid. """
self.__get_conn()
return self.conn.resume(vmid)
def create(self, vmid):
""" Start the machine via the given vmid """
self.__get_conn()
return self.conn.create(vmid)
def start(self, vmid):
""" Start the machine via the given id/name """
self.__get_conn()
return self.conn.create(vmid)
def destroy(self, vmid):
""" Pull the virtual power from the virtual domain, giving it virtually no time to virtually shut down. """
self.__get_conn()
return self.conn.destroy(vmid)
def undefine(self, vmid):
""" Stop a domain, and then wipe it from the face of the earth. (delete disk/config file) """
self.__get_conn()
return self.conn.undefine(vmid)
def status(self, vmid):
"""
Return a state suitable for server consumption. Aka, codes.py values, not XM output.
"""
self.__get_conn()
return self.conn.get_status(vmid)
def get_xml(self, vmid):
"""
Receive a Vm id as input
Return an xml describing vm config returned by a libvirt call
"""
self.__get_conn()
return self.conn.get_xml(vmid)
def get_maxVcpus(self, vmid):
"""
Gets the max number of VCPUs on a guest
"""
self.__get_conn()
return self.conn.get_maxVcpus(vmid)
def get_max_memory(self, vmid):
"""
Gets the max memory on a guest
"""
self.__get_conn()
return self.conn.get_MaxMemory(vmid)
def define(self, xml):
"""
Define a guest with the given xml
"""
self.__get_conn()
return self.conn.define_from_xml(xml)
def core(module):
state = module.params.get('state', None)
autostart = module.params.get('autostart', None)
guest = module.params.get('name', None)
command = module.params.get('command', None)
uri = module.params.get('uri', None)
xml = module.params.get('xml', None)
v = Virt(uri, module)
res = dict()
if state and command == 'list_vms':
res = v.list_vms(state=state)
if not isinstance(res, dict):
res = {command: res}
return VIRT_SUCCESS, res
if autostart is not None and command != 'define':
if not guest:
module.fail_json(msg="autostart requires 1 argument: name")
try:
v.get_vm(guest)
except VMNotFound:
module.fail_json(msg="domain %s not found" % guest)
res['changed'] = v.autostart(guest, autostart)
if not command and not state:
return VIRT_SUCCESS, res
if state:
if not guest:
module.fail_json(msg="state change requires a guest specified")
if state == 'running':
if v.status(guest) == 'paused':
res['changed'] = True
res['msg'] = v.unpause(guest)
elif v.status(guest) != 'running':
res['changed'] = True
res['msg'] = v.start(guest)
elif state == 'shutdown':
if v.status(guest) != 'shutdown':
res['changed'] = True
res['msg'] = v.shutdown(guest)
elif state == 'destroyed':
if v.status(guest) != 'shutdown':
res['changed'] = True
res['msg'] = v.destroy(guest)
elif state == 'paused':
if v.status(guest) == 'running':
res['changed'] = True
res['msg'] = v.pause(guest)
else:
module.fail_json(msg="unexpected state")
return VIRT_SUCCESS, res
if command:
if command in VM_COMMANDS:
if command == 'define':
if not xml:
module.fail_json(msg="define requires xml argument")
if guest:
# there might be a mismatch between quest 'name' in the module and in the xml
module.warn("'xml' is given - ignoring 'name'")
found_name = re.search('<name>(.*)</name>', xml).groups()
if found_name:
domain_name = found_name[0]
else:
module.fail_json(msg="Could not find domain 'name' in xml")
# From libvirt docs (https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDefineXML):
# -- A previous definition for this domain would be overridden if it already exists.
#
# In real world testing with libvirt versions 1.2.17-13, 2.0.0-10 and 3.9.0-14
# on qemu and lxc domains results in:
# operation failed: domain '<name>' already exists with <uuid>
#
# In case a domain would be indeed overwritten, we should protect idempotency:
try:
existing_domain = v.get_vm(domain_name)
except VMNotFound:
existing_domain = None
try:
domain = v.define(xml)
if existing_domain:
# if we are here, then libvirt redefined existing domain as the doc promised
if existing_domain.XMLDesc() != domain.XMLDesc():
res = {'changed': True, 'change_reason': 'config changed'}
else:
res = {'changed': True, 'created': domain.name()}
except libvirtError as e:
if e.get_error_code() != 9: # 9 means 'domain already exists' error
module.fail_json(msg='libvirtError: %s' % e.message)
if autostart is not None and v.autostart(domain_name, autostart):
res = {'changed': True, 'change_reason': 'autostart'}
elif not guest:
module.fail_json(msg="%s requires 1 argument: guest" % command)
else:
res = getattr(v, command)(guest)
if not isinstance(res, dict):
res = {command: res}
return VIRT_SUCCESS, res
elif hasattr(v, command):
res = getattr(v, command)()
if not isinstance(res, dict):
res = {command: res}
return VIRT_SUCCESS, res
else:
module.fail_json(msg="Command %s not recognized" % command)
module.fail_json(msg="expected state or command parameter to be specified")
def main():
module = AnsibleModule(
argument_spec=dict(
name=dict(type='str', aliases=['guest']),
state=dict(type='str', choices=['destroyed', 'paused', 'running', 'shutdown']),
autostart=dict(type='bool'),
command=dict(type='str', choices=ALL_COMMANDS),
uri=dict(type='str', default='qemu:///system'),
xml=dict(type='str'),
),
)
if not HAS_VIRT:
module.fail_json(msg='The `libvirt` module is not importable. Check the requirements.')
rc = VIRT_SUCCESS
try:
rc, result = core(module)
except Exception as e:
module.fail_json(msg=to_native(e), exception=traceback.format_exc())
if rc != 0: # something went wrong emit the msg
module.fail_json(rc=rc, msg=result)
else:
module.exit_json(**result)
if __name__ == '__main__':
main()
|
/*
* Copyright (C) 2013 salesforce.com, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
({
init: function(component, event, helper) {
var context = component.find("list");
component.set("v._context1", context[0]);
component.set("v._context2", context[1]);
component.set("v._context3", context[2]);
component.set("v._accessibilityComponent", component.find("accessibilityComponent").getGlobalId());
},
handleDrop: function(component, event, helper) {
$A.dragAndDropService.fireDropComplete(event, true);
},
handleDragEnd: function(component, event, helper) {
var dropComplete = $A.util.getBooleanValue(event.getParam("dropComplete"));
if (dropComplete) {
// Calculate index to be removed
var record = event.getParam("data");
var type = event.getParam("type");
var source = $A.dragAndDropService.getContext(event.getParam("dragComponent"));
var items = source.get("v.items");
if (type === "move") {
var removeIndex = -1;
for (var i = 0; i < items.length; i++) {
if (record === items[i]) {
removeIndex = i;
break;
}
}
var removeParams = {
"index": removeIndex,
"count": 1,
"remove": true
};
// Remove data transfer
$A.dragAndDropService.removeDataTransfer(event, removeParams);
}
// Add data transfer
var target = $A.dragAndDropService.getContext(event.getParam("dropComponent"));
var dataProvider = target.get("v.dataProvider[0]");
var onChangeEvent = dataProvider.getEvent("onchange");
onChangeEvent.setParams({
"data" : [event.getParam("data")]
});
onChangeEvent.fire();
}
}
})
|
// @flow
import R from 'ramda'
import parseFilter from '../parseFilter'
import getEntities from './getEntities'
import getPagingInfo from './getPagingInfo'
import getProjection from './getProjection'
import { appCode } from '../config'
const debug = require('debug')(`${appCode}:create-query`)
const mixedProjection = ({
source1, source2 }: {
source1: string[],
source2: any
}) => {
const result = {}
if (source1 === null || source1 === undefined || source1 === ' ') return source2
const keys = Object.keys(source2)
const fields1 = source1
keys.map((item) => {
if (fields1.indexOf(item) > -1 && source2[item] > 0) {
result[item] = 1
return item
}
return null
})
return result
}
/*
* Create Query Resolvers
*/
export default function createQuery({
Model,
overrideFilter,
filterFields = {},
populate = [],
checkAuthorization,
checkPermission,
}: {
Model: any,
overrideFilter?: { [key: string]: any } | Function,
filterFields?: FilterFields,
populate?: Array<string>,
checkAuthorization?: Function,
checkPermission?: Function,
} = {}): QueryExtractorFn {
return async (
obj: any,
args: { sort: string, page: number, limit: number, actionCode: string },
context,
info: any,
): Promise<QueryExtractorResult> => {
const {
sort, page = 1, limit = 20, ...filter
} = args
if (checkAuthorization) {
const error = await checkAuthorization({
parent: obj, args, context, info,
})
debug('checkAuthorization', { context, error })
if (error) return { error }
}
let _filterResult = { }
let _projectionResult = { }
let _errorResult = {}
if (checkPermission) {
const _resultCheckPermission = await checkPermission({
parent: obj, args, context, info,
})
_filterResult = _resultCheckPermission.filter || {}
_projectionResult = _resultCheckPermission.projection || {}
_errorResult = _resultCheckPermission.error || {}
}
let _overrideFilter = overrideFilter || {}
if (typeof _overrideFilter === 'function') {
_overrideFilter = await _overrideFilter(context)
}
const _mongoFilter = await parseFilter({
...filter,
}, filterFields)
// Merge MongoFilter parsed from query & override Filter
const mongoFilter = {
..._mongoFilter,
..._overrideFilter,
..._filterResult,
}
const projection = getProjection({ field: 'entities', info })
const mixProjection = mixedProjection({ source1: projection, source2: _projectionResult })
debug('projection', projection)
debug('populate', R.intersection(populate, projection))
const entities = await getEntities({
Model,
mongoFilter,
sort,
page,
limit,
projection: mixProjection,
populate,
})
const _pagingInfo = await getPagingInfo({
Model,
mongoFilter,
sort,
page,
limit,
})
return {
entities,
permission: {
error: _errorResult,
filter: _filterResult,
projection: _projectionResult,
},
pagingInfo: _pagingInfo,
}
}
}
|
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 6 End-User License
Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
End User License Agreement: www.juce.com/juce-6-licence
Privacy Policy: www.juce.com/juce-privacy-policy
Or: You may also use this code under the terms of the GPL v3 (see
www.gnu.org/licenses).
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
DISCLAIMED.
==============================================================================
*/
#pragma once
//==============================================================================
class VersionInfo
{
public:
struct Asset
{
const String name;
const String url;
};
static std::unique_ptr<VersionInfo> fetchFromUpdateServer (const String& versionString);
static std::unique_ptr<VersionInfo> fetchLatestFromUpdateServer();
static std::unique_ptr<InputStream> createInputStreamForAsset (const Asset& asset, int& statusCode);
bool isNewerVersionThanCurrent();
const String versionString;
const String releaseNotes;
const std::vector<Asset> assets;
private:
VersionInfo (String version, String releaseNotes, std::vector<Asset> assets);
static std::unique_ptr<VersionInfo> fetch (const String&);
};
|
import time
import discord
import os
import typing
from queue import Queue
from discord.ext import commands
from base.modules.access_checks import has_mod_role, check_channel_permissions
from datetime import datetime, timezone
from base.modules.serializable_object import MessageCache, MessageSchedule, CommandSchedule, dump_json
from base.modules.basic_converter import FutureTimeConverter, PastTimeConverter, EmojiUnion, TimedeltaConverter
from base.modules.constants import CACHE_PATH as path
from base.modules.message_helper import get_message_attachments, send_temp_message, wait_user_confirmation,\
save_message, get_message_brief, get_full_message, clean_message_files
from base.modules.special_bot_methods import special_process_command, command_check
import logging
logger = logging.getLogger(__name__)
class MaxSizeList(list):
def __init__(self, maxsize):
super().__init__()
self.maxsize = maxsize
def append(self, element):
super().append(element)
if super().__len__() > self.maxsize:
super().__delitem__(0)
class MessageManagementCog(commands.Cog, name="Message Management Commands"):
def __init__(self, bot):
self.bot = bot
if not os.path.isdir(path):
os.mkdir(path)
self.delete_cache = MessageCache.from_json(f'{path}/delete_cache.json')
self.scheduler = MessageSchedule.from_json(f'{path}/scheduler.json')
self.delete_queue = MaxSizeList(maxsize=100)
for guild in self.bot.guilds:
self.init_guild(guild)
def init_guild(self, guild):
if guild.id not in self.delete_cache:
self.delete_cache[guild.id] = []
if guild.id not in self.scheduler:
self.scheduler[guild.id] = []
# set up the timers for these schedulers
for schedule in self.scheduler[guild.id]:
schedule.set_timer(guild, self.bot, self.scheduler[guild.id])
def cog_unload(self):
for key, msglist in self.scheduler.items():
for msg in msglist:
msg.cancel()
dump_json(self.delete_cache, f'{path}/delete_cache.json')
dump_json(self.scheduler, f'{path}/scheduler.json')
def get_max_cache(self, guild):
return self.bot.get_setting(guild, "NUM_DELETE_CACHE")
async def cog_command_error(self, context, error):
if hasattr(context.command, "on_error"):
# This prevents any commands with local handlers being handled here.
return
if isinstance(error, commands.MissingRole):
return
elif isinstance(error, commands.BotMissingPermissions):
await context.send(f"Sorry {context.author.mention}, but I do not have permission to manage messages in the specific channel!")
elif isinstance(error, commands.CheckFailure):
await context.send(f"Sorry {context.author.mention}, but you do not have permission to manage messages in the specific channel!")
elif isinstance(error, commands.UserInputError):
await context.send(f"Sorry {context.author.mention}, but I could not understand the arguments passed to `{context.command.qualified_name}`.")
elif isinstance(error, commands.CommandInvokeError) and isinstance(error.original, discord.Forbidden):
await context.send(f"Sorry {context.author.mention}, but I do not have permission to post in the specified channel.")
elif isinstance(error, commands.MaxConcurrencyReached):
await context.send(f"Sorry {context.author.mention}, but only {error.number} user(s) can execute `{context.command.qualified_name}` at the same time!")
else:
await context.send(f"Sorry {context.author.mention}, but something unexpected happened...")
#@commands.Cog.listener() -> will be triggered by the on_raw_message_delete event
async def on_message_delete(self, message):
if message.guild:
if self.bot.get_setting(message.guild, "MESSAGE_LOG") == "OFF":
return
if await self.bot.is_command(message) or message.author == self.bot.user: # ignore command message
return
if message.id in self.delete_queue: # ignore the messsage deleted by delete or move commands
return
fields ={
"Author":f"{message.author.mention}\n{message.author}\nUID: {message.author.id}",
"Channel":f"{message.channel.mention}\nCID: {message.channel.id}",
"Message":f"MID: {message.id}",
"Sent at":f"{message.created_at.strftime('%Y-%m-%d %H:%M:%S')} UTC",
"Last edit":f"{message.edited_at.strftime('%Y-%m-%d %H:%M:%S')} UTC" if message.edited_at else None,
"Embeds":len(message.embeds) if message.embeds else None,
"Files":len(message.attachments) if message.attachments else None
}
await self.bot.log_message(message.guild, "MESSAGE_LOG",
title="A message was deleted", description="The message is visible below this entry",
fields=fields,
)
files=[]
for attachment in message.attachments:
try:
files.append(await attachment.to_file(use_cached=True))
except:
files.append(await attachment.to_file())
message_log = self.bot.get_log(message.guild, "message-log")
if message.content or message.embeds or files:
if message.embeds:
await message_log.send(content=message.clean_content, embed=message.embeds[0], files=files)
for embed in message.embeds[1:]:
await message_log.send(content=None, embed=embed)
else:
await message_log.send(content=message.clean_content, files=files)
@commands.Cog.listener()
async def on_raw_message_delete(self, payload):
if payload.cached_message:
#on_delete will handle this case
await self.on_message_delete(payload.cached_message)
return
if payload.guild_id:
guild = discord.utils.get(self.bot.guilds, id=payload.guild_id)
if self.bot.get_setting(guild, "MESSAGE_LOG") == "OFF":
return
channel = discord.utils.get(guild.text_channels, id=payload.channel_id)
fields = {
"Channel":f"{channel.mention}\nCID: {channel.id}",
"Message":f"MID: {payload.message_id}",
}
await self.bot.log_message(guild, "MESSAGE_LOG",
title="A message was deleted", fields=fields
)
@commands.group(
name="delete",
brief="Deletes messages",
help="Deletes n messages from member(s) in a channel with skipping m messages, if member is not specified it will delete any message, if channel is not specified it will search the current channel.",
aliases=["del"],
usage="[@mentions]... [#channel] [number=1] [skip_num=0]",
case_insensitive = True,
invoke_without_command=True
)
@commands.has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@has_mod_role()
async def _delete(self, context, members:commands.Greedy[discord.Member], channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1, skip_num:typing.Optional[int]=0):
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if channel is None:
channel = context.channel
elif channel != context.channel:
check_channel_permissions(channel, context.author, ["read_messages", "read_message_history", "manage_messages"])
max_cache = self.get_max_cache(context.guild)
msg_list = []
msg_count = 0
async for message in channel.history():
if len(msg_list) >= num:
break
if message.id == context.message.id:
continue # skip the command
if len(members) == 0 or message.author in members:
msg_count += 1
if msg_count > skip_num: # skip the first m messages
await self.cache_message(message, max_cache)
msg_list.append(message)
await self.smart_delete_messages(channel, msg_list)
fields = {
"Author(s)":"\n".join([f"{member.mention}\n{member}\nUID: {member.id}" for member in members]) if members else None,
"Channel":f"{channel.mention}\nCID: {channel.id}",
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action=f"deleted {len(msg_list)} message(s)",
fields=fields, timestamp=context.message.created_at
)
if len(msg_list) == 0:
await send_temp_message(context, "Could not delete message(s).", 10)
await context.message.delete()
async def smart_delete_messages(self, channel, msg_list):
# this will use bulk delete if possible
minimum_time = int((time.time() - 14 * 24 * 60 * 60) * 1000.0 - 1420070400000) << 22
bulk_msg = []
for msg in msg_list:
self.delete_queue.append(msg.id)
if msg.id < minimum_time: # older than 14 days
await msg.delete()
else:
bulk_msg.append(msg)
await channel.delete_messages(bulk_msg)
async def cache_message(self, message, max_cache):
key = message.channel.guild.id
if max_cache > 0 and (len(self.delete_cache[key]) < max_cache or (len(self.delete_cache[key]) > 0 and
time.mktime(message.created_at.timetuple()) > self.delete_cache[key][-1]["time"])):
# do not need to cache the message if it's too old
self.delete_cache[key].append(await MessageCache.from_message(message))
self.delete_cache[key].sort(reverse=True) # the latest message should be at front
if (len(self.delete_cache[key]) > max_cache):
# remove the oldest message if it exceeds the max cache
self.delete_cache[key].pop().del_files()
@_delete.command(
name="restore",
brief="Restores deleted messages",
usage="[@mentions]... [#channels]... [number=1] [skip_num=0]",
help="A command to restore n deleted messages from user(s) in channel(s) with skipping m messages. It restores message(s) to the current channel. If member/channel is not specified it will search through all messages in cache.",
)
@commands.has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _restore(self, context, members:commands.Greedy[discord.Member], channels:commands.Greedy[discord.TextChannel], num:typing.Optional[int]=1, skip_num:typing.Optional[int]=0):
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if len(self.delete_cache[context.guild.id]) == 0:
await send_temp_message(context, "Sorry, but no deleted message is found.", 10)
await context.message.delete()
return
queue = []
msg_count = 0
members_id = [member.id for member in members]
channels_id = [channel.id for channel in channels]
for message_cache in self.delete_cache[context.guild.id]:
if len(queue) >= num:
break
if (len(members) == 0 or message_cache["author"] in members_id) and (len(channels) == 0 or message_cache["channel"] in channels_id):
msg_count += 1
if msg_count > skip_num:
queue.append(message_cache)
restored = 0
while len(queue) > 0:
try:
await self.restore_message(queue.pop(), context)
restored += 1
except:
pass
fields = {
"Author(s)":"\n".join([f"{member.mention}\n{member}\nUID: {member.id}" for member in members]) if members else None,
"From Channel(s)":"\n".join([f"{channel.mention}\nCID: {channel.id}" for channel in channels]) if channels else None,
"To Channel":f"{context.channel.mention}\nCID: {context.channel.id}",
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action=f"restored {restored} message(s)",
fields=fields, timestamp=context.message.created_at
)
if restored == 0:
await send_temp_message(context, "Could not restore message(s).", 10)
await context.message.delete()
async def restore_message(self, message_cache, context):
await message_cache.restore(context)
self.delete_cache[context.guild.id].remove(message_cache)
@_delete.command(
name="cache",
brief="Shows cache of deletes",
help="A command to show the information of latest deleted messages.",
aliases=["list"]
)
@commands.bot_has_permissions(read_messages=True, send_messages=True)
@has_mod_role()
async def _cache(self, context):
if len(self.delete_cache[context.guild.id]) == 0:
await send_temp_message(context, "Sorry, but no deleted message is found.", 10)
await context.message.delete()
return
embed = discord.Embed(title=f"Cache of Deletes", colour=discord.Colour.green(), timestamp=context.message.created_at)
i = 1
for message_cache in self.delete_cache[context.guild.id]:
embed.add_field(name=f"Cache {i}:", value=message_cache.to_string(context))
i += 1
embed.set_footer(text="DELETE CACHE")
await context.send(content=None, embed=embed)
@commands.command(
name="announce",
brief="Makes an announcement",
usage="[#channel] <announcement>",
help="This command makes an announcement in the specified channel to all users, if channel is not specified it will post at the current channel.",
aliases=["post", "announcement"]
)
@commands.has_permissions(read_messages=True, send_messages=True, mention_everyone=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, mention_everyone=True, manage_messages=True)
@has_mod_role()
async def _announce(self, context, channel:typing.Optional[discord.TextChannel], *, announcement=None):
if channel is None:
channel = context.channel
elif channel != context.channel:
check_channel_permissions(channel, context.author, ["read_messages", "send_messages", "mention_everyone", "manage_messages"])
(embed_post, files) = await get_message_attachments(context.message)
if announcement is None and embed_post is None and len(files) == 0:
await context.send_help("announce")
return
await channel.send(content=announcement, embed=embed_post, files=files)
fields = {
"Channel":f"{channel.mention}\nCID: {channel.id}",
"Content":(announcement[:1021] + '...') if announcement and len(announcement) > 1021 else announcement,
"Embed size":len(embed_post) if embed_post else None,
"Files":f"{len(files)} file(s)" if files else None
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="made an announcement",
fields=fields, timestamp=context.message.created_at
)
await context.message.delete()
@commands.command(
name="move",
brief="Moves messages",
help="This command moves n messages (from the past 100 messages of the channel) from user(s) with skipping m messages into a channel. It will move the message from the @mention to #channel. If no number is specified, it will move the last message. If no member is specified, it will search any messages.",
usage="[@mentions]... <#channel> [number=1] [skip_num=0]",
)
@commands.has_permissions(read_messages=True, send_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, read_message_history=True, manage_messages=True)
@has_mod_role()
async def _move_post(self, context, members:commands.Greedy[discord.Member], channel:discord.TextChannel, num:typing.Optional[int]=1, skip_num:typing.Optional[int]=0):
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if channel != context.channel:
check_channel_permissions(channel, context.author, ["read_messages", "read_message_history", "send_messages", "manage_messages"])
queue = []
msg_count = 0
async for message in context.message.channel.history():
if len(queue) >= num:
break
if context.message.id == message.id: # skip the command message
continue
if len(members) == 0 or message.author in members:
msg_count += 1
if msg_count > skip_num:
queue.append(message)
for msg in reversed(queue):
await self.copy_message(channel, msg)
await self.smart_delete_messages(context.message.channel, queue)
fields = {
"Author(s)":"\n".join([f"{member.mention}\n{member}\nUID: {member.id}" for member in members]) if members else None,
"From Channel":f"{context.channel.mention}\nCID: {context.channel.id}",
"To Channel":f"{channel.mention}\nCID: {channel.id}",
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action=f"moved {len(queue)} mesages",
fields=fields, timestamp=context.message.created_at
)
if len(queue) == 0:
await send_temp_message(context, "Could not move message(s).", 10)
await context.message.delete()
async def copy_message(self, channel, message):
old_message = message.content
content = old_message.replace('\n> ', '\n').replace('\n', '\n> ')
if content:
content = f"{message.author.mention} said in {message.channel.mention}:\n> {content}"
else:
content = f"{message.author.mention} said in {message.channel.mention}:"
(embedOrigin, files) = await get_message_attachments(message)
await channel.send(
content=content,
embed=embedOrigin,
files = files
)
@commands.group(
name="edit",
brief="Edits a message",
usage="[#channel] [number=1] <text>",
help="Edits the n-th last message of the bot, if channel is not specified it will edit the message at the current channel.",
case_insensitive = True,
invoke_without_command=True
)
@commands.has_permissions(read_messages=True, send_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, read_message_history=True)
@has_mod_role()
async def _edit(self, context, channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1, *, text=None):
if text is None:
await context.send_help("edit")
return
await self.general_edit(context, channel, text, lambda x,y: y, num)
@_edit.command(
name="add",
brief="Edits by adding a line",
usage="[#channel] [number=1] <text>"
)
@commands.has_permissions(read_messages=True, send_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, read_message_history=True)
@has_mod_role()
async def _edit_add(self, context, channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1, *, text=None):
if text is None:
await context.send_help("edit add")
return
await self.general_edit(context, channel, text, lambda x,y: x + "\n" + y, num)
@_edit.command(
name="replace",
brief="Edits by replacing the last line",
usage="[#channel] [number=1] <text>",
)
@commands.has_permissions(read_messages=True, send_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, read_message_history=True)
@has_mod_role()
async def _edit_replace(self, context, channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1, *, text=None):
if text is None:
await context.send_help("edit replace")
return
await self.general_edit(context, channel, text, lambda x,y: x.rsplit(sep="\n", maxsplit=1)[0] + "\n" + y, num)
@_edit.command(
name="remove",
brief="Edits by removing the last line",
usage="[#channel] [number=1]",
aliases=["rm"]
)
@commands.has_permissions(read_messages=True, send_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, read_message_history=True)
@has_mod_role()
async def _edit_remove(self, context, channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1):
await self.general_edit(context, channel, None, lambda x,y: x.rsplit(sep="\n", maxsplit=1)[0], num)
async def general_edit(self, context, channel, text, edit_method, num=1):
# a general function for editing message, edit_method is a function that takes old content and new contend to build the new message
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if channel is None:
channel = context.channel
elif channel != context.channel:
perm = channel.permissions_for(context.author)
if not perm.read_messages or not perm.read_message_history or not perm.send_messages or not perm.manage_messages:
raise commands.MissingPermissions(["read_messages", "read_message_history", "send_messages", "manage_messages"])
msg_count = 0
async for message in channel.history():
if message.author.id == self.bot.user.id:
msg_count += 1
if num == msg_count:
await self.edit_message(context, message, text, edit_method)
break
else:
await send_temp_message(context, f"Could not edit a message: message number {num} from bot not found", 10)
await context.message.delete()
async def edit_message(self, context, message, text, edit_method):
old_content = message.content
new_content = edit_method(old_content, text)
await message.edit(content=new_content)
fields = {
"Channel":f"{message.channel.mention}\nCID: {message.channel.id}",
"Old Content":'...' + (old_content[-1021:]) if len(old_content) > 1021 else old_content,
"New Content":'...' + (new_content[-1021:]) if len(new_content) > 1021 else new_content
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="edited a bot message",
fields=fields, timestamp=context.message.created_at
)
@commands.command(
name="react",
brief="Adds a reaction",
usage="[@mention] [#channel] [number=1] <emojis>...",
help="This command makes a reaction to the n-th last message from a user in a channel, if member is not specified it will search the n-th last message, if channel is not specified it will search the current channel.",
)
@commands.has_permissions(read_messages=True, add_reactions=True, read_message_history=True)
@commands.bot_has_permissions(read_messages=True, add_reactions=True, read_message_history=True)
@has_mod_role()
async def _react(self, context, member:typing.Optional[discord.Member], channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1, emojis:commands.Greedy[EmojiUnion]=None):
if channel is None:
channel = context.channel
elif channel != context.channel:
check_channel_permissions(channel, context.author, ["read_messages", "add_reactions", "read_message_history"])
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if emojis == None or len(emojis) == 0:
await context.send_help("react")
return
msg_count = 0
async for message in channel.history():
if context.message.id == message.id: # skip the command message
continue
if member is None or message.author.id == member.id:
msg_count += 1
if num == msg_count:
await self.add_reaction(context, message, emojis)
break
else:
if member:
tmp_str = f" from {member.mention}"
else:
tmp_str = ""
await send_temp_message(context,
f"Could not add reaction(s): message number {num} not found{tmp_str} in {channel.mention}",
10
)
await context.message.delete()
async def add_reaction(self, context, message, emojis):
for emoji in emojis:
await message.add_reaction(emoji)
fields = {
"Author":f"{message.author.mention}\n{message.author}\nUID: {message.author.id}",
"Channel":f"{message.channel.mention}\nCID: {message.channel.id}",
"Reaction(s)":''.join([str(emoji) for emoji in emojis])}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="added reaction(s)",
fields=fields, timestamp=context.message.created_at
)
@commands.group(
name="schedule",
brief="Schedules a message",
help="Schedules to send a message in a specific channel. Time has to be in \"%d%h%m%s\" format or a formatted absolute time. If channel is not specified, it will send the message to the current channel. If no content is specified, it will send a reminder mentioning the author.\n\nFor example, to schedule a text in 2 hours 10 minites, use:\n`{prefix}schedule 2h10m some text`\nTo schedule a text at Sep 10 10am at timezone -05:00, use:\n`{prefix}schedule \"9-10 10am -0500\" some text`\nWithout a timezone the absolute time will be interpreted as UTC time.",
usage="[#channel] <time> [repeatInterval] [text]",
case_insensitive = True,
invoke_without_command=True
)
@commands.has_permissions(read_messages=True, send_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _schedule(self, context, channel:typing.Optional[discord.TextChannel], schedule:FutureTimeConverter, repeat:typing.Optional[TimedeltaConverter], *, text=None):
if schedule <= datetime.now(timezone.utc):
await context.send(f"The time your input: {schedule.strftime('%Y-%m-%d %H:%M:%S %z')} is not a future time.")
return
if channel is None:
channel = context.channel
elif channel != context.channel:
check_channel_permissions(channel, context.author, ["read_messages", "send_messages"])
message_schedule = await MessageSchedule.from_message(context.message, channel, schedule, text, repeat)
self.scheduler[context.guild.id].append(message_schedule)
message_schedule.set_timer(context.guild, self.bot, self.scheduler[context.guild.id])
fields = {
"Channel":f"{channel.mention}\nCID: {channel.id}",
"Content":(text[:1021] + '...') if text and len(text) > 1021 else text,
"Embed size":len(discord.Embed.from_dict(message_schedule['embed'])) if message_schedule['embed'] else None,
"Files":f"{len(message_schedule['files'])} file(s)" if message_schedule["files"] else None,
"Time":schedule.strftime('%Y-%m-%d %H:%M:%S %z'),
"Repeat every":str(repeat) if repeat else None
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="scheduled a message",
fields=fields, timestamp=context.message.created_at
)
await send_temp_message(context, f"{context.author.mention} You have scheduled a message at {schedule.strftime('%Y-%m-%d %H:%M:%S %z')}.", 10)
await context.message.delete()
@_schedule.command(
name="list",
brief="Shows a list of scheduled messages",
help="A command to show a list of scheduled messages.",
)
@commands.has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _list_schedule(self, context):
if len(self.scheduler[context.guild.id]) == 0:
await send_temp_message(context, "Sorry, but no scheduled message is found.", 10)
await context.message.delete()
return
embed = discord.Embed(title=f"Scheduled Messages", colour=discord.Colour.green(), timestamp=context.message.created_at)
i = 1
for message_schedule in self.scheduler[context.guild.id]:
embed.add_field(name=f"Message {i}:", value=message_schedule.to_string(context))
i += 1
embed.set_footer(text="DELETE CACHE")
await context.send(content=None, embed=embed)
@_schedule.command(
name="cancel",
brief="Cancels a scheduled message",
usage="[@mention] [#channel] [number=1]",
help="A command to cancel the n-th last scheduled message from a member to be sent in a channel.",
)
@commands.has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _cancel_schedule(self, context, member:typing.Optional[discord.Member], channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1):
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if len(self.scheduler[context.guild.id]) == 0:
await send_temp_message(context, "Sorry, but no scheduled message is found.", 10)
await context.message.delete()
return
msg_count = 0
for message_schedule in self.scheduler[context.guild.id]:
if (member is None or message_schedule["author"] == member.id) and (channel is None or message_schedule["channel"] == channel.id):
msg_count += 1
if msg_count == num:
message_schedule.cancel()
file_num = len(message_schedule['files'])
message_schedule.delete_schedule(self.scheduler[context.guild.id])
if member is None:
member = context.guild.get_member(message_schedule["author"])
if channel is None:
channel = context.guild.get_channel(message_schedule['channel'])
fields = {}
if member:
fields["Author"] = f"{member.mention}\n{member}\nUID: {member.id}"
if channel:
fields["Channel"] = f"{channel.mention}\nCID: {channel.id}"
if message_schedule['content'] and len(message_schedule['content']) > 1021:
fields["Content"] = message_schedule['content'][:1021] + '...'
else:
fields["Content"] = message_schedule['content']
if message_schedule['embed']:
fields["Embed size"] = len(discord.Embed.from_dict(message_schedule['embed']))
if file_num:
fields["Files"] = f"{file_num} file(s)"
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="cancelled a scheduled message",
fields=fields, timestamp=context.message.created_at
)
await send_temp_message(context, "A scheduled message has been cancelled.", 10)
break
else:
if member:
tmp_member = f" from {member.mention}"
else:
tmp_member = ""
if channel:
tmp_channel = f" to be sent in {channel.mention}"
else:
tmp_channel = ""
description=f"Scheduled message number {num} not found{tmp_member}{tmp_channel}"
await self.bot.log_message(context.guild, "ERROR_LOG",
user=context.author, action="failed to cancel a message",
description=description, timestamp=context.message.created_at
)
await send_temp_message(context, "Could not cancel a scheduled message.", 10)
await context.message.delete()
@_schedule.command(
name="sendnow",
brief="Sends a scheduled message right now",
usage="[@mention] [#channel] [number=1]",
aliases=["now", "send"],
help="A command to immediately send the n-th last scheduled message from a member to be sent in a channel.",
)
@commands.has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _sendnow_schedule(self, context, member:typing.Optional[discord.Member], channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1):
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if len(self.scheduler[context.guild.id]) == 0:
await send_temp_message(context, "Sorry, but no scheduled message is found.", 10)
await context.message.delete()
return
msg_count = 0
for message_schedule in self.scheduler[context.guild.id]:
if (member is None or message_schedule["author"] == member.id) and (channel is None or message_schedule["channel"] == channels.id):
msg_count += 1
if msg_count == num:
delete = not bool(message_schedule["repeat_interval"]) # delete the entry if it does not need repeating
if delete:
message_schedule.cancel()
await message_schedule.send_now(context.guild, self.bot, context.author)
if delete:
message_schedule.delete_schedule(self.scheduler[context.guild.id])
break
else:
description=f"No scheduled message number {num} found{' from '+member.mention if member is not None else ''}{' to be sent in '+channel.mention if channel is not None else ''}"
await self.bot.log_message(context.guild, "MOD_LOG",
user=self.bot.user, action="could not send scheduled message",
description=description, timestamp=context.message.created_at
)
await send_temp_message(context, "Could not send a scheduled message.", 10)
await context.message.delete()
@_schedule.command(
name="cmd",
brief="Schedules a command",
usage="<time> [repeatInterval] <cmd>",
aliases=["command"],
help="A command to schedule a command in the current channel. Your command text should have the same format as the ordinary command with arguments. This command checks the argument of your command by parsing it into a context but there is no guarantee that the command is error-free. If a command needs to read \"context.messgae.content\" then it may not work as expected. And notice that if your command message is deleted before the scheduled time the command may not work.",
)
@commands.has_permissions(read_messages=True, send_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _cmd_schedule(self, context, schedule:FutureTimeConverter, repeat:typing.Optional[TimedeltaConverter], *, cmd):
if schedule <= datetime.now(timezone.utc):
await context.send(f"The time your input: {schedule.strftime('%Y-%m-%d %H:%M:%S %z')} is not a future time.")
return
try:
await command_check(self.bot, context.message, cmd)
except Exception as e:
await context.send(f"Sorry {context.author.mention}, but the scheduled command cannot run: {e}")
return
commandSchedule = await CommandSchedule.from_message(context.message, schedule, cmd, repeat)
self.scheduler[context.guild.id].append(commandSchedule)
commandSchedule.set_timer(context.guild, self.bot, self.scheduler[context.guild.id])
fields = {
"Channel":f"{context.message.channel.mention}\nCID: {context.message.channel.id}",
"Command":cmd,
"Time":schedule.strftime('%Y-%m-%d %H:%M:%S %z'),
"Repeat every":str(repeat) if repeat else None
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="scheduled a command",
fields=fields, timestamp=context.message.created_at
)
await send_temp_message(context, f"{context.author.mention} You have scheduled a command at {schedule.strftime('%Y-%m-%d %H:%M:%S %z')}.", 10)
@commands.command(
name="remind",
brief="Sends a reminder message",
usage="<time> [repeatInterval] [text]",
help="Schedules to send a reminder message mentioning the author in future in the current channel. Time has to be in \"%d%h%m%s\" format or a formatted absolute time. If no text is specified it will just send a default reminder. All the mentions in the text will be removed.\n\nFor example, to schedule a text in 2 hours 10 minites, use:\n`{prefix}remind 2h10m some text`\nTo schedule a text at Sep 10 10am at timezone -05:00, use:\n`{prefix}remind \"9-10 10am -0500\" some text`\nWithout a timezone the absolute time will be interpreted as UTC time.",
aliases=["reminder"]
)
@commands.has_permissions(read_messages=True, send_messages=True)
@commands.bot_has_permissions(read_messages=True, send_messages=True, manage_messages=True)
async def _remind(self, context, schedule:FutureTimeConverter, repeat:typing.Optional[TimedeltaConverter], *, text:commands.clean_content=None):
if text is not None:
text = f"{context.author.mention} {text}"
await context.invoke(self.bot.get_command("schedule"), channel=None, schedule=schedule, repeat=repeat, text=text)
@commands.group(
name="msg",
brief="Manages messages in db",
help="The subcommands contain the methods to manipulate messages stored in bot's database.",
aliases=["message"],
case_insensitive = True,
invoke_without_command=True
)
@commands.has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@has_mod_role()
async def _msg(self, context):
await context.send_help("msg")
@_msg.command(
name="save",
brief="Saves message(s) to db",
usage="[@mentions]... [#channel] [number=1] [skip_num=0]",
help="Saves n messages from member(s) in a channel with skipping m messages, if member is not specified it will save any message, if channel is not specified it will search the current channel.",
aliases=["record", "archive"],
)
@commands.has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@has_mod_role()
async def _save_msg(self, context, members:commands.Greedy[discord.Member], channel:typing.Optional[discord.TextChannel], num:typing.Optional[int]=1, skip_num:typing.Optional[int]=0):
if num <= 0:
raise commands.UserInputError("num must be a positive number.")
if channel is None:
channel = context.channel
elif channel != context.channel:
check_channel_permissions(channel, context.author, ["read_messages", "read_message_history", "manage_messages"])
saved = 0
msg_count = 0
async for message in channel.history():
if saved >= num:
break
if message.id == context.message.id:
continue # skip the command
if len(members) == 0 or message.author in members:
msg_count += 1
if msg_count > skip_num: # skip the first m messages
await save_message(self.bot, message)
saved += 1
fields = {
"Author(s)":"\n".join([f"{member}({member.id})" for member in members]) if members else None,
"Channel":f"{channel.mention}\nCID: {channel.id}",
"Saved":f"{saved} message(s)"
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="saved messages in the database",
fields=fields, timestamp=context.message.created_at
)
if saved == 0:
await send_temp_message(context, "Could not save message(s).", 10)
await context.message.delete()
@_msg.command(
name="fetch",
brief="Fetches a message in db",
help="Sends the content of a message in db given its id."
)
@commands.has_permissions(read_messages=True, read_message_history=True, send_messages=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, read_message_history=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _fetch_msg(self, context, messageID:int):
result = self.bot.db[context.guild.id].select("messages", messageID)
if not result:
await context.send("Message not found.")
return
content, embed, files = get_full_message(result, self.bot, context.guild)
await context.send(content=content, embed=embed, files=files)
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="fetched a message from the database",
description=f"**MID**: {messageID}", timestamp=context.message.created_at
)
@_msg.command(
name="delete",
brief="Deletes a message in db",
help="Deletes a message in db given its id.",
aliases=["del"]
)
@commands.has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, read_message_history=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _delete_msg(self, context, messageID:int):
result = self.bot.db[context.guild.id].select("messages", messageID)
if not result:
await context.send("Message not found.")
return
clean_message_files(result)
self.bot.db[context.guild.id].delete_row("messages", messageID)
await context.send(f"Message with MID {messageID} was deleted.")
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="deleted a message from the database",
description=f"**MID**: {messageID}", timestamp=context.message.created_at
)
@_msg.command(
name="search",
brief="Searches messages in db",
help="Searches messages in db given a few criterions. Limit is the max number of searches. HasFile flag (True/False) specifies whether there is a file in the message. Time determines the order of the message, if it's specified the messages with time closest will be ordered first, otherwise the newest messages will be ordered first. It has to be in \"%d%h%m%s\" format (treated as a past time) or a formatted absolute time. Pattern to match the content is used with a LIKE operator thus wildcards can be used.",
usage="[@mentions]... [#channels]... [limit=10] [hasFile] [time] [pattern]"
)
@commands.has_permissions(read_messages=True, read_message_history=True, send_messages=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, read_message_history=True, send_messages=True, manage_messages=True)
@has_mod_role()
async def _search_msg(self, context, members:commands.Greedy[discord.Member], channels:commands.Greedy[discord.TextChannel],
limit:typing.Optional[int]=10, hasFile:typing.Optional[bool]=None, date:typing.Optional[PastTimeConverter]=None,
*, pattern=None):
where_clause = []
if members:
in_list = ", ".join(str(member.id) for member in members)
where_clause.append(f"aid IN ({in_list})")
if channels:
in_list = ", ".join(str(channel.id) for channel in channels)
where_clause.append(f"cid IN ({in_list})")
if hasFile is not None:
where_clause.append("length(files)>2" if hasFile else "length(files)<=2")
if pattern:
where_clause.append(f"content LIKE '{pattern}'")
if where_clause:
where_clause = " AND ".join(where_clause)
else:
where_clause = "TRUE"
if date:
order_clause = f"ABS({date.timestamp()}-time)"
else:
order_clause = "time DESC"
result = self.bot.db[context.guild.id].query(f"SELECT * FROM messages WHERE {where_clause} ORDER BY {order_clause} LIMIT {limit}")
if not result:
await context.send("Message not found.")
return
embed = discord.Embed(title=f"Message Search Results", colour=discord.Colour.green(), timestamp=context.message.created_at)
for i in range(len(result)):
embed.add_field(name=f"Message {i+1}:", value=get_message_brief(result[i], self.bot, context.guild))
await context.send(embed=embed)
@_msg.command(
name="purge",
brief="Purges messages in db",
help="Deletes all messages in db matching the channel and author criterions before a date. Time has to be in \"%d%h%m%s\" format (treated as a past time) or a formatted absolute time.",
usage="[@mentions]... [#channels]... [hasFile] [timeBefore]"
)
@commands.has_permissions(read_messages=True, read_message_history=True, manage_messages=True)
@commands.bot_has_permissions(read_messages=True, read_message_history=True, send_messages=True, manage_messages=True)
@commands.max_concurrency(1, commands.BucketType.guild)
@has_mod_role()
async def _purge_msg(self, context, members:commands.Greedy[discord.Member], channels:commands.Greedy[discord.TextChannel],
hasFile:typing.Optional[bool]=None, date:typing.Optional[PastTimeConverter]=None):
where_clause = []
hint_msg = []
if members:
in_list = ", ".join(str(member.id) for member in members)
where_clause.append(f"aid IN ({in_list})")
members_list = ", ".join(member.mention for member in members)
hint_msg.append(f"from {members_list}")
if channels:
in_list = ", ".join(str(channel.id) for channel in channels)
where_clause.append(f"cid IN ({in_list})")
channels_list = ", ".join(channel.mention for channel in channels)
hint_msg.append(f"in {channels_list}")
if hasFile is not None:
where_clause.append("length(files)>2" if hasFile else "length(files)<=2")
hint_msg.append("with file(s)" if hasFile else "without file(s)")
if date:
where_clause.append(f"time<={date.timestamp()}")
hint_msg.append(f"before {date.strftime('%Y-%m-%d %H:%M:%S %z')}")
if where_clause:
where_clause = " AND ".join(where_clause)
else:
where_clause = "TRUE"
if hint_msg:
hint_msg = " ".join(hint_msg) + " "
else:
hint_msg = ""
# check how many messages will be deleted
num = self.bot.db[context.guild.id].query(f"SELECT COUNT(*) FROM messages WHERE {where_clause}")
if not num or num[0][0]==0:
await context.send("Message not found.")
return
confirm, msg = await wait_user_confirmation(context, f"{num[0][0]} message(s) {hint_msg}will be deleted, do you want to process?")
if not confirm:
await context.send("Operation cancelled.")
return
# delete all the files
result = self.bot.db[context.guild.id].query(f"SELECT * FROM messages WHERE {where_clause} AND length(files)>2")
if result:
for row in result:
clean_message_files(row)
# delete the messages in db
self.bot.db[context.guild.id].query(f"DELETE FROM messages WHERE {where_clause}")
await context.send(f"{num[0][0]} message(s) have been deleted.")
fields = {
"Author(s)":"\n".join([member.mention for member in members]) if members else None,
"Channel(s)":"\n".join([channel.mention for channel in channels]) if channels else None,
"Before":date.strftime('%Y-%m-%d %H:%M:%S %z') if date else None,
"Num":f"{num[0][0]} message(s)"
}
await self.bot.log_message(context.guild, "MOD_LOG",
user=context.author, action="purged messages",
fields=fields, timestamp=context.message.created_at
)
def setup(bot):
bot.add_cog(MessageManagementCog(bot))
logger.info("Added message management.")
|
# -*- coding: utf-8 -*-
"""
Common use sicd_elements methods.
"""
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
from typing import Tuple
import numpy
from ...general.utils import get_seconds
def _get_center_frequency(RadarCollection, ImageFormation):
"""
Helper method.
Parameters
----------
RadarCollection : sarpy.io.complex.sicd_elements.RadarCollection.RadarCollectionType
ImageFormation : sarpy.io.complex.sicd_elements.ImageFormation.ImageFormationType
Returns
-------
None|float
The center processed frequency, in the event that RadarCollection.RefFreqIndex is `None` or `0`.
"""
if RadarCollection is None or RadarCollection.RefFreqIndex is None or RadarCollection.RefFreqIndex == 0:
return None
if ImageFormation is None or ImageFormation.TxFrequencyProc is None or \
ImageFormation.TxFrequencyProc.MinProc is None or ImageFormation.TxFrequencyProc.MaxProc is None:
return None
return 0.5 * (ImageFormation.TxFrequencyProc.MinProc + ImageFormation.TxFrequencyProc.MaxProc)
def is_polstring_version1(str_in):
"""
Is the polarization string compatible for SCD version 1.1?
Parameters
----------
str_in : None|str
The tx/rcv polarization string.
Returns
-------
bool
"""
if str_in is None or str_in in ['OTHER', 'UNKNOWN']:
return True
parts = str_in.split(':')
if len(parts) != 2:
return False
part1, part2 = parts
if (part1 in ['V', 'H'] and part2 in ['RHC', 'LHC']) or (part2 in ['V', 'H'] and part1 in ['RHC', 'LHC']):
return False
return True
################
# SICD comparsion and matching methods
def is_same_size(sicd1, sicd2):
"""
Are the two SICD structures the same size in pixels?
Parameters
----------
sicd1 : sarpy.io.complex.sicd_elements.SICD.SICDType
sicd2 : sarpy.io.complex.sicd_elements.SICD.SICDType
Returns
-------
bool
"""
if sicd1 is sicd2:
return True
try:
return (sicd1.ImageData.NumRows == sicd2.ImageData.NumRows) and \
(sicd1.ImageData.NumCols == sicd2.ImageData.NumCols)
except AttributeError:
return False
def is_same_sensor(sicd1, sicd2):
"""
Are the two SICD structures from the same sensor?
Parameters
----------
sicd1 : sarpy.io.complex.sicd_elements.SICD.SICDType
sicd2 : sarpy.io.complex.sicd_elements.SICD.SICDType
Returns
-------
bool
"""
if sicd1 is sicd2:
return True
try:
return sicd1.CollectionInfo.CollectorName == sicd2.CollectionInfo.CollectorName
except AttributeError:
return False
def is_same_start_time(sicd1, sicd2):
"""
Do the two SICD structures have the same start time with millisecond resolution?
Parameters
----------
sicd1 : sarpy.io.complex.sicd_elements.SICD.SICDType
sicd2 : sarpy.io.complex.sicd_elements.SICD.SICDType
Returns
-------
bool
"""
if sicd1 is sicd2:
return True
try:
return abs(get_seconds(sicd1.Timeline.CollectStart, sicd2.Timeline.CollectStart, precision='ms')) < 2e-3
except AttributeError:
return False
def is_same_duration(sicd1, sicd2):
"""
Do the two SICD structures have the same duration, with millisecond resolution?
Parameters
----------
sicd1 : sarpy.io.complex.sicd_elements.SICD.SICDType
sicd2 : sarpy.io.complex.sicd_elements.SICD.SICDType
Returns
-------
bool
"""
if sicd1 is sicd2:
return True
try:
return abs(sicd1.Timeline.CollectDuration - sicd2.Timeline.CollectDuration) < 2e-3
except AttributeError:
return False
def is_same_band(sicd1, sicd2):
"""
Are the two SICD structures the same band?
Parameters
----------
sicd1 : sarpy.io.complex.sicd_elements.SICD.SICDType
sicd2 : sarpy.io.complex.sicd_elements.SICD.SICDType
Returns
-------
bool
"""
if sicd1 is sicd2:
return True
try:
return abs(sicd1.Grid.Row.KCtr - sicd2.Grid.Row.KCtr) <= 1./(sicd1.Grid.Row.SS*sicd1.ImageData.NumRows)
except AttributeError:
return False
def is_same_scp(sicd1, sicd2):
"""
Do the two SICD structures share the same SCP, with resolution of one meter
in each ECF coordinate?
Parameters
----------
sicd1 : sarpy.io.complex.sicd_elements.SICD.SICDType
sicd2 : sarpy.io.complex.sicd_elements.SICD.SICDType
Returns
-------
bool
"""
if sicd1 is sicd2:
return True
try:
ecf1 = sicd1.GeoData.SCP.ECF.get_array()
ecf2 = sicd2.GeoData.SCP.ECF.get_array()
return numpy.all(numpy.abs(ecf1 - ecf2) < 1)
except AttributeError:
return False
def is_general_match(sicd1, sicd2):
"""
Do the two SICD structures seem to form a basic match? This necessarily
establishes and equivalence relation between sicds.
Parameters
----------
sicd1 : sarpy.io.complex.sicd_elements.SICD.SICDType
sicd2 : sarpy.io.complex.sicd_elements.SICD.SICDType
Returns
-------
bool
"""
if sicd1 is sicd2:
return True
return is_same_size(sicd1, sicd2) and is_same_sensor(sicd1, sicd2) and \
is_same_start_time(sicd1, sicd2) and is_same_duration(sicd1, sicd2) and \
is_same_band(sicd1, sicd2) and is_same_scp(sicd1, sicd2)
|
from tornado import websocket
from tornado import escape
import datetime as dt
import pickle
clients = []
descriptors = {}
class TaskDescriptor:
STATUS_NEW = 0
STATUS_INITED = 1
STATUS_RESETED = 2
STATUS_STARTED = 3
STATUS_STOPED = 4
def __init__(self, task_name, ext='.pkl', path='./task_descriptors/'):
self.ext = ext
self.path = path
self.task_name = task_name
self.task_descriptor_file_path = self.path + self.task_name + self.ext
self.set_status(self.STATUS_NEW)
def task_init(self):
f = open(self.task_descriptor_file_path, 'wb')
work = {
'result': [],
'timer': []
}
pickle.dump(work, f)
f.close()
self.set_status(self.STATUS_INITED)
def task_reset(self):
work = pickle.load(open(self.task_descriptor_file_path, 'rb'))
work['result'] = []
work['timer'] = []
pickle.dump(work, open(self.task_descriptor_file_path, 'wb'))
self.set_status(self.STATUS_RESETED)
def task_start(self):
work = pickle.load(open(self.task_descriptor_file_path, 'rb'))
work['timer'].append(dt.datetime.now())
pickle.dump(work, open(self.task_descriptor_file_path, 'wb'))
self.set_status(self.STATUS_STARTED)
def task_stop(self):
work = pickle.load(open(self.task_descriptor_file_path, 'rb'))
stop_time = dt.datetime.now()
delta = (stop_time - work['timer'].pop()).total_seconds()
work['result'].append(delta/3600)
pickle.dump(work, open(self.task_descriptor_file_path, 'wb'))
self.set_status(self.STATUS_STOPED)
def get_task_time_summary(self):
f = open(self.task_descriptor_file_path, 'rb')
work = pickle.load(f)
summ = sum(work['result'])
f.close()
return summ
def set_status(self, status):
self.status = status
def get_status(self):
return self.status
class WorkTimerHandler(websocket.WebSocketHandler):
def on_close(self):
clients.remove(self)
print("WebSocket closed")
def open(self, *args, **kwargs):
clients.append(self)
print("WebSocket opened")
def on_message(self, message):
client_request_data = escape.json_decode(message)
task_name = client_request_data['task']
if (task_name not in descriptors):
descriptors[task_name] = TaskDescriptor(task_name)
"""
TaskDescriptor descriptor
"""
descriptor = descriptors[task_name]
try:
actions = {
"reset": lambda task: descriptor.task_reset(task),
"start": lambda task: descriptor.task_start(task),
"stop": lambda task: descriptor.task_stop(task),
"init": lambda task: descriptor.task_init(task)
}
actions[client_request_data['action']](task_name)
for client in clients:
client.write_message(escape.json_encode({
'task': task_name,
'status': descriptor.get_status()
}))
except Exception as ex:
for client in clients:
client.write_message(escape.json_encode({
'error': ex.message
}))
pass
|
#
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from nitro.resource.base.base_resource import base_resource
from nitro.resource.base.base_resource import base_response
from nitro.service.options import options
from nitro.exception.nitro_exception import nitro_exception
from nitro.util.nitro_util import nitro_util
class snmpgroup(base_resource) :
"""Configuration for SNMP group resource."""
def __init__(self) :
self._name = ""
self._securitylevel = ""
self._readviewname = ""
self._storagetype = ""
self._status = ""
self.___count = 0
@property
def name(self) :
"""Name for the SNMPv3 group. Can consist of 1 to 31 characters that include uppercase and lowercase letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore (_) characters. You should choose a name that helps identify the SNMPv3 group.
The following requirement applies only to the NetScaler CLI:
If the name includes one or more spaces, enclose it in double or single quotation marks (for example, "my name" or 'my name').<br/>Minimum length = 1.
"""
try :
return self._name
except Exception as e:
raise e
@name.setter
def name(self, name) :
"""Name for the SNMPv3 group. Can consist of 1 to 31 characters that include uppercase and lowercase letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore (_) characters. You should choose a name that helps identify the SNMPv3 group.
The following requirement applies only to the NetScaler CLI:
If the name includes one or more spaces, enclose it in double or single quotation marks (for example, "my name" or 'my name').<br/>Minimum length = 1
:param name:
"""
try :
self._name = name
except Exception as e:
raise e
@property
def securitylevel(self) :
"""Security level required for communication between the NetScaler appliance and the SNMPv3 users who belong to the group. Specify one of the following options:
noAuthNoPriv. Require neither authentication nor encryption.
authNoPriv. Require authentication but no encryption.
authPriv. Require authentication and encryption.
Note: If you specify authentication, you must specify an encryption algorithm when you assign an SNMPv3 user to the group. If you also specify encryption, you must assign both an authentication and an encryption algorithm for each group member.<br/>Possible values = noAuthNoPriv, authNoPriv, authPriv.
"""
try :
return self._securitylevel
except Exception as e:
raise e
@securitylevel.setter
def securitylevel(self, securitylevel) :
"""Security level required for communication between the NetScaler appliance and the SNMPv3 users who belong to the group. Specify one of the following options:
noAuthNoPriv. Require neither authentication nor encryption.
authNoPriv. Require authentication but no encryption.
authPriv. Require authentication and encryption.
Note: If you specify authentication, you must specify an encryption algorithm when you assign an SNMPv3 user to the group. If you also specify encryption, you must assign both an authentication and an encryption algorithm for each group member.<br/>Possible values = noAuthNoPriv, authNoPriv, authPriv
:param securitylevel:
"""
try :
self._securitylevel = securitylevel
except Exception as e:
raise e
@property
def readviewname(self) :
"""Name of the configured SNMPv3 view that you want to bind to this SNMPv3 group. An SNMPv3 user bound to this group can access the subtrees that are bound to this SNMPv3 view as type INCLUDED, but cannot access the ones that are type EXCLUDED. If the NetScaler appliance has multiple SNMPv3 view entries with the same name, all such entries are associated with the SNMPv3 group.<br/>Minimum length = 1."""
try :
return self._readviewname
except Exception as e:
raise e
@readviewname.setter
def readviewname(self, readviewname) :
"""Name of the configured SNMPv3 view that you want to bind to this SNMPv3 group. An SNMPv3 user bound to this group can access the subtrees that are bound to this SNMPv3 view as type INCLUDED, but cannot access the ones that are type EXCLUDED. If the NetScaler appliance has multiple SNMPv3 view entries with the same name, all such entries are associated with the SNMPv3 group.<br/>Minimum length = 1
:param readviewname:
"""
try :
self._readviewname = readviewname
except Exception as e:
raise e
@property
def storagetype(self) :
"""The storage type for this group.<br/>Possible values = volatile, nonVolatile."""
try :
return self._storagetype
except Exception as e:
raise e
@property
def status(self) :
"""The status of this group.<br/>Possible values = active."""
try :
return self._status
except Exception as e:
raise e
def _get_nitro_response(self, service, response) :
"""converts nitro response into object and returns the object array in case of get request.
:param service:
:param response:
"""
try :
result = service.payload_formatter.string_to_resource(snmpgroup_response, response, self.__class__.__name__)
if(result.errorcode != 0) :
if (result.errorcode == 444) :
service.clear_session(self)
if result.severity :
if (result.severity == "ERROR") :
raise nitro_exception(result.errorcode, str(result.message), str(result.severity))
else :
raise nitro_exception(result.errorcode, str(result.message), str(result.severity))
return result.snmpgroup
except Exception as e :
raise e
def _get_object_name(self) :
"""Returns the value of object identifier argument"""
try :
if self.name is not None :
return str(self.name)
return None
except Exception as e :
raise e
@classmethod
def add(cls, client, resource) :
"""Use this API to add snmpgroup.
:param client:
:param resource:
"""
try :
if type(resource) is not list :
addresource = snmpgroup()
addresource.name = resource.name
addresource.securitylevel = resource.securitylevel
addresource.readviewname = resource.readviewname
return addresource.add_resource(client)
else :
if (resource and len(resource) > 0) :
addresources = [ snmpgroup() for _ in range(len(resource))]
for i in range(len(resource)) :
addresources[i].name = resource[i].name
addresources[i].securitylevel = resource[i].securitylevel
addresources[i].readviewname = resource[i].readviewname
result = cls.add_bulk_request(client, addresources)
return result
except Exception as e :
raise e
@classmethod
def delete(cls, client, resource) :
"""Use this API to delete snmpgroup.
:param client:
:param resource:
"""
try :
if type(resource) is not list :
deleteresource = snmpgroup()
if type(resource) != type(deleteresource):
deleteresource.name = resource
else :
deleteresource.name = resource.name
deleteresource.securitylevel = resource.securitylevel
return deleteresource.delete_resource(client)
else :
if type(resource[0]) != cls :
if (resource and len(resource) > 0) :
deleteresources = [ snmpgroup() for _ in range(len(resource))]
for i in range(len(resource)) :
deleteresources[i].name = resource[i]
else :
if (resource and len(resource) > 0) :
deleteresources = [ snmpgroup() for _ in range(len(resource))]
for i in range(len(resource)) :
deleteresources[i].name = resource[i].name
deleteresources[i].securitylevel = resource[i].securitylevel
result = cls.delete_bulk_request(client, deleteresources)
return result
except Exception as e :
raise e
@classmethod
def update(cls, client, resource) :
"""Use this API to update snmpgroup.
:param client:
:param resource:
"""
try :
if type(resource) is not list :
updateresource = snmpgroup()
updateresource.name = resource.name
updateresource.securitylevel = resource.securitylevel
updateresource.readviewname = resource.readviewname
return updateresource.update_resource(client)
else :
if (resource and len(resource) > 0) :
updateresources = [ snmpgroup() for _ in range(len(resource))]
for i in range(len(resource)) :
updateresources[i].name = resource[i].name
updateresources[i].securitylevel = resource[i].securitylevel
updateresources[i].readviewname = resource[i].readviewname
result = cls.update_bulk_request(client, updateresources)
return result
except Exception as e :
raise e
@classmethod
def get(cls, client, name="", option_="") :
"""Use this API to fetch all the snmpgroup resources that are configured on netscaler.
:param client:
:param name: (Default value = "")
:param option_: (Default value = "")
"""
try :
if not name :
obj = snmpgroup()
response = obj.get_resources(client, option_)
else :
if type(name) == cls :
if type(name) is not list :
option_ = options()
option_.args = nitro_util.object_to_string_withoutquotes(name)
response = name.get_resource(client, option_)
else :
if name and len(name) > 0 :
response = [snmpgroup() for _ in range(len(name))]
for i in range(len(name)) :
option_ = options()
option_.args = nitro_util.object_to_string_withoutquotes(name[i])
response[i] = name[i].get_resource(client, option_)
return response
except Exception as e :
raise e
@classmethod
def get_filtered(cls, client, filter_) :
"""Use this API to fetch filtered set of snmpgroup resources.
filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
:param client:
:param filter_:
"""
try :
obj = snmpgroup()
option_ = options()
option_.filter = filter_
response = obj.getfiltered(client, option_)
return response
except Exception as e :
raise e
@classmethod
def count(cls, client) :
"""Use this API to count the snmpgroup resources configured on NetScaler.
:param client:
"""
try :
obj = snmpgroup()
option_ = options()
option_.count = True
response = obj.get_resources(client, option_)
if response :
return response[0].__dict__['___count']
return 0
except Exception as e :
raise e
@classmethod
def count_filtered(cls, client, filter_) :
"""Use this API to count filtered the set of snmpgroup resources.
Filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
:param client:
:param filter_:
"""
try :
obj = snmpgroup()
option_ = options()
option_.count = True
option_.filter = filter_
response = obj.getfiltered(client, option_)
if response :
return response[0].__dict__['___count']
return 0
except Exception as e :
raise e
class Storagetype:
""" """
Volatile = "volatile"
nonVolatile = "nonVolatile"
class Securitylevel:
""" """
noAuthNoPriv = "noAuthNoPriv"
authNoPriv = "authNoPriv"
authPriv = "authPriv"
class Status:
""" """
active = "active"
class snmpgroup_response(base_response) :
""" """
def __init__(self, length=1) :
self.snmpgroup = []
self.errorcode = 0
self.message = ""
self.severity = ""
self.sessionid = ""
self.snmpgroup = [snmpgroup() for _ in range(length)]
|
/*
RSI Bull and Bear + ADX modifier
1. Use different RSI-strategies depending on a longer trend
2. But modify this slighly if shorter BULL/BEAR is detected
-
(CC-BY-SA 4.0) Tommie Hansen
https://creativecommons.org/licenses/by-sa/4.0/
*/
// req's
// var config = require('../../../core/util.js').getConfig();
// strategy
var strat = {
/* INIT */
init: function()
{
// core
this.name = 'RSI Bull and Bear + ADX';
this.requiredHistory = this.tradingAdvisor.historySize;
this.resetTrend();
// debug? set to false to disable all logging/messages/stats (improves performance in backtests)
this.debug = false;
// performance
// config.backtest.batchSize = 1000; // increase performance
// config.silent = true;
// config.debug = false;
// SMA
this.addTulipIndicator('maSlow', 'sma', { optInTimePeriod: this.settings.SMA_long });
this.addTulipIndicator('maFast', 'sma', { optInTimePeriod: this.settings.SMA_short });
// RSI
this.addTulipIndicator('BULL_RSI', 'rsi', { optInTimePeriod: this.settings.BULL_RSI });
this.addTulipIndicator('BEAR_RSI', 'rsi', { optInTimePeriod: this.settings.BEAR_RSI });
// ADX
this.addTulipIndicator('ADX', 'adx', { optInTimePeriod: this.settings.ADX })
// MOD (RSI modifiers)
this.BULL_MOD_high = this.settings.BULL_MOD_high;
this.BULL_MOD_low = this.settings.BULL_MOD_low;
this.BEAR_MOD_high = this.settings.BEAR_MOD_high;
this.BEAR_MOD_low = this.settings.BEAR_MOD_low;
// debug stuff
this.startTime = new Date();
// add min/max if debug
if( this.debug ){
this.stat = {
adx: { min: 1000, max: 0 },
bear: { min: 1000, max: 0 },
bull: { min: 1000, max: 0 }
};
}
/* MESSAGES */
// message the user about required history
console.info("====================================");
console.info('Running', this.name);
console.info('====================================');
console.info("Make sure your warmup period matches SMA_long and that Gekko downloads data if needed");
// warn users
if( this.requiredHistory < this.settings.SMA_long )
{
console.warn("*** WARNING *** Your Warmup period is lower then SMA_long. If Gekko does not download data automatically when running LIVE the strategy will default to BEAR-mode until it has enough data.");
}
}, // init()
/* RESET TREND */
resetTrend: function()
{
var trend = {
duration: 0,
direction: 'none',
longPos: false,
};
this.trend = trend;
},
/* get low/high for backtest-period */
lowHigh: function( val, type )
{
let cur;
if( type == 'bear' ) {
cur = this.stat.bear;
if( val < cur.min ) this.stat.bear.min = val; // set new
else if( val > cur.max ) this.stat.bear.max = val;
}
else if( type == 'bull' ) {
cur = this.stat.bull;
if( val < cur.min ) this.stat.bull.min = val; // set new
else if( val > cur.max ) this.stat.bull.max = val;
}
else {
cur = this.stat.adx;
if( val < cur.min ) this.stat.adx.min = val; // set new
else if( val > cur.max ) this.stat.adx.max = val;
}
},
/* CHECK */
check: function()
{
// get all indicators
let ind = this.tulipIndicators,
maSlow = ind.maSlow.result.result,
maFast = ind.maFast.result.result,
rsi,
adx = ind.ADX.result.result;
// BEAR TREND
if( maFast < maSlow )
{
rsi = ind.BEAR_RSI.result.result;
let rsi_hi = this.settings.BEAR_RSI_high,
rsi_low = this.settings.BEAR_RSI_low;
// ADX trend strength?
if( adx > this.settings.ADX_high ) rsi_hi = rsi_hi + this.BEAR_MOD_high;
else if( adx < this.settings.ADX_low ) rsi_low = rsi_low + this.BEAR_MOD_low;
if( rsi > rsi_hi ) this.short();
else if( rsi < rsi_low ) this.long();
if(this.debug) this.lowHigh( rsi, 'bear' );
}
// BULL TREND
else
{
rsi = ind.BULL_RSI.result.result;
let rsi_hi = this.settings.BULL_RSI_high,
rsi_low = this.settings.BULL_RSI_low;
// ADX trend strength?
if( adx > this.settings.ADX_high ) rsi_hi = rsi_hi + this.BULL_MOD_high;
else if( adx < this.settings.ADX_low ) rsi_low = rsi_low + this.BULL_MOD_low;
if( rsi > rsi_hi ) this.short();
else if( rsi < rsi_low ) this.long();
if(this.debug) this.lowHigh( rsi, 'bull' );
}
// add adx low/high if debug
if( this.debug ) this.lowHigh( adx, 'adx');
}, // check()
/* LONG */
long: function()
{
if( this.trend.direction !== 'up' ) // new trend? (only act on new trends)
{
this.resetTrend();
this.trend.direction = 'up';
this.advice('long');
if( this.debug ) console.info('Going long');
}
if( this.debug )
{
this.trend.duration++;
console.info('Long since', this.trend.duration, 'candle(s)');
}
},
/* SHORT */
short: function()
{
// new trend? (else do things)
if( this.trend.direction !== 'down' )
{
this.resetTrend();
this.trend.direction = 'down';
this.advice('short');
if( this.debug ) console.info('Going short');
}
if( this.debug )
{
this.trend.duration++;
console.info('Short since', this.trend.duration, 'candle(s)');
}
},
/* END backtest */
end: function()
{
let seconds = ((new Date()- this.startTime)/1000),
minutes = seconds/60,
str;
minutes < 1 ? str = seconds.toFixed(2) + ' seconds' : str = minutes.toFixed(2) + ' minutes';
console.info('====================================');
console.info('Finished in ' + str);
console.info('====================================');
// print stats and messages if debug
if(this.debug)
{
let stat = this.stat;
console.info('BEAR RSI low/high: ' + stat.bear.min + ' / ' + stat.bear.max);
console.info('BULL RSI low/high: ' + stat.bull.min + ' / ' + stat.bull.max);
console.info('ADX min/max: ' + stat.adx.min + ' / ' + stat.adx.max);
}
}
};
module.exports = strat;
|
({
testStartEndIndexDefaultValues: {
attributes: {items: "a,b,c,d,e", setIndexesInInit: "false"},
test: function(cmp) {
var expected = "0:a,";
var iteration = cmp.find("iteration");
var actual = $A.test.getTextByComponent(iteration);
$A.test.assertEquals(expected, actual, "Iteration is not using start and end indexes from init handler");
}
},
/**
* Verify start and end indexes set on iteration in init handler override the default attribute values defined in
* markup.
*/
testChangeStartEndIndexesInInit: {
attributes: {items: "a,b,c,d,e", setIndexesInInit: "true"},
test: function(cmp) {
var expected = "1:b,2:c,";
var iteration = cmp.find("iteration");
var actual = $A.test.getTextByComponent(iteration);
$A.test.assertEquals(expected, actual, "Iteration is not using start and end indexes from init handler");
}
}
})
|
define([
'angular',
'kbn'
],
function (angular, kbn) {
'use strict';
angular
.module('grafana.directives')
.directive('tip', function($compile) {
return {
restrict: 'E',
link: function(scope, elem, attrs) {
var _t = '<i class="grafana-tip fa fa-'+(attrs.icon||'question-circle')+'" bs-tooltip="\''+
kbn.addslashes(elem.text())+'\'"></i>';
elem.replaceWith($compile(angular.element(_t))(scope));
}
};
});
angular
.module('grafana.directives')
.directive('watchChange', function() {
return {
scope: { onchange: '&watchChange' },
link: function(scope, element) {
element.on('input', function() {
scope.$apply(function () {
scope.onchange({ inputValue: element.val() });
});
});
}
};
});
angular
.module('grafana.directives')
.directive('editorOptBool', function($compile) {
return {
restrict: 'E',
link: function(scope, elem, attrs) {
var ngchange = attrs.change ? (' ng-change="' + attrs.change + '"') : '';
var tip = attrs.tip ? (' <tip>' + attrs.tip + '</tip>') : '';
var showIf = attrs.showIf ? (' ng-show="' + attrs.showIf + '" ') : '';
var template = '<div class="editor-option text-center"' + showIf + '>' +
' <label for="' + attrs.model + '" class="small">' +
attrs.text + tip + '</label>' +
'<input class="cr1" id="' + attrs.model + '" type="checkbox" ' +
' ng-model="' + attrs.model + '"' + ngchange +
' ng-checked="' + attrs.model + '"></input>' +
' <label for="' + attrs.model + '" class="cr1"></label>';
elem.replaceWith($compile(angular.element(template))(scope));
}
};
});
angular
.module('grafana.directives')
.directive('editorCheckbox', function($compile, $interpolate) {
return {
restrict: 'E',
link: function(scope, elem, attrs) {
var text = $interpolate(attrs.text)(scope);
var ngchange = attrs.change ? (' ng-change="' + attrs.change + '"') : '';
var tip = attrs.tip ? (' <tip>' + attrs.tip + '</tip>') : '';
var label = '<label for="' + scope.$id + attrs.model + '" class="checkbox-label">' +
text + tip + '</label>';
var template = '<input class="cr1" id="' + scope.$id + attrs.model + '" type="checkbox" ' +
' ng-model="' + attrs.model + '"' + ngchange +
' ng-checked="' + attrs.model + '"></input>' +
' <label for="' + scope.$id + attrs.model + '" class="cr1"></label>';
template = label + template;
elem.replaceWith($compile(angular.element(template))(scope));
}
};
});
angular
.module('grafana.directives')
.directive('gfDropdown', function ($parse, $compile, $timeout) {
function buildTemplate(items, placement) {
var upclass = placement === 'top' ? 'dropup' : '';
var ul = [
'<ul class="dropdown-menu ' + upclass + '" role="menu" aria-labelledby="drop1">',
'</ul>'
];
angular.forEach(items, function (item, index) {
if (item.divider) {
return ul.splice(index + 1, 0, '<li class="divider"></li>');
}
var li = '<li' + (item.submenu && item.submenu.length ? ' class="dropdown-submenu"' : '') + '>' +
'<a tabindex="-1" ng-href="' + (item.href || '') + '"' + (item.click ? ' ng-click="' + item.click + '"' : '') +
(item.target ? ' target="' + item.target + '"' : '') + (item.method ? ' data-method="' + item.method + '"' : '') +
(item.configModal ? ' dash-editor-link="' + item.configModal + '"' : "") +
'>' + (item.text || '') + '</a>';
if (item.submenu && item.submenu.length) {
li += buildTemplate(item.submenu).join('\n');
}
li += '</li>';
ul.splice(index + 1, 0, li);
});
return ul;
}
return {
restrict: 'EA',
scope: true,
link: function postLink(scope, iElement, iAttrs) {
var getter = $parse(iAttrs.gfDropdown), items = getter(scope);
$timeout(function () {
var placement = iElement.data('placement');
var dropdown = angular.element(buildTemplate(items, placement).join(''));
dropdown.insertAfter(iElement);
$compile(iElement.next('ul.dropdown-menu'))(scope);
});
iElement.addClass('dropdown-toggle').attr('data-toggle', 'dropdown');
}
};
});
});
|
import pytest
from msys.core import Connectable, Type, Connection
@pytest.mark.core
@pytest.mark.connection
def test_connect_input_output():
in0 = Connectable(Type([12.90, 14]))
output = Connectable(Type([1, 3]))
def test_disconect(ins, outs):
Connection.disconnect(outs, ins)
ins.set_value(1)
assert outs.get_value() != ins.get_value()
def test_connect(ins, outs):
Connection.connect(outs, ins)
assert outs.get_value() == ins.get_value()
def test_connect_ingoing(ins, outs):
outs.connect_ingoing(ins)
assert outs.get_value() == ins.get_value()
def test_disconnect_ingoing(ins, outs):
outs.disconnect_ingoing()
ins.set_value(2)
assert outs.get_value() != ins.get_value()
def test_connect_outgoing(ins, outs):
ins.connect_outgoing(outs)
assert outs.get_value() == ins.get_value()
def test_disconnect_outgoing(ins, outs):
ins.disconnect_outgoing()
ins.set_value(3)
assert outs.get_value() != ins.get_value()
test_disconect(in0, output)
test_connect(in0, output)
test_disconect(in0, output)
test_connect_ingoing(in0, output)
test_disconnect_ingoing(in0, output)
test_connect_outgoing(in0, output)
test_disconnect_outgoing(in0, output)
@pytest.mark.core
@pytest.mark.connection
def test_connect_multiple_input_output():
in2 = Connectable(Type())
in1 = Connectable(Type())
in0 = Connectable(Type())
inputs = [in0, in1, in2]
output = Connectable(Type([1, 3]))
def test_disconect(ins, outs):
outs.disconnect_outgoing()
for i in range(len(ins)):
ins[i].set_value(i)
assert outs.get_value() != ins[i].get_value()
def test_connect(ins, outs):
outs.connect_multiple_outgoing(ins)
for i in ins:
assert outs.get_value() == i.get_value()
test_disconect(inputs, output)
test_connect(inputs, output)
test_disconect(inputs, output)
assert output.connect_multiple_outgoing([])
|