hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
0da567c06c31d1022d02d1c732e252d63531412b
1,497
cs
C#
PokeBattle_Client/PokeBattle_Client/PokemonPicker.xaml.cs
NextLight/PokeBattle_Client
bf04779685f14ebb027195b8f95cc7d251b1151b
[ "MIT" ]
1
2016-04-12T11:10:03.000Z
2016-04-12T11:10:03.000Z
PokeBattle_Client/PokeBattle_Client/PokemonPicker.xaml.cs
NextLight/PokeBattle_Client
bf04779685f14ebb027195b8f95cc7d251b1151b
[ "MIT" ]
null
null
null
PokeBattle_Client/PokeBattle_Client/PokemonPicker.xaml.cs
NextLight/PokeBattle_Client
bf04779685f14ebb027195b8f95cc7d251b1151b
[ "MIT" ]
null
null
null
using System; using System.Linq; using System.Windows; using System.Windows.Input; namespace PokeBattle_Client { public partial class PokemonPicker : Popup { public PokemonPicker() { InitializeComponent(); } Pokemon[] _pokeTeam; public Pokemon[] PokeTeam { set { _pokeTeam = value; } } public void Show(int activePokemonIndex, bool canCLose) { CanClose = canCLose; Visibility = Visibility.Visible; if (_pokeTeam != null && activePokemonIndex < _pokeTeam.Length) listBox.ItemsSource = _pokeTeam.Where((p, i) => !p.Fainted && i != activePokemonIndex); } public event EventHandler<PickedPokemonArgs> Picked; private void ListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (listBox.SelectedIndex != -1) { var poke = (Pokemon)listBox.SelectedItem; Picked?.Invoke(this, new PickedPokemonArgs(poke, Array.IndexOf(_pokeTeam, poke))); } Visibility = Visibility.Hidden; } } public class PickedPokemonArgs : EventArgs { public Pokemon PickedPokemon { get; } public int PickedIndex { get; } public PickedPokemonArgs(Pokemon poke, int idx) { PickedPokemon = poke; PickedIndex = idx; } } }
26.732143
103
0.56179
7e90204b290786abaee101f877734fb8f8d23407
18,553
lua
Lua
rpg/tool.lua
ryanqdang/Minetest_RPG
9af9af0a3ba1f397328bab9f16e1742f023e49f1
[ "MIT" ]
3
2019-02-05T07:12:51.000Z
2022-02-28T15:37:01.000Z
rpg/tool.lua
ryanqdang/Minetest_RPG
9af9af0a3ba1f397328bab9f16e1742f023e49f1
[ "MIT" ]
null
null
null
rpg/tool.lua
ryanqdang/Minetest_RPG
9af9af0a3ba1f397328bab9f16e1742f023e49f1
[ "MIT" ]
1
2019-02-05T07:12:51.000Z
2019-02-05T07:12:51.000Z
--[[ This file adds skills to the tools for the RPG mod Axes: Timber Right-click trees with an axe to chop down the entire tree. Higher skill level grants faster cooldowns. Pickaxes: Miner's Luck Right-click stone to turn it into a random ore. Higher skill level grants better ores and faster cooldowns. Shovels: Bulldozer Right-click dirt to dig a 3x3x3 area. by Ryan Dang ]]-- rpg_tools = {} rpg_tools.axeCDStart = minetest.get_us_time() rpg_tools.miningCDStart = minetest.get_us_time() rpg_tools.diggingCDStart = minetest.get_us_time() -- returns the leaves that accompany the tree type local function leaves(name) if name == "default:tree" then return "default:leaves" elseif name == "default:jungletree" then return "default:jungleleaves" elseif name == "default:pine_tree" then return "default:pine_needles" elseif name == "default:acacia_tree" then return "default:acacia_leaves" elseif name == "default:aspen_tree" then return "default:aspen_leaves" end end -- returns the tree that accompany the leaves local function trees(name) if name == "default:leaves" then return "default:tree" elseif name == "default:jungleleaves" then return "default:jungletree" elseif name == "default:pine_needles" then return "default:pine_tree" elseif name == "default:acacia_leaves" then return "default:acacia_tree" elseif name == "default:aspen_leaves" then return "default:aspen_tree" end end -- recursive function to cut a tree upwards -- returns a count of the number of pieces of wood cut and the leaves cut local function cutWood(pos, count) local node = minetest.get_node(pos) local name = node.name if string.find(name, "tree") then count.wood = count.wood + 1 else count.leaves = count.leaves + 1 end minetest.dig_node(pos) local westNode = minetest.get_node({x = pos.x - 1, y = pos.y, z = pos.z}) if (westNode.name == name) or (westNode.name == leaves(name)) or (westNode.name == trees(name)) then count = cutWood({x = pos.x - 1, y = pos.y, z = pos.z}, {wood = count.wood, leaves = count.leaves}) end local eastNode = minetest.get_node({x = pos.x + 1, y = pos.y, z = pos.z}) if (eastNode.name == name) or (eastNode.name == leaves(name)) or (eastNode.name == trees(name)) then count = cutWood({x = pos.x + 1, y = pos.y, z = pos.z}, {wood = count.wood, leaves = count.leaves}) end local northNode = minetest.get_node({x = pos.x, y = pos.y, z = pos.z + 1}) if (northNode.name == name) or (northNode.name == leaves(name) or (northNode.name == trees(name))) then count = cutWood({x = pos.x, y = pos.y, z = pos.z + 1}, {wood = count.wood, leaves = count.leaves}) end local southNode = minetest.get_node({x = pos.x, y = pos.y, z = pos.z - 1}) if (southNode.name == name) or (southNode.name == leaves(name)) or (southNode.name == trees(name)) then count = cutWood({x = pos.x, y = pos.y, z = pos.z - 1}, {wood = count.wood, leaves = count.leaves}) end local upNode = minetest.get_node({x = pos.x, y = pos.y + 1, z = pos.z}) if (upNode.name == name) or (upNode.name == leaves(name)) or (upNode.name == trees(name)) then count = cutWood({x = pos.x, y = pos.y + 1, z = pos.z}, {wood = count.wood, leaves = count.leaves}) end return count end -- axe skill -- chops down an entire tree local function axeRightclick(itemStack, player, pointed_thing) if pointed_thing.type == "node" then local pos = pointed_thing.under local block = minetest.get_node(pos) if string.find(block.name, "tree") then local axeLvl = player:get_attribute("axeLvl") -- checks if axe level is eligible to cut down entire trees if tonumber(axeLvl) == 0 then minetest.chat_send_player(player:get_player_name(), "You must have at least 1 Axe level to use Timber.") else -- sets a timer for the cooldown of the skill rpg_tools.axeCDEnd = minetest.get_us_time() local timeElapsed = rpg_tools.axeCDEnd - rpg_tools.axeCDStart local cooldown = math.floor(120 / axeLvl + 1) if cooldown < 0 then cooldown = 0 end if timeElapsed/1000000 >= cooldown then rpg_tools.axeCDStart = minetest.get_us_time() local woodName = block.name local count = cutWood(pos, {wood = 0, leaves = 0}) local woodStack = ItemStack(woodName .. " " .. count.wood) local leaveStack = ItemStack(leaves(woodName) .. " " ..count.leaves) pos.x = pos.x - .25 minetest.add_item(pos, woodStack) pos.x = pos.x + .5 minetest.add_item(pos, leaveStack) minetest.chat_send_player(player:get_player_name(), "Timber! " .. count.wood .. " pieces of wood cut. " .. count.leaves .. " leaves cut.") -- adds exp rpg.addXP(player, "axe", count.wood) else minetest.chat_send_player(player:get_player_name(), "Your Timber skill is on cooldown: " .. (cooldown - math.floor(timeElapsed/1000000)) .. " seconds left") end end else minetest.chat_send_player(player:get_player_name(), "You must rightclick on a tree to use Timber.") end end end -- returns the name of the random ore chosen -- once skill reaches 100, ores do not get any better local function getRandomOre(skill) if skill > 100 then skill = 100 end local lowTier = 30 local midTier = 60 local highTier = 90 local blockTier = 90 local randomNumber = math.random(0 + skill, 100) local blockChance = math.random(0 + skill/2, 100) if randomNumber >= highTier then local diamond_or_gold_or_mese = math.random(0, 4) if diamond_or_gold_or_mese <= 1 then if blockChance >= blockTier then return "default:diamondblock" else return "default:stone_with_diamond" end elseif diamond_or_gold_or_mese <= 3 then if blockChance >= blockTier then return "default:goldblock" else return "default:stone_with_gold" end else if blockChance >= blockTier then return "default:mese" else return "default:stone_with_mese" end end end if randomNumber >= midTier then if blockChance >= blockTier then return "default:steelblock" else return "default:stone_with_iron" end end if randomNumber >= lowTier then local copper_or_tin = math.random(0,1) if copper_or_tin == 0 then if blockChance >= blockTier then return "default:copperblock" else return "default:stone_with_copper" end else if blockChance >= blockTier then return "default:tinblock" else return "default:stone_with_tin" end end end if blockChance >= blockTier then return "default:coalblock" else return "default:stone_with_coal" end end -- mining skill -- turns stone into a random ore local function pickaxeRightClick(itemStack, player, pointed_thing) if pointed_thing.type == "node" then local pos = pointed_thing.under local block = minetest.get_node(pos) if block.name == "default:stone" then local miningLvl = player:get_attribute("miningLvl") -- checks if mining level is eligible to cut down entire trees if tonumber(miningLvl) == 0 then minetest.chat_send_player(player:get_player_name(), "You must have at least 1 Mining level to use Miner's Luck.") else -- sets a timer for the cooldown of the skill rpg_tools.miningCDEnd = minetest.get_us_time() local timeElapsed = rpg_tools.miningCDEnd - rpg_tools.miningCDStart local cooldown = math.floor(120 / miningLvl + 1) if cooldown < 0 then cooldown = 0 end if timeElapsed/1000000 >= cooldown then rpg_tools.miningCDStart = minetest.get_us_time() local randomNode = getRandomOre(tonumber(miningLvl)) if string.find(randomNode, "block") then minetest.chat_send_player(player:get_player_name(), "Miner's Luck! Your stone turned into a block!") else minetest.chat_send_player(player:get_player_name(), "Miner's Luck! Your stone turned into ore!") end minetest.set_node(pos, {name = randomNode}) else minetest.chat_send_player(player:get_player_name(), "Your Miner's Luck skill is on cooldown: " .. (cooldown - math.floor(timeElapsed/1000000)) .. " seconds left") end end else minetest.chat_send_player(player:get_player_name(), "You must rightclick on stone to use Miner's Luck.") end end end function rpg_tools.diggable(name) local diggableNodes = "default:dirt" .. "default:dirt_with_grass" .. "default:dirt_with_grass_footsteps" .. "default:dirt_with_dry_grass" .. "default:dirt_with_snow" .. "default:dirt_with_rainforest_litter" .. "default:sand" .. "default:desert_sand" .. "default:silver_sand" .. "default:gravel" .. "default:clay" return string.find(diggableNodes, name) end -- digs a 3 x 3 x 3 area local function bulldozer(pos) local count = 0 for x=1,3 do for z=1,3 do for y=1,3 do local pos2 = {x = pos.x + x - 2, y = pos.y + y - 2, z = pos.z + z - 2} local node = minetest.get_node(pos2) if rpg_tools.diggable(node.name) then minetest.dig_node(pos2) count = count + 1 end end end end return count end -- digging skill -- digs a large area local function shovelRightClick(itemStack, player, pointed_thing) if pointed_thing.type == "node" then local pos = pointed_thing.under local block = minetest.get_node(pos) if rpg_tools.diggable(block.name) then local diggingLvl = player:get_attribute("diggingLvl") -- checks if digging level is eligible use skill if tonumber(diggingLvl) == 0 then minetest.chat_send_player(player:get_player_name(), "You must have at least 1 Digging level to use Bulldozer.") else -- sets a timer for the cooldown of the skill rpg_tools.diggingCDEnd = minetest.get_us_time() local timeElapsed = rpg_tools.diggingCDEnd - rpg_tools.diggingCDStart local cooldown = math.floor(20 - diggingLvl) if cooldown < 0 then cooldown = 0 end if timeElapsed/1000000 >= cooldown then rpg_tools.diggingCDStart = minetest.get_us_time() local dirtDug = bulldozer(pos) minetest.chat_send_player(player:get_player_name(), "Bulldozer! " .. dirtDug .. " pieces of dirt dug up.") rpg.addXP(player, "digging", dirtDug) else minetest.chat_send_player(player:get_player_name(), "Your Bulldozer skill is on cooldown: " .. (cooldown - math.floor(timeElapsed/1000000)) .. " seconds left") end end else minetest.chat_send_player(player:get_player_name(), "You must rightclick on dirt to use Bulldozer.") end end end -- overrides -- -- Axes -- minetest.override_item("default:axe_wood", { description = "Wooden Axe", inventory_image = "default_tool_woodaxe.png", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=0, groupcaps={ choppy = {times={[2]=3.00, [3]=1.60}, uses=10, maxlevel=1}, }, damage_groups = {fleshy=2}, }, groups = {flammable = 2, axe = 1}, sound = {breaks = "default_tool_breaks"}, on_place = axeRightclick, }) minetest.override_item("default:axe_stone", { description = "Stone Axe", inventory_image = "default_tool_stoneaxe.png", tool_capabilities = { full_punch_interval = 1.2, max_drop_level=0, groupcaps={ choppy={times={[1]=3.00, [2]=2.00, [3]=1.30}, uses=20, maxlevel=1}, }, damage_groups = {fleshy=3}, }, sound = {breaks = "default_tool_breaks"}, on_place = axeRightclick, groups = {axe = 1} }) minetest.override_item("default:axe_steel", { description = "Steel Axe", inventory_image = "default_tool_steelaxe.png", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=1, groupcaps={ choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2}, }, damage_groups = {fleshy=4}, }, sound = {breaks = "default_tool_breaks"}, on_place = axeRightclick, groups = {axe = 1} }) minetest.override_item("default:axe_bronze", { description = "Bronze Axe", inventory_image = "default_tool_bronzeaxe.png", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=1, groupcaps={ choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=30, maxlevel=2}, }, damage_groups = {fleshy=4}, }, sound = {breaks = "default_tool_breaks"}, on_place = axeRightclick, groups = {axe = 1} }) minetest.override_item("default:axe_mese", { description = "Mese Axe", inventory_image = "default_tool_meseaxe.png", tool_capabilities = { full_punch_interval = 0.9, max_drop_level=1, groupcaps={ choppy={times={[1]=2.20, [2]=1.00, [3]=0.60}, uses=20, maxlevel=3}, }, damage_groups = {fleshy=6}, }, sound = {breaks = "default_tool_breaks"}, on_place = axeRightclick, groups = {axe = 1} }) minetest.override_item("default:axe_diamond", { description = "Diamond Axe", inventory_image = "default_tool_diamondaxe.png", tool_capabilities = { full_punch_interval = 0.9, max_drop_level=1, groupcaps={ choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=30, maxlevel=2}, }, damage_groups = {fleshy=7}, }, sound = {breaks = "default_tool_breaks"}, on_place = axeRightclick, groups = {axe = 1} }) -- -- Picks -- minetest.override_item("default:pick_wood", { description = "Wooden Pickaxe", inventory_image = "default_tool_woodpick.png", tool_capabilities = { full_punch_interval = 1.2, max_drop_level=0, groupcaps={ cracky = {times={[3]=1.60}, uses=10, maxlevel=1}, }, damage_groups = {fleshy=2}, }, groups = {flammable = 2, pickaxe = 1}, sound = {breaks = "default_tool_breaks"}, on_place = pickaxeRightClick }) minetest.override_item("default:pick_stone", { description = "Stone Pickaxe", inventory_image = "default_tool_stonepick.png", tool_capabilities = { full_punch_interval = 1.3, max_drop_level=0, groupcaps={ cracky = {times={[2]=2.0, [3]=1.00}, uses=20, maxlevel=1}, }, damage_groups = {fleshy=3}, }, sound = {breaks = "default_tool_breaks"}, on_place = pickaxeRightClick, groups = {pickaxe = 1} }) minetest.override_item("default:pick_steel", { description = "Steel Pickaxe", inventory_image = "default_tool_steelpick.png", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=1, groupcaps={ cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=20, maxlevel=2}, }, damage_groups = {fleshy=4}, }, sound = {breaks = "default_tool_breaks"}, on_place = pickaxeRightClick, groups = {pickaxe = 1} }) minetest.override_item("default:pick_bronze", { description = "Bronze Pickaxe", inventory_image = "default_tool_bronzepick.png", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=1, groupcaps={ cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=30, maxlevel=2}, }, damage_groups = {fleshy=4}, }, sound = {breaks = "default_tool_breaks"}, on_place = pickaxeRightClick, groups = {pickaxe = 1} }) minetest.override_item("default:pick_mese", { description = "Mese Pickaxe", inventory_image = "default_tool_mesepick.png", tool_capabilities = { full_punch_interval = 0.9, max_drop_level=3, groupcaps={ cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=20, maxlevel=3}, }, damage_groups = {fleshy=5}, }, sound = {breaks = "default_tool_breaks"}, on_place = pickaxeRightClick, groups = {pickaxe = 1} }) minetest.override_item("default:pick_diamond", { description = "Diamond Pickaxe", inventory_image = "default_tool_diamondpick.png", tool_capabilities = { full_punch_interval = 0.9, max_drop_level=3, groupcaps={ cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=30, maxlevel=3}, }, damage_groups = {fleshy=5}, }, sound = {breaks = "default_tool_breaks"}, on_place = pickaxeRightClick, groups = {pickaxe = 1} }) -- -- Shovels -- minetest.override_item("default:shovel_wood", { description = "Wooden Shovel", inventory_image = "default_tool_woodshovel.png", wield_image = "default_tool_woodshovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.2, max_drop_level=0, groupcaps={ crumbly = {times={[1]=3.00, [2]=1.60, [3]=0.60}, uses=10, maxlevel=1}, }, damage_groups = {fleshy=2}, }, groups = {flammable = 2 , shovel = 1}, sound = {breaks = "default_tool_breaks"}, on_place = shovelRightClick }) minetest.override_item("default:shovel_stone", { description = "Stone Shovel", inventory_image = "default_tool_stoneshovel.png", wield_image = "default_tool_stoneshovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.4, max_drop_level=0, groupcaps={ crumbly = {times={[1]=1.80, [2]=1.20, [3]=0.50}, uses=20, maxlevel=1}, }, damage_groups = {fleshy=2}, }, sound = {breaks = "default_tool_breaks"}, on_place = shovelRightClick, groups = {shovel = 1} }) minetest.override_item("default:shovel_steel", { description = "Steel Shovel", inventory_image = "default_tool_steelshovel.png", wield_image = "default_tool_steelshovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.1, max_drop_level=1, groupcaps={ crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=30, maxlevel=2}, }, damage_groups = {fleshy=3}, }, sound = {breaks = "default_tool_breaks"}, on_place = shovelRightClick, groups = {shovel = 1} }) minetest.override_item("default:shovel_bronze", { description = "Bronze Shovel", inventory_image = "default_tool_bronzeshovel.png", wield_image = "default_tool_bronzeshovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.1, max_drop_level=1, groupcaps={ crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=40, maxlevel=2}, }, damage_groups = {fleshy=3}, }, sound = {breaks = "default_tool_breaks"}, on_place = shovelRightClick, groups = {shovel = 1} }) minetest.override_item("default:shovel_mese", { description = "Mese Shovel", inventory_image = "default_tool_meseshovel.png", wield_image = "default_tool_meseshovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=3, groupcaps={ crumbly = {times={[1]=1.20, [2]=0.60, [3]=0.30}, uses=20, maxlevel=3}, }, damage_groups = {fleshy=4}, }, sound = {breaks = "default_tool_breaks"}, on_place = shovelRightClick, groups = {shovel = 1} }) minetest.override_item("default:shovel_diamond", { description = "Diamond Shovel", inventory_image = "default_tool_diamondshovel.png", wield_image = "default_tool_diamondshovel.png^[transformR90", tool_capabilities = { full_punch_interval = 1.0, max_drop_level=1, groupcaps={ crumbly = {times={[1]=1.10, [2]=0.50, [3]=0.30}, uses=30, maxlevel=3}, }, damage_groups = {fleshy=4}, }, sound = {breaks = "default_tool_breaks"}, on_place = shovelRightClick, groups = {shovel = 1} })
28.325191
167
0.68749
85b3fccd50da7f5943da3f8bd90a1731f8770356
22,792
dart
Dart
lib/features/static_pages/assignment_completed_card.dart
RKBL4ZE/Attendit-Mobile
51b017234da260c7c20e7aded7faea3951d64490
[ "MIT" ]
null
null
null
lib/features/static_pages/assignment_completed_card.dart
RKBL4ZE/Attendit-Mobile
51b017234da260c7c20e7aded7faea3951d64490
[ "MIT" ]
null
null
null
lib/features/static_pages/assignment_completed_card.dart
RKBL4ZE/Attendit-Mobile
51b017234da260c7c20e7aded7faea3951d64490
[ "MIT" ]
null
null
null
import 'package:auto_size_text/auto_size_text.dart'; import 'package:flutter/material.dart'; final double radius = 70; final double angle = 0; final double insidefont = 20; final Color footercolor = Color.fromRGBO(95, 197, 209, 1); final Color textColor = Color.fromRGBO(29, 53, 84, 0.9); final int barpercent = 90; //final double containerheight = 105; class AssignmentCard extends StatefulWidget { final String fullsubname; const AssignmentCard({Key key, this.fullsubname}) : super(key: key); @override _AssignmentCardState createState() => _AssignmentCardState(); } class _AssignmentCardState extends State<AssignmentCard> { bool bar = true; bool addattachment = false; void chanebar() { // operations to be performed // end of operations to be performed setState(() { if (bar == false) { bar = true; } else if (bar == true) { bar = false; } }); } void chaneattachments() { // operations to be performed // end of operations to be performed setState(() { if (addattachment == false) { addattachment = true; } else if (addattachment == true) { addattachment = false; } }); } Widget menuContent(var icon, String string, Widget widget, var context) { return InkWell( onTap: () { // pushNewScreen(context, screen: widget); }, child: Container( margin: EdgeInsets.fromLTRB(0, 7, 0, 7), child: Row( children: <Widget>[ Icon( icon, color: Colors.red, //color: Color.fromRGBO(128, 139, 151, 1), size: 20.0, ), SizedBox( width: 15, ), Text(string, style: TextStyle( fontSize: 15, fontFamily: 'Rubik', color: Color.fromRGBO(128, 139, 151, 1), fontWeight: FontWeight.bold)), ], ), ), ); } @override Widget build(BuildContext context) { if (bar) { return InkWell( onTap: () => chanebar(), child: Container( height: 80, width: double.infinity, margin: EdgeInsets.fromLTRB(10, 5, 10, 5), child: Card( // color: Color.fromRGBO(225, 239, 240, 1), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ Container( margin: EdgeInsets.fromLTRB(20, 10, 5, 10), child: AutoSizeText( widget.fullsubname, style: TextStyle( fontFamily: 'Rubik', fontSize: 19, color: textColor, fontWeight: FontWeight.bold), )), Container( margin: EdgeInsets.fromLTRB(0, 10, 10, 10), child: Text( "View Details", style: TextStyle( fontFamily: 'Rubik', fontSize: 14, color: Colors.red, fontWeight: FontWeight.bold), ), ), // SizedBox(width: 1) ], ), ))); } else { return InkWell( onTap: () => chanebar(), child: Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(13), boxShadow: [ BoxShadow( color: Colors.grey.withAlpha(60), blurRadius: 5.0, spreadRadius: 0.0, offset: Offset( 0.0, 0.0, ), ), ]), //height: containerheight, width: double.infinity, margin: EdgeInsets.fromLTRB(10, 5, 10, 5), child: Card( borderOnForeground: true, //color: Color.fromRGBO(225, 239, 240, 1), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), child: Container( margin: EdgeInsets.fromLTRB(20, 15, 20, 5), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Text( widget.fullsubname, textAlign: TextAlign.left, style: TextStyle( fontFamily: 'Karla', fontSize: 19, color: textColor, fontWeight: FontWeight.bold), ), SizedBox( height: 5, ), Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Container( margin: EdgeInsets.fromLTRB(0, 5, 0, 5), child: Text( "Check out Attached pdf and submit your assignment", style: TextStyle( fontFamily: 'Karla', fontSize: 16, color: Color.fromRGBO(46, 96, 102, 1), // fontWeight: FontWeight.bold ), ), ), // SizedBox( // height: 5, // ), Container( margin: EdgeInsets.fromLTRB(0, 5, 0, 5), child: Text( "Attachments", style: TextStyle( fontFamily: 'Karla', fontSize: 17, color: Color.fromRGBO(95, 197, 209, 1), fontWeight: FontWeight.bold), ), ), menuContent(Icons.picture_as_pdf, "Assignment.pdf", Text(""), context), // SizedBox( // height: 5, // ), Container( child: addattachment ? Column( children: <Widget>[ Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ Text( "Due 01 Jun,10:00 AM", style: TextStyle( fontFamily: 'Karla', fontSize: 14, color: Colors.red, fontWeight: FontWeight.bold), ), Text( "Max Marks: 25", style: TextStyle( fontFamily: 'Karla', fontSize: 14, color: Color.fromRGBO( 95, 197, 209, 1), fontWeight: FontWeight.bold), ), ], ), // SizedBox( // height: 10, // ), Container( margin: EdgeInsets.fromLTRB(0, 14, 0, 14), alignment: Alignment.bottomCenter, height: 40.0, child: OutlineButton( shape: new RoundedRectangleBorder( borderRadius: new BorderRadius.circular( 10.0)), // textColor: Colors.blue, child: SizedBox.expand( child: Center( child: Text('Add Attachments', style: TextStyle( color: Color.fromRGBO( 95, 197, 209, 1), fontSize: 16, fontWeight: FontWeight.bold, )), ), ), borderSide: BorderSide( color: Color.fromRGBO( 95, 197, 209, 1), style: BorderStyle.solid, width: 1.5), onPressed: () { chaneattachments(); }, )), Container( margin: EdgeInsets.fromLTRB(0, 0, 0, 10), alignment: Alignment.bottomCenter, height: 40.0, child: RaisedButton( onPressed: () {}, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(80.0)), padding: EdgeInsets.all(0.0), child: Ink( decoration: BoxDecoration( gradient: LinearGradient( colors: [ Color.fromRGBO( 95, 197, 209, 1), Color.fromRGBO( 152, 214, 217, 1) ], begin: Alignment.centerLeft, end: Alignment.centerRight, ), borderRadius: BorderRadius.circular( 10.0)), child: Container( constraints: BoxConstraints( maxWidth: 300.0, minHeight: 50.0), alignment: Alignment.center, child: Text( "Mark As Done ! ", textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 15), ), ), ), ), ), ], ) : Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Container( margin: EdgeInsets.fromLTRB(0, 5, 0, 5), child: Text( "Your Work", textAlign: TextAlign.left, style: TextStyle( fontFamily: 'Karla', fontSize: 17, color: Color.fromRGBO( 95, 197, 209, 1), fontWeight: FontWeight.bold), ), ), menuContent( Icons.picture_as_pdf, "AssignmentWork.pdf", Text(""), context), SizedBox(height: 6), Container( margin: EdgeInsets.fromLTRB(0, 0, 0, 10), alignment: Alignment.bottomCenter, height: 40.0, child: RaisedButton( onPressed: () {}, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(80.0)), padding: EdgeInsets.all(0.0), child: Ink( decoration: BoxDecoration( gradient: LinearGradient( colors: [ Color.fromRGBO( 95, 197, 209, 1), Color.fromRGBO( 152, 214, 217, 1) ], begin: Alignment.centerLeft, end: Alignment.centerRight, ), borderRadius: BorderRadius.circular( 10.0)), child: Container( constraints: BoxConstraints( maxWidth: 300.0, minHeight: 50.0), alignment: Alignment.center, child: Text( "Submited", textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 15), ), ), ), ), ), Container( margin: EdgeInsets.fromLTRB(0, 10, 0, 25), decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), boxShadow: [ BoxShadow( color: Colors.grey.withAlpha(70), blurRadius: 6.0, spreadRadius: 4.0, offset: Offset( 0.0, 3.0, ), ), ]), child: Material( borderRadius: BorderRadius.circular(10.0), // elevation: 5.0, shadowColor: Color.fromRGBO(152, 214, 217, 1), child: TextField( // controller: username, decoration: InputDecoration( suffixIcon: Icon(Icons.send), prefixIcon: Container( margin: EdgeInsets.fromLTRB( 7, 7, 10, 7), decoration: BoxDecoration( boxShadow: [ BoxShadow( color: Colors.grey .withAlpha(70), blurRadius: 6.0, spreadRadius: 4.0, offset: Offset( 0.0, 3.0, ), ), ], borderRadius: BorderRadius.all( Radius.circular(50)), border: Border.all( color: Colors.white70, width: 2, ), ), child: ClipRRect( borderRadius: BorderRadius.all( Radius.circular(100), ), child: Image.network( "https://pbs.twimg.com/media/D92KtbDWkAA_0j6.jpg", height: 30, width: 30, fit: BoxFit.cover, ), ), ), border: InputBorder.none, // contentPadding: EdgeInsets.all(8), //Add th Hint text here. hintText: "Type here...", hintStyle: TextStyle( fontSize: 18.0, color: Color.fromRGBO( 168, 181, 198, 1)), ), ), ), ), ], ), ), ], ), ], ), ), ))); } } }
49.226782
102
0.255835
f44911dc7c4eb2c51f58d9d7956f1557e51ec944
6,999
cs
C#
Assets/Scripts/Base/EstadisticasBase.cs
Bellseboss-Studio/ProyectoPrincipal_JuegoDePeleas
beafd9e90b0dadd71797b87d67fdaf69c6cff554
[ "Apache-2.0" ]
null
null
null
Assets/Scripts/Base/EstadisticasBase.cs
Bellseboss-Studio/ProyectoPrincipal_JuegoDePeleas
beafd9e90b0dadd71797b87d67fdaf69c6cff554
[ "Apache-2.0" ]
null
null
null
Assets/Scripts/Base/EstadisticasBase.cs
Bellseboss-Studio/ProyectoPrincipal_JuegoDePeleas
beafd9e90b0dadd71797b87d67fdaf69c6cff554
[ "Apache-2.0" ]
1
2020-08-24T02:48:30.000Z
2020-08-24T02:48:30.000Z
using System.Collections.Generic; using TMPro; using UnityEngine; public class EstadisticasBase : MonoBehaviour, InterfazDeMetodosGenericosParaAcciones { [SerializeField] private float vida; private float fuerza; private float patada, punio; private bool estaEnElpiso, isPunio, isPatada, isFireBall, isDragonPunch, saltaAlDragonPunch; private float speedJump; [SerializeField] private float speed; [Header("Tiempos de estados")] [Tooltip("Tiempo en volver al combate")] [Range(0f, 1f)] [SerializeField] private float tiempoRecuperacion; [Tooltip("Tiempo donde no podra ser golpeado de nuevo")] [Range(0f, 1f)] [SerializeField] private float tiempoGolpeado; //desplazamientos por golpe (fuerzas) [SerializeField] private float fuerzaGolpeDebil, fuerzaGolpeFuerte, fuerzaDragonPunch, fuerzaEmpujeDragonPunch; private float speedFireBal; [SerializeField] private GameObject fireBallPrefab; [SerializeField] private float fuerzaDeSaltoHaciaAtras, fuerzaHaciaArriba, tiempoDeDashHaciaAtras; public bool IsPunioActivo { set { isPunio = value; } get { return isPunio; } } public bool IsPatadaActivo { set { isPatada = value; } get { return isPatada; } } public float SpeedJump { set { speedJump = value; } get { return speedJump; } } public float Speed { set { speed = value; } get { return speed; } } public bool EstaEnElPiso { set { estaEnElpiso = value; } get { return estaEnElpiso; } } public float Patada { get { return fuerza * 2; } set { patada += value; } } public float Punio { get { return fuerza * 1; } set { punio += value; } } public float Vida{ get { return vida; } set { vida = value; } } public float Fuerza { get { return fuerza; } set { fuerza += value; } } public float TiempoRecuperacion { get => tiempoRecuperacion; set => tiempoRecuperacion = value; } public float TiempoGolpeado { get => tiempoGolpeado; set => tiempoGolpeado = value; } public float FuerzaGolpeDebil { get => fuerzaGolpeDebil; set => fuerzaGolpeDebil = value; } public float FuerzaGolpeFuerte { get => fuerzaGolpeFuerte; set => fuerzaGolpeFuerte = value; } public float FuerzaDragonPunch { get => fuerzaDragonPunch; set => fuerzaDragonPunch = value; } public float FuerzaDeSaltoHaciaAtras { get => fuerzaDeSaltoHaciaAtras; set => fuerzaDeSaltoHaciaAtras = value; } public float FuerzaHaciaArriba { get => fuerzaHaciaArriba; set => fuerzaHaciaArriba = value; } public float TiempoDeDashHaciaAtras { get => tiempoDeDashHaciaAtras; set => tiempoDeDashHaciaAtras = value; } public bool IsDragonPunch { get => isDragonPunch; set => isDragonPunch = value; } public bool SaltaAlDragonPunch { get => saltaAlDragonPunch; set => saltaAlDragonPunch = value; } public Dictionary<string, Queue<string>> ListadoDeSecuencias { get; private set; } public float SpeedFireBall { get => speedFireBal; set => speedFireBal = value; } public GameObject FireBallPrefab => fireBallPrefab; public bool IsFireBall { get => isFireBall; set => isFireBall = value; } public float FuerzaEmpujeDragonPunch { get => fuerzaEmpujeDragonPunch; set => fuerzaEmpujeDragonPunch = value; } public virtual void Awake() { //delegamos la lectura del archivo a otro coso string stringDeEstadisticasGenrales = default; //ManejadorDeArchivos.LeerArchivo(@"debug_EstadisticasGenerales.txt"); Debug.Log(stringDeEstadisticasGenrales); EstadisticasBasePersonajeDebug estadisticasBase = JsonUtility.FromJson<EstadisticasBasePersonajeDebug>(stringDeEstadisticasGenrales); vida = estadisticasBase.vida; fuerza = estadisticasBase.fuerza; fuerzaGolpeDebil = estadisticasBase.fuerzaGolpeDebil; fuerzaGolpeFuerte = estadisticasBase.fuerzaGolpeFuerte; fuerzaEmpujeDragonPunch = estadisticasBase.fuerzaEmpujeDragonPunch; fuerzaDragonPunch = estadisticasBase.fuerzaDragonPunch; patada = estadisticasBase.patada; punio = estadisticasBase.patada; speedJump = estadisticasBase.speedJump; speed = estadisticasBase.speed; tiempoRecuperacion = estadisticasBase.tiempoRecuperacion; tiempoGolpeado = estadisticasBase.tiempoGolpeado; speedFireBal = estadisticasBase.speedFireBal; fuerzaDeSaltoHaciaAtras = estadisticasBase.fuerzaDeSaltoHaciaAtras; fuerzaHaciaArriba = estadisticasBase.fuerzaHaciaArriba; saltaAlDragonPunch = estadisticasBase.saltaAlDragonPunch; //agregamos la secuencia de fireball ListadoDeSecuencias = new Dictionary<string, Queue<string>> { { SecuenciasPermitidas.FIREBALL, CrearSecuenciaFireBall() }, { SecuenciasPermitidas.CORRER, CrearSecuenciaDeCorrer() }, { SecuenciasPermitidas.DRAGONPUNCH, CrearSecuenciaDragonPunch() }, { SecuenciasPermitidas.SALTARHACIAATRAS , CrearSecuenciaDeSaltarHaciaAtras() } }; } private Queue<string> CrearSecuenciaFireBall() { Queue<string> fireBall = new Queue<string>(); fireBall.Enqueue(SecuenciasPermitidas.ABAJO); fireBall.Enqueue(SecuenciasPermitidas.DIAGONALDELANTE); fireBall.Enqueue(SecuenciasPermitidas.DELANTE); fireBall.Enqueue(SecuenciasPermitidas.PUNIODEBIL); return fireBall; } private Queue<string> CrearSecuenciaDeCorrer() { Queue<string> correr = new Queue<string>(); correr.Enqueue(SecuenciasPermitidas.DELANTE); correr.Enqueue(SecuenciasPermitidas.VACIO); correr.Enqueue(SecuenciasPermitidas.DELANTE); return correr; } private Queue<string> CrearSecuenciaDeSaltarHaciaAtras() { Queue<string> correr = new Queue<string>(); correr.Enqueue(SecuenciasPermitidas.ATRAS); correr.Enqueue(SecuenciasPermitidas.VACIO); correr.Enqueue(SecuenciasPermitidas.ATRAS); return correr; } private Queue<string> CrearSecuenciaDragonPunch() { Queue<string> dragonPunch = new Queue<string>(); dragonPunch.Enqueue(SecuenciasPermitidas.DELANTE); dragonPunch.Enqueue(SecuenciasPermitidas.DIAGONALDELANTE); dragonPunch.Enqueue(SecuenciasPermitidas.ABAJO); dragonPunch.Enqueue(SecuenciasPermitidas.DIAGONALDELANTE); dragonPunch.Enqueue(SecuenciasPermitidas.PUNIOFUERTE); return dragonPunch; } public void QuitarVida(float vidaRestar) { Vida -= vidaRestar; //Despues de restar vida, le cambiamos el estado, en este caso de quien tenga la transicion hacia golpeado BaseMaquinaEstadosFinita estados = GetComponent<BaseMaquinaEstadosFinita>(); estados.IsGolpeado = true; } }
37.228723
141
0.693099
403b98b5d36dd7548514c9321bca83c06d69aeed
6,893
php
PHP
resources/views/livewire/project-volunteer.blade.php
achegedus/serveweek
1459e28b32619093f82f5d684aa33e0692df32f4
[ "MIT" ]
null
null
null
resources/views/livewire/project-volunteer.blade.php
achegedus/serveweek
1459e28b32619093f82f5d684aa33e0692df32f4
[ "MIT" ]
null
null
null
resources/views/livewire/project-volunteer.blade.php
achegedus/serveweek
1459e28b32619093f82f5d684aa33e0692df32f4
[ "MIT" ]
null
null
null
<div class=""> <div class="flex justify-center"> @if (!$showThankYou) <div class="w-1/2 p-6 border border-gray-400 mt-10 rounded-xl shadow-lg bg-white mb-20"> <div class="w-full flex items-center"> <img src="/images/ServeWeekLogo.png" width="160"/> <div class="flex-grow"></div> <x-button.secondary wire:click="goBack()" class="">Back</x-button.secondary> </div> <div> <table class="table-auto mb-5" cellpadding="5"> <tr> <th class="text-right w-1/3" valign="top">Location:</th> <td>{{$project->location_address}}</td> </tr> <tr> <th></th> <td>{{$project->location_city}} , {{$project->location_state}} {{$project->location_zipcode}}</td> </tr> <tr> <th class="text-right" valign="top">Categories: </Req>:</th> <td>{{$project->category_list()}}</td> </tr> <tr> <th class="text-right" valign="top">Date/Time:</th> <td>{{$project->workdate->formattedDate()}}, {{$project->project_time}}</td> </tr> <tr> <th class="text-right" valign="top">Volunteers Needed:</th> <td>{{$project->availableSlots()}}</td> </tr> <tr> <th class="text-right" valign="top">Project Description:</th> <td>{{$project->project_description}}</td> </tr> <tr> <th class="text-right" valign="top">Skills Requested: </Req>:</th> <td>{{$project->skills_requested}}</td> </tr> <tr> <th class="text-right" valign="top">Materials Provided: </Req>:</th> <td>{{$project->materials_provided}}</td> </tr> </table> </div> <form wire:submit.prevent="saveVolunteer" class="border-t pt-4"> <div class="grid grid-cols-6 gap-6"> <div class="col-span-6 sm:col-span-3"> <label for="name" class="block text-sm font-medium text-gray-700">Name</label> <input type="text" wire:model="newvol.name" name="name" id="name" autocomplete="given-name" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"> @error('newvol.name') <div class="mt-1 text-red-500 text-sm">{{ $message }}</div> @enderror </div> <div class="col-span-6 sm:col-span-3"> <label for="email" class="block text-sm font-medium text-gray-700"> Email Address</label> <input type="text" wire:model="newvol.email" name="email" id="email" autocomplete="email" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"> @error('newvol.email') <div class="mt-1 text-red-500 text-sm">{{ $message }}</div> @enderror </div> <div class="col-span-6 sm:col-span-3"> <label for="phone" class="block text-sm font-medium text-gray-700">Phone Number</label> <input type="text" wire:model="newvol.phone" name="phone" id="phone" autocomplete="street-address" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"> @error('newvol.phone') <div class="mt-1 text-red-500 text-sm">{{ $message }}</div> @enderror </div> <div class="col-span-6 sm:col-span-3"> <label for="church" class="block text-sm font-medium text-gray-700">Church</label> <input type="text" wire:model="newvol.church" name="church" id="church" autocomplete="street-address" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"> @error('newvol.church') <div class="mt-1 text-red-500 text-sm">{{ $message }}</div> @enderror </div> <div class="col-span-3 sm:col-span-3"> <label for="numberOfVolunteers" class="block text-sm font-medium text-gray-700">Total Number of Volunteers</label> <input type="text" wire:model="newvol.numberOfVolunteers" name="numberOfVolunteers" id="numberOfVolunteers" autocomplete="given-name" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"> @error('newvol.numberOfVolunteers') <div class="mt-1 text-red-500 text-sm">{{ $message }}</div> @enderror </div> </div> <div class="text-right mt-10"> <button type="submit" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"> Signup! </button> </div> </form> </div> @endif @if ($showThankYou) <div class="w-1/2 p-6 border border-gray-400 mt-10 rounded-xl shadow-lg bg-white mb-20"> <div class="w-full flex items-center"> <img src="/images/ServeWeekLogo.png" width="160"/> <div class="flex-grow"></div> <x-button.secondary wire:click="goBack()" class="">Back</x-button.secondary> </div> <div class="mt-10 mb-5"> <h1 class="font-bold text-2xl mb-2">Thank you!</h1> Thank you for registering for this project! We've sent an email confirmation, but we'll be in touch about this project. </div> </div> @endif </div> </div>
51.827068
259
0.476861
c6e5a11b89e199a4c03a94726ea38a3009d174ab
386
lua
Lua
La_LifeRP/resources/[jobs]/jobs-legal/__resource.lua
Kirikou974/Omi_La_LifeRP
a197e428c1191b51f9668de5e02470bf4b101b02
[ "MIT" ]
1
2019-09-21T23:07:55.000Z
2019-09-21T23:07:55.000Z
La_LifeRP/resources/[jobs]/jobs-legal/__resource.lua
Kirikou974/Omi
a197e428c1191b51f9668de5e02470bf4b101b02
[ "MIT" ]
null
null
null
La_LifeRP/resources/[jobs]/jobs-legal/__resource.lua
Kirikou974/Omi
a197e428c1191b51f9668de5e02470bf4b101b02
[ "MIT" ]
null
null
null
server_script "jobslegal_server.lua" client_script "jobslegal_client.lua" client_script "pooljob_client.lua" client_script "trashjob_client.lua" -- es_truckerjob - Remade. Rethink. Restructure. Mostly redone. By Draziak client_script "trucker_client.lua" client_script "mine_jobs.lua" client_script "morg_client.lua" server_script "morg_server.lua" client_script "org_client.lua"
22.705882
74
0.823834
a9e02dcc543af8c8e3ca44e6167aa2d47c56eb20
9,533
php
PHP
resources/views/ordersmanagement/show-deleted-orders.blade.php
transferck/my.transfer.ck.ua
2cc4b8e6655c6eb4559403cbafb856e7d108b836
[ "MIT" ]
null
null
null
resources/views/ordersmanagement/show-deleted-orders.blade.php
transferck/my.transfer.ck.ua
2cc4b8e6655c6eb4559403cbafb856e7d108b836
[ "MIT" ]
null
null
null
resources/views/ordersmanagement/show-deleted-orders.blade.php
transferck/my.transfer.ck.ua
2cc4b8e6655c6eb4559403cbafb856e7d108b836
[ "MIT" ]
null
null
null
@extends('layouts.app') @section('template_title') {!!trans('usersmanagement.showing-user-deleted')!!} @endsection @section('template_linked_css') <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css"> <style type="text/css" media="screen"> .users-table { border: 0; } .users-table tr td:first-child { padding-left: 15px; } .users-table tr td:last-child { padding-right: 15px; } .users-table.table-responsive, .users-table.table-responsive table { margin-bottom: .15em; } </style> @endsection @section('content') <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <div class="card"> <div class="card-header bg-danger text-white"> <div style="display: flex; justify-content: space-between; align-items: center;"> <span id="card_title"> {!!trans('ordersmanagement.showing-order-deleted')!!} </span> <div class="float-right"> <a href="{{ route('orders') }}" class="btn btn-light btn-sm float-right" data-toggle="tooltip" data-placement="left" title="{{ trans('ordersmanagement.tooltips.back-orders') }}"> <i class="fa fa-fw fa-mail-reply" aria-hidden="true"></i> {!! trans('ordersmanagement.buttons.back-to-orders') !!} </a> </div> </div> </div> <div class="card-body"> @if(count($orders) === 0) <tr> <p class="text-center margin-half"> {!! trans('usersmanagement.no-records') !!} </p> </tr> @else <div class="table-responsive users-table"> <table class="table table-striped table-sm data-table"> <caption id="order_count"> {{ trans_choice('ordersmanagement.orders-table.caption', 1, ['orderscount' => $orders->count()]) }} </caption> <thead class="thead"> <tr> <th>{!! trans('ordersmanagement.orders-table.id') !!}</th> <th>{!! trans('ordersmanagement.orders-table.fio') !!}</th> <th class="text-center">{!! trans('ordersmanagement.orders-table.tickets') !!}</th> <th>{!! trans('ordersmanagement.orders-table.airport') !!}</th> <th>{!! trans('ordersmanagement.orders-table.datetime-vl') !!}</th> <th>{!! trans('ordersmanagement.orders-table.registration') !!}</th> <th class="no-search no-sort"></th> <th class="no-search no-sort"></th> <th class="no-search no-sort"></th> <th class="no-search no-sort"></th> <th class="no-search no-sort"></th> </tr> </thead> <tbody id="orders_table"> @foreach($orders as $order) <tr> <td>{{$order->id}}</td> <td><span data-toggle="tooltip" title="{{$order->phone}}"><i class="fa fa-mobile-phone" aria-hidden="true"></i></span> {{$order->fio}}</td> <td class="text-center">{{$order->tickets}}</td> <td>{{$order->airport_ukraine}}, {{$order->terminal}}</td> <td>{{ \Carbon\Carbon::parse($order->datetime)->format('d/m')}}, {{ \Carbon\Carbon::parse($order->datetime)->format('H:i')}}</td> <td>{{$order->registration}}</td> @if($order->status_order == 'sent') <td>{!! trans('ordersmanagement.orders-table.status_order_sent') !!}</td> @elseif($order->status_order == 'reservation') <td>{!! trans('ordersmanagement.orders-table.status_order_reservation') !!} </td> @elseif($order->status_order == 'cencel') <td>{!! trans('ordersmanagement.orders-table.status_order_cencel') !!} </td> @elseif($order->status_order == 'moved') <td>{!! trans('ordersmanagement.orders-table.status_order_moved') !!}</td> @elseif($order->status_order == 'update') <td>{!! trans('ordersmanagement.orders-table.status_order_update') !!}</td> @elseif($order->status_order == 'success') <td>{!! trans('ordersmanagement.orders-table.status_order_success') !!}</td> @else($order->status_order == 0) <td>-</td> @endif @if($order->status_pay == 'not-paid') <td>{!! trans('ordersmanagement.orders-table.status_pay_1') !!}</td> @elseif($order->status_pay == 'paid') <td>{!! trans('ordersmanagement.orders-table.status_pay_2') !!}</td> @else($order->status_order == 0) <td>-</td> @endif <td> {!! Form::model($order, array('action' => array('OrderDeleteController@update', $order->id), 'method' => 'PUT', 'data-toggle' => 'tooltip')) !!} {!! Form::button('<i class="fa fa-refresh" aria-hidden="true"></i>', array('class' => 'btn btn-success btn-block btn-sm', 'type' => 'submit', 'data-toggle' => 'tooltip', 'title' => 'Restore Order')) !!} {!! Form::close() !!} </td> <td> <a class="btn btn-sm btn-info btn-block" href="{{ URL::to('orders/deleted/' . $order->id) }}" data-toggle="tooltip" title="Show Order"> <i class="fa fa-eye fa-fw" aria-hidden="true"></i> </a> </td> <td> {!! Form::model($order, array('action' => array('OrderDeleteController@destroy', $order->id), 'method' => 'DELETE', 'class' => 'inline', 'data-toggle' => 'tooltip', 'title' => 'Destroy Order Record')) !!} {!! Form::hidden('_method', 'DELETE') !!} {!! Form::button('<i class="fa fa-user-times" aria-hidden="true"></i>', array('class' => 'btn btn-danger btn-sm inline','type' => 'button', 'style' =>'width: 100%;' ,'data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-title' => 'Delete order', 'data-message' => 'Are you sure you want to delete this order ?')) !!} {!! Form::close() !!} </td> </tr> @endforeach </tbody> <tbody id="search_results"></tbody> @if(config('ordersmanagement.enableSearchOrders')) <tbody id="search_results"></tbody> @endif </table> </div> @endif </div> </div> </div> </div> </div> @include('modals.modal-delete') @endsection @section('footer_scripts') @if (count($orders) > 10) @include('scripts.datatables') @endif @include('scripts.delete-modal-script') @include('scripts.save-modal-script') @include('scripts.tooltips') @endsection
59.955975
377
0.379629
24f8a78a698756d49387cf1e5a227e85d9db699d
1,750
dart
Dart
lib/message_event.dart
slashdigital/xmpp_plugin
ce724c1068a8f8cf54690d12de1504e625b10cec
[ "Apache-2.0" ]
16
2021-10-05T13:43:49.000Z
2022-03-29T02:53:32.000Z
lib/message_event.dart
slashdigital/xmpp_plugin
ce724c1068a8f8cf54690d12de1504e625b10cec
[ "Apache-2.0" ]
10
2021-12-12T13:01:53.000Z
2022-03-12T10:06:23.000Z
lib/message_event.dart
slashdigital/xmpp_plugin
ce724c1068a8f8cf54690d12de1504e625b10cec
[ "Apache-2.0" ]
7
2021-11-12T14:17:13.000Z
2022-01-30T02:38:00.000Z
class MessageEvent { String? customText; String? from; String? senderJid; String? time; String? id; String? type; String? body; String? msgtype; String? bubbleType; String? mediaURL; String? presenceType; String? presenceMode; String? chatStateType; int? isReadSent; MessageEvent({ this.customText, this.from, this.senderJid, this.time, this.id, this.type, this.body, this.msgtype, this.bubbleType, this.mediaURL, this.presenceType, this.presenceMode, this.chatStateType, this.isReadSent, }); Map<String, dynamic> toEventData() { return { 'customText': customText, 'from': from, 'senderJid': senderJid, 'time': time, 'id': id, 'type': type, 'body': body, 'msgtype': msgtype, 'bubbleType': bubbleType, 'mediaURL': mediaURL, 'presenceType': presenceType, 'presenceMode': presenceMode, 'isReadSent': isReadSent, 'chatStateType': chatStateType, }; } factory MessageEvent.fromJson(dynamic eventData) { return MessageEvent( customText: eventData['customText'] ?? '', from: eventData['from'] ?? '', senderJid: eventData['senderJid'] ?? '', time: eventData['time'] ?? '0', isReadSent: eventData['isReadSent'] ?? 0, id: eventData['id'] ?? '', type: eventData['type'] ?? '', body: eventData['body'] ?? '', msgtype: eventData['msgtype'] ?? '', bubbleType: eventData['bubbleType'] ?? '', mediaURL: eventData['mediaURL'] ?? '', presenceType: eventData['presenceType'] ?? '', presenceMode: eventData['presenceMode'] ?? '', chatStateType: eventData['chatStateType'] ?? '', ); } }
23.648649
54
0.595429
8e56e9a5e8bcf2dfea25d621b83ac4a4489867da
423
js
JavaScript
Server/routes/weatherRoute.js
Geller99/Fluxara
0035072aa66412f2d0b586a3b902c53e3e3850a1
[ "FTL" ]
null
null
null
Server/routes/weatherRoute.js
Geller99/Fluxara
0035072aa66412f2d0b586a3b902c53e3e3850a1
[ "FTL" ]
7
2021-08-06T14:04:51.000Z
2021-08-06T14:09:55.000Z
Server/routes/weatherRoute.js
Geller99/Fluxara
0035072aa66412f2d0b586a3b902c53e3e3850a1
[ "FTL" ]
1
2021-07-24T10:42:17.000Z
2021-07-24T10:42:17.000Z
const { getWeather } = require("../endpoints/weather"); const weatherRoute = { path: "/api/weather", method: "post", handler: async (request, result) => { const { city } = request.body; try { const data = await getWeather(city); console.log(data.data); result.send(JSON.stringify(data.data)); } catch (err) { console.log(err); } }, }; module.exports = { weatherRoute, };
20.142857
55
0.591017
05e0a0e533ac096284430fb53e9eddd4660edd90
47,817
py
Python
ImagingReso/resonance.py
ornlneutronimaging/ImagingReso
32a75853024a24ffd3119e876f39439e9ba2dc06
[ "BSD-3-Clause" ]
7
2017-08-31T17:48:55.000Z
2021-05-08T19:01:27.000Z
ImagingReso/resonance.py
ornlneutronimaging/ImagingReso
32a75853024a24ffd3119e876f39439e9ba2dc06
[ "BSD-3-Clause" ]
9
2017-08-03T19:47:34.000Z
2021-03-02T19:26:06.000Z
ImagingReso/resonance.py
ornlneutronimaging/ImagingReso
32a75853024a24ffd3119e876f39439e9ba2dc06
[ "BSD-3-Clause" ]
7
2017-09-14T19:25:18.000Z
2020-12-22T00:57:29.000Z
import json import os import matplotlib.pyplot as plt import numpy as np import pandas as pd from ImagingReso import _utilities import plotly.tools as tls class Resonance(object): e_min = 1e-5 e_max = 1e8 stack = {} # compound, thickness, atomic_ratio of each layer with isotopes information stack_sigma = {} # all the energy and sigma of the isotopes and compounds stack_signal = {} # transmission and attenuation signal for every isotope and compound total_signal = {} # transmission and attenuation of the entire sample density_lock = {} # dictionary that will defined the densities locked energy_max = np.NaN energy_min = np.NaN energy_step = np.NaN def __init__(self, stack={}, energy_max=1, energy_min=0.001, energy_step=0.001, database='ENDF_VII', temperature='294K'): """initialize resonance object :param stack: dictionary to store sample info example: {'layer1': {'elements':['Ag','Si], 'atomic_ratio': [1, 2], 'thickness': {'value': 0.025, 'units': 'mm', }, 'density': {'units': 'g/cm3', 'value': 0.5, }, } :type stack: dictionary :param energy_max: (default 300) max energy in eV to use in calculation :type energy_max: float :param energy_min: (default 0) min energy in eV to use in calculation :type energy_min: float :param energy_step: (default 0.1) energy step to use in extrapolation of sigma data :type energy_step: float :param database: database to extract cross-section info. ['ENDF_VII', 'ENDF_VIII'], both are database at 294K :type database: str """ if database not in ['ENDF_VII', 'ENDF_VIII', '_data_for_unittest']: raise ValueError( "Database {} entered not existed. \nCurrent support: ['ENDF_VII', 'ENDF_VIII'] ".format(database)) # ENDF_VII only has nuclide 'C-0', replaced with 'C-12' and 'C-13' from ENDF_VIII. # ENDF_VIII data base has problematic 'B-10' ace file, replaced with 'B-10' from ENFF_VII. if database == 'ENDF_VIII': pass self.database = database self.__element_metadata = {} if energy_min < self.e_min: raise ValueError("Energy min (eV) must be >= {}".format(self.e_min)) self.energy_min = energy_min if energy_max > self.e_max: raise ValueError("Energy max (eV) must be <= {}".format(self.e_max)) self.energy_max = energy_max if energy_min == energy_max: raise ValueError("Energy min and max should not have the same value!") if (energy_max - energy_min) < energy_step: raise ValueError("Energy step is bigger than range of energy specified!") self.energy_step = energy_step if not stack == {}: # checking that every element of each stack is defined _utilities.checking_stack(stack=stack, database=self.database) new_stack = self.__update_stack_with_isotopes_infos(stack=stack) self.stack = new_stack # if layer density has been defined, lock it self.__lock_density_if_defined(stack=self.stack) # calculate stack_sigma, layer density, atoms_per_cm3 ... self.__math_on_stack() def __str__(self): """what to display if user does >>> o_reso = Resolution() >>> print(o_reso) """ return json.dumps(self.stack, indent=4) def __repr__(self): """what to display if user does >>> o_reso = Resolution() >>> o_reso """ return json.dumps(self.stack, indent=4) def add_layer(self, formula='', thickness=np.NaN, density=np.NaN): """provide another way to define the layers (stack) Parameters: =========== formula: string ex: 'CoAg2' ex: 'Al' thickness: float (in mm) density: float (g/cm3) """ if formula == '': return if formula in self.stack.keys(): raise ValueError("Layer '{}' is already in the sample stack.".format(formula)) _new_stack = _utilities.formula_to_dictionary(formula=formula, thickness=thickness, density=density, database=self.database) # check if density has been defined self.__lock_density_if_defined(stack=_new_stack) new_stack = self.__update_stack_with_isotopes_infos(stack=_new_stack) self.stack = {**self.stack, **new_stack} # calculate stack_sigma, layer density, atoms_per_cm3 ... self.__math_on_stack() def get_isotopic_ratio(self, compound='', element=''): """returns the list of isotopes for the element of the compound defined with their stoichiometric values Parameters: =========== compound: string (default is empty). If empty, all the stoichiometric will be displayed element: string (default is same as compound). Raises: ======= ValueError if element is not defined in the stack """ _stack = self.stack compound = str(compound) if compound == '': _list_compounds = _stack.keys() list_all_dict = {} for _compound in _list_compounds: _compound = str(_compound) _list_element = _stack[_compound]['elements'] list_all_dict[_compound] = {} for _element in _list_element: list_all_dict[_compound][_element] = self.get_isotopic_ratio( compound=_compound, element=_element) return list_all_dict # checking compound is valid list_compounds = _stack.keys() if compound not in list_compounds: list_compounds_joined = ', '.join(list_compounds) raise ValueError("Compound '{}' could not be find in {}".format(compound, list_compounds_joined)) # checking element is valid if element == '': # we assume that the element and compounds names matched element = compound list_element = _stack[compound].keys() if element not in list_element: list_element_joined = ', '.join(list_element) raise ValueError("Element '{}' should be any of those elements: {}".format(element, list_element_joined)) list_istopes = _stack[compound][element]['isotopes']['list'] list_ratio = _stack[compound][element]['isotopes']['isotopic_ratio'] iso_ratio = zip(list_istopes, list_ratio) _stoichiometric_ratio = {} for _iso, _ratio in iso_ratio: _stoichiometric_ratio[_iso] = _ratio return _stoichiometric_ratio def set_isotopic_ratio(self, compound='', element='', list_ratio=[]): """defines the new set of ratio of the compound/element and trigger the calculation to update the density Parameters: =========== compound: string (default is ''). Name of compound element: string (default is ''). Name of element list_ratio: list (default is []). list of new stoichiometric_ratio Raises: ======= ValueError if compound does not exist ValueError if element does not exist ValueError if list_ratio does not have the right format """ _stack = self.stack list_compounds = _stack.keys() if compound not in _stack.keys(): list_compounds_joined = ', '.join(list_compounds) raise ValueError("Compound '{}' could not be find in {}".format(compound, list_compounds_joined)) if element == '': # we assume that the element and compounds names matched element = compound list_element = _stack[compound].keys() if element not in list_element: list_element_joined = ', '.join(list_element) raise ValueError("Element '{}' should be any of those elements: {}".format(element, list_element_joined)) old_list_ratio = _stack[compound][element]['isotopes']['isotopic_ratio'] if not (len(old_list_ratio) == len(list_ratio)): raise ValueError("New list of ratio ({} elements) does not match old list size ({} elements!".format(len( list_ratio), len(old_list_ratio))) _utilities.check_iso_ratios(ratios=list_ratio, tol=0.005) self.stack[compound][element]['isotopes']['isotopic_ratio'] = list_ratio self.__update_molar_mass(compound=compound, element=element) self.__update_density(compound=compound, element=element) # update entire stack self.__math_on_stack() def get_density(self, compound='', element=''): """returns the list of isotopes for the element of the compound defined with their density Parameters: =========== compound: string (default is empty). If empty, all the stoichiometric will be displayed element: string (default is same as compound). Raises: ======= ValueError if element is not defined in the stack """ _stack = self.stack if compound == '': _list_compounds = _stack.keys() list_all_dict = {} for _compound in _list_compounds: _list_element = _stack[_compound]['elements'] list_all_dict[_compound] = {} for _element in _list_element: list_all_dict[_compound][_element] = self.get_density( compound=_compound, element=_element) return list_all_dict # checking compound is valid list_compounds = _stack.keys() if compound not in list_compounds: list_compounds_joined = ', '.join(list_compounds) raise ValueError("Compound '{}' could not be find in {}".format(compile, list_compounds_joined)) # checking element is valid if element == '': # we assume that the element and compounds names matched element = compound list_element = _stack[compound].keys() if element not in list_element: list_element_joined = ', '.join(list_element) raise ValueError("Element '{}' should be any of those elements: {}".format(element, list_element_joined)) return _stack[compound][element]['density']['value'] def __math_on_stack(self, used_lock=False): """will perform all the various update of the stack, such as populating the stack_sigma, caluclate the density of the layers....etc. """ # populate stack_sigma (Sigma vs Energy for every element) self.__get_sigmas() # populate compound density (if none provided) self.__update_layer_density() # populate compound molar mass # self.__update_layer_molar_mass() ### included in __calculate_atoms_per_cm3 # populate atoms_per_cm3 self.__calculate_atoms_per_cm3(used_lock=used_lock) # calculate transmission and attenuation self.__calculate_transmission_attenuation() def __lock_density_if_defined(self, stack: dict): """lock (True) the density lock if the density has been been defined during initialization Store the resulting dictionary into density_lock Parameters: =========== stack: dictionary (optional) if not provided, the entire stack will be used """ if self.stack == {}: density_lock = {} else: density_lock = self.density_lock for _compound in stack.keys(): _density = stack[_compound]['density']['value'] if np.isnan(_density): density_lock[_compound] = False else: density_lock[_compound] = True self.density_lock = density_lock def __calculate_transmission_attenuation(self): """ """ stack = self.stack stack_sigma = self.stack_sigma stack_signal = {} total_signal = {} total_transmisison = 1. # compound level for _name_of_compound in stack.keys(): stack_signal[_name_of_compound] = {} mu_per_cm_compound = 0 transmission_compound = 1. energy_compound = [] _list_element = stack[_name_of_compound]['elements'] _thickness_cm = _utilities.set_distance_units(value=stack[_name_of_compound]['thickness']['value'], from_units=stack[_name_of_compound]['thickness']['units'], to_units='cm') # element level for _element in _list_element: stack_signal[_name_of_compound][_element] = {} _atoms_per_cm3 = stack[_name_of_compound][_element]['atoms_per_cm3'] # isotope level for _iso in stack[_name_of_compound][_element]['isotopes']['list']: stack_signal[_name_of_compound][_element][_iso] = {} _sigma_iso = stack_sigma[_name_of_compound][_element][_iso]['sigma_b'] _mu_per_cm_iso, _transmission_iso = _utilities.calculate_transmission( thickness_cm=_thickness_cm, atoms_per_cm3=_atoms_per_cm3, sigma_b=_sigma_iso) stack_signal[_name_of_compound][_element][_iso]['mu_per_cm'] = _mu_per_cm_iso stack_signal[_name_of_compound][_element][_iso]['transmission'] = _transmission_iso stack_signal[_name_of_compound][_element][_iso]['attenuation'] = 1. - _transmission_iso stack_signal[_name_of_compound][_element][_iso]['energy_eV'] = \ stack_sigma[_name_of_compound][_element][_iso]['energy_eV'] _sigma_ele = stack_sigma[_name_of_compound][_element]['sigma_b'] _mu_per_cm_ele, _transmission_ele = _utilities.calculate_transmission( thickness_cm=_thickness_cm, atoms_per_cm3=_atoms_per_cm3, sigma_b=_sigma_ele) stack_signal[_name_of_compound][_element]['mu_per_cm'] = _mu_per_cm_ele stack_signal[_name_of_compound][_element]['transmission'] = _transmission_ele stack_signal[_name_of_compound][_element]['attenuation'] = 1. - _transmission_ele stack_signal[_name_of_compound][_element]['energy_eV'] = \ stack_sigma[_name_of_compound][_element]['energy_eV'] mu_per_cm_compound += _mu_per_cm_ele # plus transmission_compound *= _transmission_ele # multiply if len(energy_compound) == 0: energy_compound = stack_sigma[_name_of_compound][_element]['energy_eV'] stack_signal[_name_of_compound]['mu_per_cm'] = mu_per_cm_compound stack_signal[_name_of_compound]['transmission'] = transmission_compound stack_signal[_name_of_compound]['attenuation'] = 1. - transmission_compound stack_signal[_name_of_compound]['energy_eV'] = energy_compound total_transmisison *= transmission_compound total_attenuation = 1. - total_transmisison self.stack_signal = stack_signal total_signal['transmission'] = total_transmisison total_signal['attenuation'] = total_attenuation total_signal['energy_eV'] = energy_compound self.total_signal = total_signal def __calculate_atoms_per_cm3(self, used_lock=False): """calculate for each element, the atoms per cm3""" stack = self.stack _density_lock = self.density_lock for _name_of_compound in stack.keys(): if used_lock and _density_lock[_name_of_compound]: continue molar_mass_layer, atoms_per_cm3_layer = _utilities.get_atoms_per_cm3_of_layer( compound_dict=stack[_name_of_compound]) # Update layer molar mass stack[_name_of_compound]['molar_mass'] = {'value': molar_mass_layer, 'units': 'g/mol'} # Update atoms per cm3 stack[_name_of_compound]['atoms_per_cm3'] = atoms_per_cm3_layer for _index, _name_of_ele in enumerate(stack[_name_of_compound]['elements']): stack[_name_of_compound][_name_of_ele]['atoms_per_cm3'] = atoms_per_cm3_layer * \ stack[_name_of_compound][ 'stoichiometric_ratio'][_index] self.stack = stack def __fill_missing_keys(self, stack: dict): _list_key_to_check = ['density'] _list_key_value = [{'value': np.NaN, 'units': 'g/cm3'}] list_compound = stack.keys() for _key in list_compound: _inside_keys = stack[_key].keys() _key_value_to_search = zip(_list_key_to_check, _list_key_value) for _key_to_find, _value_to_add in _key_value_to_search: if not (_key_to_find in _inside_keys): stack[_key][_key_to_find] = _value_to_add.copy() return stack def __update_stack_with_isotopes_infos(self, stack: dict): """retrieve the isotopes, isotopes file names, mass and atomic_ratio from each element in stack""" for _key in stack: _elements = stack[_key]['elements'] for _element in _elements: _dict = _utilities.get_isotope_dicts(element=_element, database=self.database) stack[_key][_element] = _dict stack = self.__fill_missing_keys(stack=stack) return stack def __update_layer_density(self): """calculate or update the layer density""" _stack = self.stack _density_lock = self.density_lock list_compound = _stack.keys() for _key in list_compound: if _density_lock[_key]: continue _list_ratio = _stack[_key]['stoichiometric_ratio'] _list_density = [] for _element in _stack[_key]['elements']: _list_density.append(_stack[_key][_element]['density']['value']) _compound_density = _utilities.get_compound_density(list_density=_list_density, list_ratio=_list_ratio) _stack[_key]['density']['value'] = _compound_density self.stack = _stack def __update_density(self, compound='', element=''): """Re-calculate the density of the element given due to stoichiometric changes as well as the compound density (if density is not locked) Parameters: =========== compound: string (default is '') name of compound element: string (default is '') name of element """ _density_element = 0 list_ratio = self.stack[compound][element]['isotopes']['isotopic_ratio'] list_density = self.stack[compound][element]['isotopes']['density']['value'] ratio_density = zip(list_ratio, list_density) for _ratio, _density in ratio_density: _density_element += np.float(_ratio) * np.float(_density) self.stack[compound][element]['density']['value'] = _density_element _density_lock = self.density_lock if not _density_lock[compound]: self.__update_layer_density() # def __update_layer_molar_mass(self): # """calculate or update the layer molar mass""" # _stack = self.stack # _molar_mass = np.nan # for _key in _stack.keys(): # _list_ratio = _stack[_key]['stoichiometric_ratio'] # _list_molar_mass = [] # for _element in _stack[_key]['elements']: # _list_molar_mass.append(_stack[_key][_element]['molar_mass']['value']) # _molar_mass = _utilities.get_compound_molar_mass(list_molar_mass=_list_molar_mass, # list_ratio=_list_ratio) # _stack[_key]['molar_mass'] = {'value': _molar_mass, # 'units': 'g/mol'} # self.stack = _stack def __update_molar_mass(self, compound='', element=''): """Re-calculate the molar mass of the element given due to stoichiometric changes Parameters: ========== compound: string (default is '') name of compound element: string (default is '') name of element """ _molar_mass_element = 0 list_ratio = self.stack[compound][element]['isotopes']['isotopic_ratio'] list_mass = self.stack[compound][element]['isotopes']['mass']['value'] ratio_mass = zip(list_ratio, list_mass) for _ratio, _mass in ratio_mass: _molar_mass_element += np.float(_ratio) * np.float(_mass) self.stack[compound][element]['molar_mass']['value'] = _molar_mass_element def __get_sigmas(self): """will populate the stack_sigma dictionary with the energy and sigma array for all the compound/element and isotopes""" stack_sigma = {} _stack = self.stack _file_path = os.path.abspath(os.path.dirname(__file__)) _database_folder = os.path.join(_file_path, 'reference_data', self.database) _list_compounds = _stack.keys() for _compound in _list_compounds: _list_element = _stack[_compound]['elements'] stack_sigma[_compound] = {} for _element in _list_element: stack_sigma[_compound][_element] = {} _list_isotopes = _stack[_compound][_element]['isotopes']['list'] _list_file_names = _stack[_compound][_element]['isotopes']['file_names'] _list_isotopic_ratio = _stack[_compound][_element]['isotopes']['isotopic_ratio'] _iso_file_ratio = zip(_list_isotopes, _list_file_names, _list_isotopic_ratio) stack_sigma[_compound][_element]['isotopic_ratio'] = _list_isotopic_ratio # _dict_sigma_isotopes_sum = {} _sigma_all_isotopes = 0 _energy_all_isotopes = 0 for _iso, _file, _ratio in _iso_file_ratio: stack_sigma[_compound][_element][_iso] = {} # print(_iso, _file, _ratio) if _compound in _utilities.h_bond_list: if _iso == '1-H': _utilities.is_element_in_database(element='H', database='Bonded_H') _database_folder_h = os.path.join(_file_path, 'reference_data', 'Bonded_H') sigma_file = os.path.join(_database_folder_h, 'H-{}.csv'.format(_compound)) if _compound == 'ZrH': print("NOTICE:\n" "Your entry {} contains bonded H, and has experimental data available.\n" "Therefore, '1-H' cross-section has been replaced by the data " "reported at https://t2.lanl.gov/nis/data/endf/endfvii-thermal.html".format(_compound)) else: print("NOTICE:\n" "Your entry {} contains bonded H, and has experimental data available.\n" "Therefore, '1-H' cross-section has been replaced by the data " "reported at https://doi.org/10.1103/PhysRev.76.1750".format(_compound)) else: sigma_file = os.path.join(_database_folder, _file) else: sigma_file = os.path.join(_database_folder, _file) _dict = _utilities.get_sigma(database_file_name=sigma_file, e_min=self.energy_min, e_max=self.energy_max, e_step=self.energy_step) stack_sigma[_compound][_element][_iso]['energy_eV'] = _dict['energy_eV'] stack_sigma[_compound][_element][_iso]['sigma_b'] = _dict['sigma_b'] * _ratio stack_sigma[_compound][_element][_iso]['sigma_b_raw'] = _dict['sigma_b'] # sigma for all isotopes with their isotopic ratio _sigma_all_isotopes += _dict['sigma_b'] * _ratio _energy_all_isotopes += _dict['energy_eV'] # energy axis (x-axis) is averaged to take into account differences between x-axis of isotopes _mean_energy_all_isotopes = _energy_all_isotopes / len(_list_isotopes) stack_sigma[_compound][_element]['energy_eV'] = _mean_energy_all_isotopes stack_sigma[_compound][_element]['sigma_b'] = _sigma_all_isotopes self.stack_sigma = stack_sigma def plot(self, y_axis='attenuation', x_axis='energy', logx=False, logy=False, mixed=True, all_layers=False, all_elements=False, all_isotopes=False, items_to_plot=None, time_unit='us', offset_us=0., source_to_detector_m=16., time_resolution_us=0.16, t_start_us=1, plotly=False, ax_mpl=None, fmt='-', ms='2', lw='1.5', alpha=1): # offset delay values is normal 2.99 us with NONE actual MCP delay settings """display the transmission or attenuation of compound, element and/or isotopes specified Parameters: =========== :param x_axis: x type for export. Must be either ['energy'|'lambda'|'time'|'number'] :type x_axis: str :param y_axis: y type for export. Must be either ['transmission'|'attenuation'|'sigma'|'sigma_raw'|'mu_per_cm'] :type y_axis: str :param logx: True -> display x in log scale :type logx: boolean. :param logy: True -> display y in log scale :type logy: boolean. :param mixed: boolean. True -> display the total of each layer False -> not displayed :param all_layers: boolean. True -> display all layers False -> not displayed :param all_elements: boolean. True -> display all elements signal False -> not displayed :param all_isotopes: boolean. True -> display all isotopes signal False -> not displayed :param items_to_plot: array that describes what to plot ex: [['CoAg','Ag','107-Ag'], ['CoAg']] if the dictionary is empty, everything is exported :param time_unit: string. Must be either ['s'|'us'|'ns'] Note: this will be used only when x_axis='time' :param offset_us: default: 0 Note: only used when x_axis='number' or 'time' :param source_to_detector_m: Note: this will be used only when x_axis='number' or 'time' :param time_resolution_us: Note: this will be used only when x_axis='number' :param t_start_us: when is the first acquisition occurred. default: 1 Note: this will be used only when x_axis='number' :param plotly: control to use plotly to display or not. :type plotly: bool :param ax_mpl: matplotlib.axes to plot against :type ax_mpl: matplotlib.axes :param fmt: matplotlib.axes.plot kwargs :type fmt: str :param ms: matplotlib.axes.plot kwargs :type ms: float :param lw: matplotlib.axes.plot kwargs :type lw: float :param alpha: matplotlib.axes.plot kwargs :type alpha: float """ if x_axis not in _utilities.x_type_list: raise ValueError("Please specify the x-axis type using one from '{}'.".format(_utilities.x_type_list)) if time_unit not in _utilities.time_unit_list: raise ValueError("Please specify the time unit using one from '{}'.".format(_utilities.time_unit_list)) if y_axis not in _utilities.y_type_list: raise ValueError("Please specify the y-axis type using one from '{}'.".format(_utilities.y_type_list)) # figure size # plt.figure(figsize=(8, 8)) # stack from self _stack_signal = self.stack_signal _stack = self.stack _stack_sigma = self.stack_sigma _x_axis = self.total_signal['energy_eV'] x_axis_label = None # Creating the matplotlib graph.. if ax_mpl is None: fig_mpl, ax_mpl = plt.subplots() """X-axis""" # determine values and labels for x-axis with options from # 'energy(eV)' & 'lambda(A)' & 'time(us)' & 'image number(#)' if x_axis == 'energy': x_axis_label = 'Energy (eV)' if x_axis == 'lambda': x_axis_label = u"Wavelength (\u212B)" _x_axis = _utilities.ev_to_angstroms(array=_x_axis) if x_axis == 'time': if time_unit == 's': x_axis_label = 'Time (s)' _x_axis = _utilities.ev_to_s(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us) if time_unit == 'us': x_axis_label = 'Time (us)' _x_axis = 1e6 * _utilities.ev_to_s(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us) if time_unit == 'ns': x_axis_label = 'Time (ns)' _x_axis = 1e9 * _utilities.ev_to_s(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us) print("'{}' was obtained with the following:\nsource_to_detector_m={}\noffset_us={}" .format(x_axis_label, source_to_detector_m, offset_us)) if x_axis == 'number': x_axis_label = 'Image number (#)' _x_axis = _utilities.ev_to_image_number(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us, time_resolution_us=time_resolution_us, t_start_us=t_start_us) print("'{}' was obtained with the following:\nsource_to_detector_m={}\noffset_us={}\ntime_resolution_us={}" .format(x_axis_label, source_to_detector_m, offset_us, time_resolution_us)) if x_axis_label is None: raise ValueError("x_axis_label does NOT exist, please check.") """Y-axis""" # determine to plot transmission or attenuation # determine to put transmission or attenuation words for y-axis y_axis_tag = y_axis if y_axis == 'transmission': y_axis_label = 'Neutron Transmission' elif y_axis == 'attenuation': y_axis_label = 'Neutron Attenuation' elif y_axis == 'sigma': y_axis_tag = 'sigma_b' y_axis_label = 'Cross-section (barns)' elif y_axis == 'sigma_raw': y_axis_tag = 'sigma_b_raw' y_axis_label = 'Cross-section (barns)' else: y_axis_tag = 'mu_per_cm' y_axis_label = "Attenuation coefficient (cm\u207B\u00B9)" if y_axis_tag[:5] == 'sigma': mixed = False all_layers = False all_isotopes = True print("'y_axis='sigma'' is selected. Auto force 'mixed=False', 'all_layers=False', 'all_isotopes=True'") if y_axis_tag[-3:] == 'raw': all_elements = False print("'y_axis='sigma_raw'' is selected. Auto force 'all_elements=False'") if y_axis_tag == 'mu_per_cm': mixed = False print("'y_axis='mu_per_cm'' is selected. Auto force 'mixed=False'") # Plotting begins if mixed: _y_axis = self.total_signal[y_axis_tag] ax_mpl.plot(_x_axis, _y_axis, fmt, ms=ms, lw=lw, alpha=alpha, label="Total") if all_layers: for _compound in _stack.keys(): _y_axis = _stack_signal[_compound][y_axis_tag] ax_mpl.plot(_x_axis, _y_axis, fmt, ms=ms, lw=lw, alpha=alpha, label=_compound) if all_elements: for _compound in _stack.keys(): for _element in _stack[_compound]['elements']: if y_axis_tag[:5] != 'sigma': _y_axis = _stack_signal[_compound][_element][y_axis_tag] ax_mpl.plot(_x_axis, _y_axis, fmt, ms=ms, lw=lw, alpha=alpha, label="{}/{}".format(_compound, _element)) else: _y_axis = _stack_sigma[_compound][_element]['sigma_b'] ax_mpl.plot(_x_axis, _y_axis, fmt, ms=ms, lw=lw, alpha=alpha, label="{}/{}".format(_compound, _element)) if all_isotopes: for _compound in _stack.keys(): for _element in _stack[_compound]['elements']: for _isotope in _stack[_compound][_element]['isotopes']['list']: if y_axis_tag[:5] != 'sigma': _y_axis = _stack_signal[_compound][_element][_isotope][y_axis_tag] ax_mpl.plot(_x_axis, _y_axis, fmt, ms=ms, lw=lw, alpha=alpha, label="{}/{}/{}".format(_compound, _element, _isotope)) else: _y_axis = _stack_sigma[_compound][_element][_isotope][y_axis_tag] ax_mpl.plot(_x_axis, _y_axis, fmt, ms=ms, lw=lw, alpha=alpha, label="{}/{}/{}".format(_compound, _element, _isotope)) """Y-axis for specified items_to_plot""" if items_to_plot is not None: for _path_to_plot in items_to_plot: _path_to_plot = list(_path_to_plot) if y_axis_tag[:5] != 'sigma': _live_path = _stack_signal else: _len_of_path = len(_path_to_plot) if y_axis_tag[-3:] == 'raw': if _len_of_path < 3: raise ValueError("'y_axis={}' is not supported for layer or element levels '{}'.".format( y_axis_tag, _path_to_plot[-1])) else: if _len_of_path < 2: raise ValueError("'y_axis={}' is not supported for layer level '{}'.".format( y_axis_tag, _path_to_plot[-1])) _live_path = _stack_sigma _label = "/".join(_path_to_plot) while _path_to_plot: _item = _path_to_plot.pop(0) _live_path = _live_path[_item] _y_axis = _live_path[y_axis_tag] ax_mpl.plot(_x_axis, _y_axis, fmt, ms=ms, lw=lw, alpha=alpha, label=_label) if y_axis_tag[:5] != 'sigma' and y_axis_tag != 'mu_per_cm': ax_mpl.set_ylim(-0.01, 1.01) if logy is True: ax_mpl.set_yscale('log') if logx is True: ax_mpl.set_xscale('log') ax_mpl.set_xlabel(x_axis_label) ax_mpl.set_ylabel(y_axis_label) if not plotly: ax_mpl.legend(loc='best') # plt.tight_layout() return ax_mpl else: fig_mpl = ax_mpl.get_figure() plotly_fig = tls.mpl_to_plotly(fig_mpl) plotly_fig.layout.showlegend = True return plotly_fig def export(self, output_type='df', filename=None, x_axis='energy', y_axis='attenuation', mixed=True, all_layers=False, all_elements=False, all_isotopes=False, items_to_export=None, offset_us=0., source_to_detector_m=16., t_start_us=1, time_resolution_us=0.16, time_unit='us'): """ output x and y values to clipboard or .csv file output the transmission or attenuation or sigma of compound, element and/or isotopes specified 'sigma_b' exported for each isotope is the product resulted from (sigma * isotopic ratio) 'atoms_per_cm3' of each element is also exported in 'sigma' mode based on molar mass within stack. :param output_type: export type : ['df', 'csv', 'clip'] :type output_type: str :param mixed: True -> display the total of each layer False -> not displayed :type mixed: boolean :param filename: string. filename (with .csv suffix) you would like to save as None -> export to clipboard :type filename: string :param x_axis: string. x type for export. Must in ['energy', 'lambda', 'time', 'number'] :param y_axis: string. y type for export. Must in ['transmission', 'attenuation', 'sigma', 'sigma_raw', 'mu_per_cm'] :param all_layers: boolean. True -> export all layers False -> not export :param all_elements: boolean. True -> export all elements signal False -> not export :param all_isotopes: boolean. True -> export all isotopes signal False -> not export :param items_to_export: array that describes what to export ex: [['CoAg','Ag','107-Ag'], ['CoAg']] if the dictionary is empty, everything is exported :param time_unit: string. Must be either 's' or 'us' or 'ns' Note: this will be used only when x_axis='time' :param offset_us: default: 0 Note: only used when x_axis='number' or 'time' :param source_to_detector_m: Note: this will be used only when x_axis='number' or 'time' :param time_resolution_us: Note: this will be used only when x_axis='number' :param t_start_us: when is the first acquisition occurred. default: 1 Note: this will be used only when x_axis='number' :return: simulated resonance signals or sigma in the form of 'clipboard' or '.csv file' or 'pd.DataFrame' """ if x_axis not in _utilities.x_type_list: raise ValueError("Please specify the x-axis type using one from '{}'.".format(_utilities.x_type_list)) if time_unit not in _utilities.time_unit_list: raise ValueError("Please specify the time unit using one from '{}'.".format(_utilities.time_unit_list)) if y_axis not in _utilities.y_type_list: raise ValueError("Please specify the y-axis type using one from '{}'.".format(_utilities.y_type_list)) if output_type not in _utilities.export_type_list: raise ValueError("Please specify export type using one from '{}'.".format(_utilities.export_type_list)) # stack from self _stack_signal = self.stack_signal _stack = self.stack _x_axis = self.total_signal['energy_eV'] x_axis_label = None df = pd.DataFrame() """X-axis""" # determine values and labels for x-axis with options from # 'energy(eV)' & 'lambda(A)' & 'time(us)' & 'image number(#)' if x_axis == 'energy': x_axis_label = 'Energy (eV)' if x_axis == 'lambda': x_axis_label = u"Wavelength (\u212B)" _x_axis = _utilities.ev_to_angstroms(array=_x_axis) if x_axis == 'time': if time_unit == 's': x_axis_label = 'Time (s)' _x_axis = _utilities.ev_to_s(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us) if time_unit == 'us': x_axis_label = 'Time (us)' _x_axis = 1e6 * _utilities.ev_to_s(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us) if time_unit == 'ns': x_axis_label = 'Time (ns)' _x_axis = 1e9 * _utilities.ev_to_s(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us) print("'{}' was obtained with the following:\nsource_to_detector_m={}\noffset_us={}" .format(x_axis_label, source_to_detector_m, offset_us)) if x_axis == 'number': x_axis_label = 'Image number (#)' _x_axis = _utilities.ev_to_image_number(array=_x_axis, source_to_detector_m=source_to_detector_m, offset_us=offset_us, time_resolution_us=time_resolution_us, t_start_us=t_start_us) print("'{}' was obtained with the following:\nsource_to_detector_m={}\noffset_us={}\ntime_resolution_us={}" .format(x_axis_label, source_to_detector_m, offset_us, time_resolution_us)) if x_axis_label is None: raise ValueError("x_axis_label does NOT exist, please check.") df[x_axis_label] = _x_axis """Y-axis""" if y_axis[:5] != 'sigma': # export transmission or attenuation or mu_per_cm y_axis_tag = y_axis if y_axis_tag == 'mu_per_cm': mixed = False print("'y_axis='mu_per_cm'' is selected. Auto force 'mixed=False'") if mixed: _y_axis = self.total_signal[y_axis_tag] df['Total_' + y_axis_tag] = _y_axis if items_to_export is None: # export based on specified level : layer|element|isotope if all_layers: for _compound in _stack.keys(): _y_axis = _stack_signal[_compound][y_axis_tag] df[_compound] = _y_axis if all_elements: for _compound in _stack.keys(): for _element in _stack[_compound]['elements']: _y_axis = _stack_signal[_compound][_element][y_axis_tag] df[_compound + '/' + _element] = _y_axis if all_isotopes: for _compound in _stack.keys(): for _element in _stack[_compound]['elements']: for _isotope in _stack[_compound][_element]['isotopes']['list']: _y_axis = _stack_signal[_compound][_element][_isotope][y_axis_tag] df[_compound + '/' + _element + '/' + _isotope] = _y_axis else: # export specified transmission or attenuation for _path_to_export in items_to_export: _path_to_export = list(_path_to_export) _live_path = _stack_signal _label = "/".join(_path_to_export) while _path_to_export: _item = _path_to_export.pop(0) _live_path = _live_path[_item] _y_axis = _live_path[y_axis_tag] df[_label] = _y_axis else: # export sigma if y_axis == 'sigma': y_axis_tag = 'sigma_b' else: y_axis_tag = 'sigma_b_raw' # y_axis_tag = 'sigma_b_raw' _stack_sigma = self.stack_sigma if items_to_export is None: for _compound in _stack.keys(): for _element in _stack[_compound]['elements']: _y_axis = _stack_sigma[_compound][_element]['sigma_b'] # No 'sigma_b_raw' at this level df[_compound + '/' + _element + '/atoms_per_cm3'] = _stack[_compound][_element]['atoms_per_cm3'] df[_compound + '/' + _element] = _y_axis if all_isotopes: for _isotope in _stack[_compound][_element]['isotopes']['list']: _y_axis = _stack_sigma[_compound][_element][_isotope][y_axis_tag] df[_compound + '/' + _element + '/' + _isotope] = _y_axis else: # export specified sigma for _path_to_export in items_to_export: if y_axis_tag[-3:] == 'raw': if len(_path_to_export) < 3: raise ValueError( "Getting raw sigma of '{}' at layer or element level is not supported. " "If it is a single element layer, please follow " "['layer', 'element', 'isotope'] format.".format(_path_to_export[0])) else: if len(_path_to_export) < 2: raise ValueError( "Getting weighted sigma of '{}' at layer level is not supported. " "If it is a single element layer, please follow " "['layer', 'element'] format.".format(_path_to_export[0])) _path_to_export = list(_path_to_export) _live_path = _stack_sigma _label = "/".join(_path_to_export) while _path_to_export: _item = _path_to_export.pop(0) _live_path = _live_path[_item] _y_axis = _live_path[y_axis_tag] df[_label] = _y_axis if len(df.columns) <= 1: raise ValueError("No y values have been selected to export!") if output_type == 'csv': if filename is None: filename = 'data.csv' if '.csv' not in filename: filename += '.csv' df.to_csv(filename, index=False) print("Exporting to file ('./{}') completed.".format(filename)) elif output_type == 'clip': df.to_clipboard(excel=True, index=False) print('Exporting to clipboard completed.') else: # output_type == 'df' return df
48.057286
125
0.563586
b10701bc1fab287a9413eb27a9178202b4b28376
374
lua
Lua
lua/background_npcs_core/config/states/sh_arrest.lua
Shark-vil/background-citizens
3f5ed4bb8f510e807b827dd4ba4435e1e696bd97
[ "Apache-2.0" ]
6
2020-12-30T13:22:03.000Z
2021-12-30T17:19:58.000Z
lua/background_npcs_core/config/states/sh_arrest.lua
Shark-vil/background-citizens
3f5ed4bb8f510e807b827dd4ba4435e1e696bd97
[ "Apache-2.0" ]
7
2021-01-02T02:48:37.000Z
2022-03-12T16:11:39.000Z
lua/background_npcs_core/config/states/sh_arrest.lua
Shark-vil/background-citizens
3f5ed4bb8f510e807b827dd4ba4435e1e696bd97
[ "Apache-2.0" ]
5
2020-12-31T20:06:09.000Z
2021-12-30T17:20:02.000Z
bgNPC.cfg.arrest = {} -- TEXT -- bgNPC.cfg.arrest['order_text'] = 'Put your head down!' bgNPC.cfg.arrest['warning_text'] = 'Stay in this position, don\'t move!' bgNPC.cfg.arrest['arrest_notify'] = 'Arrest after %time% sec.' -- SOUND -- bgNPC.cfg.arrest['order_sound'] = 'npc/metropolice/vo/getdown.wav' bgNPC.cfg.arrest['warning_sound'] = 'npc/metropolice/vo/dontmove.wav'
37.4
72
0.705882
e83f8248061cb491d14a50a4db8c499a133d3e67
330
cs
C#
src/TencentCos/Exceptions/MultiObjectDeleteException.cs
myvas/TencentCos
28520f1c03fc560fdbc333c02e1da1305a65c8b7
[ "MIT" ]
8
2018-11-26T01:06:00.000Z
2021-11-22T10:15:58.000Z
src/TencentCos/Exceptions/MultiObjectDeleteException.cs
myvas/AspNetCore.TencentCos
04c051fdd0cea2b7e00ab6cb6ad1edf05016b679
[ "MIT" ]
1
2019-08-07T07:07:21.000Z
2019-08-07T07:07:21.000Z
src/TencentCos/Exceptions/MultiObjectDeleteException.cs
myvas/AspNetCore.TencentCos
04c051fdd0cea2b7e00ab6cb6ad1edf05016b679
[ "MIT" ]
null
null
null
using System.Collections.Generic; namespace Myvas.AspNetCore.TencentCos { public class MultiObjectDeleteException : CosServiceException { public List<DeleteError> Errors { get; set; } = new List<DeleteError>(); public List<DeletedObject> DeletedObjects { get; set; } = new List<DeletedObject>(); } }
30
92
0.706061
b0865271406c69ef3fe9989f7ff402b7a1107e2a
960
css
CSS
renderer/components/VideoPlayer.css
Chopinsky/-Learn--electron-player
c10ac74fc51aa7faaddb5ffc03c1c1f2f011d467
[ "MIT" ]
1
2020-04-25T11:43:34.000Z
2020-04-25T11:43:34.000Z
renderer/components/VideoPlayer.css
Chopinsky/-Learn--electron-player
c10ac74fc51aa7faaddb5ffc03c1c1f2f011d467
[ "MIT" ]
null
null
null
renderer/components/VideoPlayer.css
Chopinsky/-Learn--electron-player
c10ac74fc51aa7faaddb5ffc03c1c1f2f011d467
[ "MIT" ]
1
2019-06-29T04:45:07.000Z
2019-06-29T04:45:07.000Z
.videoClose { position: absolute; right: 5px; top: 5px; height: 30px; width: 30px; font-size: 28px; cursor: pointer; z-index: 99; } .videoPlayer { position: absolute; top: 0px; left: 0px; width: 100% !important; height: 100% !important; z-index: 9; } .videoPlay { position: absolute; top: 50%; left: 50%; width: 90px; height: 90px; margin-top: -30px; margin-left: -50px; padding-left: 33px; border-radius: 45px; background-color: rgba(22, 1, 32, 0.75); font-size: 60px; cursor: pointer; z-index: 99; } .videoPlay:hover { background-color: rgba(22, 1, 32, 0.95); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); } .videoContainer { position: absolute; z-index: -1; top: 0px; left: 0px; height: 100%; width: 100%; background-color: #323A45; color: #eee; font-family: "Oswald", sansSerif; overflow: hidden; } .nodisp { display: none !important; }
16.842105
79
0.61875
3fa30b30a527dae98e641f898181d807dfa44f03
15,360
php
PHP
Dotpay/Instruction.php
bhangiel/WooCommerce2
7f123584df34cc21c2f986d67b8478929c02049d
[ "MIT" ]
null
null
null
Dotpay/Instruction.php
bhangiel/WooCommerce2
7f123584df34cc21c2f986d67b8478929c02049d
[ "MIT" ]
null
null
null
Dotpay/Instruction.php
bhangiel/WooCommerce2
7f123584df34cc21c2f986d67b8478929c02049d
[ "MIT" ]
null
null
null
<?php /** * * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to tech@dotpay.pl so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade WooCommerce to newer * versions in the future. If you wish to customize WooCommerce for your * needs please refer to http://www.dotpay.pl for more information. * * @author Dotpay Team <tech@dotpay.pl> * @copyright Dotpay * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * */ if (! class_exists('simple_html_dom_node')) require_once(dirname(__DIR__).'/vendor/simple_html_dom.php'); /** * Payment instruction model for Dotpay payment gateway for WooCommerce */ class Dotpay_Instruction extends Dotpay_Payment { const DOTPAY_NAME = 'Dotpay sp. z o.o.'; const DOTPAY_STREET = 'Wielicka 28B'; const DOTPAY_CITY = '30-552 Kraków'; private $instructionId; private $orderId; private $number; private $titlep; private $hash; private $isCash; private $bankAccount; private $amount; private $currency; private $channel; private $RecipientName; /** * Return instruction id * @return int */ public function getInstructionId() { return $this->instructionId; } /** * Return order id * @return int */ public function getOrderId() { return $this->orderId; } /** * Return instruction number * @return string */ public function getNumber() { return $this->number; } /** * Return instruction title * @return string */ public function getTitlep() { return $this->titlep; } /** * Return instruction hash * @return string */ public function getHash() { return $this->hash; } /** * Return flag, if instruction applies to cash method * @return bool */ public function isCash() { return $this->isCash; } /** * Return bank account, if instruction applies to transfer method * @return string|null */ public function getBankAccount() { return $this->bankAccount; } /** * Return bank account, if instruction applies to transfer method * @return string|null */ public function getRecipientName() { return $this->RecipientName; } /** * Return amount * @return float */ public function getAmount() { return $this->amount; } /** * Return currency * @return string */ public function getCurrency() { return $this->currency; } /** * Return payment channel id * @return int */ public function getChannel() { return $this->channel; } /** * Set instruction id * @param int $instructionId instruction id * @return \Dotpay_Instruction */ public function setInstructionId($instructionId) { $this->instructionId = $instructionId; return $this; } /** * Set order id * @param int $orderId order id * @return \Dotpay_Instruction */ public function setOrderId($orderId) { $this->orderId = $orderId; return $this; } /** * Set instruction number * @param string $number instruction number * @return \Dotpay_Instruction */ public function setNumber($number) { $this->number = $number; return $this; } /** * Set instruction title * @param string &titlep instruction title * @return \Dotpay_Instruction */ public function setTitlep($titlep) { $this->titlep = $titlep; return $this; } /** * Set instruction hash * @param string $hash instruction hash * @return \Dotpay_Instruction */ public function setHash($hash) { $this->hash = $hash; return $this; } /** * Set true, if payment channel belongs to cash group * @param bool $cash cash flag * @return \Dotpay_Instruction */ public function setCash($cash) { $this->isCash = $cash; return $this; } /** * Set bank account number * @param string $bankAccount bank account number * @return \Dotpay_Instruction */ public function setBankAccount($bankAccount) { $this->bankAccount = $bankAccount; return $this; } /** * Set bank account recipient name * @param string $bankAccount bank account recipient name * @return \Dotpay_Instruction */ public function setRecipientName($recipientName) { $this->RecipientName = $recipientName; return $this; } /** * Set amount * @param float $amount amount * @return \Dotpay_Instruction */ public function setAmount($amount) { $this->amount = $amount; return $this; } /** * Set currency * @param string $currency currency * @return \Dotpay_Instruction */ public function setCurrency($currency) { $this->currency = $currency; return $this; } /** * Set channel id * @param int $channel channel id * @return \Dotpay_Instruction */ public function setChannel($channel) { $this->channel = $channel; return $this; } /** * Return recipient name * @return string */ public function getRecipient() { return self::DOTPAY_NAME; } /** * Return street of recipient * @return string */ public function getStreet() { return self::DOTPAY_STREET; } /** * Return city of recipient * @return string */ public function getCity() { return self::DOTPAY_CITY; } /** * Return translated command for instruction button * @return string */ public function getCommand() { if($this->isCash) { return __('Download blankiet', 'dotpay-payment-gateway'); } else { return __('Make a money transfer', 'dotpay-payment-gateway'); } } /** * Create table for this model * @global type $wpdb WPDB object */ public static function install() { global $wpdb; $sql = 'CREATE TABLE IF NOT EXISTS `'.$wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME.'` ( `instruction_id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `order_id` INT UNSIGNED NOT NULL, `number` varchar(64) NOT NULL, `titlep` varchar(128) NOT NULL, `hash` varchar(64) NOT NULL, `is_cash` TINYINT NOT NULL, `bank_account` VARCHAR(64), `amount` decimal(10,2) NOT NULL, `currency` varchar(3) NOT NULL, `channel` INT UNSIGNED NOT NULL, `name` varchar(128) NOT NULL, PRIMARY KEY (`instruction_id`) ) DEFAULT CHARSET=utf8;'; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); /*@ Add name and titlep columns if not exist */ $dbname = $wpdb->dbname; $marks_table_name = $wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME; // for column 'titlep' $is_status_col1 = $wpdb->get_results( "SELECT `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `table_name` = '".$marks_table_name."' AND `TABLE_SCHEMA` = '".$dbname."' AND `COLUMN_NAME` = 'titlep'" ); if( empty($is_status_col1) ) { $add_status_column1 = "ALTER TABLE `".$marks_table_name."` ADD `titlep` VARCHAR(128) NOT NULL AFTER `number`; "; $wpdb->query( $add_status_column1 ); } // for column 'name' $is_status_col2 = $wpdb->get_results( "SELECT `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `table_name` = '".$marks_table_name."' AND `TABLE_SCHEMA` = '".$dbname."' AND `COLUMN_NAME` = 'name'" ); if( empty($is_status_col2) ) { $add_status_column2 = "ALTER TABLE `".$marks_table_name."` ADD `name` VARCHAR(128) NOT NULL AFTER `channel`; "; $wpdb->query( $add_status_column2 ); } } /** * Remove table * @global type $wpdb WPDB object */ public static function uninstall() { global $wpdb; $sql = 'DROP TABLE IF EXISTS `'.$wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME.'`;'; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); $wpdb->query( $sql ); } /** * Return payment instruction by order id * @global type $wpdb WPDB object * @param int $orderId order id * @return \Dotpay_Instruction */ public static function getByOrderId($orderId) { global $wpdb; $result = $wpdb->get_results(' SELECT instruction_id as id FROM `'.$wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME.'` WHERE order_id = '.(int)$orderId ); // if (!is_array($result)) { if(!is_array($result) || count($result) <1) { return null; } return new Dotpay_Instruction($result[count($result)-1]->id); } /** * Return instruction hash from payment * @param array $payment payment * @return string */ public static function gethashFromPayment($payment) { $parts = explode('/',$payment['instruction']['instruction_url']); return $parts[count($parts)-2]; } /** * Return url to bank site * @return string */ public function getBankPage() { $url = $this->buildInstructionUrl(); $html = file_get_html($url); if($html==false) { return null; } return $html->getElementById('channel_container_')->firstChild()->getAttribute('href'); } /** * Return url to pdf payment instruction * @return string */ public function getPdfUrl() { return $this->getPaymentUrl().'instruction/pdf/'.$this->number.'/'.$this->hash.'/'; } /** * Return url to the payment instruction on Dotpay server * @return string */ protected function buildInstructionUrl() { return $this->getPaymentUrl().'instruction/'.$this->number.'/'.$this->hash.'/'; } /** * Save changes in model to the database * @global type $wpdb WPDB object * @return boolean */ public function save() { global $wpdb; $existedCard = $wpdb->get_row( 'SELECT * FROM '.$wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME.' WHERE instruction_id = '.(int)$this->instructionId); if(empty($existedCard)) { $wpdb->insert( $wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME, array( 'order_id' => $this->orderId, 'number' => substr($this->number,0,64), 'titlep' => substr($this->titlep,0,128), 'hash' => $this->hash, 'is_cash' => $this->isCash, 'bank_account' => $this->bankAccount, 'amount' => $this->amount, 'currency' => $this->currency, 'channel' => $this->channel, 'name' => substr($this->RecipientName,0,128) ), array( '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%s' ) ); } else { $wpdb->insert( $wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME, array( 'order_id' => $this->orderId, 'number' => substr($this->number,0,64), 'titlep' => substr($this->titlep,0,128), 'hash' => $this->hash, 'is_cash' => $this->isCash, 'bank_account' => $this->bankAccount, 'amount' => $this->amount, 'currency' => $this->currency, 'channel' => $this->channel, 'name' => substr($this->RecipientName,0,128) ), array('instruction_id' => $this->instructionId), array( '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%s' ), array('%d') ); } $instruction = $wpdb->get_row( 'SELECT * FROM '.$wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME.' WHERE order_id = '.(int)$this->orderId.' AND hash = \''.$this->hash.'\' AND amount = \''.$this->amount.'\''); $this->instructionId = $instruction->instruction_id; return true; } /** * Prepare instruction object * @global type $wpdb WPDB object * @param int|null $id instruction id * @return type */ public function __construct($id = null) { $this->id = 'dotpay'; $this->has_fields = true; $this->init_settings(); global $wpdb; if($id == null) { return; } $result = $wpdb->get_row(' SELECT * FROM `'.$wpdb->prefix.DOTPAY_GATEWAY_INSTRUCTIONS_TAB_NAME.'` WHERE instruction_id = '.(int)$id ); if(empty($result)) { return; } $this->amount = $result->amount; $this->channel = $result->channel; $this->currency = $result->currency; $this->hash = $result->hash; $this->isCash = $result->is_cash; $this->number = $result->number; $this->titlep = $result->titlep; $this->orderId = $result->order_id; $this->bankAccount = $result->bank_account; $this->instructionId = $result->instruction_id; $this->RecipientName = $result->name; } /** * Return path to the image with channel logo * @return string */ public function getChannelLogo() { $chData = $this->getChannelData($this->getChannel()); return $chData['logo']; } /** * Return content of page with payment instruction * @return string */ public function getPage() { return $this->render('payment_info.phtml'); } /** * Return url to bank site or pdf payment instruction * @return string */ public function getAddress() { if($this->isCash) { return $this->getPdfUrl(); } else { return $this->getBankPage(); } } }
27.876588
218
0.537695
ed500382c5fe8381d477968b909300f6bfc4d92d
5,922
h
C
Source/WebCore/svg/SVGLength.h
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebCore/svg/SVGLength.h
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebCore/svg/SVGLength.h
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2016-2019 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #pragma once #include "SVGLengthContext.h" #include "SVGLengthValue.h" #include "SVGValueProperty.h" namespace WebCore { class SVGLength : public SVGValueProperty<SVGLengthValue> { using Base = SVGValueProperty<SVGLengthValue>; using Base::Base; using Base::m_value; public: // Forward declare these enums in the w3c naming scheme, for IDL generation enum { SVG_LENGTHTYPE_UNKNOWN = static_cast<unsigned>(SVGLengthType::Unknown), SVG_LENGTHTYPE_NUMBER = static_cast<unsigned>(SVGLengthType::Number), SVG_LENGTHTYPE_PERCENTAGE = static_cast<unsigned>(SVGLengthType::Percentage), SVG_LENGTHTYPE_EMS = static_cast<unsigned>(SVGLengthType::Ems), SVG_LENGTHTYPE_EXS = static_cast<unsigned>(SVGLengthType::Exs), SVG_LENGTHTYPE_PX = static_cast<unsigned>(SVGLengthType::Pixels), SVG_LENGTHTYPE_CM = static_cast<unsigned>(SVGLengthType::Centimeters), SVG_LENGTHTYPE_MM = static_cast<unsigned>(SVGLengthType::Millimeters), SVG_LENGTHTYPE_IN = static_cast<unsigned>(SVGLengthType::Inches), SVG_LENGTHTYPE_PT = static_cast<unsigned>(SVGLengthType::Points), SVG_LENGTHTYPE_PC = static_cast<unsigned>(SVGLengthType::Picas) }; static Ref<SVGLength> create() { return adoptRef(*new SVGLength()); } static Ref<SVGLength> create(const SVGLengthValue& value) { return adoptRef(*new SVGLength(value)); } static Ref<SVGLength> create(SVGPropertyOwner* owner, SVGPropertyAccess access, const SVGLengthValue& value = { }) { return adoptRef(*new SVGLength(owner, access, value)); } template<typename T> static ExceptionOr<Ref<SVGLength>> create(ExceptionOr<T>&& value) { if (value.hasException()) return value.releaseException(); return adoptRef(*new SVGLength(value.releaseReturnValue())); } Ref<SVGLength> clone() const { return SVGLength::create(m_value); } unsigned short unitType() const { return static_cast<unsigned>(m_value.lengthType()); } ExceptionOr<float> valueForBindings() { return m_value.valueForBindings(SVGLengthContext { contextElement() }); } ExceptionOr<void> setValueForBindings(float value) { if (isReadOnly()) return Exception { NoModificationAllowedError }; auto result = m_value.setValue(SVGLengthContext { contextElement() }, value); if (result.hasException()) return result; commitChange(); return result; } float valueInSpecifiedUnits() { return m_value.valueInSpecifiedUnits(); } ExceptionOr<void> setValueInSpecifiedUnits(float valueInSpecifiedUnits) { if (isReadOnly()) return Exception { NoModificationAllowedError }; m_value.setValueInSpecifiedUnits(valueInSpecifiedUnits); commitChange(); return { }; } ExceptionOr<void> setValueAsString(const String& value) { if (isReadOnly()) return Exception { NoModificationAllowedError }; auto result = m_value.setValueAsString(value); if (result.hasException()) return result; commitChange(); return result; } ExceptionOr<void> newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits) { if (isReadOnly()) return Exception { NoModificationAllowedError }; if (unitType == SVG_LENGTHTYPE_UNKNOWN || unitType > SVG_LENGTHTYPE_PC) return Exception { NotSupportedError }; m_value = { valueInSpecifiedUnits, static_cast<SVGLengthType>(unitType), m_value.lengthMode() }; commitChange(); return { }; } ExceptionOr<void> convertToSpecifiedUnits(unsigned short unitType) { if (isReadOnly()) return Exception { NoModificationAllowedError }; if (unitType == SVG_LENGTHTYPE_UNKNOWN || unitType > SVG_LENGTHTYPE_PC) return Exception { NotSupportedError }; auto result = m_value.convertToSpecifiedUnits(SVGLengthContext { contextElement() }, static_cast<SVGLengthType>(unitType)); if (result.hasException()) return result; commitChange(); return result; } String valueAsString() const override { return m_value.valueAsString(); } }; } // namespace WebCore
34.835294
131
0.675616
25b696584e8177c4d13c980e59f95520778e6c95
325,895
js
JavaScript
build/static/js/2.a1981520.chunk.js
TomTom4/Pami
44bfbabef5735737310b7e1da18faa8ca43ed4af
[ "MIT" ]
null
null
null
build/static/js/2.a1981520.chunk.js
TomTom4/Pami
44bfbabef5735737310b7e1da18faa8ca43ed4af
[ "MIT" ]
null
null
null
build/static/js/2.a1981520.chunk.js
TomTom4/Pami
44bfbabef5735737310b7e1da18faa8ca43ed4af
[ "MIT" ]
null
null
null
(this.webpackJsonppamui=this.webpackJsonppamui||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(79)},function(e,t,n){"use strict";function r(){return(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}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){var t,n,o="";if(e)if("object"===typeof e)if(e.push)for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(n=r(t))&&(o&&(o+=" "),o+=n);else"boolean"===typeof e||e.call||(o&&(o+=" "),o+=e);return o}t.a=function(){for(var e,t=0,n="";t<arguments.length;)(e=r(arguments[t++]))&&(n&&(n+=" "),n+=e);return n}},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(36)),u=n.n(l),c=n(95),s=n(135),d=n(96),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,l=t.withTheme,f=void 0!==l&&l,p=t.name,h=Object(o.a)(t,["defaultTheme","withTheme","name"]);var m=p,v=Object(c.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:m},h)),b=a.a.forwardRef((function(e,t){e.classes;var l,u=e.innerRef,c=Object(o.a)(e,["classes","innerRef"]),h=v(e),m=c;return("string"===typeof p||f)&&(l=Object(d.a)()||i,p&&(m=Object(s.a)({theme:l,name:p,props:c})),f&&!m.theme&&(m.theme=l)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},m))}));return u()(b,n),b}},p=n(28);t.a=function(e,t){return f(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){e.exports=n(86)()},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}));var r=n(0),o=n.n(r);function i(e,t){return o.a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}function a(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function l(e,t){return o.a.useMemo((function(){return null==e&&null==t?null:function(n){a(e,n),a(t,n)}}),[e,t])}},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(80)},,function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: unsupported `".concat(e,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,l=r*Math.min(a,1-a),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-l*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",s=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",s.push(t[3])),i({type:c,values:s})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=o(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,i(e)}function c(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return i(e)}function s(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return i(e)}n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return s}))},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(96),o=n(28);function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";t.a=function(e){return e&&e.ownerDocument||document}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(34);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";var r=!0,o="Invariant failed";t.a=function(e,t){if(!e)throw r?new Error(o):new Error(o+": "+(t||""))}},function(e,t,n){"use strict";function r(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 o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},function(e,t,n){"use strict";var r=n(1);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],l=e&&o(e),u=t&&o(t),c=l||u;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var s=a[a.length-1];n="."===s||".."===s||""===s}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?i(a,f):".."===p?(i(a,f),d++):d&&(i(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(17);function s(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return N})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return h}));var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function k(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,l=void 0!==a&&a,u=i.getUserConfirmation,d=void 0===u?g:u,v=i.keyLength,E=void 0===v?6:v,O=e.basename?p(s(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return O&&(i=f(i,O)),m(i,r,n)}function C(){return Math.random().toString(36).substr(2,E)}var j=b();function T(e){Object(r.a)(W,e),W.length=t.length,j.notifyListeners(W.location,W.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||_(S(e.state))}function R(){_(S(k()))}var N=!1;function _(e){if(N)N=!1,T();else{j.confirmTransitionTo(e,"POP",d,(function(t){t?T({action:"POP",location:e}):function(e){var t=W.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(N=!0,z(o))}(e)}))}}var M=S(k()),A=[M.key];function I(e){return O+h(e)}function z(e){t.go(e)}var L=0;function D(e){1===(L+=e)&&1===e?(window.addEventListener(x,P),o&&window.addEventListener(w,R)):0===L&&(window.removeEventListener(x,P),o&&window.removeEventListener(w,R))}var F=!1;var W={length:t.length,action:"POP",location:M,createHref:I,push:function(e,r){var o=m(e,r,C(),W.location);j.confirmTransitionTo(o,"PUSH",d,(function(e){if(e){var r=I(o),i=o.key,a=o.state;if(n)if(t.pushState({key:i,state:a},null,r),l)window.location.href=r;else{var u=A.indexOf(W.location.key),c=A.slice(0,u+1);c.push(o.key),A=c,T({action:"PUSH",location:o})}else window.location.href=r}}))},replace:function(e,r){var o=m(e,r,C(),W.location);j.confirmTransitionTo(o,"REPLACE",d,(function(e){if(e){var r=I(o),i=o.key,a=o.state;if(n)if(t.replaceState({key:i,state:a},null,r),l)window.location.replace(r);else{var u=A.indexOf(W.location.key);-1!==u&&(A[u]=o.key),T({action:"REPLACE",location:o})}else window.location.replace(r)}}))},go:z,goBack:function(){z(-1)},goForward:function(){z(1)},block:function(e){void 0===e&&(e=!1);var t=j.setPrompt(e);return F||(D(1),F=!0),function(){return F&&(F=!1,D(-1)),t()}},listen:function(e){var t=j.appendListener(e);return D(1),function(){D(-1),t()}}};return W}var O="hashchange",S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:s},slash:{encodePath:s,decodePath:s}};function C(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function j(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(C(window.location.href)+"#"+e)}function P(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?g:o,a=n.hashType,l=void 0===a?"slash":a,u=e.basename?p(s(e.basename)):"",d=S[l],v=d.encodePath,x=d.decodePath;function w(){var e=x(j());return u&&(e=f(e,u)),m(e)}var k=b();function E(e){Object(r.a)(W,e),W.length=t.length,k.notifyListeners(W.location,W.action)}var P=!1,R=null;function N(){var e,t,n=j(),r=v(n);if(n!==r)T(r);else{var o=w(),a=W.location;if(!P&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(R===h(o))return;R=null,function(e){if(P)P=!1,E();else{k.confirmTransitionTo(e,"POP",i,(function(t){t?E({action:"POP",location:e}):function(e){var t=W.location,n=I.lastIndexOf(h(t));-1===n&&(n=0);var r=I.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(P=!0,z(o))}(e)}))}}(o)}}var _=j(),M=v(_);_!==M&&T(M);var A=w(),I=[h(A)];function z(e){t.go(e)}var L=0;function D(e){1===(L+=e)&&1===e?window.addEventListener(O,N):0===L&&window.removeEventListener(O,N)}var F=!1;var W={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=C(window.location.href)),n+"#"+v(u+h(e))},push:function(e,t){var n=m(e,void 0,void 0,W.location);k.confirmTransitionTo(n,"PUSH",i,(function(e){if(e){var t=h(n),r=v(u+t);if(j()!==r){R=t,function(e){window.location.hash=e}(r);var o=I.lastIndexOf(h(W.location)),i=I.slice(0,o+1);i.push(t),I=i,E({action:"PUSH",location:n})}else E()}}))},replace:function(e,t){var n=m(e,void 0,void 0,W.location);k.confirmTransitionTo(n,"REPLACE",i,(function(e){if(e){var t=h(n),r=v(u+t);j()!==r&&(R=t,T(r));var o=I.indexOf(h(W.location));-1!==o&&(I[o]=t),E({action:"REPLACE",location:n})}}))},go:z,goBack:function(){z(-1)},goForward:function(){z(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return F||(D(1),F=!0),function(){return F&&(F=!1,D(-1)),t()}},listen:function(e){var t=k.appendListener(e);return D(1),function(){D(-1),t()}}};return W}function R(e,t,n){return Math.min(Math.max(e,t),n)}function N(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,l=void 0===a?0:a,u=t.keyLength,c=void 0===u?6:u,s=b();function d(e){Object(r.a)(x,e),x.length=x.entries.length,s.notifyListeners(x.location,x.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=R(l,0,i.length-1),v=i.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function g(e){var t=R(x.index+e,0,x.entries.length-1),r=x.entries[t];s.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var x={length:v.length,action:"POP",location:v[p],index:p,entries:v,createHref:y,push:function(e,t){var r=m(e,t,f(),x.location);s.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),d({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,f(),x.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(x.entries[x.index]=r,d({action:"REPLACE",location:r}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),s.setPrompt(e)},listen:function(e){return s.appendListener(e)}};return x}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(2),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195},a=function(e){return"".concat(Math.round(e),"ms")};t.a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,u=t.easing,c=void 0===u?o.easeInOut:u,s=t.delay,d=void 0===s?0:s;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof l?l:a(l)," ").concat(c," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function l(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function u(e,t,n){var r={};return n.isMergeableObject(e)&&l(e).forEach((function(t){r[t]=i(e[t],n)})),l(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"===typeof n?n:c}(o,n)(e[o],t[o],n):r[o]=i(t[o],n)})),r}function c(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):u(e,t,n):i(t,n)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var s=c;e.exports=s},function(e,t,n){"use strict";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.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i="undefined"!==typeof window?o.a.useLayoutEffect:o.a.useEffect;function a(e){var t=o.a.useRef(e);return i((function(){t.current=e})),o.a.useCallback((function(e){return(0,t.current)(e)}),[])}},function(e,t,n){"use strict";var r=!0;t.a=function(e,t){if(!r){if(e)return;var n="Warning: "+t;"undefined"!==typeof console&&console.warn(n);try{throw Error(n)}catch(o){}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(0),i=n.n(o),a=n(47);function l(e,t){var n=i.a.memo(i.a.forwardRef((function(t,n){return i.a.createElement(a.a,Object(r.a)({},t,{ref:n}),e)})));return n.muiName=a.a.muiName,n}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(11),o=n(1),i=n(2),a=n(22),l=n.n(a);function u(e){return!0===(null!=(t=e)&&"object"===typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function c(e){var t,n;return!1!==u(e)&&("function"===typeof(t=e.constructor)&&(!1!==u(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var s=["xs","sm","md","lg","xl"];function d(e,t,n){var i;return Object(o.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(o.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={black:"#000",white:"#fff"},b=n(10),y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:v.white,default:h[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}},g={text:{primary:v.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:h[800],default:"#303030"},action:{active:v.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function x(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(b.d)(e.main,r):"dark"===t&&(e.dark=Object(b.a)(e.main,1.5*r)))}function w(e){return Math.round(1e5*e)/1e5}var k={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function O(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,a=void 0===r?E:r,u=n.fontSize,c=void 0===u?14:u,s=n.fontWeightLight,d=void 0===s?300:s,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,b=void 0===v?700:v,y=n.htmlFontSize,g=void 0===y?16:y,x=n.allVariants,O=n.pxToRem,S=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var C=c/14,j=O||function(e){return"".concat(e/g*C,"rem")},T=function(e,t,n,r,i){return Object(o.a)({fontFamily:a,fontWeight:e,fontSize:j(t),lineHeight:n},a===E?{letterSpacing:"".concat(w(r/t),"em")}:{},{},i,{},x)},P={h1:T(d,96,1,-1.5),h2:T(d,60,1,-.5),h3:T(p,48,1.04,0),h4:T(p,34,1.17,.25),h5:T(p,24,1.33,0),h6:T(m,20,1.6,.15),subtitle1:T(p,16,1.75,.15),subtitle2:T(m,14,1.57,.1),body1:T(p,16,1.5,.15),body2:T(p,14,1.43,.15),button:T(m,14,1.75,.4,k),caption:T(p,12,1.66,.4),overline:T(p,12,2.66,1,k)};return l()(Object(o.a)({htmlFontSize:g,pxToRem:j,round:w,fontFamily:a,fontSize:c,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:b},P),S,{clone:!1})}var S=.2,C=.14,j=.12;function T(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(S,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(C,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(j,")")].join(",")}var P=["none",T(0,1,3,0,0,1,1,0,0,2,1,-1),T(0,1,5,0,0,2,2,0,0,3,1,-2),T(0,1,8,0,0,3,4,0,0,3,3,-2),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],R={borderRadius:4};var N=n(21),_=n(45);var M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,u=e.palette,w=void 0===u?{}:u,k=e.shadows,E=e.spacing,S=e.typography,C=void 0===S?{}:S,j=Object(i.a)(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),T=function(e){var t=e.primary,n=void 0===t?{light:f[300],main:f[500],dark:f[700]}:t,r=e.secondary,a=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,u=e.error,c=void 0===u?{light:m[300],main:m[500],dark:m[700]}:u,s=e.type,d=void 0===s?"light":s,w=e.contrastThreshold,k=void 0===w?3:w,E=e.tonalOffset,O=void 0===E?.2:E,S=Object(i.a)(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function C(e){return Object(b.c)(e,g.text.primary)>=k?g.text.primary:y.text.primary}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;return!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),x(e,"light",n,O),x(e,"dark",r,O),e.contrastText||(e.contrastText=C(e.main)),e}var T={dark:g,light:y};return l()(Object(o.a)({common:v,type:d,primary:j(n),secondary:j(a,"A400","A200","A700"),error:j(c),grey:h,contrastThreshold:k,getContrastText:C,augmentColor:j,tonalOffset:O},T[d]),S,{clone:!1})}(w),M=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,a=void 0===r?"px":r,l=e.step,u=void 0===l?5:l,c=Object(i.a)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function f(e,t){var r=s.indexOf(t)+1;return r===s.length?d(e):"@media (min-width:".concat(n[e]).concat(a,") and ")+"(max-width:".concat(n[s[r]]-u/100).concat(a,")")}return Object(o.a)({keys:s,values:n,up:d,down:function(e){var t=s.indexOf(e)+1,r=n[s[t]];return t===s.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-u/100).concat(a,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}(n),A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;e="function"===typeof t?t:function(e){return t*e};var n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?e(1):1===n.length?e(n[0]):n.map((function(t){var n=e(t);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n}(E);return Object(o.a)({breakpoints:M,direction:"ltr",mixins:d(M,A,a),overrides:{},palette:T,props:{},shadows:k||P,typography:O(T,C),spacing:A},l()({shape:R,transitions:N.a,zIndex:_.a},j,{isMergeableObject:c}))}();t.a=M},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=n.n(r).a.createContext({});t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return b}));var r=n(32),o=n(12),i=n(0),a=n.n(i),l=n(20),u=(n(5),n(1)),c=n(13),s=n(17),d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(l.a)(t.props),t}return Object(o.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.c,{history:this.history,children:this.props.children})},t}(a.a.Component);a.a.Component;var f=function(e,t){return"function"===typeof e?e(t):e},p=function(e,t){return"string"===typeof e?Object(l.c)(e,null,null,t):e},h=function(e){return e},m=a.a.forwardRef;"undefined"===typeof m&&(m=h);var v=m((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=Object(c.a)(e,["innerRef","navigate","onClick"]),l=i.target,s=Object(u.a)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=h!==m&&t||n,a.a.createElement("a",s)}));var b=m((function(e,t){var n=e.component,o=void 0===n?v:n,i=e.replace,l=e.to,d=e.innerRef,b=Object(c.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(s.a)(!1);var n=e.history,r=p(f(l,e.location),e.location),c=r?n.createHref(r):"",v=Object(u.a)({},b,{href:c,navigate:function(){var t=f(l,e.location);(i?n.replace:n.push)(t)}});return h!==m?v.ref=t||d:v.innerRef=d,a.a.createElement(o,v)}))})),y=function(e){return e},g=a.a.forwardRef;"undefined"===typeof g&&(g=y);g((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,l=void 0===i?"active":i,d=e.activeStyle,h=e.className,m=e.exact,v=e.isActive,x=e.location,w=e.strict,k=e.style,E=e.to,O=e.innerRef,S=Object(c.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(s.a)(!1);var n=x||e.location,i=p(f(E,n),n),c=i.pathname,C=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),j=C?Object(r.f)(n.pathname,{path:C,exact:m,strict:w}):null,T=!!(v?v(j,n):j),P=T?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(h,l):h,R=T?Object(u.a)({},k,{},d):k,N=Object(u.a)({"aria-current":T&&o||null,className:P,style:R,to:i},S);return y!==g?N.ref=t||O:N.innerRef=O,a.a.createElement(b,N)}))}))},function(e,t,n){"use strict";var r=n(12),o=n(0),i=n.n(o),a=n(5),l=n.n(a),u=n(20),c=n(51),s=n.n(c),d=n(65),f=n.n(d),p=1073741823;var h=i.a.createContext||function(e,t){var n,r,i="__create-react-context-"+f()()+"__",a=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}s()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(o.Component);a.childContextTypes=((n={})[i]=l.a.object.isRequired,n);var u=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}s()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return u.contextTypes=((r={})[i]=l.a.object,r),{Provider:a,Consumer:u}},m=n(17),v=n(1),b=n(52),y=n.n(b),g=(n(60),n(13));n(36);n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return D})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return N})),n.d(t,"g",(function(){return W}));var x=function(e){var t=h();return t.displayName=e,t}("Router"),w=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(x.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(i.a.Component);i.a.Component;var k=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.a.Component);var E={},O=1e4,S=0;function C(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(E[e])return E[e];var t=y.a.compile(e);return S<O&&(E[e]=t,S++),t}(e)(t,{pretty:!0})}function j(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.a.createElement(x.Consumer,null,(function(e){e||Object(m.a)(!1);var r=e.history,a=e.staticContext,l=o?r.push:r.replace,c=Object(u.c)(t?"string"===typeof n?C(n,t.params):Object(v.a)({},n,{pathname:C(n.pathname,t.params)}):n);return a?(l(c),null):i.a.createElement(k,{onMount:function(){l(c)},onUpdate:function(e,t){var n=Object(u.c)(t.to);Object(u.f)(n,Object(v.a)({},c,{key:n.key}))||l(c)},to:n})}))}var T={},P=1e4,R=0;function N(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=T[n]||(T[n]={});if(r[e])return r[e];var o=[],i={regexp:y()(e,o,t),keys:o};return R<P&&(r[e]=i,R++),i}(n,{end:i,strict:l,sensitive:c}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var s=u[0],d=u.slice(1),f=e===s;return i&&!f?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var _=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(x.Consumer,null,(function(t){t||Object(m.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?N(n.pathname,e.props):t.match,o=Object(v.a)({},t,{location:n,match:r}),a=e.props,l=a.children,u=a.component,c=a.render;return Array.isArray(l)&&0===l.length&&(l=null),i.a.createElement(x.Provider,{value:o},o.match?l?"function"===typeof l?l(o):l:u?i.a.createElement(u,o):c?c(o):null:"function"===typeof l?l(o):null)}))},t}(i.a.Component);function M(e){return"/"===e.charAt(0)?e:"/"+e}function A(e,t){if(!e)return t;var n=M(e);return 0!==t.pathname.indexOf(n)?t:Object(v.a)({},t,{pathname:t.pathname.substr(n.length)})}function I(e){return"string"===typeof e?e:Object(u.e)(e)}function z(e){return function(){Object(m.a)(!1)}}function L(){}i.a.Component;var D=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(x.Consumer,null,(function(t){t||Object(m.a)(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?N(o.pathname,Object(v.a)({},e.props,{path:a})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);var F=i.a.useContext;function W(){return F(x).history}},function(e,t,n){"use strict";function r(e){return(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})(e)}function o(e){return(o="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(0),o=n.n(r),i=o.a.createContext();function a(){return o.a.useContext(i)}t.a=i},function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},function(e,t,n){"use strict";var r=n(60),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var c=Object.defineProperty,s=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=s(n);d&&(a=a.concat(d(n)));for(var l=u(t),m=u(n),v=0;v<a.length;++v){var b=a[v];if(!i[b]&&(!r||!r[b])&&(!m||!m[b])&&(!l||!l[b])){var y=f(n,b);try{c(t,b,y)}catch(g){}}}return t}return t}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(33),o=n(29);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!==typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(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&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(6),s={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},d=a.a.forwardRef((function(e,t){var n=e.align,i=void 0===n?"inherit":n,u=e.classes,d=e.className,f=e.color,p=void 0===f?"initial":f,h=e.component,m=e.display,v=void 0===m?"initial":m,b=e.gutterBottom,y=void 0!==b&&b,g=e.noWrap,x=void 0!==g&&g,w=e.paragraph,k=void 0!==w&&w,E=e.variant,O=void 0===E?"body1":E,S=e.variantMapping,C=void 0===S?s:S,j=Object(o.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=h||(k?"p":C[O]||s[O])||"span";return a.a.createElement(T,Object(r.a)({className:Object(l.a)(u.root,d,"inherit"!==O&&u[O],"initial"!==p&&u["color".concat(Object(c.a)(p))],x&&u.noWrap,y&&u.gutterBottom,k&&u.paragraph,"inherit"!==i&&u["align".concat(Object(c.a)(i))],"initial"!==v&&u["display".concat(Object(c.a)(v))]),ref:t},j))}));t.a=Object(u.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(d)},,,function(e,t,n){"use strict";var r=n(15);t.a=function(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(0),o=n.n(r),i=n(8),a=n.n(i),l=!0,u=!1,c=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function d(){l=!0}function f(){l=!1}function p(){"hidden"===this.visibilityState&&u&&(l=!0)}function h(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return l||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!s[t]||e.readOnly)||("TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable)}(t)}function m(){u=!0,window.clearTimeout(c),c=window.setTimeout((function(){u=!1,window.clearTimeout(c)}),100)}function v(){return{isFocusVisible:h,onBlurVisible:m,ref:o.a.useCallback((function(e){var t,n=a.a.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",d,!0),t.addEventListener("mousedown",f,!0),t.addEventListener("pointerdown",f,!0),t.addEventListener("touchstart",f,!0),t.addEventListener("visibilitychange",p,!0))}),[])}}},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(6),s=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,u=e.className,s=e.color,d=void 0===s?"inherit":s,f=e.component,p=void 0===f?"svg":f,h=e.fontSize,m=void 0===h?"default":h,v=e.htmlColor,b=e.titleAccess,y=e.viewBox,g=void 0===y?"0 0 24 24":y,x=Object(o.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return a.a.createElement(p,Object(r.a)({className:Object(l.a)(i.root,u,"inherit"!==d&&i["color".concat(Object(c.a)(d))],"default"!==m&&i["fontSize".concat(Object(c.a)(m))]),focusable:"false",viewBox:g,color:v,"aria-hidden":b?"false":"true",role:b?"img":"presentation",ref:t},x),n,b?a.a.createElement("title",null,b):null)}));s.muiName="SvgIcon",t.a=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(s)},function(e,t,n){"use strict";t.a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}},,,function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){var r=n(92);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t))},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,l="",s=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(a,p),a=p+d.length,f)l+=f[1];else{var h=e[a],m=n[2],v=n[3],b=n[4],y=n[5],g=n[6],x=n[7];l&&(r.push(l),l="");var w=null!=m&&null!=h&&h!==m,k="+"===g||"*"===g,E="?"===g||"*"===g,O=n[2]||s,S=b||y;r.push({name:v||i++,prefix:m||"",delimiter:O,optional:E,repeat:k,partial:w,asterisk:!!x,pattern:S?c(S):x?".*":"[^"+u(O)+"]+?"})}}return a<e.length&&(l+=e.substr(a)),l&&r.push(l),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,o){for(var i="",l=n||{},u=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var s=e[c];if("string"!==typeof s){var d,f=l[s.name];if(null==f){if(s.optional){s.partial&&(i+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(r(f)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=u(f[p]),!t[c].test(d))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?s.prefix:s.delimiter)+d}}else{if(d=s.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(f),!t[c].test(d))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+d+'"');i+=s.prefix+d}}else i+=s}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function s(e,t){return e.keys=t,e}function d(e){return e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",l=0;l<e.length;l++){var c=e[l];if("string"===typeof c)a+=u(c);else{var f=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+f+p+")*"),a+=p=c.optional?c.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=u(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",s(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return s(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return s(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(i(e,n),t,n)}(e,t,n)}},,,,,,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))o.call(n,s)&&(u[s]=n[s]);if(r){l=r(n);for(var d=0;d<l.length;d++)i.call(n,l[d])&&(u[l[d]]=n[l[d]])}}return u}},function(e,t,n){"use strict";e.exports=n(88)},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.r(t);var r=n(47);n.d(t,"default",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(1),o=n(95),i=n(28);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)(e,Object(r.a)({defaultTheme:i.a},t))}},function(e,t,n){"use strict";var r=n(61);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(89)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h24v24H0V0z"}),o.default.createElement("path",{d:"M0 0h24v24H0V0z",opacity:".87"})),o.default.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})),"LockOutlined");t.default=i},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(91))},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(8)),u=n.n(l),c=n(3),s=n(7),d=n(24),f=n(4),p="undefined"!==typeof window?a.a.useLayoutEffect:a.a.useEffect;var h=function(e){var t=e.children,n=e.defer,r=void 0!==n&&n,o=e.fallback,i=void 0===o?null:o,l=a.a.useState(!1),u=l[0],c=l[1];return p((function(){r||c(!0)}),[r]),a.a.useEffect((function(){r&&c(!0)}),[r]),a.a.createElement(a.a.Fragment,null,u?t:i)},m=n(46),v=n(23),b=n(13),y=n(12),g=n(29),x=n(35);function w(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(i.isValidElement)(e)?t(e):e}(e)})),n}function k(e,t,n){return null!=n[t]?n[t]:e.props[t]}function E(e,t,n){var r=w(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];l[o[u][r]]=n(c)}l[u]=n(u)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var l=o[a];if(Object(i.isValidElement)(l)){var u=a in t,c=a in r,s=t[a],d=Object(i.isValidElement)(s)&&!s.props.in;!c||u&&!d?c||!u||d?c&&u&&Object(i.isValidElement)(s)&&(o[a]=Object(i.cloneElement)(l,{onExited:n.bind(null,l),in:s.props.in,exit:k(l,"exit",e),enter:k(l,"enter",e)})):o[a]=Object(i.cloneElement)(l,{in:!1}):o[a]=Object(i.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:k(l,"exit",e),enter:k(l,"enter",e)})}})),o}var O=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},S=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(g.a)(Object(g.a)(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(y.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,w(n.children,(function(e){return Object(i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:k(e,"appear",n),enter:k(e,"enter",n),exit:k(e,"exit",n)})}))):E(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=w(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(b.a)(e,["component","childFactory"]),o=this.state.contextValue,i=O(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(x.a.Provider,{value:o},i):a.a.createElement(x.a.Provider,{value:o},a.a.createElement(t,r,i))},t}(a.a.Component);S.propTypes={},S.defaultProps={component:"div",childFactory:function(e){return e}};var C=S,j="undefined"===typeof window?a.a.useEffect:a.a.useLayoutEffect;var T=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,l=e.rippleSize,u=e.in,s=e.onExited,f=void 0===s?function(){}:s,p=e.timeout,h=a.a.useState(!1),m=h[0],v=h[1],b=Object(c.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:l,height:l,top:-l/2+i,left:-l/2+o},g=Object(c.a)(t.child,m&&t.childLeaving,r&&t.childPulsate),x=Object(d.a)(f);return j((function(){if(!u){v(!0);var e=setTimeout(x,p);return function(){clearTimeout(e)}}}),[x,u,p]),a.a.createElement("span",{className:b,style:y},a.a.createElement("span",{className:g}))},P=a.a.forwardRef((function(e,t){var n=e.center,i=void 0!==n&&n,l=e.classes,u=e.className,s=Object(o.a)(e,["center","classes","className"]),d=a.a.useState([]),f=d[0],p=d[1],h=a.a.useRef(0),m=a.a.useRef(null);a.a.useEffect((function(){m.current&&(m.current(),m.current=null)}),[f]);var b=a.a.useRef(!1),y=a.a.useRef(null),g=a.a.useRef(null),x=a.a.useRef(null);a.a.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var w=a.a.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;p((function(e){return[].concat(Object(v.a)(e),[a.a.createElement(T,{key:h.current,classes:l,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),h.current+=1,m.current=i}),[l]),k=a.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,l=void 0===a?i||t.pulsate:a,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var s,d,f,p=c?null:x.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)s=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.clientX?e.clientX:e.touches[0].clientX,v=e.clientY?e.clientY:e.touches[0].clientY;s=Math.round(m-h.left),d=Math.round(v-h.top)}if(l)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var k=2*Math.max(Math.abs((p?p.clientWidth:0)-s),s)+2,E=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(k,2)+Math.pow(E,2))}e.touches?(g.current=function(){w({pulsate:o,rippleX:s,rippleY:d,rippleSize:f,cb:n})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):w({pulsate:o,rippleX:s,rippleY:d,rippleSize:f,cb:n})}}),[i,w]),E=a.a.useCallback((function(){k({},{pulsate:!0})}),[k]),O=a.a.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){O(e,t)})));g.current=null,p((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return a.a.useImperativeHandle(t,(function(){return{pulsate:E,start:k,stop:O}}),[E,k,O]),a.a.createElement("span",Object(r.a)({className:Object(c.a)(l.root,u),ref:x},s),a.a.createElement(C,{component:null,exit:!0},f))}));var R,N=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(((R=a.a.memo(P)).muiName="MuiTouchRipple",R)),_=a.a.forwardRef((function(e,t){var n=e.action,i=e.buttonRef,l=e.centerRipple,f=void 0!==l&&l,p=e.children,v=e.classes,b=e.className,y=e.component,g=void 0===y?"button":y,x=e.disabled,w=void 0!==x&&x,k=e.disableRipple,E=void 0!==k&&k,O=e.disableTouchRipple,S=void 0!==O&&O,C=e.focusRipple,j=void 0!==C&&C,T=e.focusVisibleClassName,P=e.onBlur,R=e.onClick,_=e.onFocus,M=e.onFocusVisible,A=e.onKeyDown,I=e.onKeyUp,z=e.onMouseDown,L=e.onMouseLeave,D=e.onMouseUp,F=e.onTouchEnd,W=e.onTouchMove,U=e.onTouchStart,B=e.onDragLeave,$=e.tabIndex,V=void 0===$?0:$,H=e.TouchRippleProps,K=e.type,q=void 0===K?"button":K,Q=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=a.a.useRef(null);var Y=a.a.useRef(null),G=a.a.useState(!1),J=G[0],Z=G[1];w&&J&&Z(!1);var ee=Object(m.a)(),te=ee.isFocusVisible,ne=ee.onBlurVisible,re=ee.ref;function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return Object(d.a)((function(r){return t&&t(r),!(r.defaultPrevented||n)&&Y.current&&Y.current[e](r),!0}))}a.a.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),X.current.focus()}}}),[]),a.a.useEffect((function(){J&&j&&!E&&Y.current.pulsate()}),[E,j,J]);var ie=oe("start",z),ae=oe("stop",B),le=oe("stop",D),ue=oe("stop",(function(e){J&&e.preventDefault(),L&&L(e)})),ce=oe("start",U),se=oe("stop",F),de=oe("stop",W),fe=oe("stop",(function(e){J&&(ne(e),Z(!1)),P&&P(e)}),!1),pe=Object(d.a)((function(e){w||(X.current||(X.current=e.currentTarget),te(e)&&(Z(!0),M&&M(e)),_&&_(e))})),he=a.a.useRef(!1),me=Object(d.a)((function(e){j&&!he.current&&J&&Y.current&&" "===e.key&&(he.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),A&&A(e);var t=u.a.findDOMNode(X.current);e.target!==e.currentTarget||!g||"button"===g||" "!==e.key&&"Enter"!==e.key||"A"===t.tagName&&t.href||(e.preventDefault(),R&&R(e))})),ve=Object(d.a)((function(e){j&&" "===e.key&&Y.current&&J&&(he.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),I&&I(e)})),be=g;"button"===be&&Q.href&&(be="a");var ye={};"button"===be?(ye.type=q,ye.disabled=w):("a"===be&&Q.href||(ye.role="button"),ye["aria-disabled"]=w);var ge=Object(s.c)(i,t),xe=Object(s.c)(re,X),we=Object(s.c)(ge,xe);return a.a.createElement(be,Object(r.a)({className:Object(c.a)(v.root,b,J&&[v.focusVisible,T],w&&v.disabled),onBlur:fe,onClick:R,onFocus:pe,onKeyDown:me,onKeyUp:ve,onMouseDown:ie,onMouseLeave:ue,onMouseUp:le,onDragLeave:ae,onTouchEnd:se,onTouchMove:de,onTouchStart:ce,ref:we,tabIndex:w?-1:V},ye,Q),p,E||w?null:a.a.createElement(h,null,a.a.createElement(N,Object(r.a)({ref:Y,center:f},H))))}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(_)},,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(59),o="function"===typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder"),o&&Symbol.for("react.scope");var b="function"===typeof Symbol&&Symbol.iterator;function y(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x={};function w(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||g}function k(){}function E(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw y(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=w.prototype;var O=E.prototype=new k;O.constructor=E,r(O,w.prototype),O.isPureReactComponent=!0;var S={current:null},C={suspense:null},j={current:null},T=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:j.current}}function N(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var _=/\/+/g,M=[];function A(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function z(e,t,n){return null==e?0:function e(t,n,r,o){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 a:u=!0}}if(u)return r(o,t,""===n?"."+L(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var s=n+L(l=t[c],c);u+=e(l,s,r,o)}else if(null===t||"object"!==typeof t?s=null:s="function"===typeof(s=b&&t[b]||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+L(l,c++),r,o);else if("object"===l)throw r=""+t,y(Error(31),"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function L(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 D(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?W(e,r,n,(function(e){return e})):null!=e&&(N(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(_,"$&/")+"/")+n)),r.push(e))}function W(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(_,"$&/")+"/"),z(e,F,t=A(t,i,r,o)),I(t)}function U(){var e=S.current;if(null===e)throw y(Error(321));return e}var B={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return W(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;z(e,D,t=A(null,null,t,n)),I(t)},count:function(e){return z(e,(function(){return null}),null)},toArray:function(e){var t=[];return W(e,t,null,(function(e){return e})),t},only:function(e){if(!N(e))throw y(Error(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:E,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_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:f,render:e}},lazy:function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return U().useCallback(e,t)},useContext:function(e,t){return U().useContext(e,t)},useEffect:function(e,t){return U().useEffect(e,t)},useImperativeHandle:function(e,t,n){return U().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return U().useLayoutEffect(e,t)},useMemo:function(e,t){return U().useMemo(e,t)},useReducer:function(e,t,n){return U().useReducer(e,t,n)},useRef:function(e){return U().useRef(e)},useState:function(e){return U().useState(e)},Fragment:l,Profiler:c,StrictMode:u,Suspense:p,unstable_SuspenseList:h,createElement:R,cloneElement:function(e,t,n){if(null===e||void 0===e)throw y(Error(267),e);var o=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=j.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)T.call(t,s)&&!P.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){c=Array(s);for(var d=0;d<s;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:u}},createFactory:function(e){var t=R.bind(null,e);return t.type=e,t},isValidElement:N,version:"16.10.2",unstable_withSuspenseConfig:function(e,t){var n=C.suspense;C.suspense=void 0===t?null:t;try{e()}finally{C.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:S,ReactCurrentBatchConfig:C,ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:r}},$={default:B},V=$&&B||$;e.exports=V.default||V},function(e,t,n){"use strict";var r=n(0),o=n(59),i=n(81);function a(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!r)throw a(Error(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 a(Error(96),e);if(!d[n]){if(!t.extractEvents)throw a(Error(97),e);for(var r in d[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,p=r;if(f.hasOwnProperty(p))throw a(Error(99),p);f[p]=i;var h=i.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&s(h[o],c,p);o=!0}else i.registrationName?(s(i.registrationName,c,p),o=!0):o=!1;if(!o)throw a(Error(98),r,e)}}}}function s(e,t,n){if(p[e])throw a(Error(100),e);p[e]=t,h[e]=t.eventTypes[n].dependencies}var d=[],f={},p={},h={};function m(e,t,n,r,o,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(s){this.onError(s)}}var v=!1,b=null,y=!1,g=null,x={onError:function(e){v=!0,b=e}};function w(e,t,n,r,o,i,a,l,u){v=!1,b=null,m.apply(x,arguments)}var k=null,E=null,O=null;function S(e,t,n){var r=e.type||"unknown-event";e.currentTarget=O(n),function(e,t,n,r,o,i,l,u,c){if(w.apply(this,arguments),v){if(!v)throw a(Error(198));var s=b;v=!1,b=null,y||(y=!0,g=s)}}(r,t,void 0,e),e.currentTarget=null}function C(e,t){if(null==t)throw a(Error(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 j(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var T=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++)S(e,t[r],n[r]);else t&&S(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function R(e){if(null!==e&&(T=C(T,e)),e=T,T=null,e){if(j(e,P),T)throw a(Error(95));if(y)throw e=g,y=!1,g=null,e}}var N={injectEventPluginOrder:function(e){if(l)throw a(Error(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 a(Error(102),t);u[t]=r,n=!0}}n&&c()}};function _(e,t){var n=e.stateNode;if(!n)return null;var r=k(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 a(Error(231),t,typeof n);return n}var M=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;M.hasOwnProperty("ReactCurrentDispatcher")||(M.ReactCurrentDispatcher={current:null}),M.hasOwnProperty("ReactCurrentBatchConfig")||(M.ReactCurrentBatchConfig={suspense:null});var A=/^(.*)[\\\/]/,I="function"===typeof Symbol&&Symbol.for,z=I?Symbol.for("react.element"):60103,L=I?Symbol.for("react.portal"):60106,D=I?Symbol.for("react.fragment"):60107,F=I?Symbol.for("react.strict_mode"):60108,W=I?Symbol.for("react.profiler"):60114,U=I?Symbol.for("react.provider"):60109,B=I?Symbol.for("react.context"):60110,$=I?Symbol.for("react.concurrent_mode"):60111,V=I?Symbol.for("react.forward_ref"):60112,H=I?Symbol.for("react.suspense"):60113,K=I?Symbol.for("react.suspense_list"):60120,q=I?Symbol.for("react.memo"):60115,Q=I?Symbol.for("react.lazy"):60116;I&&Symbol.for("react.fundamental"),I&&Symbol.for("react.responder"),I&&Symbol.for("react.scope");var X="function"===typeof Symbol&&Symbol.iterator;function Y(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=X&&e[X]||e["@@iterator"])?e:null}function G(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 L:return"Portal";case W:return"Profiler";case F:return"StrictMode";case H:return"Suspense";case K:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case B:return"Context.Consumer";case U:return"Context.Provider";case V:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case q:return G(e.type);case Q:if(e=1===e._status?e._result:null)return G(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,o=e._debugSource,i=G(e.type);n=null,r&&(n=G(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(A,"")+":"+o.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||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ee=null,te=null,ne=null;function re(e){if(e=E(e)){if("function"!==typeof ee)throw a(Error(280));var t=k(e.stateNode);ee(e.stateNode,e.type,t)}}function oe(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 ae(e,t){return e(t)}function le(e,t,n,r){return e(t,n,r)}function ue(){}var ce=ae,se=!1,de=!1;function fe(){null===te&&null===ne||(ue(),ie())}new Map,new Map,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={},ve={};function be(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ye[e]=new be(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ye[t]=new be(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ye[e]=new be(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ye[e]=new be(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){ye[e]=new be(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ye[e]=new be(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){ye[e]=new be(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){ye[e]=new be(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){ye[e]=new be(e,5,!1,e.toLowerCase(),null,!1)}));var ge=/[\-:]([a-z])/g;function xe(e){return e[1].toUpperCase()}function we(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ke(e,t,n,r){var o=ye.hasOwnProperty(t)?ye[t]:null;(null!==o?0===o.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||"undefined"===typeof 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,o,r)&&(n=null),r||null===o?function(e){return!!he.call(ve,e)||!he.call(me,e)&&(pe.test(e)?ve[e]=!0:(me[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Ee(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Oe(e){e._valueTracker||(e._valueTracker=function(e){var t=Ee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.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 Se(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ee(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ce(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function je(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=we(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 Te(e,t){null!=(t=t.checked)&&ke(e,"checked",t,!1)}function Pe(e,t){Te(e,t);var n=we(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")?Ne(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ne(e,t.type,we(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Re(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 Ne(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function _e(e,t){return e=o({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 Me(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+we(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw a(Error(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw a(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw a(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:we(n)}}function ze(e,t){var n=we(t.value),r=we(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 Le(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(ge,xe);ye[t]=new be(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(ge,xe);ye[t]=new be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ge,xe);ye[t]=new be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){ye[e]=new be(e,1,!1,e.toLowerCase(),null,!1)})),ye.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){ye[e]=new be(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 Fe(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 We(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ue,Be=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==De.svg||"innerHTML"in e)e.innerHTML=t;else{for((Ue=Ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function $e(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 Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Ke={},qe={};function Qe(e){if(Ke[e])return Ke[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in qe)return Ke[e]=n[t];return e}Z&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Xe=Qe("animationend"),Ye=Qe("animationiteration"),Ge=Qe("animationstart"),Je=Qe("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(" "),et=!1,tt=[],nt=null,rt=null,ot=null,it=new Map,at=new Map,lt="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(" "),ut="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function ct(e,t,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r}}function st(e,t){switch(e){case"focus":case"blur":nt=null;break;case"dragenter":case"dragleave":rt=null;break;case"mouseover":case"mouseout":ot=null;break;case"pointerover":case"pointerout":it.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":at.delete(t.pointerId)}}function dt(e,t,n,r,o){return null===e||e.nativeEvent!==o?ct(t,n,r,o):(e.eventSystemFlags|=r,e)}function ft(e){if(null!==e.blockedOn)return!1;var t=Cn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);return null===t||(e.blockedOn=t,!1)}function pt(e,t,n){ft(e)&&n.delete(t)}function ht(){for(et=!1;0<tt.length;){var e=tt[0];if(null!==e.blockedOn)break;var t=Cn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:tt.shift()}null!==nt&&ft(nt)&&(nt=null),null!==rt&&ft(rt)&&(rt=null),null!==ot&&ft(ot)&&(ot=null),it.forEach(pt),at.forEach(pt)}function mt(e,t){e.blockedOn===t&&(e.blockedOn=null,et||(et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ht)))}function vt(e){function t(t){return mt(t,e)}if(0<tt.length){mt(tt[0],e);for(var n=1;n<tt.length;n++){var r=tt[n];r.blockedOn===e&&(r.blockedOn=null)}}null!==nt&&mt(nt,e),null!==rt&&mt(rt,e),null!==ot&&mt(ot,e),it.forEach(t),at.forEach(t)}var bt=0,yt=2,gt=1024;function xt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{((t=e).effectTag&(yt|gt))!==bt&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function wt(e){if(xt(e)!==e)throw a(Error(188))}function kt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=xt(e)))throw a(Error(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return wt(o),e;if(i===r)return wt(o),t;i=i.sibling}throw a(Error(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw a(Error(189))}}if(n.alternate!==r)throw a(Error(190))}if(3!==n.tag)throw a(Error(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}function Et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ot(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function St(e,t,n){(t=_(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function Ct(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Ot(t);for(t=n.length;0<t--;)St(n[t],"captured",e);for(t=0;t<n.length;t++)St(n[t],"bubbled",e)}}function jt(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=_(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function Tt(e){e&&e.dispatchConfig.registrationName&&jt(e._targetInst,null,e)}function Pt(e){j(e,Ct)}function Rt(){return!0}function Nt(){return!1}function _t(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Rt:Nt,this.isPropagationStopped=Nt,this}function Mt(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function At(e){if(!(e instanceof this))throw a(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function It(e){e.eventPool=[],e.getPooled=Mt,e.release=At}o(_t.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:Nt,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=Nt,this._dispatchInstances=this._dispatchListeners=null}}),_t.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},_t.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,It(n),n},It(_t);var zt=_t.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Lt=_t.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dt=_t.extend({view:null,detail:null}),Ft=Dt.extend({relatedTarget:null});function Wt(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 Ut={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bt={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"},$t={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$t[e])&&!!t[e]}function Ht(){return Vt}for(var Kt=Dt.extend({key:function(e){if(e.key){var t=Ut[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Wt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Bt[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ht,charCode:function(e){return"keypress"===e.type?Wt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Wt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),qt=0,Qt=0,Xt=!1,Yt=!1,Gt=Dt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ht,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=qt;return qt=e.screenX,Xt?"mousemove"===e.type?e.screenX-t:0:(Xt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Qt;return Qt=e.screenY,Yt?"mousemove"===e.type?e.screenY-t:0:(Yt=!0,0)}}),Jt=Gt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Zt=Gt.extend({dataTransfer:null}),en=Dt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ht}),tn=_t.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),nn=Gt.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}),rn=[["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],[Xe,"animationEnd",2],[Ye,"animationIteration",2],[Ge,"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]],on={},an={},ln=0;ln<rn.length;ln++){var un=rn[ln],cn=un[0],sn=un[1],dn=un[2],fn="on"+(sn[0].toUpperCase()+sn.slice(1)),pn={phasedRegistrationNames:{bubbled:fn,captured:fn+"Capture"},dependencies:[cn],eventPriority:dn};on[sn]=pn,an[cn]=pn}var hn={eventTypes:on,getEventPriority:function(e){return void 0!==(e=an[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=an[e];if(!o)return null;switch(e){case"keypress":if(0===Wt(n))return null;case"keydown":case"keyup":e=Kt;break;case"blur":case"focus":e=Ft;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=Gt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Zt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=en;break;case Xe:case Ye:case Ge:e=zt;break;case Je:e=tn;break;case"scroll":e=Dt;break;case"wheel":e=nn;break;case"copy":case"cut":case"paste":e=Lt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Jt;break;default:e=_t}return Pt(t=e.getPooled(o,t,n,r)),t}},mn=hn.getEventPriority,vn=10,bn=[];function yn(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=lr(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Et(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=e.eventSystemFlags,l=null,u=0;u<d.length;u++){var c=d[u];c&&(c=c.extractEvents(r,t,i,o,a))&&(l=C(l,c))}R(l)}}var gn=!0;function xn(e,t){wn(t,e,!1)}function wn(e,t,n){switch(mn(t)){case 0:var r=kn.bind(null,t,1);break;case 1:r=En.bind(null,t,1);break;default:r=Sn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function kn(e,t,n){se||ue();var r=Sn,o=se;se=!0;try{le(r,e,t,n)}finally{(se=o)||fe()}}function En(e,t,n){Sn(e,t,n)}function On(e,t,n,r){if(bn.length){var o=bn.pop();o.topLevelType=e,o.eventSystemFlags=t,o.nativeEvent=n,o.targetInst=r,e=o}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:n,targetInst:r,ancestors:[]};try{if(t=yn,n=e,de)t(n,void 0);else{de=!0;try{ce(t,n,void 0)}finally{de=!1,fe()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,bn.length<vn&&bn.push(e)}}function Sn(e,t,n){if(gn)if(0<tt.length&&-1<lt.indexOf(e))e=ct(null,e,t,n),tt.push(e);else{var r=Cn(e,t,n);null===r?st(e,n):-1<lt.indexOf(e)?(e=ct(r,e,t,n),tt.push(e)):function(e,t,n,r){switch(t){case"focus":return nt=dt(nt,e,t,n,r),!0;case"dragenter":return rt=dt(rt,e,t,n,r),!0;case"mouseover":return ot=dt(ot,e,t,n,r),!0;case"pointerover":var o=r.pointerId;return it.set(o,dt(it.get(o)||null,e,t,n,r)),!0;case"gotpointercapture":return o=r.pointerId,at.set(o,dt(at.get(o)||null,e,t,n,r)),!0}return!1}(r,e,t,n)||(st(e,n),On(e,t,n,null))}}function Cn(e,t,n){var r=Et(n),o=lr(r);if(null!==o)if(null===(r=xt(o)))o=null;else{var i=r.tag;if(13===i){if(null!==(r=13!==r.tag||(null===(o=r.memoizedState)&&(null!==(r=r.alternate)&&(o=r.memoizedState)),null===o)?null:o.dehydrated))return r;o=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;o=null}else r!==o&&(o=null)}return On(e,t,n,o),null}function jn(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 Tn=new("function"===typeof WeakMap?WeakMap:Map);function Pn(e){var t=Tn.get(e);return void 0===t&&(t=new Set,Tn.set(e,t)),t}function Rn(e,t,n){if(!n.has(e)){switch(e){case"scroll":wn(t,"scroll",!0);break;case"focus":case"blur":wn(t,"focus",!0),wn(t,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":jn(e)&&wn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ze.indexOf(e)&&xn(e,t)}n.add(e)}}var Nn={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},_n=["Webkit","ms","Moz","O"];function Mn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function An(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Mn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Nn).forEach((function(e){_n.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]}))}));var In=o({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 zn(e,t){if(t){if(In[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw a(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw a(Error(60));if(!("object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw a(Error(61))}if(null!=t.style&&"object"!==typeof t.style)throw a(Error(62),"")}}function Ln(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 Dn(e,t){var n=Pn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=h[t];for(var r=0;r<t.length;r++)Rn(t[r],e,n)}function Fn(){}function Wn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bn(e,t){var n,r=Un(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=Un(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 Vn(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 Hn="$",Kn="/$",qn="$?",Qn="$!",Xn=null,Yn=null;function Gn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Jn(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 Zn="function"===typeof setTimeout?setTimeout:void 0,er="function"===typeof clearTimeout?clearTimeout:void 0;function tr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function nr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Hn||n===Qn||n===qn){if(0===t)return e;t--}else n===Kn&&t++}e=e.previousSibling}return null}var rr=Math.random().toString(36).slice(2),or="__reactInternalInstance$"+rr,ir="__reactEventHandlers$"+rr,ar="__reactContainere$"+rr;function lr(e){var t=e[or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ar]||n[or]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=nr(e);null!==e;){if(n=e[or])return n;e=nr(e)}return t}n=(e=n).parentNode}return null}function ur(e){return!(e=e[or]||e[ar])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function cr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw a(Error(33))}function sr(e){return e[ir]||null}var dr=null,fr=null,pr=null;function hr(){if(pr)return pr;var e,t,n=fr,r=n.length,o="value"in dr?dr.value:dr.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return pr=o.slice(e,1<t?1-t:void 0)}var mr=_t.extend({data:null}),vr=_t.extend({data:null}),br=[9,13,27,32],yr=Z&&"CompositionEvent"in window,gr=null;Z&&"documentMode"in document&&(gr=document.documentMode);var xr=Z&&"TextEvent"in window&&!gr,wr=Z&&(!yr||gr&&8<gr&&11>=gr),kr=String.fromCharCode(32),Er={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(" ")}},Or=!1;function Sr(e,t){switch(e){case"keyup":return-1!==br.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Cr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var jr=!1;var Tr={eventTypes:Er,extractEvents:function(e,t,n,r){var o;if(yr)e:{switch(e){case"compositionstart":var i=Er.compositionStart;break e;case"compositionend":i=Er.compositionEnd;break e;case"compositionupdate":i=Er.compositionUpdate;break e}i=void 0}else jr?Sr(e,n)&&(i=Er.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Er.compositionStart);return i?(wr&&"ko"!==n.locale&&(jr||i!==Er.compositionStart?i===Er.compositionEnd&&jr&&(o=hr()):(fr="value"in(dr=r)?dr.value:dr.textContent,jr=!0)),i=mr.getPooled(i,t,n,r),o?i.data=o:null!==(o=Cr(n))&&(i.data=o),Pt(i),o=i):o=null,(e=xr?function(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return 32!==t.which?null:(Or=!0,kr);case"textInput":return(e=t.data)===kr&&Or?null:e;default:return null}}(e,n):function(e,t){if(jr)return"compositionend"===e||!yr&&Sr(e,t)?(e=hr(),pr=fr=dr=null,jr=!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 wr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=vr.getPooled(Er.beforeInput,t,n,r)).data=e,Pt(t)):t=null,null===o?t:null===t?o:[o,t]}},Pr={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 Rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pr[e.type]:"textarea"===t}var Nr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function _r(e,t,n){return(e=_t.getPooled(Nr.change,e,t,n)).type="change",oe(n),Pt(e),e}var Mr=null,Ar=null;function Ir(e){R(e)}function zr(e){if(Se(cr(e)))return e}function Lr(e,t){if("change"===e)return t}var Dr=!1;function Fr(){Mr&&(Mr.detachEvent("onpropertychange",Wr),Ar=Mr=null)}function Wr(e){if("value"===e.propertyName&&zr(Ar))if(e=_r(Ar,e,Et(e)),se)R(e);else{se=!0;try{ae(Ir,e)}finally{se=!1,fe()}}}function Ur(e,t,n){"focus"===e?(Fr(),Ar=n,(Mr=t).attachEvent("onpropertychange",Wr)):"blur"===e&&Fr()}function Br(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zr(Ar)}function $r(e,t){if("click"===e)return zr(t)}function Vr(e,t){if("input"===e||"change"===e)return zr(t)}Z&&(Dr=jn("input")&&(!document.documentMode||9<document.documentMode));var Hr={eventTypes:Nr,_isInputEventSupported:Dr,extractEvents:function(e,t,n,r){var o=t?cr(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=Lr;else if(Rr(o))if(Dr)a=Vr;else{a=Br;var l=Ur}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=$r);if(a&&(a=a(e,t)))return _r(a,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Ne(o,"number",o.value)}},Kr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},qr={eventTypes:Kr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0===(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?lr(t):null)&&(t!==(i=xt(t))||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var l=Gt,u=Kr.mouseLeave,c=Kr.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Jt,u=Kr.pointerLeave,c=Kr.pointerEnter,s="pointer");if(e=null==a?o:cr(a),o=null==t?o:cr(t),(u=l.getPooled(u,a,n,r)).type=s+"leave",u.target=e,u.relatedTarget=o,(n=l.getPooled(c,t,n,r)).type=s+"enter",n.target=o,n.relatedTarget=e,s=t,(r=a)&&s)e:{for(c=s,e=0,a=l=r;a;a=Ot(a))e++;for(a=0,t=c;t;t=Ot(t))a++;for(;0<e-a;)l=Ot(l),e--;for(;0<a-e;)c=Ot(c),a--;for(;e--;){if(l===c||l===c.alternate)break e;l=Ot(l),c=Ot(c)}l=null}else l=null;for(c=l,l=[];r&&r!==c&&(null===(e=r.alternate)||e!==c);)l.push(r),r=Ot(r);for(r=[];s&&s!==c&&(null===(e=s.alternate)||e!==c);)r.push(s),s=Ot(s);for(s=0;s<l.length;s++)jt(l[s],"bubbled",u);for(s=r.length;0<s--;)jt(r[s],"captured",n);return[u,n]}};var Qr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Xr=Object.prototype.hasOwnProperty;function Yr(e,t){if(Qr(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(!Xr.call(t,n[r])||!Qr(e[n[r]],t[n[r]]))return!1;return!0}var Gr=Z&&"documentMode"in document&&11>=document.documentMode,Jr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Zr=null,eo=null,to=null,no=!1;function ro(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return no||null==Zr||Zr!==Wn(n)?null:("selectionStart"in(n=Zr)&&Vn(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},to&&Yr(to,n)?null:(to=n,(e=_t.getPooled(Jr.select,eo,e,t)).type="select",e.target=Zr,Pt(e),e))}var oo={eventTypes:Jr,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Pn(i),o=h.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?cr(t):window,e){case"focus":(Rr(i)||"true"===i.contentEditable)&&(Zr=i,eo=t,to=null);break;case"blur":to=eo=Zr=null;break;case"mousedown":no=!0;break;case"contextmenu":case"mouseup":case"dragend":return no=!1,ro(n,r);case"selectionchange":if(Gr)break;case"keydown":case"keyup":return ro(n,r)}return null}};N.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=sr,E=ur,O=cr,N.injectEventPluginsByName({SimpleEventPlugin:hn,EnterLeaveEventPlugin:qr,ChangeEventPlugin:Hr,SelectEventPlugin:oo,BeforeInputEventPlugin:Tr}),new Set;var io=[],ao=-1;function lo(e){0>ao||(e.current=io[ao],io[ao]=null,ao--)}function uo(e,t){io[++ao]=e.current,e.current=t}var co={},so={current:co},fo={current:!1},po=co;function ho(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function vo(e){lo(fo),lo(so)}function bo(e){lo(fo),lo(so)}function yo(e,t,n){if(so.current!==co)throw a(Error(168));uo(so,t),uo(fo,n)}function go(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 a(Error(108),G(t)||"Unknown",i);return o({},n,{},r)}function xo(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||co,po=so.current,uo(so,t),uo(fo,fo.current),!0}function wo(e,t,n){var r=e.stateNode;if(!r)throw a(Error(169));n?(t=go(e,t,po),r.__reactInternalMemoizedMergedChildContext=t,lo(fo),lo(so),uo(so,t)):lo(fo),uo(fo,n)}var ko=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,So=i.unstable_shouldYield,Co=i.unstable_requestPaint,jo=i.unstable_now,To=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,No=i.unstable_NormalPriority,_o=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,Ao={},Io=void 0!==Co?Co:function(){},zo=null,Lo=null,Do=!1,Fo=jo(),Wo=1e4>Fo?jo:function(){return jo()-Fo};function Uo(){switch(To()){case Po:return 99;case Ro:return 98;case No:return 97;case _o:return 96;case Mo:return 95;default:throw a(Error(332))}}function Bo(e){switch(e){case 99:return Po;case 98:return Ro;case 97:return No;case 96:return _o;case 95:return Mo;default:throw a(Error(332))}}function $o(e,t){return e=Bo(e),ko(e,t)}function Vo(e,t,n){return e=Bo(e),Eo(e,t,n)}function Ho(e){return null===zo?(zo=[e],Lo=Eo(Po,qo)):zo.push(e),Ao}function Ko(){if(null!==Lo){var e=Lo;Lo=null,Oo(e)}qo()}function qo(){if(!Do&&null!==zo){Do=!0;var e=0;try{var t=zo;$o(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),zo=null}catch(n){throw null!==zo&&(zo=zo.slice(e+1)),Eo(Po,Ko),n}finally{Do=!1}}}function Qo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Xo={current:null},Yo=null,Go=null,Jo=null;function Zo(){Jo=Go=Yo=null}function ei(e,t){var n=e.type._context;uo(Xo,n._currentValue),n._currentValue=t}function ti(e){var t=Xo.current;lo(Xo),e.type._context._currentValue=t}function ni(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 ri(e,t){Yo=e,Jo=Go=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ra=!0),e.firstContext=null)}function oi(e,t){if(Jo!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Jo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Go){if(null===Yo)throw a(Error(308));Go=t,Yo.dependencies={expirationTime:0,firstContext:t,responders:null}}else Go=Go.next=t;return e._currentValue}var ii=!1;function ai(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function li(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ui(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ci(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function si(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=ai(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=ai(e.memoizedState),o=n.updateQueue=ai(n.memoizedState)):r=e.updateQueue=li(o):null===o&&(o=n.updateQueue=li(r));null===o||r===o?ci(r,t):null===r.lastUpdate||null===o.lastUpdate?(ci(r,t),ci(o,t)):(ci(r,t),o.lastUpdate=t)}function di(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=ai(e.memoizedState):fi(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function fi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=li(t)),t}function pi(e,t,n,r,i,a){switch(n.tag){case 1:return"function"===typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(null===(i="function"===typeof(e=n.payload)?e.call(a,r,i):e)||void 0===i)break;return o({},r,i);case 2:ii=!0}return r}function hi(e,t,n,r,o){ii=!1;for(var i=(t=fi(e,t)).baseState,a=null,l=0,u=t.firstUpdate,c=i;null!==u;){var s=u.expirationTime;s<o?(null===a&&(a=u,i=c),l<s&&(l=s)):(vu(s,u.suspenseConfig),c=pi(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 d=u.expirationTime;d<o?(null===s&&(s=u,null===a&&(i=c)),l<d&&(l=d)):(c=pi(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===a&&(t.lastUpdate=null),null===s?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===s&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=s,bu(l),e.expirationTime=l,e.memoizedState=c}function mi(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),vi(t.firstEffect,n),t.firstEffect=t.lastEffect=null,vi(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function vi(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!==typeof n)throw a(Error(191),n);n.call(r)}e=e.nextEffect}}var bi=M.ReactCurrentBatchConfig,yi=(new r.Component).refs;function gi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var xi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&xt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Jl(),o=bi.suspense;(o=ui(r=Zl(r,e,o),o)).payload=t,void 0!==n&&null!==n&&(o.callback=n),si(e,o),nu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Jl(),o=bi.suspense;(o=ui(r=Zl(r,e,o),o)).tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),si(e,o),nu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Jl(),r=bi.suspense;(r=ui(n=Zl(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),si(e,r),nu(e,n)}};function wi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Yr(n,r)||!Yr(o,i))}function ki(e,t,n){var r=!1,o=co,i=t.contextType;return"object"===typeof i&&null!==i?i=oi(i):(o=mo(t)?po:so.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?ho(e,o):co),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=xi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ei(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&&xi.enqueueReplaceState(t,t.state,null)}function Oi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi;var i=t.contextType;"object"===typeof i&&null!==i?o.context=oi(i):(i=mo(t)?po:so.current,o.context=ho(e,i)),null!==(i=e.updateQueue)&&(hi(e,i,n,o,r),o.state=e.memoizedState),"function"===typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&xi.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(hi(e,i,n,o,r),o.state=e.memoizedState)),"function"===typeof o.componentDidMount&&(e.effectTag|=4)}var Si=Array.isArray;function Ci(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 a(Error(309));var r=n.stateNode}if(!r)throw a(Error(147),e);var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!==typeof e)throw a(Error(284));if(!n._owner)throw a(Error(290),e)}return e}function ji(e,t){if("textarea"!==e.type)throw a(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Ti(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 o(e,t,n){return(e=Lu(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=yt,n):r:(t.effectTag=yt,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=yt),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Wu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ci(e,t,n),r.return=e,r):((r=Du(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(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=Uu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Fu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Wu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case z:return(n=Du(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case L:return(t=Uu(t,e.mode,n)).return=e,t}if(Si(t)||Y(t))return(t=Fu(t,e.mode,n,null)).return=e,t;ji(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case z:return n.key===o?n.type===D?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case L:return n.key===o?s(e,t,n,r):null}if(Si(n)||Y(n))return null!==o?null:d(e,t,n,r,null);ji(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case z:return e=e.get(null===r.key?n:r.key)||null,r.type===D?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case L:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||Y(r))return d(t,e=e.get(n)||null,r,o,null);ji(t,r)}return null}function m(o,a,l,u){for(var c=null,s=null,d=a,m=a=0,v=null;null!==d&&m<l.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var b=p(o,d,l[m],u);if(null===b){null===d&&(d=v);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,m),null===s?c=b:s.sibling=b,s=b,d=v}if(m===l.length)return n(o,d),c;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],u))&&(a=i(d,a,m),null===s?c=d:s.sibling=d,s=d);return c}for(d=r(o,d);m<l.length;m++)null!==(v=h(d,o,m,l[m],u))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===s?c=v:s.sibling=v,s=v);return e&&d.forEach((function(e){return t(o,e)})),c}function v(o,l,u,c){var s=Y(u);if("function"!==typeof s)throw a(Error(150));if(null==(u=s.call(u)))throw a(Error(151));for(var d=s=null,m=l,v=l=0,b=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(b=m,m=null):b=m.sibling;var g=p(o,m,y.value,c);if(null===g){null===m&&(m=b);break}e&&m&&null===g.alternate&&t(o,m),l=i(g,l,v),null===d?s=g:d.sibling=g,d=g,m=b}if(y.done)return n(o,m),s;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=f(o,y.value,c))&&(l=i(y,l,v),null===d?s=y:d.sibling=y,d=y);return s}for(m=r(o,m);!y.done;v++,y=u.next())null!==(y=h(m,o,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=i(y,l,v),null===d?s=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,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 z: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=o(c,i.type===D?i.props.children:i.props)).ref=Ci(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===D?((r=Fu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Du(i.type,i.key,i.props,null,e.mode,u)).ref=Ci(e,r,i),u.return=e,e=u)}return l(e);case L: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=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Uu(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=o(r,i)).return=e,e=r):(n(e,r),(r=Wu(i,e.mode,u)).return=e,e=r),l(e);if(Si(i))return m(e,r,i,u);if(Y(i))return v(e,r,i,u);if(s&&ji(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,a(Error(152),e.displayName||e.name||"Component")}return n(e,r)}}var Pi=Ti(!0),Ri=Ti(!1),Ni={},_i={current:Ni},Mi={current:Ni},Ai={current:Ni};function Ii(e){if(e===Ni)throw a(Error(174));return e}function zi(e,t){uo(Ai,t),uo(Mi,e),uo(_i,Ni);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:We(null,"");break;default:t=We(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}lo(_i),uo(_i,t)}function Li(e){lo(_i),lo(Mi),lo(Ai)}function Di(e){Ii(Ai.current);var t=Ii(_i.current),n=We(t,e.type);t!==n&&(uo(Mi,e),uo(_i,n))}function Fi(e){Mi.current===e&&(lo(_i),lo(Mi))}var Wi={current:0};function Ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===qn||n.data===Qn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if((64&t.effectTag)!==bt)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 Bi(e,t){return{responder:e,props:t}}var $i=M.ReactCurrentDispatcher,Vi=0,Hi=null,Ki=null,qi=null,Qi=null,Xi=null,Yi=null,Gi=0,Ji=null,Zi=0,ea=!1,ta=null,na=0;function ra(){throw a(Error(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qr(e[n],t[n]))return!1;return!0}function ia(e,t,n,r,o,i){if(Vi=i,Hi=t,qi=null!==e?e.memoizedState:null,$i.current=null===qi?ya:ga,t=n(r,o),ea){do{ea=!1,na+=1,qi=null!==e?e.memoizedState:null,Yi=Qi,Ji=Xi=Ki=null,$i.current=ga,t=n(r,o)}while(ea);ta=null,na=0}if($i.current=ba,(e=Hi).memoizedState=Qi,e.expirationTime=Gi,e.updateQueue=Ji,e.effectTag|=Zi,e=null!==Ki&&null!==Ki.next,Vi=0,Yi=Xi=Qi=qi=Ki=Hi=null,Gi=0,Ji=null,Zi=0,e)throw a(Error(300));return t}function aa(){$i.current=ba,Vi=0,Yi=Xi=Qi=qi=Ki=Hi=null,Gi=0,Ji=null,Zi=0,ea=!1,ta=null,na=0}function la(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Xi?Qi=Xi=e:Xi=Xi.next=e,Xi}function ua(){if(null!==Yi)Yi=(Xi=Yi).next,qi=null!==(Ki=qi)?Ki.next:null;else{if(null===qi)throw a(Error(310));var e={memoizedState:(Ki=qi).memoizedState,baseState:Ki.baseState,queue:Ki.queue,baseUpdate:Ki.baseUpdate,next:null};Xi=null===Xi?Qi=e:Xi.next=e,qi=Ki.next}return Xi}function ca(e,t){return"function"===typeof t?t(e):t}function sa(e){var t=ua(),n=t.queue;if(null===n)throw a(Error(311));if(n.lastRenderedReducer=e,0<na){var r=n.dispatch;if(null!==ta){var o=ta.get(n);if(void 0!==o){ta.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return Qr(i,t.memoizedState)||(Ra=!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=o=null,c=r,s=!1;do{var d=c.expirationTime;d<Vi?(s||(s=!0,u=l,o=i),d>Gi&&bu(Gi=d)):(vu(d,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,o=i),Qr(i,t.memoizedState)||(Ra=!0),t.memoizedState=i,t.baseUpdate=u,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Ji?(Ji={lastEffect:null}).lastEffect=e.next=e:null===(t=Ji.lastEffect)?Ji.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Ji.lastEffect=e),e}function fa(e,t,n,r){var o=la();Zi|=e,o.memoizedState=da(t,n,void 0,void 0===r?null:r)}function pa(e,t,n,r){var o=ua();r=void 0===r?null:r;var i=void 0;if(null!==Ki){var a=Ki.memoizedState;if(i=a.destroy,null!==r&&oa(r,a.deps))return void da(0,n,i,r)}Zi|=e,o.memoizedState=da(t,n,i,r)}function ha(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ma(){}function va(e,t,n){if(!(25>na))throw a(Error(301));var r=e.alternate;if(e===Hi||null!==r&&r===Hi)if(ea=!0,e={expirationTime:Vi,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===ta&&(ta=new Map),void 0===(n=ta.get(t)))ta.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=Jl(),i=bi.suspense;i={expirationTime:o=Zl(o,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,Qr(s,c))return}catch(d){}nu(e,o)}}var ba={readContext:oi,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useResponder:ra},ya={readContext:oi,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:function(e,t){return fa(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,fa(4,36,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fa(4,36,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();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=va.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},la().memoizedState=e},useState:function(e){var t=la();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=va.bind(null,Hi,e),[t.memoizedState,e]},useDebugValue:ma,useResponder:Bi},ga={readContext:oi,useCallback:function(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:oi,useEffect:function(e,t){return pa(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,pa(4,36,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pa(4,36,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:sa,useRef:function(){return ua().memoizedState},useState:function(e){return sa(ca)},useDebugValue:ma,useResponder:Bi},xa=null,wa=null,ka=!1;function Ea(e,t){var n=Iu(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 Oa(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 Sa(e){if(ka){var t=wa;if(t){var n=t;if(!Oa(e,t)){if(!(t=tr(n.nextSibling))||!Oa(e,t))return e.effectTag=e.effectTag&~gt|yt,ka=!1,void(xa=e);Ea(xa,n)}xa=e,wa=tr(t.firstChild)}else e.effectTag=e.effectTag&~gt|yt,ka=!1,xa=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function ja(e){if(e!==xa)return!1;if(!ka)return Ca(e),ka=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Jn(t,e.memoizedProps))for(t=wa;t;)Ea(e,t),t=tr(t.nextSibling);if(Ca(e),13===e.tag)if(null===(e=null!==(e=e.memoizedState)?e.dehydrated:null))e=wa;else e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Kn){if(0===t){e=tr(e.nextSibling);break e}t--}else n!==Hn&&n!==Qn&&n!==qn||t++}e=e.nextSibling}e=null}else e=xa?tr(e.stateNode.nextSibling):null;return wa=e,!0}function Ta(){wa=xa=null,ka=!1}var Pa=M.ReactCurrentOwner,Ra=!1;function Na(e,t,n,r){t.child=null===e?Ri(t,null,n,r):Pi(t,e.child,n,r)}function _a(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=ia(e,t,n,r,i,o),null===e||Ra?(t.effectTag|=1,Na(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function Ma(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||zu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Aa(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Yr)(o,r)&&e.ref===t.ref)?Qa(e,t,i):(t.effectTag|=1,(e=Lu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Aa(e,t,n,r,o,i){return null!==e&&Yr(e.memoizedProps,r)&&e.ref===t.ref&&(Ra=!1,o<i)?Qa(e,t,i):za(e,t,n,r,i)}function Ia(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function za(e,t,n,r,o){var i=mo(n)?po:so.current;return i=ho(t,i),ri(t,o),n=ia(e,t,n,r,i,o),null===e||Ra?(t.effectTag|=1,Na(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Qa(e,t,o))}function La(e,t,n,r,o){if(mo(n)){var i=!0;xo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=yt),ki(t,n,r),Oi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=oi(c):c=ho(t,c=mo(n)?po:so.current);var s=n.getDerivedStateFromProps,d="function"===typeof s||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||u!==c)&&Ei(t,a,r,c),ii=!1;var f=t.memoizedState;u=a.state=f;var p=t.updateQueue;null!==p&&(hi(t,p,r,a,o),u=t.memoizedState),l!==r||f!==u||fo.current||ii?("function"===typeof s&&(gi(t,n,s,r),u=t.memoizedState),(l=ii||wi(t,n,l,r,f,u,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:Qo(t.type,l),u=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=oi(c):c=ho(t,c=mo(n)?po:so.current),(d="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||u!==c)&&Ei(t,a,r,c),ii=!1,u=t.memoizedState,f=a.state=u,null!==(p=t.updateQueue)&&(hi(t,p,r,a,o),f=t.memoizedState),l!==r||u!==f||fo.current||ii?("function"===typeof s&&(gi(t,n,s,r),f=t.memoizedState),(s=ii||wi(t,n,l,r,u,f,c))?(d||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,c)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=c,r=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Da(e,t,n,r,i,o)}function Da(e,t,n,r,o,i){Ia(e,t);var a=(64&t.effectTag)!==bt;if(!r&&!a)return o&&wo(t,n,!1),Qa(e,t,i);r=t.stateNode,Pa.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,l,i)):Na(e,t,l,i),t.memoizedState=r.state,o&&wo(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?yo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yo(0,t.context,!1),zi(e,t.containerInfo)}var Wa,Ua,Ba,$a,Va={dehydrated:null,retryTime:1};function Ha(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Wi.current,l=!1;if((r=(64&t.effectTag)!==bt)||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),uo(Wi,1&a),null===e){if(l){if(l=i.fallback,(i=Fu(null,o,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=Fu(l,o,n,null)).return=t,i.sibling=n,t.memoizedState=Va,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Ri(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(i=i.fallback,(n=Lu(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(o=Lu(o,i,o.expirationTime)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,o}return n=Pi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=Fu(null,o,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=Fu(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=yt,i.childExpirationTime=0,t.memoizedState=Va,t.child=i,n}return t.memoizedState=null,t.child=Pi(t,e,i.children,n)}function Ka(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o)}function qa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Na(e,t,r.children,n),0!==(2&(r=Wi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&(64&e.effectTag)!==bt)e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),ni(e.return,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(uo(Wi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(r=n.alternate)&&null===Ui(r)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ka(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(r=o.alternate)&&null===Ui(r)){t.child=o;break}r=o.sibling,o.sibling=n,n=o,o=r}Ka(t,!0,n,null,i);break;case"together":Ka(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&bu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw a(Error(153));if(null!==t.child){for(n=Lu(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lu(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Xa(e){e.effectTag|=4}function Ya(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 Ga(e){switch(e.tag){case 1:mo(e.type)&&vo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Li(),bo(),(64&(t=e.effectTag))!==bt)throw a(Error(285));return e.effectTag=-4097&t|64,e;case 5:return Fi(e),null;case 13:return lo(Wi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(Wi),null;case 4:return Li(),null;case 10:return ti(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:J(t)}}Wa=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}},Ua=function(){},Ba=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l,u,c=t.stateNode;switch(Ii(_i.current),e=null,n){case"input":a=Ce(c,a),r=Ce(c,r),e=[];break;case"option":a=_e(c,a),r=_e(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Ae(c,a),r=Ae(c,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(c.onclick=Fn)}for(l in zn(n,r),n=null,a)if(!r.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if("style"===l)for(u in c=a[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!=a?a[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&&Dn(i,l),e||c===s||(e=[])):(e=e||[]).push(l,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&Xa(t)}},$a=function(e,t,n,r){n!==r&&Xa(t)};var Za="function"===typeof WeakSet?WeakSet:Set;function el(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=J(n)),null!==n&&G(n.type),t=t.value,null!==e&&1===e.tag&&G(e.type);try{console.error(t)}catch(o){setTimeout((function(){throw o}))}}function tl(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Pu(e,n)}else t.current=null}function nl(e,t){switch(t.tag){case 0:case 11:case 15:rl(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:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:case 17:break;default:throw a(Error(163))}}function rl(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 o=r.destroy;r.destroy=void 0,void 0!==o&&o()}0!==(r.tag&t)&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function ol(e,t,n){switch("function"===typeof Mu&&Mu(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;$o(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(i){Pu(o,i)}}e=e.next}while(e!==r)}))}break;case 1:tl(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Pu(e,n)}}(t,n);break;case 5:tl(t);break;case 4:ul(e,t,n)}}function il(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&&il(t)}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:{for(var t=e.return;null!==t;){if(al(t)){var n=t;break e}t=t.return}throw a(Error(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 a(Error(161))}16&n.effectTag&&($e(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||al(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(n.effectTag&yt)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&yt)){n=n.stateNode;break e}}for(var o=e;;){var i=5===o.tag||6===o.tag;if(i){var l=i?o.stateNode:o.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)&&void 0!==u||null!==i.onclick||(i.onclick=Fn)):t.appendChild(l)}else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function ul(e,t,n){for(var r,o,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw a(Error(160));switch(r=l.stateNode,l.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var u=e,c=i,s=n,d=c;;)if(ol(u,d,s),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(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,o=!0,i.child.return=i,i=i.child;continue}}else if(ol(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 cl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:rl(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[ir]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Te(n,r),Ln(e,o),t=Ln(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?An(n,u):"dangerouslySetInnerHTML"===l?Be(n,u):"children"===l?$e(n,u):ke(n,l,u,t)}switch(e){case"input":Pe(n,r);break;case"textarea":ze(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Me(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Me(n,!!r.multiple,r.defaultValue,!0):Me(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw a(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,vt(t.containerInfo));break;case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Fl=Wo()),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,o=void 0!==(o=e.memoizedProps.style)&&null!==o&&o.hasOwnProperty("display")?o.display:null,i.style.display=Mn("display",o));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}sl(t);break;case 19:sl(t);break;case 17:case 20:case 21:break;default:throw a(Error(163))}}function sl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var r=Nu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var dl="function"===typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=ui(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bl||(Bl=!0,$l=r),el(e,t)},n}function pl(e,t,n){(n=ui(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return el(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),el(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var hl=Math.ceil,ml=M.ReactCurrentDispatcher,vl=M.ReactCurrentOwner,bl=0,yl=8,gl=16,xl=32,wl=0,kl=1,El=2,Ol=3,Sl=4,Cl=5,jl=6,Tl=bl,Pl=null,Rl=null,Nl=0,_l=wl,Ml=null,Al=1073741823,Il=1073741823,zl=null,Ll=0,Dl=!1,Fl=0,Wl=500,Ul=null,Bl=!1,$l=null,Vl=null,Hl=!1,Kl=null,ql=90,Ql=null,Xl=0,Yl=null,Gl=0;function Jl(){return(Tl&(gl|xl))!==bl?1073741821-(Wo()/10|0):0!==Gl?Gl:Gl=1073741821-(Wo()/10|0)}function Zl(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Uo();if(0===(4&t))return 99===r?1073741823:1073741822;if((Tl&gl)!==bl)return Nl;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(r){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=2;break;default:throw a(Error(326))}return null!==Pl&&e===Nl&&--e,e}var eu,tu=0;function nu(e,t){if(50<Xl)throw Xl=0,Yl=null,a(Error(185));if(null!==(e=ru(e,t))){var n=Uo();1073741823===t?(Tl&yl)!==bl&&(Tl&(gl|xl))===bl?lu(e):(iu(e),Tl===bl&&Ko()):iu(e),(4&Tl)===bl||98!==n&&99!==n||(null===Ql?Ql=new Map([[e,t]]):(void 0===(n=Ql.get(e))||n>t)&&Ql.set(e,t))}}function ru(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=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){o=r.stateNode;break}r=r.return}return null!==o&&(Pl===o&&(bu(t),_l===Sl&&Vu(o,Nl)),Hu(o,t)),o}function ou(e){var t=e.lastExpiredTime;return 0!==t?t:$u(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function iu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ho(lu.bind(null,e));else{var t=ou(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Jl();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 o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Ao&&Oo(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ho(lu.bind(null,e)):Vo(r,au.bind(null,e),{timeout:10*(1073741821-t)-Wo()}),e.callbackNode=t}}}function au(e,t){if(Gl=0,t)return Ku(e,t=Jl()),iu(e),null;var n=ou(e);if(0!==n){if(t=e.callbackNode,(Tl&(gl|xl))!==bl)throw a(Error(327));if(Cu(),e===Pl&&n===Nl||pu(e,n),null!==Rl){var r=Tl;Tl|=gl;for(var o=mu();;)try{gu();break}catch(u){hu(e,u)}if(Zo(),Tl=r,ml.current=o,_l===kl)throw t=Ml,pu(e,n),Vu(e,n),iu(e),t;if(null===Rl)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,cu(e,n),r=_l,Pl=null,r){case wl:case kl:throw a(Error(345));case El:if(2!==n){Ku(e,2);break}Eu(e);break;case Ol:if(Vu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=ku(o)),1073741823===Al&&10<(o=Fl+Wl-Wo())){if(Dl){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,pu(e,n);break}}if(0!==(i=ou(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Zn(Eu.bind(null,e),o);break}Eu(e);break;case Sl:if(Vu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=ku(o)),Dl&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,pu(e,n);break}if(0!==(o=ou(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Il?r=10*(1073741821-Il)-Wo():1073741823===Al?r=0:(r=10*(1073741821-Al)-5e3,0>(r=(o=Wo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hl(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Zn(Eu.bind(null,e),r);break}Eu(e);break;case Cl:if(1073741823!==Al&&null!==zl){i=Al;var l=zl;if(0>=(r=0|l.busyMinDurationMs)?r=0:(o=0|l.busyDelayMs,r=(i=Wo()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Vu(e,n),e.timeoutHandle=Zn(Eu.bind(null,e),r);break}}Eu(e);break;case jl:Vu(e,n);break;default:throw a(Error(329))}if(iu(e),e.callbackNode===t)return au.bind(null,e)}}return null}function lu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,e.finishedExpirationTime===t)Eu(e);else{if((Tl&(gl|xl))!==bl)throw a(Error(327));if(Cu(),e===Pl&&t===Nl||pu(e,t),null!==Rl){var n=Tl;Tl|=gl;for(var r=mu();;)try{yu();break}catch(o){hu(e,o)}if(Zo(),Tl=n,ml.current=r,_l===kl)throw n=Ml,pu(e,t),Vu(e,t),iu(e),n;if(null!==Rl)throw a(Error(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,cu(e,t),_l===jl?Vu(e,t):(Pl=null,Eu(e)),iu(e)}}return null}function uu(){(Tl&(1|gl|xl))===bl&&(function(){if(null!==Ql){var e=Ql;Ql=null,e.forEach((function(e,t){Ku(t,e),iu(t)})),Ko()}}(),Cu())}function cu(e,t){var n=e.firstBatch;null!==n&&n._defer&&n._expirationTime>=t&&(Vo(97,(function(){return n._onComplete(),null})),_l=jl)}function su(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{(Tl=n)===bl&&Ko()}}function du(e,t,n,r){var o=Tl;Tl|=4;try{return $o(98,e.bind(null,t,n,r))}finally{(Tl=o)===bl&&Ko()}}function fu(e,t){var n=Tl;Tl&=-2,Tl|=yl;try{return e(t)}finally{(Tl=n)===bl&&Ko()}}function pu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,er(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!==o&&void 0!==o&&vo();break;case 3:Li(),bo();break;case 5:Fi(r);break;case 4:Li();break;case 13:case 19:lo(Wi);break;case 10:ti(r)}n=n.return}Pl=e,Rl=Lu(e.current,null),Nl=t,_l=wl,Ml=null,Il=Al=1073741823,zl=null,Ll=0,Dl=!1}function hu(e,t){for(;;){try{if(Zo(),aa(),null===Rl||null===Rl.return)return _l=kl,Ml=t,null;e:{var n=e,r=Rl.return,o=Rl,i=t;if(t=Nl,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==i&&"object"===typeof i&&"function"===typeof i.then){var a=i,l=0!==(1&Wi.current),u=r;do{var c;if(c=13===u.tag){var s=u.memoizedState;if(null!==s)c=null!==s.dehydrated;else{var d=u.memoizedProps;c=void 0!==d.fallback&&(!0!==d.unstable_avoidThisFallback||!l)}}if(c){var f=u.updateQueue;if(null===f){var p=new Set;p.add(a),u.updateQueue=p}else f.add(a);if(0===(2&u.mode)){if(u.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var h=ui(1073741823,null);h.tag=2,si(o,h)}o.expirationTime=1073741823;break e}i=void 0,o=t;var m=n.pingCache;if(null===m?(m=n.pingCache=new dl,i=new Set,m.set(a,i)):void 0===(i=m.get(a))&&(i=new Set,m.set(a,i)),!i.has(o)){i.add(o);var v=Ru.bind(null,n,a,o);a.then(v,v)}u.effectTag|=4096,u.expirationTime=t;break e}u=u.return}while(null!==u);i=Error((G(o.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(o))}_l!==Cl&&(_l=El),i=Ja(i,o),u=r;do{switch(u.tag){case 3:a=i,u.effectTag|=4096,u.expirationTime=t,di(u,fl(u,a,t));break e;case 1:a=i;var b=u.type,y=u.stateNode;if((64&u.effectTag)===bt&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Vl||!Vl.has(y)))){u.effectTag|=4096,u.expirationTime=t,di(u,pl(u,a,t));break e}}u=u.return}while(null!==u)}Rl=wu(Rl)}catch(g){t=g;continue}break}}function mu(){var e=ml.current;return ml.current=ba,null===e?ba:e}function vu(e,t){e<Al&&2<e&&(Al=e),null!==t&&e<Il&&2<e&&(Il=e,zl=t)}function bu(e){e>Ll&&(Ll=e)}function yu(){for(;null!==Rl;)Rl=xu(Rl)}function gu(){for(;null!==Rl&&!So();)Rl=xu(Rl)}function xu(e){var t=eu(e.alternate,e,Nl);return e.memoizedProps=e.pendingProps,null===t&&(t=wu(e)),vl.current=null,t}function wu(e){Rl=e;do{var t=Rl.alternate;if(e=Rl.return,(2048&Rl.effectTag)===bt){e:{var n=t,r=Nl,i=(t=Rl).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:mo(t.type)&&vo();break;case 3:Li(),bo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===n||null===n.child)&&ja(t)&&Xa(t),Ua(t);break;case 5:Fi(t),r=Ii(Ai.current);var l=t.type;if(null!==n&&null!=t.stateNode)Ba(n,t,l,i,r),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var u=Ii(_i.current);if(ja(t)){l=void 0,n=(i=t).stateNode;var c=i.type,s=i.memoizedProps;switch(n[or]=i,n[ir]=s,c){case"iframe":case"object":case"embed":xn("load",n);break;case"video":case"audio":for(var d=0;d<Ze.length;d++)xn(Ze[d],n);break;case"source":xn("error",n);break;case"img":case"image":case"link":xn("error",n),xn("load",n);break;case"form":xn("reset",n),xn("submit",n);break;case"details":xn("toggle",n);break;case"input":je(n,s),xn("invalid",n),Dn(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!s.multiple},xn("invalid",n),Dn(r,"onChange");break;case"textarea":Ie(n,s),xn("invalid",n),Dn(r,"onChange")}for(l in zn(c,s),d=null,s)s.hasOwnProperty(l)&&(u=s[l],"children"===l?"string"===typeof u?n.textContent!==u&&(d=["children",u]):"number"===typeof u&&n.textContent!==""+u&&(d=["children",""+u]):p.hasOwnProperty(l)&&null!=u&&Dn(r,l));switch(c){case"input":Oe(n),Re(n,s,!0);break;case"textarea":Oe(n),Le(n);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(n.onclick=Fn)}r=d,i.updateQueue=r,null!==r&&Xa(t)}else{s=l,n=i,c=t,d=9===r.nodeType?r:r.ownerDocument,u===De.html&&(u=Fe(s)),u===De.html?"script"===s?((s=d.createElement("div")).innerHTML="<script><\/script>",d=s.removeChild(s.firstChild)):"string"===typeof n.is?d=d.createElement(s,{is:n.is}):(d=d.createElement(s),"select"===s&&(s=d,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):d=d.createElementNS(u,s),(s=d)[or]=c,s[ir]=n,Wa(n=s,t,!1,!1),t.stateNode=n,u=r;var f=Ln(l,i);switch(l){case"iframe":case"object":case"embed":xn("load",n),r=i;break;case"video":case"audio":for(r=0;r<Ze.length;r++)xn(Ze[r],n);r=i;break;case"source":xn("error",n),r=i;break;case"img":case"image":case"link":xn("error",n),xn("load",n),r=i;break;case"form":xn("reset",n),xn("submit",n),r=i;break;case"details":xn("toggle",n),r=i;break;case"input":je(n,i),r=Ce(n,i),xn("invalid",n),Dn(u,"onChange");break;case"option":r=_e(n,i);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},r=o({},i,{value:void 0}),xn("invalid",n),Dn(u,"onChange");break;case"textarea":Ie(n,i),r=Ae(n,i),xn("invalid",n),Dn(u,"onChange");break;default:r=i}zn(l,r),c=void 0,s=l,d=n;var h=r;for(c in h)if(h.hasOwnProperty(c)){var m=h[c];"style"===c?An(d,m):"dangerouslySetInnerHTML"===c?null!=(m=m?m.__html:void 0)&&Be(d,m):"children"===c?"string"===typeof m?("textarea"!==s||""!==m)&&$e(d,m):"number"===typeof m&&$e(d,""+m):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(p.hasOwnProperty(c)?null!=m&&Dn(u,c):null!=m&&ke(d,c,m,f))}switch(l){case"input":Oe(n),Re(n,i,!1);break;case"textarea":Oe(n),Le(n);break;case"option":null!=i.value&&n.setAttribute("value",""+we(i.value));break;case"select":r=n,n=i,r.multiple=!!n.multiple,null!=(c=n.value)?Me(r,!!n.multiple,c,!1):null!=n.defaultValue&&Me(r,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof r.onClick&&(n.onclick=Fn)}Gn(l,i)&&Xa(t)}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw a(Error(166));break;case 6:if(n&&null!=t.stateNode)$a(n,t,n.memoizedProps,i);else{if("string"!==typeof i&&null===t.stateNode)throw a(Error(166));l=Ii(Ai.current),Ii(_i.current),ja(t)?(r=t.stateNode,i=t.memoizedProps,r[or]=t,r.nodeValue!==i&&Xa(t)):(r=t,(i=(9===l.nodeType?l:l.ownerDocument).createTextNode(i))[or]=t,r.stateNode=i)}break;case 11:break;case 13:if(lo(Wi),i=t.memoizedState,(64&t.effectTag)!==bt){t.expirationTime=r;break e}r=null!==i,i=!1,null===n?ja(t):(i=null!==(l=n.memoizedState),r||null===l||null!==(l=n.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=l,l.nextEffect=c):(t.firstEffect=t.lastEffect=l,l.nextEffect=null),l.effectTag=8)),r&&!i&&0!==(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Wi.current)?_l===wl&&(_l=Ol):(_l!==wl&&_l!==Ol||(_l=Sl),0!==Ll&&null!==Pl&&(Vu(Pl,Nl),Hu(Pl,Ll)))),(r||i)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Li(),Ua(t);break;case 10:ti(t);break;case 9:case 14:break;case 17:mo(t.type)&&vo();break;case 19:if(lo(Wi),null===(i=t.memoizedState))break;if(l=(64&t.effectTag)!==bt,null===(c=i.rendering)){if(l)Ya(i,!1);else if(_l!==wl||null!==n&&(64&n.effectTag)!==bt)for(n=t.child;null!==n;){if(null!==(c=Ui(n))){for(t.effectTag|=64,Ya(i,!1),null!==(i=c.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),t.firstEffect=t.lastEffect=null,i=t.child;null!==i;)n=r,(l=i).effectTag&=yt,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(c=l.alternate)?(l.childExpirationTime=0,l.expirationTime=n,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null):(l.childExpirationTime=c.childExpirationTime,l.expirationTime=c.expirationTime,l.child=c.child,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,n=c.dependencies,l.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),i=i.sibling;uo(Wi,1&Wi.current|2),t=t.child;break e}n=n.sibling}}else{if(!l)if(null!==(n=Ui(c))){if(t.effectTag|=64,l=!0,Ya(i,!0),null===i.tail&&"hidden"===i.tailMode){null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else Wo()>i.tailExpiration&&1<r&&(t.effectTag|=64,l=!0,Ya(i,!1),t.expirationTime=t.childExpirationTime=r-1);i.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=i.last)?r.sibling=c:t.child=c,i.last=c)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=Wo()+500),r=i.tail,i.rendering=r,i.tail=r.sibling,i.lastEffect=t.lastEffect,r.sibling=null,i=Wi.current,uo(Wi,i=l?1&i|2:1&i),t=r;break e}break;case 20:case 21:break;default:throw a(Error(156),t.tag)}t=null}if(r=Rl,1===Nl||1!==r.childExpirationTime){for(i=0,l=r.child;null!==l;)(n=l.expirationTime)>i&&(i=n),(c=l.childExpirationTime)>i&&(i=c),l=l.sibling;r.childExpirationTime=i}if(null!==t)return t;null!==e&&(2048&e.effectTag)===bt&&(null===e.firstEffect&&(e.firstEffect=Rl.firstEffect),null!==Rl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Rl.firstEffect),e.lastEffect=Rl.lastEffect),1<Rl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Rl:e.firstEffect=Rl,e.lastEffect=Rl))}else{if(null!==(t=Ga(Rl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Rl.sibling))return t;Rl=e}while(null!==Rl);return _l===wl&&(_l=Cl),null}function ku(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Eu(e){var t=Uo();return $o(99,Ou.bind(null,e,t)),null}function Ou(e,t){if(Cu(),(Tl&(gl|xl))!==bl)throw a(Error(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw a(Error(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=ku(n);if(e.firstPendingTime=o,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===Pl&&(Rl=Pl=null,Nl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Tl;Tl|=xl,vl.current=null,Xn=gn;var l=$n();if(Vn(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,d=c.focusNode;c=c.focusOffset;try{u.nodeType,d.nodeType}catch(z){u=null;break e}var f=0,p=-1,h=-1,m=0,v=0,b=l,y=null;t:for(;;){for(var g;b!==u||0!==s&&3!==b.nodeType||(p=f+s),b!==d||0!==c&&3!==b.nodeType||(h=f+c),3===b.nodeType&&(f+=b.nodeValue.length),null!==(g=b.firstChild);)y=b,b=g;for(;;){if(b===l)break t;if(y===u&&++m===s&&(p=f),y===d&&++v===c&&(h=f),null!==(g=b.nextSibling))break;y=(b=y).parentNode}b=g}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;Yn={focusedElem:l,selectionRange:u},gn=!1,Ul=o;do{try{Su()}catch(z){if(null===Ul)throw a(Error(330));Pu(Ul,z),Ul=Ul.nextEffect}}while(null!==Ul);Ul=o;do{try{for(l=e,u=t;null!==Ul;){var x=Ul.effectTag;if(16&x&&$e(Ul.stateNode,""),128&x){var w=Ul.alternate;if(null!==w){var k=w.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(x&(12|yt|gt)){case yt:ll(Ul),Ul.effectTag&=~yt;break;case 6:ll(Ul),Ul.effectTag&=~yt,cl(Ul.alternate,Ul);break;case gt:Ul.effectTag&=~gt;break;case 1028:Ul.effectTag&=~gt,cl(Ul.alternate,Ul);break;case 4:cl(Ul.alternate,Ul);break;case 8:ul(l,s=Ul,u),il(s)}Ul=Ul.nextEffect}}catch(z){if(null===Ul)throw a(Error(330));Pu(Ul,z),Ul=Ul.nextEffect}}while(null!==Ul);if(k=Yn,w=$n(),x=k.focusedElem,u=k.selectionRange,w!==x&&x&&x.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))))}(x.ownerDocument.documentElement,x)){null!==u&&Vn(x)&&(w=u.start,void 0===(k=u.end)&&(k=w),"selectionStart"in x?(x.selectionStart=w,x.selectionEnd=Math.min(k,x.value.length)):(k=(w=x.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),s=x.textContent.length,l=Math.min(u.start,s),u=void 0===u.end?l:Math.min(u.end,s),!k.extend&&l>u&&(s=u,u=l,l=s),s=Bn(x,l),d=Bn(x,u),s&&d&&(1!==k.rangeCount||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==d.node||k.focusOffset!==d.offset)&&((w=w.createRange()).setStart(s.node,s.offset),k.removeAllRanges(),l>u?(k.addRange(w),k.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),k.addRange(w))))),w=[];for(k=x;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof x.focus&&x.focus(),x=0;x<w.length;x++)(k=w[x]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Yn=null,gn=!!Xn,Xn=null,e.current=n,Ul=o;do{try{for(x=r;null!==Ul;){var E=Ul.effectTag;if(36&E){var O=Ul.alternate;switch(k=x,(w=Ul).tag){case 0:case 11:case 15:rl(16,32,w);break;case 1:var S=w.stateNode;if(4&w.effectTag)if(null===O)S.componentDidMount();else{var C=w.elementType===w.type?O.memoizedProps:Qo(w.type,O.memoizedProps);S.componentDidUpdate(C,O.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var j=w.updateQueue;null!==j&&mi(0,j,S);break;case 3:var T=w.updateQueue;if(null!==T){if(l=null,null!==w.child)switch(w.child.tag){case 5:l=w.child.stateNode;break;case 1:l=w.child.stateNode}mi(0,T,l)}break;case 5:var P=w.stateNode;null===O&&4&w.effectTag&&(k=P,Gn(w.type,w.memoizedProps)&&k.focus());break;case 6:case 4:case 12:break;case 13:if(null===w.memoizedState){var R=w.alternate;if(null!==R){var N=R.memoizedState;if(null!==N){var _=N.dehydrated;null!==_&&vt(_)}}}break;case 19:case 17:case 20:case 21:break;default:throw a(Error(163))}}if(128&E){var M=(w=Ul).ref;if(null!==M){var A=w.stateNode;switch(w.tag){case 5:var I=A;break;default:I=A}"function"===typeof M?M(I):M.current=I}}Ul=Ul.nextEffect}}catch(z){if(null===Ul)throw a(Error(330));Pu(Ul,z),Ul=Ul.nextEffect}}while(null!==Ul);Ul=null,Io(),Tl=i}else e.current=n;if(Hl)Hl=!1,Kl=e,ql=t;else for(Ul=o;null!==Ul;)t=Ul.nextEffect,Ul.nextEffect=null,Ul=t;if(0===(t=e.firstPendingTime)&&(Vl=null),1073741823===t?e===Yl?Xl++:(Xl=0,Yl=e):Xl=0,"function"===typeof _u&&_u(n.stateNode,r),iu(e),Bl)throw Bl=!1,e=$l,$l=null,e;return(Tl&yl)!==bl?null:(Ko(),null)}function Su(){for(;null!==Ul;){var e=Ul.effectTag;(256&e)!==bt&&nl(Ul.alternate,Ul),(512&e)===bt||Hl||(Hl=!0,Vo(97,(function(){return Cu(),null}))),Ul=Ul.nextEffect}}function Cu(){if(90!==ql){var e=97<ql?97:ql;return ql=90,$o(e,ju)}}function ju(){if(null===Kl)return!1;var e=Kl;if(Kl=null,(Tl&(gl|xl))!==bl)throw a(Error(331));var t=Tl;for(Tl|=xl,e=e.current.firstEffect;null!==e;){try{var n=e;if((512&n.effectTag)!==bt)switch(n.tag){case 0:case 11:case 15:rl(128,0,n),rl(0,64,n)}}catch(r){if(null===e)throw a(Error(330));Pu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Tl=t,Ko(),!0}function Tu(e,t,n){si(e,t=fl(e,t=Ja(n,t),1073741823)),null!==(e=ru(e,1073741823))&&iu(e)}function Pu(e,t){if(3===e.tag)Tu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Tu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){si(n,e=pl(n,e=Ja(t,e),1073741823)),null!==(n=ru(n,1073741823))&&iu(n);break}}n=n.return}}function Ru(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Pl===e&&Nl===n?_l===Sl||_l===Ol&&1073741823===Al&&Wo()-Fl<Wl?pu(e,Nl):Dl=!0:$u(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),iu(e)))}function Nu(e,t){var n=e.stateNode;null!==n&&n.delete(t),1===(t=1)&&(t=Zl(t=Jl(),e,null)),null!==(e=ru(e,t))&&iu(e)}eu=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||fo.current)Ra=!0;else{if(r<n){switch(Ra=!1,t.tag){case 3:Fa(t),Ta();break;case 5:if(Di(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mo(t.type)&&xo(t);break;case 4:zi(t,t.stateNode.containerInfo);break;case 10:ei(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ha(e,t,n):(uo(Wi,1&Wi.current),null!==(t=Qa(e,t,n))?t.sibling:null);uo(Wi,1&Wi.current);break;case 19:if(r=t.childExpirationTime>=n,(64&e.effectTag)!==bt){if(r)return qa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),uo(Wi,Wi.current),!r)return null}return Qa(e,t,n)}Ra=!1}}else Ra=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=yt),e=t.pendingProps,o=ho(t,so.current),ri(t,n),o=ia(null,t,r,e,o,n),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,aa(),mo(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"===typeof l&&gi(t,r,l,e),o.updater=xi,t.stateNode=o,o._reactInternalFiber=t,Oi(t,r,e,n),t=Da(null,t,r,!0,i,n)}else t.tag=0,Na(null,t,o,n),t=t.child;return t;case 16:if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=yt),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)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"===typeof e)return zu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===V)return 11;if(e===q)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=za(null,t,o,e,n);break;case 1:t=La(null,t,o,e,n);break;case 11:t=_a(null,t,o,e,n);break;case 14:t=Ma(null,t,o,Qo(o.type,e),r,n);break;default:throw a(Error(306),o,"")}return t;case 0:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(Fa(t),null===(r=t.updateQueue))throw a(Error(282));if(o=null!==(o=t.memoizedState)?o.element:null,hi(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o)Ta(),t=Qa(e,t,n);else{if((o=t.stateNode.hydrate)&&(wa=tr(t.stateNode.containerInfo.firstChild),xa=t,o=ka=!0),o)for(n=Ri(t,null,r,n),t.child=n;n;)n.effectTag=n.effectTag&~yt|gt,n=n.sibling;else Na(e,t,r,n),Ta();t=t.child}return t;case 5:return Di(t),null===e&&Sa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Jn(r,o)?l=null:null!==i&&Jn(r,i)&&(t.effectTag|=16),Ia(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Na(e,t,l,n),t=t.child),t;case 6:return null===e&&Sa(t),null;case 13:return Ha(e,t,n);case 4:return zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pi(t,null,r,n):Na(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,_a(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return Na(e,t,t.pendingProps,n),t.child;case 8:case 12:return Na(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,ei(t,i=o.value),null!==l){var u=l.value;if(0===(i=Qr(u,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!fo.current){t=Qa(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=ui(n,null)).tag=2,si(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ni(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}}Na(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.effectTag|=1,Na(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ma(e,t,o,i=Qo(o.type,i),r,n);case 15:return Aa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=yt),t.tag=1,mo(r)?(e=!0,xo(t)):e=!1,ri(t,n),ki(t,r,o),Oi(t,r,o,n),Da(null,t,r,!0,e,n);case 19:return qa(e,t,n)}throw a(Error(156),t.tag)};var _u=null,Mu=null;function Au(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=bt,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Iu(e,t,n,r){return new Au(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lu(e,t){var n=e.alternate;return null===n?((n=Iu(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=bt,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 Du(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)zu(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case D:return Fu(n.children,o,i,t);case $:l=8,o|=7;break;case F:l=8,o|=1;break;case W:return(e=Iu(12,n,t,8|o)).elementType=W,e.type=W,e.expirationTime=i,e;case H:return(e=Iu(13,n,t,o)).type=H,e.elementType=H,e.expirationTime=i,e;case K:return(e=Iu(19,n,t,o)).elementType=K,e.expirationTime=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case U:l=10;break e;case B:l=9;break e;case V:l=11;break e;case q:l=14;break e;case Q:l=16,r=null;break e}throw a(Error(130),null==e?e:typeof e,"")}return(t=Iu(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Fu(e,t,n,r){return(e=Iu(7,e,r,t)).expirationTime=n,e}function Wu(e,t,n){return(e=Iu(6,e,null,t)).expirationTime=n,e}function Uu(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(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=this.firstBatch=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function $u(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Vu(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 Hu(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 Ku(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function qu(e,t,n,r,o,i){var l=t.current;e:if(n){t:{if(xt(n=n._reactInternalFiber)!==n||1!==n.tag)throw a(Error(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mo(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw a(Error(171))}if(1===n.tag){var c=n.type;if(mo(c)){n=go(n,c,u);break e}}n=u}else n=co;return null===t.context?t.context=n:t.pendingContext=n,t=i,(o=ui(r,o)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),si(l,o),nu(l,r),r}function Qu(e,t,n,r){var o=t.current,i=Jl(),a=bi.suspense;return qu(e,t,n,o=Zl(i,o,a),a,r)}function Xu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yu(e){var t=1073741821-25*(1+((1073741821-Jl()+500)/25|0));t<=tu&&--t,this._expirationTime=tu=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Gu(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Ju(e,t,n){var r=new Bu(e,t,n=null!=n&&!0===n.hydrate),o=Iu(3,null,null,2===t?7:1===t?3:0);return r.current=o,o.stateNode=r,e[ar]=r.current,n&&0!==t&&function(e){var t=Pn(e);lt.forEach((function(n){Rn(n,e,t)})),ut.forEach((function(n){Rn(n,e,t)}))}(9===e.nodeType?e:e.ownerDocument),r}function Zu(e,t,n){this._internalRoot=Ju(e,t,n)}function ec(e,t){this._internalRoot=Ju(e,2,t)}function tc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var l=o;o=function(){var e=Xu(a);l.call(e)}}Qu(t,a,e,o)}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 Zu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var u=o;o=function(){var e=Xu(a);u.call(e)}}fu((function(){Qu(t,a,e,o)}))}return Xu(a)}function rc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tc(t))throw a(Error(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:L,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}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 o=sr(r);if(!o)throw a(Error(90));Se(r),Pe(r,o)}}}break;case"textarea":ze(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},Yu.prototype.render=function(e){if(!this._defer)throw a(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Gu;return qu(e,t,null,n,null,r._onCommit),r},Yu.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Yu.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw a(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;if(null===r)throw a(Error(251));r._next=o._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(Tl&(gl|xl))!==bl)throw a(Error(253));Ku(e,t),iu(e),Ko(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Yu.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Gu.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Gu.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)throw a(Error(191),n);n()}}},ec.prototype.render=Zu.prototype.render=function(e,t){var n=this._internalRoot,r=new Gu;return null!==(t=void 0===t?null:t)&&r.then(t),Qu(e,n,null,r._onCommit),r},ec.prototype.unmount=Zu.prototype.unmount=function(e){var t=this._internalRoot,n=new Gu;return null!==(e=void 0===e?null:e)&&n.then(e),Qu(null,t,null,n._onCommit),n},ec.prototype.createBatch=function(){var e=new Yu(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},ae=su,le=du,ue=uu,ce=function(e,t){var n=Tl;Tl|=2;try{return e(t)}finally{(Tl=n)===bl&&Ko()}};var oc={createPortal:rc,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw a(Error(188));throw a(Error(268),Object.keys(e))}e=null===(e=kt(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!tc(t))throw a(Error(200));return nc(null,e,t,!0,n)},render:function(e,t,n){if(!tc(t))throw a(Error(200));return nc(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!tc(n))throw a(Error(200));if(null==e||void 0===e._reactInternalFiber)throw a(Error(38));return nc(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!tc(e))throw a(Error(40));return!!e._reactRootContainer&&(fu((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return rc.apply(void 0,arguments)},unstable_batchedUpdates:su,unstable_interactiveUpdates:function(e,t,n,r){return uu(),du(e,t,n,r)},unstable_discreteUpdates:du,unstable_flushDiscreteUpdates:uu,flushSync:function(e,t){if((Tl&(gl|xl))!==bl)throw a(Error(187));var n=Tl;Tl|=1;try{return $o(99,e.bind(null,t))}finally{Tl=n,Ko()}},unstable_createRoot:function(e,t){if(!tc(e))throw a(Error(299),"unstable_createRoot");return new ec(e,t)},unstable_createSyncRoot:function(e,t){if(!tc(e))throw a(Error(299),"unstable_createRoot");return new Zu(e,1,t)},unstable_flushControlled:function(e){var t=Tl;Tl|=1;try{$o(99,e)}finally{(Tl=t)===bl&&Ko()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[ur,cr,sr,N.injectEventPluginsByName,f,Pt,function(e){j(e,Tt)},oe,ie,Sn,R,Cu,{current:!1}]}};!function(e){var t=e.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);_u=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Mu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=kt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:lr,bundleType:0,version:"16.10.2",rendererPackageName:"react-dom"});var ic={default:oc},ac=ic&&oc||ic;e.exports=ac.default||ac},function(e,t,n){"use strict";e.exports=n(82)},function(e,t,n){"use strict";var r,o,i,a,l;if(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}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout,v=window.requestAnimationFrame,b=window.cancelAnimationFrame;if("undefined"!==typeof console&&("function"!==typeof v&&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 b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"===typeof f&&"function"===typeof f.now)t.unstable_now=function(){return f.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var g=!1,x=null,w=-1,k=5,E=0;a=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"):k=0<e?Math.floor(1e3/e):33.33};var O=new MessageChannel,S=O.port2;O.port1.onmessage=function(){if(null!==x){var e=t.unstable_now();E=e+k;try{x(!0,e)?S.postMessage(null):(g=!1,x=null)}catch(n){throw S.postMessage(null),n}}else g=!1},r=function(e){x=e,g||(g=!0,S.postMessage(null))},o=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){m(w),w=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),o=e[r];if(!(void 0!==o&&0<P(o,t)))break e;e[r]=t,e[n]=o,n=r}}function j(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>P(a,n))void 0!==u&&0>P(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var R=[],N=[],_=1,M=null,A=3,I=!1,z=!1,L=!1;function D(e){for(var t=j(N);null!==t;){if(null===t.callback)T(N);else{if(!(t.startTime<=e))break;T(N),t.sortIndex=t.expirationTime,C(R,t)}t=j(N)}}function F(e){if(L=!1,D(e),!z)if(null!==j(R))z=!0,r(W);else{var t=j(N);null!==t&&o(F,t.startTime-e)}}function W(e,n){z=!1,L&&(L=!1,i()),I=!0;var r=A;try{for(D(n),M=j(R);null!==M&&(!(M.expirationTime>n)||e&&!a());){var l=M.callback;if(null!==l){M.callback=null,A=M.priorityLevel;var u=l(M.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?M.callback=u:M===j(R)&&T(R),D(n)}else T(R);M=j(R)}if(null!==M)var c=!0;else{var s=j(N);null!==s&&o(F,s.startTime-n),c=!1}return c}finally{M=null,A=r,I=!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 B=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=A;A=e;try{return t()}finally{A=n}},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?l+u:l,a="number"===typeof a.timeout?a.timeout:U(e)}else a=U(e),u=l;return e={id:_++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>l?(e.sortIndex=u,C(N,e),null===j(R)&&e===j(N)&&(L?i():L=!0,o(F,u-l))):(e.sortIndex=a,C(R,e),z||I||(z=!0,r(W))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=j(R);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||a()},t.unstable_requestPaint=B,t.unstable_continueExecution=function(){z||I||(z=!0,r(W))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return j(R)},t.unstable_Profiling=null},,,,function(e,t,n){"use strict";var r=n(87);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=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,d=r?Symbol.for("react.async_mode"):60111,f=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.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a: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 b:case v:case i:return t}}}function k(e){return w(e)===f}t.typeOf=w,t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=b,t.Memo=v,t.Portal=i,t.Profiler=u,t.StrictMode=l,t.Suspense=h,t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===u||e===l||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p||e.$$typeof===y||e.$$typeof===g||e.$$typeof===x)},t.isAsyncMode=function(e){return k(e)||w(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===b},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===l},t.isSuspense=function(e){return w(e)===h}},function(e,t,n){"use strict";var r=n(61);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i.default.memo(i.default.forwardRef((function(t,n){return i.default.createElement(a.default,(0,o.default)({ref:n},t),e)})));0;return n.muiName=a.default.muiName,n};var o=r(n(90)),i=r(n(0)),a=r(n(62))},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},,function(e,t,n){"use strict";var r=n(2),o=n(1),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(14),s=a.a.forwardRef((function(e,t){var n=e.classes,i=e.className,u=e.component,s=void 0===u?"div":u,d=e.square,f=void 0!==d&&d,p=e.elevation,h=void 0===p?1:p,m=Object(r.a)(e,["classes","className","component","square","elevation"]);Object(c.a)();var v=Object(l.a)(n.root,n["elevation".concat(h)],i,!f&&n.rounded);return a.a.createElement(s,Object(o.a)({className:v,ref:t},m))}));t.a=Object(u.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius}},t)}),{name:"MuiPaper"})(s)},function(e,t,n){"use strict";var r=n(2),o=n(1),i=n(0),a=n.n(i),l="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},u="object"===("undefined"===typeof window?"undefined":l(window))&&"object"===("undefined"===typeof document?"undefined":l(document))&&9===document.nodeType,c=(n(25),n(18)),s=n(12),d=n(29),f=n(13),p={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function m(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=h(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var v=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n};function b(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=v(e[r]," ");else n=v(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n}function y(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function g(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var l=0;l<a.length;l++){var u=a[l];for(var c in u){var s=u[c];null!=s&&(r&&(r+="\n"),r+=""+y(c+": "+b(s)+";",i))}}else for(var d in a){var f=a[d];null!=f&&(r&&(r+="\n"),r+=""+y(d+": "+b(f)+";",i))}for(var p in t){var h=t[p];null!=h&&"fallbacks"!==p&&(r&&(r+="\n"),r+=""+y(p+": "+b(h)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),y(e+" {"+r,--i)+y("}",i)):r}var x=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!==typeof CSS&&CSS.escape,k=function(e){return w?w(e):e.replace(x,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var u=this.options.sheet;return u&&u.attached,this},e}(),O=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,l=r.sheet,u=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=u(Object(d.a)(Object(d.a)(o)),l),o.selectorText="."+k(o.id)),o}Object(s.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=b(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},Object(c.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new O(e,t,n)}},C={indent:1,children:!0},j=/@([\w-]+)/,T=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(j);for(var i in this.at=r?r[1]:"unknown",this.options=n,this.rules=new Y(Object(o.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=C),null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.key+" {}";var t=this.rules.toString(e);return t?this.key+" {\n"+t+"\n}":""},e}(),P=/@media|@supports\s+/,R={onCreateRule:function(e,t,n){return P.test(e)?new T(e,t,n):null}},N={indent:1,children:!0},_=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(_);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,l=n.generateId;for(var u in this.id=!1===i?this.name:k(l(this,a)),this.rules=new Y(Object(o.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(o.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=N),null==e.indent&&(e.indent=N.indent),null==e.children&&(e.children=N.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),A=/@keyframes\s+/,I=/\$([\w-]+)/g,z=function(e,t){return"string"===typeof e?e.replace(I,(function(e,n){return n in t?t[n]:e})):e},L=function(e,t,n){var r=e[t],o=z(r,n);o!==r&&(e[t]=o)},D={onCreateRule:function(e,t,n){return"string"===typeof e&&A.test(e)?new M(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&L(e,"animation-name",n.keyframes),"animation"in e&&L(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return z(e,r.keyframes);default:return e}}},F=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(s.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return g(this.key,this.style,n)},t}(E),W={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(e,t,n):null}},U=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=g(this.key,this.style[n]),this.style[n+1]&&(t+="\n");return t}return g(this.key,this.style,e)},e}(),B={onCreateRule:function(e,t,n){return"@font-face"===e?new U(e,t,n):null}},$=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return g(this.key,this.style,e)},e}(),V={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new $(e,t,n):null}},H=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),K={"@charset":!0,"@import":!0,"@namespace":!0},q=[S,R,D,W,B,V,{onCreateRule:function(e,t,n){return e in K?new H(e,t,n):null}}],Q={process:!0},X={force:!0,process:!0},Y=function(){function e(e){this.map={},this.raw={},this.index=[],this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,l=r.jss,u=r.Renderer,c=r.generateId,s=r.scoped,d=Object(o.a)({classes:this.classes,parent:i,sheet:a,jss:l,Renderer:u,generateId:c,scoped:s},n);this.raw[e]=t,e in this.classes&&(d.selector="."+k(this.classes[e]));var f=m(e,t,d);if(!f)return null;this.register(f);var p=void 0===d.index?this.index.length:d.index;return this.index.splice(p,0,f),f},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof O?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof M&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof O?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof M&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.onUpdate(t,this.get(e),n);else for(var r=0;r<this.index.length;r++)this.onUpdate(t,this.index[r],n)},t.onUpdate=function(t,n,r){void 0===r&&(r=Q);var o=this.options,i=o.jss.plugins,a=o.sheet;if(n.rules instanceof e)n.rules.update(t,r);else{var l=n,u=l.style;if(i.onUpdate(t,n,a,r),r.process&&u&&u!==l.style){for(var c in i.onProcessStyle(l.style,l,a),l.style){var s=l.style[c];s!==u[c]&&l.prop(c,s,X)}for(var d in u){var f=l.style[d],p=u[d];null==f&&f!==p&&l.prop(d,null,X)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),G=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(o.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Y(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.toString=function(e){return this.rules.toString(e)},e}(),J=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Z=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(f.a)(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},Object(c.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),ee="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),te="2f1acc6c3a606b082e5eef5e54414ffb";null==ee[te]&&(ee[te]=0);var ne=ee[te]++,re=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ne+o+t:i+n.key+"-"+ne+(o?"-"+o:"")+"-"+t}},oe=function(e){var t;return function(){return t||(t=e()),t}};function ie(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}}function ae(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=b(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(o){return!1}return!0}function le(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}}function ue(e,t){return e.selectorText=t,e.selectorText===t}var ce=oe((function(){return document.querySelector("head")}));function se(e){var t=Z.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=ce(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var de=oe((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),fe=function(e,t,n){var r=e.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(o){return!1}return e.cssRules[n]},pe=function(){var e=document.createElement("style");return e.textContent="\n",e},he=function(){function e(e){this.getPropertyValue=ie,this.setProperty=ae,this.removeProperty=le,this.setSelector=ue,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,e&&Z.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||pe(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=de();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=se(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ce().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var e=this.element.parentNode;e&&e.removeChild(this.element)},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;return("conditional"!==e.type&&"keyframes"!==e.type||!1!==(o=fe(n,r.toString({children:!1}),t)))&&(this.insertRules(r.rules,o),o)}if(e.renderable&&e.renderable.parentStyleSheet===this.element.sheet)return e.renderable;var i=e.toString();if(!i)return!1;var a=fe(n,i,t);return!1!==a&&(this.hasInsertedRules=!0,e.renderable=a,a)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),!0)},t.indexOf=function(e){for(var t=this.element.sheet.cssRules,n=0;n<t.length;n++)if(e===t[n])return n;return-1},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),me=0,ve=function(){function e(e){this.id=me++,this.version="10.0.0",this.plugins=new J,this.options={id:{minify:!1},createGenerateId:re,Renderer:u?he:null,plugins:[]},this.generateId=re({minify:!1});for(var t=0;t<q.length;t++)this.plugins.use(q[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(o.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===Z.index?0:Z.index+1);var r=new G(e,Object(o.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Z.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=Object(o.a)({},n,{jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=m(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();var be="undefined"!==typeof CSS&&CSS&&"number"in CSS,ye=function(e){return new ve(e)},ge=(ye(),n(134)),xe={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},we=n(96),ke=(n(5),"function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"),Ee=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Oe=Date.now(),Se="fnValues"+Oe,Ce="fnStyle"+ ++Oe;var je=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=m(e,{},n);return r[Ce]=t,r},onProcessStyle:function(e,t){if(Se in t||Ce in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[Se]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ce];i&&(o.style=i(e)||{});var a=o[Se];if(a)for(var l in a)o.prop(l,a[l](e),r)}}},Te="@global",Pe="@global ",Re=function(){function e(e,t,n){for(var r in this.type="global",this.at=Te,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Y(Object(o.a)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Ne=function(){function e(e,t,n){this.type="global",this.at=Te,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Pe.length);this.rule=n.jss.createRule(r,t,Object(o.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),_e=/\s*,\s*/g;function Me(e,t){for(var n=e.split(_e),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Ae=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Te)return new Re(e,t,n);if("@"===e[0]&&e.substr(0,Pe.length)===Pe)return new Ne(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,n=e.style,r=n?n[Te]:null;if(r){for(var i in r)t.sheet.addRule(i,r[i],Object(o.a)({},t,{selector:Me(i,e.selector)}));delete n[Te]}}(e),function(e){var t=e.options,n=e.style;for(var r in n)if("@"===r[0]&&r.substr(0,Te.length)===Te){var i=Me(r.substr(Te.length),e.selector);t.sheet.addRule(i,n[r],Object(o.a)({},t,{selector:i})),delete n[r]}}(e))}}},Ie=/\s*,\s*/g,ze=/&/g,Le=/\$([\w-]+)/g;var De=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(Ie),r=e.split(Ie),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var u=r[l];o&&(o+=", "),o+=-1!==u.indexOf("&")?u.replace(ze,a):a+" "+u}return o}function n(e,t,n){if(n)return Object(o.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;return r=void 0===r?1:r+1,Object(o.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1})}return{onProcessStyle:function(r,i,a){if("style"!==i.type)return r;var l,u,c=i,s=c.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(l=n(c,s,l),f){var h=t(d,c.selector);u||(u=e(s,a)),h=h.replace(Le,u),s.addRule(h,r[d],Object(o.a)({},l,{selector:h}))}else p&&s.addRule(d,{},l).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}},Fe=/[A-Z]/g,We=/^ms-/,Ue={};function Be(e){return"-"+e.toLowerCase()}var $e=function(e){if(Ue.hasOwnProperty(e))return Ue[e];var t=e.replace(Fe,Be);return Ue[e]=We.test(t)?"-"+t:t};function Ve(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:$e(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ve):t.fallbacks=Ve(e.fallbacks)),t}var He=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ve(e[t]);return e}return Ve(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=$e(t);return t===r?e:(n.prop(r,e),null)}}},Ke=be&&CSS?CSS.px:"px",qe=be&&CSS?CSS.ms:"ms",Qe=be&&CSS?CSS.percent:"%";function Xe(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Ye=Xe({"animation-delay":qe,"animation-duration":qe,"background-position":Ke,"background-position-x":Ke,"background-position-y":Ke,"background-size":Ke,border:Ke,"border-bottom":Ke,"border-bottom-left-radius":Ke,"border-bottom-right-radius":Ke,"border-bottom-width":Ke,"border-left":Ke,"border-left-width":Ke,"border-radius":Ke,"border-right":Ke,"border-right-width":Ke,"border-top":Ke,"border-top-left-radius":Ke,"border-top-right-radius":Ke,"border-top-width":Ke,"border-width":Ke,margin:Ke,"margin-bottom":Ke,"margin-left":Ke,"margin-right":Ke,"margin-top":Ke,padding:Ke,"padding-bottom":Ke,"padding-left":Ke,"padding-right":Ke,"padding-top":Ke,"mask-position-x":Ke,"mask-position-y":Ke,"mask-size":Ke,height:Ke,width:Ke,"min-height":Ke,"max-height":Ke,"min-width":Ke,"max-width":Ke,bottom:Ke,left:Ke,top:Ke,right:Ke,"box-shadow":Ke,"text-shadow":Ke,"column-gap":Ke,"column-rule":Ke,"column-rule-width":Ke,"column-width":Ke,"font-size":Ke,"font-size-delta":Ke,"letter-spacing":Ke,"text-indent":Ke,"text-stroke":Ke,"text-stroke-width":Ke,"word-spacing":Ke,motion:Ke,"motion-offset":Ke,outline:Ke,"outline-offset":Ke,"outline-width":Ke,perspective:Ke,"perspective-origin-x":Qe,"perspective-origin-y":Qe,"transform-origin":Qe,"transform-origin-x":Qe,"transform-origin-y":Qe,"transform-origin-z":Qe,"transition-delay":qe,"transition-duration":qe,"vertical-align":Ke,"flex-basis":Ke,"shape-margin":Ke,size:Ke,grid:Ke,"grid-gap":Ke,"grid-row-gap":Ke,"grid-column-gap":Ke,"grid-template-rows":Ke,"grid-template-columns":Ke,"grid-auto-rows":Ke,"grid-auto-columns":Ke,"box-shadow-x":Ke,"box-shadow-y":Ke,"box-shadow-blur":Ke,"box-shadow-spread":Ke,"font-line-height":Ke,"text-shadow-x":Ke,"text-shadow-y":Ke,"text-shadow-blur":Ke});function Ge(e,t,n){if(!t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Ge(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=Ge(o,t[o],n);else for(var i in t)t[i]=Ge(e+"-"+i,t[i],n);else if("number"===typeof t)return n[e]?""+t+n[e]:Ye[e]?"function"===typeof Ye[e]?Ye[e](t).toString():""+t+Ye[e]:t.toString();return t}var Je=function(e){void 0===e&&(e={});var t=Xe(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Ge(r,e[r],t);return e},onChangeValue:function(e,n){return Ge(n,e,t)}}};function Ze(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")}()}var et="",tt="",nt="",rt="",ot=u&&"ontouchstart"in document.documentElement;if(u){var it={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},at=document.createElement("p").style;for(var lt in it)if(lt+"Transform"in at){et=lt,tt=it[lt];break}"Webkit"===et&&"msHyphens"in at&&(et="ms",tt=it.ms,rt="edge"),"Webkit"===et&&"-apple-trailing-word"in at&&(nt="apple")}var ut={js:et,css:tt,vendor:nt,browser:rt,isTouch:ot};var ct={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ut.js?"-webkit-"+e:ut.css+e)}},st={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ut.js?ut.css+"print-"+e:e)}},dt=/[-\s]+(.)?/g;function ft(e,t){return t?t.toUpperCase():""}function pt(e){return e.replace(dt,ft)}function ht(e){return pt("-"+e)}var mt,vt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ut.js){if(pt("mask-image")in t)return e;if(ut.js+ht("mask-image")in t)return ut.css+e}return e}},bt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ut.vendor||ut.isTouch?e:ut.css+e)}},yt={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ut.css+e)}},gt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ut.css+e)}},xt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ut.js||"ms"===ut.js?ut.css+e:e)}},wt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ut.js||"ms"===ut.js||"apple"===ut.vendor?ut.css+e:e)}},kt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ut.js?"WebkitColumn"+ht(e)in t&&ut.css+"column-"+e:"Moz"===ut.js&&("page"+ht(e)in t&&"page-"+e))}},Et={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ut.js)return e;var n=e.replace("-inline","");return ut.js+ht(n)in t&&ut.css+n}},Ot={supportedProperty:function(e,t){return pt(e)in t&&e}},St={supportedProperty:function(e,t){var n=ht(e);return"-"===e[0]?e:"-"===e[0]&&"-"===e[1]?e:ut.js+n in t?ut.css+e:"Webkit"!==ut.js&&"Webkit"+n in t&&"-webkit-"+e}},Ct={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ut.js?""+ut.css+e:e)}},jt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ut.js?ut.css+"scroll-chaining":e)}},Tt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Pt={supportedProperty:function(e,t){var n=Tt[e];return!!n&&(ut.js+ht(n)in t&&ut.css+n)}},Rt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Nt=Object.keys(Rt),_t=function(e){return ut.css+e},Mt=[ct,st,vt,bt,yt,gt,xt,wt,kt,Et,Ot,St,Ct,jt,Pt,{supportedProperty:function(e,t,n){var r=n.multiple;if(Nt.indexOf(e)>-1){var o=Rt[e];if(!Array.isArray(o))return ut.js+ht(o)in t&&ut.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(ut.js+ht(o[0])in t))return!1;return o.map(_t)}return!1}}],At=Mt.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),It=Mt.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ze(t.noPrefill)),e}),[]),zt={};if(u){mt=document.createElement("p");var Lt=window.getComputedStyle(document.documentElement,"");for(var Dt in Lt)isNaN(Dt)||(zt[Lt[Dt]]=Lt[Dt]);It.forEach((function(e){return delete zt[e]}))}function Ft(e,t){if(void 0===t&&(t={}),!mt)return e;if(null!=zt[e])return zt[e];"transition"!==e&&"transform"!==e||(t[e]=e in mt.style);for(var n=0;n<At.length&&(zt[e]=At[n](e,mt.style,t),!zt[e]);n++);try{mt.style[e]=""}catch(r){return!1}return zt[e]}var Wt,Ut={},Bt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},$t=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Vt(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ft(t):", "+Ft(n);return r||(t||n)}function Ht(e,t){var n=t;if(!Wt||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ut[r])return Ut[r];try{Wt.style[e]=n}catch(o){return Ut[r]=!1,!1}if(Bt[e])n=n.replace($t,Vt);else if(""===Wt.style[e]&&("-ms-flex"===(n=ut.css+n)&&(Wt.style[e]="-ms-flexbox"),Wt.style[e]=n,""===Wt.style[e]))return Ut[r]=!1,!1;return Wt.style[e]="",Ut[r]=n,Ut[r]}u&&(Wt=document.createElement("p"));var Kt=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Ft(n);i&&i!==n&&(o=!0);var a=!1,l=Ht(i,b(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]?n:"ms"===ut.js?n:"@"+ut.css+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ht(t,b(e))||e}}};var qt=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};var Qt=function(){return{plugins:[je(),Ae(),De(),He(),Je(),"undefined"===typeof window?null:Kt(),qt()]}},Xt=ye(Qt()),Yt={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,l=""===a?"":"".concat(a,"-"),u=0;return function(e,t){u+=1;var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ee.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(l).concat(r,"-").concat(e.key);return t.options.theme[ke]&&""===a?"".concat(i,"-").concat(u):i}return"".concat(l).concat(o).concat(u)}}(),jss:Xt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Gt=a.a.createContext(Yt);var Jt=-1e9;n(33);var Zt=n(22),en=n.n(Zt);function tn(e,t){return t}var nn=function(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],l=Object(o.a)({},i);return Object.keys(a).forEach((function(e){l[e]=en()(l[e],a[e],{arrayMerge:tn})})),l},options:{}}},rn={};function on(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Object(ge.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function an(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,l=e.name;if(!i.disableGeneration){var u=xe.get(i.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},xe.set(i.sheetsManager,a,r,u));var c=Object(o.a)({},a.options,{},i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var s=i.sheetsRegistry;if(0===u.refs){var d;i.sheetsCache&&(d=xe.get(i.sheetsCache,a,r));var f=a.create(r,l);d||((d=i.jss.createStyleSheet(f,Object(o.a)({link:!1},c))).attach(),i.sheetsCache&&xe.set(i.sheetsCache,a,r,d)),s&&s.add(d),u.staticSheet=d,u.dynamicStyles=function e(t){var n=null;for(var r in t){var o=t[r],i=typeof o;if("function"===i)n||(n={}),n[r]=o;else if("object"===i&&null!==o&&!Array.isArray(o)){var a=e(o);a&&(n||(n={}),n[r]=a)}}return n}(f)}if(u.dynamicStyles){var p=i.jss.createStyleSheet(u.dynamicStyles,Object(o.a)({link:!0},c));p.update(t).attach(),n.dynamicSheet=p,n.classes=Object(ge.a)({baseClasses:u.staticSheet.classes,newClasses:p.classes}),s&&s.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function ln(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function un(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=xe.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(xe.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function cn(e,t){var n,r=a.a.useRef([]),o=a.a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[o])}t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,l=t.Component,u=t.defaultTheme,c=void 0===u?rn:u,s=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),d=nn(e),f=n||i||"makeStyles";return d.options={index:Jt+=1,name:n,meta:f,classNamePrefix:f},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(we.a)()||c,r=Object(o.a)({},a.a.useContext(Gt),{},s),i=a.a.useRef(),u=a.a.useRef();return cn((function(){var o={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return an(o,e),u.current=!1,i.current=o,function(){un(o)}}),[t,d]),a.a.useEffect((function(){u.current&&ln(i.current,e),u.current=!0})),on(i.current,e.classes,l)}}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=o.a.createContext(null);function a(){return o.a.useContext(i)}n.d(t,"a",(function(){return a}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var o=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},function(e,t,n){"use strict";t.a=function(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(6),c=n(4),s=n(46),d=n(7),f=n(41),p=a.a.forwardRef((function(e,t){var n=e.classes,i=e.className,c=e.color,p=void 0===c?"primary":c,h=e.component,m=void 0===h?"a":h,v=e.onBlur,b=e.onFocus,y=e.TypographyClasses,g=e.underline,x=void 0===g?"hover":g,w=e.variant,k=void 0===w?"inherit":w,E=Object(o.a)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),O=Object(s.a)(),S=O.isFocusVisible,C=O.onBlurVisible,j=O.ref,T=a.a.useState(!1),P=T[0],R=T[1],N=Object(d.c)(t,j);return a.a.createElement(f.a,Object(r.a)({className:Object(l.a)(n.root,n["underline".concat(Object(u.a)(x))],i,P&&n.focusVisible,{button:n.button}[m]),classes:y,color:p,component:m,onBlur:function(e){P&&(C(),R(!1)),v&&v(e)},onFocus:function(e){S(e)&&R(!0),b&&b(e)},ref:N,variant:k},E))}));t.a=Object(c.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(p)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(11),a=n(0),l=n.n(a),u=(n(5),n(3)),c=n(4),s=n(6),d=l.a.forwardRef((function(e,t){var n=e.classes,i=e.className,a=e.component,c=void 0===a?"div":a,d=e.fixed,f=void 0!==d&&d,p=e.maxWidth,h=void 0===p?"lg":p,m=Object(o.a)(e,["classes","className","component","fixed","maxWidth"]);return l.a.createElement(c,Object(r.a)({className:Object(u.a)(n.root,i,f&&n.fixed,!1!==h&&n["maxWidth".concat(Object(s.a)(String(h)))]),ref:t},m))}));t.a=Object(c.a)((function(e){var t;return{root:(t={width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},Object(i.a)(t,e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),Object(i.a)(t,e.breakpoints.up("md"),{paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}),t),fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Object(i.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Object(i.a)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Object(i.a)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Object(i.a)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Object(i.a)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(d)},function(e,t,n){"use strict";var r=n(1),o=n(0),i=n.n(o),a=(n(5),n(63)),l=Object(a.a)((function(e){return{"@global":{html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:"bolder"},body:Object(r.a)({margin:0,color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white},"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"});t.a=function(e){var t=e.children,n=void 0===t?null:t;return l(),i.a.createElement(i.a.Fragment,null,n)}},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=a.a.forwardRef((function(e,t){var n=e.alt,i=e.children,u=e.classes,c=e.className,s=e.component,d=void 0===s?"div":s,f=e.imgProps,p=e.sizes,h=e.src,m=e.srcSet,v=Object(o.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet"]),b=null,y=h||m;return b=y?a.a.createElement("img",Object(r.a)({alt:n,src:h,srcSet:m,sizes:p,className:u.img},f)):i,a.a.createElement(d,Object(r.a)({className:Object(l.a)(u.root,u.system,c,!y&&u.colorDefault),ref:t},v),b)}));t.a=Object(u.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover"}}}),{name:"MuiAvatar"})(c)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(30),s=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,u=e.className,s=e.component,d=void 0===s?"ul":s,f=e.dense,p=void 0!==f&&f,h=e.disablePadding,m=void 0!==h&&h,v=e.subheader,b=Object(o.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=a.a.useMemo((function(){return{dense:p}}),[p]);return a.a.createElement(c.a.Provider,{value:y},a.a.createElement(d,Object(r.a)({className:Object(l.a)(i.root,u,p&&i.dense,!m&&i.padding,v&&i.subheader),ref:t},b),v,n))}));t.a=Object(u.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(s)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(16),c=n(4),s=n(41),d=n(6),f=a.a.forwardRef((function(e,t){e.checked;var n=e.classes,i=e.className,c=e.control,f=e.disabled,p=(e.inputRef,e.label),h=e.labelPlacement,m=void 0===h?"end":h,v=(e.name,e.onChange,e.value,Object(o.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),b=Object(u.a)(),y=f;"undefined"===typeof y&&"undefined"!==typeof c.props.disabled&&(y=c.props.disabled),"undefined"===typeof y&&b&&(y=b.disabled);var g={disabled:y};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof c.props[t]&&"undefined"!==typeof e[t]&&(g[t]=e[t])})),a.a.createElement("label",Object(r.a)({className:Object(l.a)(n.root,i,"end"!==m&&n["labelPlacement".concat(Object(d.a)(m))],y&&n.disabled),ref:t},v),a.a.cloneElement(c,g),a.a.createElement(s.a,{component:"span",className:Object(l.a)(n.label,y&&n.disabled)},p))}));t.a=Object(c.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(f)},function(e,t,n){"use strict";var r=n(2),o=n(1),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(10),s=n(66),d=n(6),f=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,u=e.className,c=e.color,f=void 0===c?"default":c,p=e.component,h=void 0===p?"button":p,m=e.disabled,v=void 0!==m&&m,b=e.disableFocusRipple,y=void 0!==b&&b,g=e.endIcon,x=e.focusVisibleClassName,w=e.fullWidth,k=void 0!==w&&w,E=e.size,O=void 0===E?"medium":E,S=e.startIcon,C=e.type,j=void 0===C?"button":C,T=e.variant,P=void 0===T?"text":T,R=Object(r.a)(e,["children","classes","className","color","component","disabled","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),N=S&&a.a.createElement("span",{className:Object(l.a)(i.startIcon,i["iconSize".concat(Object(d.a)(O))])},S),_=g&&a.a.createElement("span",{className:Object(l.a)(i.endIcon,i["iconSize".concat(Object(d.a)(O))])},g);return a.a.createElement(s.a,Object(o.a)({className:Object(l.a)(i.root,i[P],i["".concat(P).concat("default"!==f&&"inherit"!==f?Object(d.a)(f):"")],u,"medium"!==O&&[i["".concat(P,"Size").concat(Object(d.a)(O))],i["size".concat(Object(d.a)(O))]],v&&i.disabled,k&&i.fullWidth,{inherit:i.colorInherit}[f]),component:h,disabled:v,focusRipple:!y,focusVisibleClassName:Object(l.a)(i.focusVisible,x),ref:t,type:j},R),a.a.createElement("span",{className:i.label},N,n,_))}));t.a=Object(u.a)((function(e){return{root:Object(o.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(c.b)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(c.b)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(c.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(c.b)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(c.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4},endIcon:{display:"inherit",marginRight:-4,marginLeft:8},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(e,t,n){"use strict";var r=n(2),o=n(1),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=[0,1,2,3,4,5,6,7,8,9,10],s=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var f=a.a.forwardRef((function(e,t){var n=e.alignContent,i=void 0===n?"stretch":n,u=e.alignItems,c=void 0===u?"stretch":u,s=e.classes,d=e.className,f=e.component,p=void 0===f?"div":f,h=e.container,m=void 0!==h&&h,v=e.direction,b=void 0===v?"row":v,y=e.item,g=void 0!==y&&y,x=e.justify,w=void 0===x?"flex-start":x,k=e.lg,E=void 0!==k&&k,O=e.md,S=void 0!==O&&O,C=e.sm,j=void 0!==C&&C,T=e.spacing,P=void 0===T?0:T,R=e.wrap,N=void 0===R?"wrap":R,_=e.xl,M=void 0!==_&&_,A=e.xs,I=void 0!==A&&A,z=e.zeroMinWidth,L=void 0!==z&&z,D=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),F=Object(l.a)(s.root,d,m&&[s.container,0!==P&&s["spacing-xs-".concat(String(P))]],g&&s.item,L&&s.zeroMinWidth,"row"!==b&&s["direction-xs-".concat(String(b))],"wrap"!==N&&s["wrap-xs-".concat(String(N))],"stretch"!==c&&s["align-items-xs-".concat(String(c))],"stretch"!==i&&s["align-content-xs-".concat(String(i))],"flex-start"!==w&&s["justify-xs-".concat(String(w))],!1!==I&&s["grid-xs-".concat(String(I))],!1!==j&&s["grid-sm-".concat(String(j))],!1!==S&&s["grid-md-".concat(String(S))],!1!==E&&s["grid-lg-".concat(String(E))],!1!==M&&s["grid-xl-".concat(String(M))]);return a.a.createElement(p,Object(o.a)({className:F,ref:t},D))}));var p=Object(u.a)((function(e){return Object(o.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return c.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(d(o,2)),width:"calc(100% + ".concat(d(o),")"),"& > $item":{padding:d(o,2)}})})),n}(e,"xs"),{},e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};s.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(o.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(f);t.a=p},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(66),s=n(7),d=n(30),f=n(8),p=n.n(f),h="undefined"===typeof window?a.a.useEffect:a.a.useLayoutEffect,m=a.a.forwardRef((function(e,t){var n=e.alignItems,i=void 0===n?"center":n,u=e.autoFocus,f=void 0!==u&&u,m=e.button,v=void 0!==m&&m,b=e.children,y=e.classes,g=e.className,x=e.component,w=e.ContainerComponent,k=void 0===w?"li":w,E=e.ContainerProps,O=(E=void 0===E?{}:E).className,S=Object(o.a)(E,["className"]),C=e.dense,j=e.disabled,T=void 0!==j&&j,P=e.disableGutters,R=void 0!==P&&P,N=e.divider,_=void 0!==N&&N,M=e.focusVisibleClassName,A=e.selected,I=void 0!==A&&A,z=Object(o.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),L=a.a.useContext(d.a),D={dense:C||L.dense||!1,alignItems:i},F=a.a.useRef(null);h((function(){f&&F.current&&F.current.focus()}),[f]);var W=a.a.Children.toArray(b),U=W.length&&Object(s.a)(W[W.length-1],["ListItemSecondaryAction"]),B=a.a.useCallback((function(e){F.current=p.a.findDOMNode(e)}),[]),$=Object(s.c)(B,t),V=Object(r.a)({className:Object(l.a)(y.root,g,D.dense&&y.dense,!R&&y.gutters,_&&y.divider,T&&y.disabled,v&&y.button,"center"!==i&&y.alignItemsFlexStart,U&&y.secondaryAction,I&&y.selected),disabled:T},z),H=x||"li";return v&&(V.component=x||"div",V.focusVisibleClassName=Object(l.a)(y.focusVisible,M),H=c.a),U?(H=V.component||x?H:"div","li"===k&&("li"===H?H="div":"li"===V.component&&(V.component="div")),a.a.createElement(d.a.Provider,{value:D},a.a.createElement(k,Object(r.a)({className:Object(l.a)(y.container,O),ref:$},S),a.a.createElement(H,V,W),W.pop()))):a.a.createElement(d.a.Provider,{value:D},a.a.createElement(H,Object(r.a)({ref:$},V),W))}));t.a=Object(u.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(m)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(41),s=n(30),d=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,u=e.className,d=e.disableTypography,f=void 0!==d&&d,p=e.inset,h=void 0!==p&&p,m=e.primary,v=e.primaryTypographyProps,b=e.secondary,y=e.secondaryTypographyProps,g=Object(o.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),x=a.a.useContext(s.a).dense,w=null!=m?m:n;null==w||w.type===c.a||f||(w=a.a.createElement(c.a,Object(r.a)({variant:x?"body2":"body1",className:i.primary,component:"span"},v),w));var k=b;return null==k||k.type===c.a||f||(k=a.a.createElement(c.a,Object(r.a)({variant:"body2",className:i.secondary,color:"textSecondary"},y),k)),a.a.createElement("div",Object(r.a)({className:Object(l.a)(i.root,u,x&&i.dense,h&&i.inset,w&&k&&i.multiline),ref:t},g),w,k)}));t.a=Object(u.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(d)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(6),s=n(94),d=a.a.forwardRef((function(e,t){var n=e.classes,i=e.className,u=e.color,d=void 0===u?"primary":u,f=e.position,p=void 0===f?"fixed":f,h=Object(o.a)(e,["classes","className","color","position"]);return a.a.createElement(s.a,Object(r.a)({square:!0,component:"header",elevation:4,className:Object(l.a)(n.root,n["position".concat(Object(c.a)(p))],i,"inherit"!==d&&n["color".concat(Object(c.a)(d))],{fixed:"mui-fixed"}[p]),ref:t},h))}));t.a=Object(u.a)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText}}}),{name:"MuiAppBar"})(d)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(11),a=n(0),l=n.n(a),u=(n(5),n(3)),c=n(4),s=l.a.forwardRef((function(e,t){var n=e.classes,i=e.className,a=e.component,c=void 0===a?"div":a,s=e.disableGutters,d=void 0!==s&&s,f=e.variant,p=void 0===f?"regular":f,h=Object(o.a)(e,["classes","className","component","disableGutters","variant"]),m=Object(u.a)(n.root,n[p],i,!d&&n.gutters);return l.a.createElement(c,Object(r.a)({className:m,ref:t},h))}));t.a=Object(c.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(i.a)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(s)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(4),c=n(10),s=a.a.forwardRef((function(e,t){var n=e.absolute,i=void 0!==n&&n,u=e.classes,c=e.className,s=e.component,d=void 0===s?"hr":s,f=e.light,p=void 0!==f&&f,h=e.orientation,m=void 0===h?"horizontal":h,v=e.role,b=void 0===v?"hr"!==d?"separator":void 0:v,y=e.variant,g=void 0===y?"fullWidth":y,x=Object(o.a)(e,["absolute","classes","className","component","light","orientation","role","variant"]);return a.a.createElement(d,Object(r.a)({className:Object(l.a)(u.root,c,"fullWidth"!==g&&u[g],i&&u.absolute,p&&u.light,{vertical:u.vertical}[m]),role:b,ref:t},x))}));t.a=Object(u.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(c.b)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1}}}),{name:"MuiDivider"})(s)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=n(8),u=n.n(l),c=(n(5),n(3));function s(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}var d=n(34),f=n(4),p=n(7),h=n(37);function m(e,t){return parseInt(e[t],10)||0}var v="undefined"!==typeof window?a.a.useLayoutEffect:a.a.useEffect,b={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},y=a.a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,l=e.rowsMax,u=e.style,c=e.value,s=Object(o.a)(e,["onChange","rows","rowsMax","style","value"]),d=a.a.useRef(null!=c).current,f=a.a.useRef(null),y=Object(p.c)(t,f),g=a.a.useRef(null),x=a.a.useState({}),w=x[0],k=x[1],E=a.a.useCallback((function(){var t=f.current,n=window.getComputedStyle(t),r=g.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x";var o=n["box-sizing"],a=m(n,"padding-bottom")+m(n,"padding-top"),u=m(n,"border-bottom-width")+m(n,"border-top-width"),c=r.scrollHeight-a;r.value="x";var s=r.scrollHeight-a,d=c;null!=i&&(d=Math.max(Number(i)*s,d)),null!=l&&(d=Math.min(Number(l)*s,d));var p=(d=Math.max(d,s))+("border-box"===o?a+u:0),h=Math.abs(d-c)<=1;k((function(e){return p>0&&Math.abs((e.outerHeightStyle||0)-p)>1||e.overflow!==h?{overflow:h,outerHeightStyle:p}:e}))}),[i,l,e.placeholder]);a.a.useEffect((function(){var e=Object(h.a)((function(){E()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[E]),v((function(){E()}));return a.a.createElement(a.a.Fragment,null,a.a.createElement("textarea",Object(r.a)({value:c,onChange:function(e){d||E(),n&&n(e)},ref:y,rows:i||1,style:Object(r.a)({height:w.outerHeightStyle,overflow:w.overflow?"hidden":null},u)},s)),a.a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:Object(r.a)({},b,{},u)}))}));function g(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(g(e.value)&&""!==e.value||t&&g(e.defaultValue)&&""!==e.defaultValue)}var w="undefined"===typeof window?a.a.useEffect:a.a.useLayoutEffect,k=a.a.forwardRef((function(e,t){var n=e["aria-describedby"],i=e.autoComplete,l=e.autoFocus,u=e.classes,f=e.className,h=e.defaultValue,m=e.disabled,v=e.endAdornment,b=(e.error,e.fullWidth),g=void 0!==b&&b,k=e.id,E=e.inputComponent,O=void 0===E?"input":E,S=e.inputProps,C=(S=void 0===S?{}:S).className,j=Object(o.a)(S,["className"]),T=e.inputRef,P=(e.margin,e.multiline),R=void 0!==P&&P,N=e.name,_=e.onBlur,M=e.onChange,A=e.onClick,I=e.onFocus,z=e.onKeyDown,L=e.onKeyUp,D=e.placeholder,F=e.readOnly,W=e.renderSuffix,U=e.rows,B=e.rowsMax,$=e.select,V=void 0!==$&&$,H=e.startAdornment,K=e.type,q=void 0===K?"text":K,Q=e.value,X=Object(o.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","select","startAdornment","type","value"]),Y=a.a.useRef(null!=Q).current,G=a.a.useRef(),J=a.a.useCallback((function(e){0}),[]),Z=Object(p.c)(j.ref,J),ee=Object(p.c)(T,Z),te=Object(p.c)(G,ee),ne=a.a.useState(!1),re=ne[0],oe=ne[1],ie=Object(d.b)();var ae=s({props:e,muiFormControl:ie,states:["disabled","error","hiddenLabel","margin","required","filled"]});ae.focused=ie?ie.focused:re,a.a.useEffect((function(){!ie&&m&&re&&(oe(!1),_&&_())}),[ie,m,re,_]);var le=ie&&ie.onFilled,ue=ie&&ie.onEmpty,ce=a.a.useCallback((function(e){x(e)?le&&le():ue&&ue()}),[le,ue]);w((function(){Y&&ce({value:Q})}),[Q,ce,Y]);a.a.useEffect((function(){ce(G.current)}),[]);var se=O,de=Object(r.a)({},j,{ref:te});"string"!==typeof se?de=Object(r.a)({inputRef:te,type:q},de,{ref:null}):R?U&&!B?se="textarea":(de=Object(r.a)({rows:U,rowsMax:B},de),se=y):de=Object(r.a)({type:q},de);return a.a.createElement("div",Object(r.a)({className:Object(c.a)(u.root,f,ae.disabled&&u.disabled,ae.error&&u.error,g&&u.fullWidth,ae.focused&&u.focused,ie&&u.formControl,R&&u.multiline,H&&u.adornedStart,v&&u.adornedEnd,{dense:u.marginDense}[ae.margin]),onClick:function(e){G.current&&e.currentTarget===e.target&&G.current.focus(),A&&A(e)},ref:t},X),H,a.a.createElement(d.a.Provider,{value:null},a.a.createElement(se,Object(r.a)({"aria-invalid":ae.error,"aria-describedby":n,autoComplete:i,autoFocus:l,className:Object(c.a)(u.input,C,ae.disabled&&u.disabled,R&&u.inputMultiline,V&&u.inputSelect,ae.hiddenLabel&&u.inputHiddenLabel,H&&u.inputAdornedStart,v&&u.inputAdornedEnd,{search:u.inputTypeSearch}[q],{dense:u.inputMarginDense}[ae.margin]),defaultValue:h,disabled:ae.disabled,id:k,onAnimationStart:function(e){ce(-1!==e.animationName.indexOf("auto-fill-cancel")?G.current:{value:"x"})},name:N,onBlur:function(e){_&&_(e),ie&&ie.onBlur?ie.onBlur(e):oe(!1)},onChange:function(e){if(!Y){var t=e.target||G.current;if(null==t)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ce({value:t.value})}if(M){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];M.apply(void 0,[e].concat(r))}},onFocus:function(e){ae.disabled?e.stopPropagation():(I&&I(e),ie&&ie.onFocus?ie.onFocus(e):oe(!0))},onKeyDown:z,onKeyUp:L,placeholder:D,readOnly:F,required:ae.required,rows:U,value:Q},de))),v,W?W(Object(r.a)({},ae,{startAdornment:H})):null)})),E=Object(f.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{root:{fontFamily:e.typography.fontFamily,color:e.palette.text.primary,fontSize:e.typography.pxToRem(16),lineHeight:"1.1875em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}},formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1875em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"$auto-fill-cancel","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"$auto-fill"}},"@keyframes auto-fill":{from:{}},"@keyframes auto-fill-cancel":{from:{}},inputMarginDense:{paddingTop:3},inputSelect:{paddingRight:24},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(k),O=a.a.forwardRef((function(e,t){var n=e.disableUnderline,i=e.classes,l=e.fullWidth,u=void 0!==l&&l,s=e.inputComponent,d=void 0===s?"input":s,f=e.multiline,p=void 0!==f&&f,h=e.type,m=void 0===h?"text":h,v=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.a.createElement(E,Object(r.a)({classes:Object(r.a)({},i,{root:Object(c.a)(i.root,!n&&i.underline),underline:null}),fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},v))}));O.muiName="Input";var S=Object(f.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary[t?"dark":"light"]),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(O),C=a.a.forwardRef((function(e,t){var n=e.disableUnderline,i=e.classes,l=e.fullWidth,u=void 0!==l&&l,s=e.inputComponent,d=void 0===s?"input":s,f=e.multiline,p=void 0!==f&&f,h=e.type,m=void 0===h?"text":h,v=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.a.createElement(E,Object(r.a)({classes:Object(r.a)({},i,{root:Object(c.a)(i.root,!n&&i.underline),underline:null}),fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},v))}));C.muiName="Input";var j=Object(f.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary[t?"dark":"light"]),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px"},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(C),T=n(11),P=n(14),R=n(6),N=a.a.forwardRef((function(e,t){e.children;var n=e.classes,i=e.className,l=e.labelWidth,u=e.notched,s=e.style,d=Object(o.a)(e,["children","classes","className","labelWidth","notched","style"]),f="rtl"===Object(P.a)().direction?"right":"left",p=l>0?.75*l+8:0;return a.a.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(T.a)({},"padding".concat(Object(R.a)(f)),8+(u?0:p/2)),s),className:Object(c.a)(n.root,i),ref:t},d),a.a.createElement("legend",{className:n.legend,style:{width:u?p:.01}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),_=Object(f.a)((function(e){var t="rtl"===e.direction?"right":"left";return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,pointerEvents:"none",borderRadius:e.shape.borderRadius,borderStyle:"solid",borderWidth:1,transition:e.transitions.create(["padding-".concat(t),"border-color","border-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}}}),{name:"PrivateNotchedOutline"})(N),M=a.a.forwardRef((function(e,t){var n=e.classes,i=e.fullWidth,l=void 0!==i&&i,u=e.inputComponent,s=void 0===u?"input":u,d=e.labelWidth,f=void 0===d?0:d,p=e.multiline,h=void 0!==p&&p,m=e.notched,v=e.type,b=void 0===v?"text":v,y=Object(o.a)(e,["classes","fullWidth","inputComponent","labelWidth","multiline","notched","type"]);return a.a.createElement(E,Object(r.a)({renderSuffix:function(e){return a.a.createElement(_,{className:n.notchedOutline,labelWidth:f,notched:"undefined"!==typeof m?m:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(c.a)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:s,multiline:h,ref:t,type:b},y))}));M.muiName="Input";var A=Object(f.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative","&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px"},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputSelect:{paddingRight:24},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(M),I=n(16),z=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,l=e.className,u=e.component,d=void 0===u?"label":u,f=(e.disabled,e.error,e.filled,e.focused,e.required,Object(o.a)(e,["children","classes","className","component","disabled","error","filled","focused","required"])),p=s({props:e,muiFormControl:Object(I.a)(),states:["required","focused","disabled","error","filled"]});return a.a.createElement(d,Object(r.a)({className:Object(c.a)(i.root,l,p.disabled&&i.disabled,p.error&&i.error,p.filled&&i.filled,p.focused&&i.focused,p.required&&i.required),ref:t},f),n,p.required&&a.a.createElement("span",{className:Object(c.a)(i.asterisk,p.error&&i.error)},"\u2009","*"))})),L=Object(f.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary["light"===e.palette.type?"dark":"light"]},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(z),D=a.a.forwardRef((function(e,t){var n=e.classes,i=e.className,l=e.disableAnimation,u=void 0!==l&&l,d=(e.margin,e.shrink),f=(e.variant,Object(o.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),p=Object(I.a)(),h=d;"undefined"===typeof h&&p&&(h=p.filled||p.focused||p.adornedStart);var m=s({props:e,muiFormControl:p,states:["margin","variant"]});return a.a.createElement(L,Object(r.a)({"data-shrink":h,className:Object(c.a)(n.root,i,p&&n.formControl,!u&&n.animated,h&&n.shrink,{dense:n.marginDense}[m.margin],{filled:n.filled,outlined:n.outlined}[m.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},f))})),F=Object(f.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(D),W=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,l=e.className,u=e.component,s=void 0===u?"div":u,f=e.disabled,h=void 0!==f&&f,m=e.error,v=void 0!==m&&m,b=e.fullWidth,y=void 0!==b&&b,g=e.hiddenLabel,w=void 0!==g&&g,k=e.margin,E=void 0===k?"none":k,O=e.required,S=void 0!==O&&O,C=e.variant,j=void 0===C?"standard":C,T=Object(o.a)(e,["children","classes","className","component","disabled","error","fullWidth","hiddenLabel","margin","required","variant"]),P=a.a.useState((function(){var e=!1;return n&&a.a.Children.forEach(n,(function(t){if(Object(p.a)(t,["Input","Select"])){var n=Object(p.a)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e}))[0],N=a.a.useState((function(){var e=!1;return n&&a.a.Children.forEach(n,(function(t){Object(p.a)(t,["Input","Select"])&&x(t.props,!0)&&(e=!0)})),e})),_=N[0],M=N[1],A=a.a.useState(!1),I=A[0],z=A[1];h&&I&&z(!1);var L=a.a.useCallback((function(){M(!0)}),[]),D={adornedStart:P,disabled:h,error:v,filled:_,focused:I,hiddenLabel:w,margin:E,onBlur:function(){z(!1)},onEmpty:a.a.useCallback((function(){M(!1)}),[]),onFilled:L,onFocus:function(){z(!0)},registerEffect:void 0,required:S,variant:j};return a.a.createElement(d.a.Provider,{value:D},a.a.createElement(s,Object(r.a)({className:Object(c.a)(i.root,l,"none"!==E&&i["margin".concat(Object(R.a)(E))],y&&i.fullWidth),ref:t},T),n))})),U=Object(f.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(W),B=a.a.forwardRef((function(e,t){var n=e.classes,i=e.className,l=e.component,u=void 0===l?"p":l,d=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(o.a)(e,["classes","className","component","disabled","error","filled","focused","margin","required","variant"])),f=s({props:e,muiFormControl:Object(I.a)(),states:["variant","margin","disabled","error","filled","focused","required"]});return a.a.createElement(u,Object(r.a)({className:Object(c.a)(n.root,("filled"===f.variant||"outlined"===f.variant)&&n.contained,i,f.disabled&&n.disabled,f.error&&n.error,f.filled&&n.filled,f.focused&&n.focused,f.required&&n.required,{dense:n.marginDense}[f.margin]),ref:t},d))})),$=Object(f.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:8,lineHeight:"1em",minHeight:"1em",margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{margin:"8px 14px 0"},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(B),V=n(134),H=n(23),K=n(33),q=n(15),Q=n(44),X=n(152),Y=n(154),G=n(19);function J(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Z={entering:{opacity:1,transform:J(1)},entered:{opacity:1,transform:"none"}},ee=a.a.forwardRef((function(e,t){var n=e.children,i=e.in,l=e.onEnter,u=e.onExit,c=e.style,s=e.timeout,d=void 0===s?"auto":s,f=Object(o.a)(e,["children","in","onEnter","onExit","style","timeout"]),h=a.a.useRef(),m=a.a.useRef(),v=Object(p.c)(n.ref,t),b=Object(P.a)();return a.a.useEffect((function(){return function(){clearTimeout(h.current)}}),[]),a.a.createElement(Y.a,Object(r.a)({appear:!0,in:i,onEnter:function(e,t){Object(G.b)(e);var n,r=Object(G.a)({style:c,timeout:d},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===d?(n=b.transitions.getAutoHeightDuration(e.clientHeight),m.current=n):n=o,e.style.transition=[b.transitions.create("opacity",{duration:n,delay:i}),b.transitions.create("transform",{duration:.666*n,delay:i})].join(","),l&&l(e,t)},onExit:function(e){var t,n=Object(G.a)({style:c,timeout:d},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===d?(t=b.transitions.getAutoHeightDuration(e.clientHeight),m.current=t):t=r,e.style.transition=[b.transitions.create("opacity",{duration:t,delay:o}),b.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=J(.75),u&&u(e)},addEndListener:function(e,t){"auto"===d&&(h.current=setTimeout(t,m.current||0))},timeout:"auto"===d?null:d},f),(function(e,t){return a.a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:J(.75),visibility:"exited"!==e||i?void 0:"hidden"},Z[e],{},c,{},n.props.style),ref:v},t))}))}));ee.muiSupportAuto=!0;var te=ee,ne=n(94);function re(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function oe(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ie(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function ae(e){return"function"===typeof e?e():e}var le=a.a.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,l=e.anchorOrigin,s=void 0===l?{vertical:"top",horizontal:"left"}:l,d=e.anchorPosition,f=e.anchorReference,p=void 0===f?"anchorEl":f,m=e.children,v=e.classes,b=e.container,y=e.elevation,g=void 0===y?8:y,x=e.getContentAnchorEl,w=e.marginThreshold,k=void 0===w?16:w,E=e.ModalClasses,O=e.onEnter,S=e.onEntered,C=e.onEntering,j=e.onExit,T=e.onExited,P=e.onExiting,N=e.open,_=e.PaperProps,M=void 0===_?{}:_,A=e.transformOrigin,I=void 0===A?{vertical:"top",horizontal:"left"}:A,z=e.TransitionComponent,L=void 0===z?te:z,D=e.transitionDuration,F=void 0===D?"auto":D,W=e.TransitionProps,U=void 0===W?{}:W,B=Object(o.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","container","elevation","getContentAnchorEl","marginThreshold","ModalClasses","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),$=a.a.useRef(),V=a.a.useCallback((function(e){if("anchorPosition"===p)return d;var t=ae(i),n=(t instanceof Object(Q.a)(t).Element?t:Object(q.a)($.current).body).getBoundingClientRect(),r=0===e?s.vertical:"center";return{top:n.top+re(n,r),left:n.left+oe(n,s.horizontal)}}),[i,s.horizontal,s.vertical,d,p]),H=a.a.useCallback((function(e){var t=0;if(x&&"anchorEl"===p){var n=x(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentNode).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[s.vertical,p,x]),K=a.a.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:re(e,I.vertical)+t,horizontal:oe(e,I.horizontal)}}),[I.horizontal,I.vertical]),Y=a.a.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},r=K(n,t);if("none"===p)return{top:null,left:null,transformOrigin:ie(r)};var o=V(t),a=o.top-r.vertical,l=o.left-r.horizontal,u=a+n.height,c=l+n.width,s=Object(Q.a)(ae(i)),d=s.innerHeight-k,f=s.innerWidth-k;if(a<k){var h=a-k;a-=h,r.vertical+=h}else if(u>d){var m=u-d;a-=m,r.vertical+=m}if(l<k){var v=l-k;l-=v,r.horizontal+=v}else if(c>f){var b=c-f;l-=b,r.horizontal+=b}return{top:"".concat(a,"px"),left:"".concat(l,"px"),transformOrigin:ie(r)}}),[i,p,V,H,K,k]),G=a.a.useCallback((function(e){var t=Y(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[Y]),J=a.a.useCallback((function(e){$.current=u.a.findDOMNode(e)}),[]),Z=a.a.useMemo((function(){if(N)return Object(h.a)((function(){G($.current)}))}),[N,G]);a.a.useImperativeHandle(n,(function(){return N?{updatePosition:Z}:null}),[N,Z]),a.a.useEffect((function(){if(Z)return window.addEventListener("resize",Z),function(){window.removeEventListener("resize",Z),Z.clear()}}),[Z]);var ee=F;"auto"!==F||L.muiSupportAuto||(ee=void 0);var le=b||(i?Object(q.a)(ae(i)).body:void 0);return a.a.createElement(X.a,Object(r.a)({classes:E,container:le,open:N,ref:t,BackdropProps:{invisible:!0}},B),a.a.createElement(L,Object(r.a)({appear:!0,in:N,onEnter:O,onEntered:S,onExit:j,onExited:T,onExiting:P,timeout:ee},U,{onEntering:Object(R.b)((function(e,t){C&&C(e,t),G(e)}),U.onEntering)}),a.a.createElement(ne.a,Object(r.a)({elevation:g,ref:J},M,{className:Object(c.a)(v.paper,M.className)}),m)))})),ue=Object(f.a)({paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(le),ce=n(140),se=n(48);function de(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pe(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),void 0!==n&&(0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join(""))))}function he(e,t,n,r,o){for(var i=!1,a=r(e,t,!!t&&n);a;){if(a===e.firstChild){if(i)return!1;i=!0}if(a.hasAttribute("tabindex")&&!a.disabled&&"true"!==a.getAttribute("aria-disabled")&&pe(a,o))return a.focus(),!0;a=r(e,a,n)}return!1}var me="undefined"===typeof window?a.a.useEffect:a.a.useLayoutEffect,ve=a.a.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,l=void 0!==i&&i,c=e.autoFocusItem,s=void 0!==c&&c,d=e.children,f=e.className,h=e.onKeyDown,m=e.disableListWrap,v=void 0!==m&&m,b=e.variant,y=void 0===b?"selectedMenu":b,g=Object(o.a)(e,["actions","autoFocus","autoFocusItem","children","className","onKeyDown","disableListWrap","variant"]),x=a.a.useRef(null),w=a.a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});me((function(){l&&x.current.focus()}),[l]),a.a.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat(Object(se.a)(!0),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var k=a.a.useCallback((function(e){x.current=u.a.findDOMNode(e)}),[]),E=Object(p.c)(k,t),O=-1;a.a.Children.forEach(d,(function(e,t){a.a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected?O=t:-1===O&&(O=t)))}));var S=a.a.Children.map(d,(function(e,t){if(t===O){var n={};if(s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===y&&(n.tabIndex=0),null!==n)return a.a.cloneElement(e,n)}return e}));return a.a.createElement(ce.a,Object(r.a)({role:"menu",ref:E,className:f,onKeyDown:function(e){var t=x.current,n=e.key,r=Object(q.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),he(t,r,v,de);else if("ArrowUp"===n)e.preventDefault(),he(t,r,v,fe);else if("Home"===n)e.preventDefault(),he(t,null,v,de);else if("End"===n)e.preventDefault(),he(t,null,v,fe);else if(1===n.length){var o=w.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&pe(r,o);o.previousKeyMatched&&(l||he(t,r,!1,de,o))?e.preventDefault():o.previousKeyMatched=!1}h&&h(e)},tabIndex:l?0:-1},g),S)})),be={vertical:"top",horizontal:"right"},ye={vertical:"top",horizontal:"left"},ge=a.a.forwardRef((function(e,t){var n=e.autoFocus,i=void 0===n||n,l=e.children,s=e.classes,d=e.disableAutoFocusItem,f=void 0!==d&&d,h=e.MenuListProps,m=void 0===h?{}:h,v=e.onClose,b=e.onEntering,y=e.open,g=e.PaperProps,x=void 0===g?{}:g,w=e.PopoverClasses,k=e.transitionDuration,E=void 0===k?"auto":k,O=e.variant,S=void 0===O?"selectedMenu":O,C=Object(o.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),j=Object(P.a)(),T=i&&!f&&y,R=a.a.useRef(null),N=a.a.useRef(null),_=-1;a.a.Children.map(l,(function(e,t){a.a.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected?_=t:-1===_&&(_=t)))}));var M=a.a.Children.map(l,(function(e,t){return t===_?a.a.cloneElement(e,{ref:function(t){N.current=u.a.findDOMNode(t),Object(p.b)(e.ref,t)}}):e}));return a.a.createElement(ue,Object(r.a)({getContentAnchorEl:function(){return N.current},classes:w,onClose:v,onEntering:function(e,t){R.current&&R.current.adjustStyleForScrollbar(e,j),b&&b(e,t)},anchorOrigin:"rtl"===j.direction?be:ye,transformOrigin:"rtl"===j.direction?be:ye,PaperProps:Object(r.a)({},x,{classes:Object(r.a)({},x.classes,{root:s.paper})}),open:y,ref:t,transitionDuration:E},C),a.a.createElement(ve,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===_||f),autoFocusItem:T,variant:S},m,{className:Object(c.a)(s.list,m.className)}),M))})),xe=Object(f.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(ge);function we(e,t){return"object"===Object(K.a)(t)&&null!==t?e===t:String(e)===String(t)}var ke=a.a.forwardRef((function(e,t){var n=e.autoFocus,i=e.autoWidth,l=e.children,u=e.classes,s=e.className,d=e.disabled,f=e.displayEmpty,h=e.IconComponent,m=e.inputRef,v=e.MenuProps,b=void 0===v?{}:v,y=e.multiple,g=e.name,w=e.onBlur,k=e.onChange,E=e.onClose,O=e.onFocus,S=e.onOpen,C=e.open,j=e.readOnly,T=e.renderValue,P=(e.required,e.SelectDisplayProps),N=e.tabIndex,_=(e.type,e.value),M=e.variant,A=void 0===M?"standard":M,I=Object(o.a)(e,["autoFocus","autoWidth","children","classes","className","disabled","displayEmpty","IconComponent","inputRef","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),z=a.a.useRef(null),L=a.a.useRef(null),D=a.a.useRef(!1),F=a.a.useRef(null!=C).current,W=a.a.useState(),U=W[0],B=W[1],$=a.a.useState(!1),V=$[0],K=$[1],q=a.a.useState(0)[1],Q=Object(p.c)(t,m);a.a.useImperativeHandle(Q,(function(){return{focus:function(){L.current.focus()},node:z.current,value:_}}),[_]),a.a.useEffect((function(){F&&C&&(L.current.focus(),q((function(e){return!e}))),n&&L.current.focus()}),[n,F,C]);var X,Y,G=function(e,t){e?S&&S(t):E&&E(t),F||(B(i?null:L.current.clientWidth),K(e))},J=function(e){return function(t){if(y||G(!1,t),k){var n;if(y){n=Array.isArray(_)?Object(H.a)(_):[];var r=_.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;t.persist(),t.target={value:n,name:g},k(t,e)}}},Z=F&&L.current?C:V;delete I["aria-invalid"];var ee=[],te=!1;(x(e)||f)&&(T?X=T(_):te=!0);var ne=a.a.Children.map(l,(function(e){if(!a.a.isValidElement(e))return null;var t;if(y){if(!Array.isArray(_))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=_.some((function(t){return we(t,e.props.value)})))&&te&&ee.push(e.props.children)}else(t=we(_,e.props.value))&&te&&(Y=e.props.children);return a.a.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:J(e),role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(X=y?ee.join(", "):Y);var re,oe=U;return!i&&F&&L.current&&(oe=L.current.clientWidth),re="undefined"!==typeof N?N:d?null:0,a.a.createElement(a.a.Fragment,null,a.a.createElement("div",Object(r.a)({className:Object(c.a)(u.root,u.select,u.selectMenu,u[A],s,d&&u.disabled),ref:L,tabIndex:re,role:"button","aria-expanded":Z?"true":void 0,"aria-haspopup":"listbox","aria-owns":Z?"menu-".concat(g||""):void 0,onKeyDown:function(e){if(!j){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),D.current=!0,G(!0,e))}},onBlur:function(e){if(!0===D.current)return e.stopPropagation(),void(D.current=!1);w&&(e.persist(),e.target={value:_,name:g},w(e))},onClick:d||j?null:function(e){D.current=!0,G(!0,e)},onFocus:O,id:g?"select-".concat(g):void 0},P),function(e){return null==e||"string"===typeof e&&!e.trim()}(X)?a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):X),a.a.createElement("input",Object(r.a)({value:Array.isArray(_)?_.join(","):_,name:g,ref:z,type:"hidden",autoFocus:n},I)),a.a.createElement(h,{className:Object(c.a)(u.icon,u["icon".concat(Object(R.a)(A))])}),a.a.createElement(xe,Object(r.a)({id:"menu-".concat(g||""),anchorEl:L.current,open:Z,onClose:function(e){G(!1,e)}},b,{MenuListProps:Object(r.a)({role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:Object(r.a)({},b.PaperProps,{style:Object(r.a)({minWidth:oe},null!=b.PaperProps?b.PaperProps.style:null)})}),ne))})),Ee=n(26),Oe=Object(Ee.a)(a.a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Se=a.a.forwardRef((function(e,t){var n=e.classes,i=e.className,l=e.disabled,u=e.IconComponent,s=e.inputRef,d=e.variant,f=void 0===d?"standard":d,p=Object(o.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return a.a.createElement(a.a.Fragment,null,a.a.createElement("select",Object(r.a)({className:Object(c.a)(n.root,n.select,n[f],i,l&&n.disabled),disabled:l,ref:s||t},p)),e.multiple?null:a.a.createElement(u,{className:Object(c.a)(n.icon,n["icon".concat(Object(R.a)(f))])}))})),Ce=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper}},filled:{},outlined:{borderRadius:e.shape.borderRadius},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",color:e.palette.action.active,pointerEvents:"none"},iconFilled:{right:7},iconOutlined:{right:7}}},je=a.a.createElement(S,null),Te=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,l=e.IconComponent,u=void 0===l?Oe:l,c=e.input,d=void 0===c?je:c,f=e.inputProps,p=(e.variant,Object(o.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),h=s({props:e,muiFormControl:Object(I.a)(),states:["variant"]});return a.a.cloneElement(d,Object(r.a)({inputComponent:Se,select:!0,inputProps:Object(r.a)({children:n,classes:i,IconComponent:u,variant:h.variant,type:void 0},f,{},d?d.props.inputProps:{}),ref:t},p))}));Te.muiName="Select";Object(f.a)(Ce,{name:"MuiNativeSelect"})(Te);var Pe=Ce,Re=a.a.createElement(S,null),Ne=a.a.createElement(j,null),_e=a.a.forwardRef((function e(t,n){var i=t.autoWidth,l=void 0!==i&&i,u=t.children,c=t.classes,d=t.displayEmpty,f=void 0!==d&&d,p=t.IconComponent,h=void 0===p?Oe:p,m=t.input,v=t.inputProps,b=t.MenuProps,y=t.multiple,g=void 0!==y&&y,x=t.native,w=void 0!==x&&x,k=t.onClose,E=t.onOpen,O=t.open,S=t.renderValue,C=t.SelectDisplayProps,j=t.variant,T=void 0===j?"standard":j,P=t.labelWidth,R=void 0===P?0:P,N=Object(o.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","input","inputProps","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant","labelWidth"]),_=w?Se:ke,M=s({props:t,muiFormControl:Object(I.a)(),states:["variant"]}).variant||T,z=m||{standard:Re,outlined:a.a.createElement(A,{labelWidth:R}),filled:Ne}[M];return a.a.cloneElement(z,Object(r.a)({inputComponent:_,select:!0,inputProps:Object(r.a)({children:u,IconComponent:h,variant:M,type:void 0,multiple:g},w?{}:{autoWidth:l,displayEmpty:f,MenuProps:b,onClose:k,onOpen:E,open:O,renderValue:S,SelectDisplayProps:C},{},v,{classes:v?Object(V.a)({baseClasses:c,newClasses:v.classes,Component:e}):c},m?m.props.inputProps:{}),ref:n},N))}));_e.muiName="Select";var Me=Object(f.a)(Pe,{name:"MuiSelect"})(_e),Ae={standard:S,filled:j,outlined:A},Ie=a.a.forwardRef((function(e,t){var n=e.autoComplete,i=e.autoFocus,l=e.children,s=e.classes,d=e.className,f=e.defaultValue,p=e.error,h=e.FormHelperTextProps,m=e.fullWidth,v=e.helperText,b=e.hiddenLabel,y=e.id,g=e.InputLabelProps,x=e.inputProps,w=e.InputProps,k=e.inputRef,E=e.label,O=e.multiline,S=e.name,C=e.onBlur,j=e.onChange,T=e.onFocus,P=e.placeholder,R=e.required,N=void 0!==R&&R,_=e.rows,M=e.rowsMax,A=e.select,I=void 0!==A&&A,z=e.SelectProps,L=e.type,D=e.value,W=e.variant,B=void 0===W?"standard":W,V=Object(o.a)(e,["autoComplete","autoFocus","children","classes","className","defaultValue","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]),H=a.a.useState(0),K=H[0],q=H[1],Q=a.a.useRef(null);a.a.useEffect((function(){if("outlined"===B){var e=u.a.findDOMNode(Q.current);q(null!=e?e.offsetWidth:0)}}),[B,N,E]);var X={};"outlined"===B&&(g&&"undefined"!==typeof g.shrink&&(X.notched=g.shrink),X.labelWidth=K);var Y=v&&y?"".concat(y,"-helper-text"):void 0,G=Ae[B],J=a.a.createElement(G,Object(r.a)({"aria-describedby":Y,autoComplete:n,autoFocus:i,defaultValue:f,fullWidth:m,multiline:O,name:S,rows:_,rowsMax:M,type:L,value:D,id:y,inputRef:k,onBlur:C,onChange:j,onFocus:T,placeholder:P,inputProps:x},X,w));return a.a.createElement(U,Object(r.a)({className:Object(c.a)(s.root,d),error:p,fullWidth:m,hiddenLabel:b,ref:t,required:N,variant:B},V),E&&a.a.createElement(F,Object(r.a)({htmlFor:y,ref:Q},g),E),I?a.a.createElement(Me,Object(r.a)({"aria-describedby":Y,value:D,input:J},z),l):J,v&&a.a.createElement($,Object(r.a)({id:Y},h),v))}));t.a=Object(f.a)({root:{}},{name:"MuiTextField"})(Ie)},function(e,t,n){"use strict";var r=n(23),o=n(1),i=(n(5),n(22)),a=n.n(i);var l=function(e,t){return t?a()(e,t,{clone:!1}):e};var u=function(e){var t=function(t){var n=e(t);return t.css?Object(o.a)({},l(n,e(Object(o.a)({theme:t.theme},t.css))),{},function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat(Object(r.a)(e.filterProps)),t};var c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?l(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r},s=n(11),d=n(33),f={xs:0,sm:600,md:960,lg:1280,xl:1920},p={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(f[e],"px)")}};function h(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||p;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Object(d.a)(t)){var o=e.theme.breakpoints||p;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function m(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}var v=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=m(e.theme,o)||{};return h(e,n,(function(e){var t;return"function"===typeof a?t=a(e):Array.isArray(a)?t=a[e]:(t=m(a,e)||e,i&&(t=i(t))),!1===r?t:Object(s.a)({},r,t)}))};return a.propTypes={},a.filterProps=[t],a};function b(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var y=c(v({prop:"border",themeKey:"borders",transform:b}),v({prop:"borderTop",themeKey:"borders",transform:b}),v({prop:"borderRight",themeKey:"borders",transform:b}),v({prop:"borderBottom",themeKey:"borders",transform:b}),v({prop:"borderLeft",themeKey:"borders",transform:b}),v({prop:"borderColor",themeKey:"palette"}),v({prop:"borderRadius",themeKey:"shape"})),g=c(v({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),v({prop:"display"}),v({prop:"overflow"}),v({prop:"textOverflow"}),v({prop:"visibility"}),v({prop:"whiteSpace"})),x=c(v({prop:"flexBasis"}),v({prop:"flexDirection"}),v({prop:"flexWrap"}),v({prop:"justifyContent"}),v({prop:"alignItems"}),v({prop:"alignContent"}),v({prop:"order"}),v({prop:"flex"}),v({prop:"flexGrow"}),v({prop:"flexShrink"}),v({prop:"alignSelf"}),v({prop:"justifyItems"}),v({prop:"justifySelf"})),w=c(v({prop:"position"}),v({prop:"zIndex",themeKey:"zIndex"}),v({prop:"top"}),v({prop:"right"}),v({prop:"bottom"}),v({prop:"left"})),k=c(v({prop:"color",themeKey:"palette"}),v({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),E=v({prop:"boxShadow",themeKey:"shadows"});function O(e){return e<=1?"".concat(100*e,"%"):e}var S=v({prop:"width",transform:O}),C=v({prop:"maxWidth",transform:O}),j=v({prop:"minWidth",transform:O}),T=v({prop:"height",transform:O}),P=v({prop:"maxHeight",transform:O}),R=v({prop:"minHeight",transform:O}),N=(v({prop:"size",cssProperty:"width",transform:O}),v({prop:"size",cssProperty:"height",transform:O}),c(S,C,j,T,P,R));function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var M={m:"margin",p:"padding"},A={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},I={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!I[e])return[e];e=I[e]}var t=_(e.split(""),2),n=t[0],r=t[1],o=M[n],i=A[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),L=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function D(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function F(e){var t=function(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}(e.theme);return Object.keys(e).map((function(n){if(-1===L.indexOf(n))return null;var r=D(z(n),t),o=e[n];return h(e,o,r)})).reduce(l,{})}F.propTypes={},F.filterProps=L;var W=F,U=c(v({prop:"fontFamily",themeKey:"typography"}),v({prop:"fontSize",themeKey:"typography"}),v({prop:"fontStyle",themeKey:"typography"}),v({prop:"fontWeight",themeKey:"typography"}),v({prop:"letterSpacing"}),v({prop:"lineHeight"}),v({prop:"textAlign"})),B=n(2),$=n(0),V=n.n($),H=n(3),K=n(36),q=n.n(K),Q=n(95);function X(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var Y=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,i=Object(B.a)(n,["name"]);var a,l=r,u="function"===typeof t?function(e){return{root:function(n){return t(Object(o.a)({theme:e},n))}}}:{root:t},c=Object(Q.a)(u,Object(o.a)({Component:e,name:r||e.displayName,classNamePrefix:l},i));t.filterProps&&(a=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var s=V.a.forwardRef((function(t,n){var r=t.children,i=t.className,l=t.clone,u=t.component,s=Object(B.a)(t,["children","className","clone","component"]),d=c(t),f=Object(H.a)(d.root,i),p=s;if(a&&(p=X(p,a)),l)return V.a.cloneElement(r,Object(o.a)({className:Object(H.a)(r.props.className,f)},p));if("function"===typeof r)return r(Object(o.a)({className:f},p));var h=u||e;return V.a.createElement(h,Object(o.a)({ref:n,className:f},p),r)}));return q()(s,e),s}},G=n(28),J=function(e){var t=Y(e);return function(e,n){return t(e,Object(o.a)({defaultTheme:G.a},n))}},Z=u(c(y,g,x,w,k,E,N,W,U)),ee=J("div")(Z,{name:"MuiBox"});t.a=ee},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(16),c=n(4),s=n(10),d=n(66),f=n(6),p=a.a.forwardRef((function(e,t){var n=e.edge,i=void 0!==n&&n,u=e.children,c=e.classes,s=e.className,p=e.color,h=void 0===p?"default":p,m=e.disabled,v=void 0!==m&&m,b=e.disableFocusRipple,y=void 0!==b&&b,g=e.size,x=void 0===g?"medium":g,w=Object(o.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return a.a.createElement(d.a,Object(r.a)({className:Object(l.a)(c.root,s,"default"!==h&&c["color".concat(Object(f.a)(h))],v&&c.disabled,{small:c["size".concat(Object(f.a)(x))]}[x],{start:c.edgeStart,end:c.edgeEnd}[i]),centerRipple:!0,focusRipple:!y,disabled:v,ref:t},w),a.a.createElement("span",{className:c.label},u))})),h=Object(c.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(s.b)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(s.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(s.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(p),m=a.a.forwardRef((function(e,t){var n=e.autoFocus,i=e.checked,c=e.checkedIcon,s=e.classes,d=e.className,f=e.defaultChecked,p=e.disabled,m=e.icon,v=e.id,b=e.inputProps,y=e.inputRef,g=e.name,x=e.onBlur,w=e.onChange,k=e.onFocus,E=e.readOnly,O=e.required,S=e.tabIndex,C=e.type,j=e.value,T=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=a.a.useRef(null!=i).current,R=a.a.useState(Boolean(f)),N=R[0],_=R[1],M=Object(u.a)(),A=p;M&&"undefined"===typeof A&&(A=M.disabled);var I=P?i:N,z="checkbox"===C||"radio"===C;return a.a.createElement(h,Object(r.a)({component:"span",className:Object(l.a)(s.root,d,I&&s.checked,A&&s.disabled),disabled:A,tabIndex:null,role:void 0,onFocus:function(e){k&&k(e),M&&M.onFocus&&M.onFocus(e)},onBlur:function(e){x&&x(e),M&&M.onBlur&&M.onBlur(e)},ref:t},T),a.a.createElement("input",Object(r.a)({autoFocus:n,checked:i,defaultChecked:f,className:s.input,disabled:A,id:z&&v,name:g,onChange:function(e){var t=e.target.checked;P||_(t),w&&w(e,t)},readOnly:E,ref:y,required:O,tabIndex:S,type:C,value:j},b)),I?c:m)})),v=Object(c.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(m),b=n(26),y=Object(b.a)(a.a.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),g=Object(b.a)(a.a.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),x=Object(b.a)(a.a.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),w=a.a.createElement(g,null),k=a.a.createElement(y,null),E=a.a.createElement(x,null),O=a.a.forwardRef((function(e,t){var n=e.checkedIcon,i=void 0===n?w:n,u=e.classes,c=e.color,s=void 0===c?"secondary":c,d=e.icon,p=void 0===d?k:d,h=e.indeterminate,m=void 0!==h&&h,b=e.indeterminateIcon,y=void 0===b?E:b,g=e.inputProps,x=Object(o.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps"]);return a.a.createElement(v,Object(r.a)({type:"checkbox",checkedIcon:m?y:i,classes:{root:Object(l.a)(u.root,u["color".concat(Object(f.a)(s))],m&&u.indeterminate),checked:u.checked,disabled:u.disabled},color:s,inputProps:Object(r.a)({"data-indeterminate":m},g),icon:m?y:p,ref:t},x))}));t.a=Object(c.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(s.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(s.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(O)},function(e,t,n){"use strict";var r=n(2),o=n(1),i=n(0),a=n.n(i),l=n(8),u=n.n(l),c=(n(5),n(96)),s=n(135),d=n(15),f=n(7);var p="undefined"!==typeof window?a.a.useLayoutEffect:a.a.useEffect;var h=a.a.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,l=e.onRendered,c=a.a.useState(null),s=c[0],d=c[1],h=Object(f.c)(n.ref,t);return p((function(){i||d(function(e){return e="function"===typeof e?e():e,u.a.findDOMNode(e)}(r)||document.body)}),[r,i]),p((function(){if(s&&!i)return Object(f.b)(t,s),function(){Object(f.b)(t,null)}}),[t,s,i]),p((function(){l&&(s||i)&&l()}),[l,s,i]),i?(a.a.Children.only(n),a.a.cloneElement(n,{ref:h})):s?u.a.createPortal(n,s):s})),m=n(6),v=n(24),b=n(45),y=n(27),g=n(18),x=n(23),w=n(48),k=n(44);function E(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function O(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}var S=["template","script","style"];function C(e,t,n,r,o){var i=[t,n].concat(Object(x.a)(r));[].forEach.call(e.children,(function(e){-1===i.indexOf(e)&&function(e){return 1===e.nodeType&&-1===S.indexOf(e.tagName.toLowerCase())}(e)&&o(e)}))}function j(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;C(e,t,n,r,(function(e){return E(e,o)}))}function T(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function P(e,t){var n,r={},o={},i=[];if(!t.disableScrollLock&&(r.overflow=e.container.style.overflow,r["padding-right"]=e.container.style.paddingRight,o.overflow="hidden",function(e){var t=Object(d.a)(e);return t.body===e?Object(k.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(e.container))){var a=Object(w.a)();o["padding-right"]="".concat(O(e.container)+a,"px"),n=Object(d.a)(e.container).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(O(e)+a,"px")}))}Object.keys(o).forEach((function(t){e.container.style[t]=o[t]}));return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),Object.keys(r).forEach((function(t){r[t]?e.container.style.setProperty(t,r[t]):e.container.style.removeProperty(t)}))}}var R=function(){function e(){Object(y.a)(this,e),this.modals=[],this.containers=[]}return Object(g.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&E(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);j(t,e.mountNode,e.modalRef,r,!0);var o=T(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=T(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=P(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=T(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&E(e.modalRef,!0),j(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&E(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}]),e}();var N=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,l=e.disableRestoreFocus,c=void 0!==l&&l,s=e.getDoc,p=e.isEnabled,h=e.open,m=a.a.useRef(),v=a.a.useRef(null),b=a.a.useRef(null),y=a.a.useRef(),g=a.a.useRef(null),x=a.a.useCallback((function(e){g.current=u.a.findDOMNode(e)}),[]),w=Object(f.c)(t.ref,x);return a.a.useMemo((function(){h&&"undefined"!==typeof window&&(y.current=s().activeElement)}),[h]),a.a.useEffect((function(){if(h){var e=Object(d.a)(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){i||!p()||m.current?m.current=!1:g.current&&!g.current.contains(e.activeElement)&&g.current.focus()},n=function(t){!i&&p()&&9===t.keyCode&&e.activeElement===g.current&&(m.current=!0,t.shiftKey?b.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[r,i,c,p,h]),a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),a.a.cloneElement(t,{ref:w}),a.a.createElement("div",{tabIndex:0,ref:b,"data-test":"sentinelEnd"}))},_={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},M=a.a.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,l=e.open,u=Object(r.a)(e,["invisible","open"]);return l?a.a.createElement("div",Object(o.a)({"aria-hidden":!0,ref:t},u,{style:Object(o.a)({},_.root,{},i?_.invisible:{},{},u.style)})):null}));var A=new R,I=a.a.forwardRef((function(e,t){var n=Object(c.a)(),i=Object(s.a)({name:"MuiModal",props:Object(o.a)({},e),theme:n}),l=i.BackdropComponent,p=void 0===l?M:l,y=i.BackdropProps,g=i.children,x=i.closeAfterTransition,w=void 0!==x&&x,k=i.container,O=i.disableAutoFocus,S=void 0!==O&&O,C=i.disableBackdropClick,j=void 0!==C&&C,T=i.disableEnforceFocus,P=void 0!==T&&T,R=i.disableEscapeKeyDown,_=void 0!==R&&R,I=i.disablePortal,z=void 0!==I&&I,L=i.disableRestoreFocus,D=void 0!==L&&L,F=i.disableScrollLock,W=void 0!==F&&F,U=i.hideBackdrop,B=void 0!==U&&U,$=i.keepMounted,V=void 0!==$&&$,H=i.manager,K=void 0===H?A:H,q=i.onBackdropClick,Q=i.onClose,X=i.onEscapeKeyDown,Y=i.onRendered,G=i.open,J=Object(r.a)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Z=a.a.useState(!0),ee=Z[0],te=Z[1],ne=a.a.useRef({}),re=a.a.useRef(null),oe=a.a.useRef(null),ie=Object(f.c)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),le=function(){return Object(d.a)(re.current)},ue=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},ce=function(){K.mount(ue(),{disableScrollLock:W}),oe.current.scrollTop=0},se=Object(v.a)((function(){var e=function(e){return e="function"===typeof e?e():e,u.a.findDOMNode(e)}(k)||le().body;K.add(ue(),e),oe.current&&ce()})),de=a.a.useCallback((function(){return K.isTopModal(ue())}),[K]),fe=Object(v.a)((function(e){re.current=e,e&&(Y&&Y(),G&&de()?ce():E(oe.current,!0))})),pe=a.a.useCallback((function(){K.remove(ue())}),[K]);if(a.a.useEffect((function(){return function(){pe()}}),[pe]),a.a.useEffect((function(){G?se():ae&&w||pe()}),[G,pe,ae,w,se]),!V&&!G&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:b.a}),me={};return void 0===g.role&&(me.role=g.role||"document"),void 0===g.tabIndex&&(me.tabIndex=g.tabIndex||"-1"),ae&&(me.onEnter=Object(m.b)((function(){te(!1)}),g.props.onEnter),me.onExited=Object(m.b)((function(){te(!0),w&&pe()}),g.props.onExited)),a.a.createElement(h,{ref:fe,container:k,disablePortal:z},a.a.createElement("div",Object(o.a)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&de()&&(e.stopPropagation(),X&&X(e),!_&&Q&&Q(e,"escapeKeyDown"))},role:"presentation"},J,{style:Object(o.a)({},he.root,{},!G&&ee?he.hidden:{},{},J.style)}),B?null:a.a.createElement(p,Object(o.a)({open:G,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!j&&Q&&Q(e,"backdropClick"))}},y)),a.a.createElement(N,{disableEnforceFocus:P,disableAutoFocus:S,disableRestoreFocus:D,getDoc:le,isEnabled:de,open:G},a.a.cloneElement(g,me))))}));t.a=I},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(0),a=n.n(i),l=(n(5),n(3)),u=n(152),c=n(4),s=n(154),d=n(21),f=n(14),p=n(19),h=n(7),m={entering:{opacity:1},entered:{opacity:1}},v={enter:d.b.enteringScreen,exit:d.b.leavingScreen},b=a.a.forwardRef((function(e,t){var n=e.children,i=e.in,l=e.onEnter,u=e.onExit,c=e.style,d=e.timeout,b=void 0===d?v:d,y=Object(o.a)(e,["children","in","onEnter","onExit","style","timeout"]),g=Object(f.a)(),x=Object(h.c)(n.ref,t);return a.a.createElement(s.a,Object(r.a)({appear:!0,in:i,onEnter:function(e,t){Object(p.b)(e);var n=Object(p.a)({style:c,timeout:b},{mode:"enter"});e.style.webkitTransition=g.transitions.create("opacity",n),e.style.transition=g.transitions.create("opacity",n),l&&l(e,t)},onExit:function(e){var t=Object(p.a)({style:c,timeout:b},{mode:"exit"});e.style.webkitTransition=g.transitions.create("opacity",t),e.style.transition=g.transitions.create("opacity",t),u&&u(e)},timeout:b},y),(function(e,t){return a.a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||i?void 0:"hidden"},m[e],{},c,{},n.props.style),ref:x},t))}))})),y=a.a.forwardRef((function(e,t){var n=e.children,i=e.classes,u=e.className,c=e.invisible,s=void 0!==c&&c,d=e.open,f=e.transitionDuration,p=Object(o.a)(e,["children","classes","className","invisible","open","transitionDuration"]);return a.a.createElement(b,Object(r.a)({in:d,timeout:f},p),a.a.createElement("div",{className:Object(l.a)(i.root,u,s&&i.invisible),"aria-hidden":!0,ref:t},n))})),g=Object(c.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",touchAction:"none"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(y),x=n(8),w=n.n(x),k=n(37);function E(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var l=n.split("(")[1].split(")")[0].split(",");i=parseInt(l[4],10),a=parseInt(l[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(-").concat(r.left-i,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(-").concat(r.top-a,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var O={enter:d.b.enteringScreen,exit:d.b.leavingScreen},S=a.a.forwardRef((function(e,t){var n=e.children,i=e.direction,l=void 0===i?"down":i,u=e.in,c=e.onEnter,d=e.onEntering,m=e.onExit,v=e.onExited,b=e.style,y=e.timeout,g=void 0===y?O:y,x=Object(o.a)(e,["children","direction","in","onEnter","onEntering","onExit","onExited","style","timeout"]),S=Object(f.a)(),C=a.a.useRef(null),j=a.a.useCallback((function(e){C.current=w.a.findDOMNode(e)}),[]),T=Object(h.c)(n.ref,j),P=Object(h.c)(T,t),R=a.a.useCallback((function(){C.current&&E(l,C.current)}),[l]);return a.a.useEffect((function(){if(!u&&"down"!==l&&"right"!==l){var e=Object(k.a)((function(){C.current&&E(l,C.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[l,u]),a.a.useEffect((function(){u||R()}),[u,R]),a.a.createElement(s.a,Object(r.a)({onEnter:function(e,t){var n=C.current;E(l,n),Object(p.b)(n),c&&c(n,t)},onEntering:function(e,t){var n=C.current,o=Object(p.a)({timeout:g,style:b},{mode:"enter"});n.style.webkitTransition=S.transitions.create("-webkit-transform",Object(r.a)({},o,{easing:S.transitions.easing.easeOut})),n.style.transition=S.transitions.create("transform",Object(r.a)({},o,{easing:S.transitions.easing.easeOut})),n.style.webkitTransform="none",n.style.transform="none",d&&d(n,t)},onExit:function(){var e=C.current,t=Object(p.a)({timeout:g,style:b},{mode:"exit"});e.style.webkitTransition=S.transitions.create("-webkit-transform",Object(r.a)({},t,{easing:S.transitions.easing.sharp})),e.style.transition=S.transitions.create("transform",Object(r.a)({},t,{easing:S.transitions.easing.sharp})),E(l,e),m&&m(e)},onExited:function(){var e=C.current;e.style.webkitTransition="",e.style.transition="",v&&v(e)},appear:!0,in:u,timeout:g},x),(function(e,t){return a.a.cloneElement(n,Object(r.a)({ref:P,style:Object(r.a)({visibility:"exited"!==e||u?void 0:"hidden"},b,{},n.props.style)},t))}))})),C=n(94),j=n(6),T={left:"right",right:"left",top:"down",bottom:"up"};var P={enter:d.b.enteringScreen,exit:d.b.leavingScreen},R=a.a.forwardRef((function(e,t){var n=e.anchor,i=void 0===n?"left":n,c=e.BackdropProps,s=e.children,d=e.classes,p=e.className,h=e.elevation,m=void 0===h?16:h,v=e.ModalProps,b=(v=void 0===v?{}:v).BackdropProps,y=Object(o.a)(v,["BackdropProps"]),x=e.onClose,w=e.open,k=void 0!==w&&w,E=e.PaperProps,O=e.SlideProps,R=e.transitionDuration,N=void 0===R?P:R,_=e.variant,M=void 0===_?"temporary":_,A=Object(o.a)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","transitionDuration","variant"]),I=Object(f.a)(),z=a.a.useRef(!1);a.a.useEffect((function(){z.current=!0}),[]);var L=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?T[t]:t}(I,i),D=a.a.createElement(C.a,Object(r.a)({elevation:"temporary"===M?m:0,square:!0,className:Object(l.a)(d.paper,d["paperAnchor".concat(Object(j.a)(L))],"temporary"!==M&&d["paperAnchorDocked".concat(Object(j.a)(L))])},E),s);if("permanent"===M)return a.a.createElement("div",Object(r.a)({className:Object(l.a)(d.root,d.docked,p),ref:t},A),D);var F=a.a.createElement(S,Object(r.a)({in:k,direction:T[L],timeout:N,appear:z.current},O),D);return"persistent"===M?a.a.createElement("div",Object(r.a)({className:Object(l.a)(d.root,d.docked,p),ref:t},A),F):a.a.createElement(u.a,Object(r.a)({BackdropProps:Object(r.a)({},c,{},b,{transitionDuration:N}),BackdropComponent:g,className:Object(l.a)(d.root,d.modal,p),open:k,onClose:x,ref:t},A,y),F)}));t.a=Object(c.a)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(R)},function(e,t,n){"use strict";var r=n(13),o=n(12),i=(n(5),n(0)),a=n.n(i),l=n(8),u=n.n(l),c=!1,s=n(35),d="unmounted",f="exited",p="entering",h="entered",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=f,r.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?d:f,r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:f}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=u.a.findDOMNode(this);t===p?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:d})},n.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;!t&&!r||c?this.safeSetState({status:h},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,o),this.safeSetState({status:p},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:h},(function(){n.props.onEntered(e,o)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!c?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:f},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:f},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,n=t.children,o=Object(r.a)(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"===typeof n)return a.a.createElement(s.a.Provider,{value:null},n(e,o));var i=a.a.Children.only(n);return a.a.createElement(s.a.Provider,{value:null},a.a.cloneElement(i,o))},t}(a.a.Component);function v(){}m.contextType=s.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;t.a=m}]]); //# sourceMappingURL=2.a1981520.chunk.js.map
162,947.5
325,850
0.691732
0f6992aa8fc3a48ca14e2c323aebc318b180697e
2,997
dart
Dart
lib/gyroscope.dart
felipearbrandao/drone-control
7fc79c4293a2286fc7d05ecb37127da527e0f750
[ "Apache-2.0" ]
1
2019-10-23T13:29:23.000Z
2019-10-23T13:29:23.000Z
lib/gyroscope.dart
felipearbrandao/drone-control
7fc79c4293a2286fc7d05ecb37127da527e0f750
[ "Apache-2.0" ]
null
null
null
lib/gyroscope.dart
felipearbrandao/drone-control
7fc79c4293a2286fc7d05ecb37127da527e0f750
[ "Apache-2.0" ]
1
2020-03-11T00:19:07.000Z
2020-03-11T00:19:07.000Z
import 'package:dronese/widgets/drop_button.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:sensors/sensors.dart'; import 'home_page.dart'; class Gyro extends StatefulWidget { @override _GyroState createState() => _GyroState(); } class _GyroState extends State<Gyro> { double x = 0, y = 0, z = 0; @override Widget build(BuildContext context) { return Scaffold( drawer: SizedBox( width: 100, child: Drawer( child: DropButton(), ), ), appBar: AppBar( actions: <Widget>[ IconButton( icon: Icon(Icons.landscape), ), IconButton( icon: Icon(Icons.home), onPressed: () { Navigator.push( context, MaterialPageRoute(builder: (context) => HomePage())); }, ), IconButton( icon: Icon(Icons.settings_backup_restore), onPressed: () {}, ), ], title: Container( width: 200, color: Colors.green, child: Align(child: Text("GYROSCOPE")), ), centerTitle: true, ), body: Container( child: Stack( children: <Widget>[ Align( alignment: Alignment.bottomCenter, child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: <Widget>[ Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: <Widget>[ Text("x: "+x.toStringAsFixed(3)), SizedBox(width: 10,), Text("y: "+y.toStringAsFixed(3)), SizedBox(width: 10,), Text("z: "+z.toStringAsFixed(3)), ], ), RaisedButton( onPressed: () { gyroscopeEvents.listen((GyroscopeEvent event) { setState(() { x = event.x; y = event.y; z = event.z; print(event); }); }); }, child: Text("Start"), ), ], ), ), Align( alignment: Alignment(x, y), child: Container( width: 50, height: 50, decoration: BoxDecoration(shape: BoxShape.circle), child: Image( image: AssetImage("images/quadcopter.png"), )), ), ], ), ), ); } }
28.542857
80
0.415082
e43e7f4cda0505e48ea34f65a39979fe0d4a5b08
2,216
cpp
C++
src/PL_gen.cpp
ogoodwin505/BdNMC
3090857257104cffdc3c03f2c6c0c93a9850bfb3
[ "MIT" ]
null
null
null
src/PL_gen.cpp
ogoodwin505/BdNMC
3090857257104cffdc3c03f2c6c0c93a9850bfb3
[ "MIT" ]
null
null
null
src/PL_gen.cpp
ogoodwin505/BdNMC
3090857257104cffdc3c03f2c6c0c93a9850bfb3
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <memory> #include "Kinematics.h" #include "Distribution.h" #include "Particle_List.h" #include "sanfordwang.h" #include "BMPT_dist.h" #include "Parameter.h" using std::cout; using std::endl; int main(int argc, char* argv[]){ if(argc==2) parameter_file = argv[1]; else parameter_file = "../parameter.dat"; //------------------- // Read in parameters //------------------- std::ifstream parstream(parameter_file); Parameter * par;//should make this a unique_ptr try{ par = new Parameter(parstream); } catch(int e_int){ if(e_int==-1){ cerr << "Could not open " << parameter_file << ". Terminating run." << endl; parstream.close(); return -1; } if(e_int==-2){ cerr << "No particle_list_file supplied for particle_list distribution. Terminating run." << endl; parstream.close(); return -1; } else{ cerr << "Something unexpected went wrong. Terminating run." << endl; parstream.close(); return -1; } } catch(exception &e){ cerr << "Exception in " << e.what() << " thrown. Terminating run." << endl; parstream.close(); return -1; } if(par->Integrity()!=0){ cerr << "Missing parameters, terminating run. Please check previous error messages." << endl; parstream.close(); return -1; } //Initializing Random Number Generator if(par->Seed()>=0) Random(par->Seed()); else Random(); std::shared_ptr<Distribution> s = std::shared_ptr<Distribution>(new sanfordwang("pi0_sanfordwang")); std::shared_ptr<Distribution> s2 = std::shared_ptr<Distribution>(new BMPT(450,96)); double theta, mom, phi; int count = 0; /* for(int i=0; i<1e6; i++){ s->sample_momentum(mom, theta, phi); cout << cos(phi)*sin(theta)*mom << " " << sin(phi)*sin(theta)*mom << " " << mom*cos(theta) << " " << sqrt(mom*mom+0.134*0.134) << endl; }*/ for(int i=0; i<1e3; i++){ s2->sample_momentum(mom,theta,phi); if(theta<0.01&&mom>5) count++; } cout << (double)count/1e3 << endl; return 0; }
28.050633
137
0.570397
a4175c63e4d4f699c601636d424ddb26d35d5076
641
php
PHP
src/AlphaRPC/Common/Timer/SystemTimeProvider.php
leondg/alpharpc
cf162854500554c4ba8d39f2675de35a49c30ed0
[ "BSD-3-Clause" ]
1
2016-12-09T13:03:43.000Z
2016-12-09T13:03:43.000Z
src/AlphaRPC/Common/Timer/SystemTimeProvider.php
leondg/alpharpc
cf162854500554c4ba8d39f2675de35a49c30ed0
[ "BSD-3-Clause" ]
8
2015-04-02T16:15:06.000Z
2016-12-18T21:43:35.000Z
src/AlphaRPC/Common/Timer/SystemTimeProvider.php
leondg/alpharpc
cf162854500554c4ba8d39f2675de35a49c30ed0
[ "BSD-3-Clause" ]
4
2015-10-20T09:54:57.000Z
2019-07-20T17:02:05.000Z
<?php /** * This file is part of AlphaRPC (http://alpharpc.net/) * * @license BSD-3 (please see the LICENSE file distributed with this source code. * @copyright Copyright (c) 2010-2013, Alphacomm Group B.V. (http://www.alphacomm.nl/) */ namespace AlphaRPC\Common\Timer; class SystemTimeProvider implements ProviderInterface { /** * Get the microtime of the system. * * @return float */ public function getMicrotime() { return microtime(true); } /** * Get the time of the system. * * @return int */ public function getTime() { return time(); } }
19.424242
86
0.603744
ae9cc3cfa02be036725732a8ebc5a0e93e7b5027
968
cs
C#
Repositories/GestaoCookies.cs
linolino/RestauranteOn
110991e28986cc4b36a927714da66a91dd6d030e
[ "MIT" ]
null
null
null
Repositories/GestaoCookies.cs
linolino/RestauranteOn
110991e28986cc4b36a927714da66a91dd6d030e
[ "MIT" ]
null
null
null
Repositories/GestaoCookies.cs
linolino/RestauranteOn
110991e28986cc4b36a927714da66a91dd6d030e
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace RestauranteOnline.Repositórios { public class GestaoCookies { public static bool ApagarCookie() { var usuario = HttpContext.Current.Request.Cookies["CookieUsuario"]; if (usuario == null) { return false; } else { HttpContext.Current.Response.Cookies[usuario.Name].Expires = DateTime.Now.AddDays(-1); return true; } } public static void CriarCookie(long IDUsuario) { HttpCookie CookieUsuario = new HttpCookie("CookieUsuario"); CookieUsuario.Values["IDUsuario"] = IDUsuario.ToString(); CookieUsuario.Expires = DateTime.Now.AddDays(1); HttpContext.Current.Response.Cookies.Add(CookieUsuario); } } }
23.047619
102
0.584711
0dd4bebabab0e039a1acd5b7821183fd694b5073
542
dart
Dart
app/lib/FutureResponse.dart
DiUS/dius-mentor_boris_coffee-flutter
466bf2fb6a769723a3793caa4365da93ec607ce8
[ "MIT" ]
null
null
null
app/lib/FutureResponse.dart
DiUS/dius-mentor_boris_coffee-flutter
466bf2fb6a769723a3793caa4365da93ec607ce8
[ "MIT" ]
null
null
null
app/lib/FutureResponse.dart
DiUS/dius-mentor_boris_coffee-flutter
466bf2fb6a769723a3793caa4365da93ec607ce8
[ "MIT" ]
null
null
null
import 'Response.dart'; class FutureResponse<T> extends Response<T> { final Future<T> _future; FutureResponse(this._future); FutureResponse<B> map<B>(B func(T)) { try { return FutureResponse(_future .then((value) => func(value)) .catchError((error) => throw Exception(error)) ); } catch (e) { return FutureResponse(Future.error(e)); } } Future<Response<T>> get() async { try { return Success(await _future); } catch (e) { return Error(e.toString()); } } }
20.074074
54
0.590406
3f9e64efbe21fbf90be974eebf1290fbff55ac58
537
php
PHP
app/Models/Milestone.php
HustleWorks/laravel-projecthub
8c6ea28a4c6762b1ad7cab90fb86306c46b284b6
[ "MIT" ]
null
null
null
app/Models/Milestone.php
HustleWorks/laravel-projecthub
8c6ea28a4c6762b1ad7cab90fb86306c46b284b6
[ "MIT" ]
null
null
null
app/Models/Milestone.php
HustleWorks/laravel-projecthub
8c6ea28a4c6762b1ad7cab90fb86306c46b284b6
[ "MIT" ]
null
null
null
<?php namespace App\Models; class Milestone extends BaseCascadeModel { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'id' ]; /** * Get the milestone's item. */ public function hubItems() { return $this->morphOne('App\Models\HubItem', 'hub_itemable'); } /** * Get the milestone's files. */ public function files() { return $this->morphMany('App\Models\HubFile', 'hub_fileable'); } }
16.78125
70
0.547486
904a20ed9f68feb7da7a589d7c2a16fd755b7efd
185
rb
Ruby
third/3.more.practice.rb
zinderud/rubyRail
24b5679b5927592c8f2b85aeef66a166cc1d2bc7
[ "Apache-2.0" ]
null
null
null
third/3.more.practice.rb
zinderud/rubyRail
24b5679b5927592c8f2b85aeef66a166cc1d2bc7
[ "Apache-2.0" ]
null
null
null
third/3.more.practice.rb
zinderud/rubyRail
24b5679b5927592c8f2b85aeef66a166cc1d2bc7
[ "Apache-2.0" ]
null
null
null
module Zin def Zin.ayir(birsey) kelime=birsey.split(' ') return kelime end end yazbabana="sadece sade" se='dfssdf fdsf' kelime=Zin.ayir(yazbabana) p kelime p Zin.ayir(se)
15.416667
28
0.702703
eaec0cb8fc6a6c4f1179eb84212a941114cc4b9e
861
rb
Ruby
spec/views/collections/_show_document_list_menu.html.erb_spec.rb
ualbertalib/sufia7
02182b8dbce028b5052b53940cc358ccd1ee77a2
[ "Apache-2.0" ]
1
2016-07-26T21:04:29.000Z
2016-07-26T21:04:29.000Z
spec/views/collections/_show_document_list_menu.html.erb_spec.rb
ualbertalib/sufia7
02182b8dbce028b5052b53940cc358ccd1ee77a2
[ "Apache-2.0" ]
null
null
null
spec/views/collections/_show_document_list_menu.html.erb_spec.rb
ualbertalib/sufia7
02182b8dbce028b5052b53940cc358ccd1ee77a2
[ "Apache-2.0" ]
null
null
null
require 'spec_helper' describe 'collections/_show_document_list_menu.html.erb', type: :view do context 'when user logged in displaying the collections of current user' do let(:user) { create :user } let(:work) { build(:public_work, user: user, id: "1234") } let(:collection) { build(:work, user: user) } before { collection.members << work } it "displays the action list in individual work drop down" do render(partial: 'collections/show_document_list_menu.html.erb', locals: { id: work.id, current_user: user }) expect(rendered).to have_content 'Select an action' expect(rendered).not_to have_content 'Single-Use Link to File' expect(rendered).to have_content 'Edit' expect(rendered).not_to have_content 'Download File' expect(rendered).to have_content 'Highlight Work on Profile' end end end
41
114
0.710801
b8f446958945c682f6952cfa6be86aa9b885363f
4,677
h
C
BaseOCExample/Classes/Other/Macro/SQScreenMacro.h
sundayios/BaseOCExample
7149ac66ab80a09c2072d1135e2d92c67f07156b
[ "MIT" ]
null
null
null
BaseOCExample/Classes/Other/Macro/SQScreenMacro.h
sundayios/BaseOCExample
7149ac66ab80a09c2072d1135e2d92c67f07156b
[ "MIT" ]
null
null
null
BaseOCExample/Classes/Other/Macro/SQScreenMacro.h
sundayios/BaseOCExample
7149ac66ab80a09c2072d1135e2d92c67f07156b
[ "MIT" ]
null
null
null
// // SQScreenMacro.h // BaseOCExample // // Created by mac126 on 2019/6/4. // Copyright © 2019 mac126. All rights reserved. // #ifndef SQScreenMacro_h #define SQScreenMacro_h #define DocumentPath NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0] #define LogsPath [DocumentPath stringByAppendingPathComponent:@"logs"] #define CachesPath NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)[0] // 根据屏幕尺寸判断是否 iPhone X #define JudgePhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO) // 状态栏高度 #define kStatusBarSystemHeight [[UIApplication sharedApplication] statusBarFrame].size.height // 导航条高度 #define kNavBarHeight 44.0 // 状态栏+导航条 #define kTopSystemHeight (kStatusBarSystemHeight + kNavBarHeight) // 注意:应直接获取系统的tabbar高度,若没有用系统tabbar,建议判断屏幕高度;判断状态栏高度的方法不妥,如果正在通话状态栏会变高,导致判断异常 #define kTabBarSystemHeight self.tabBarController.tabBar.frame.size.height #define ISIPhoneSE ([UIScreen mainScreen].bounds.size.width == 320) #define ISIPhone6 ([UIScreen mainScreen].bounds.size.width == 375) #define ISPlus ([UIScreen mainScreen].bounds.size.width == 414) #define kScale ([UIScreen mainScreen].bounds.size.width/375) #define ISIPhoneX ([UIScreen mainScreen].bounds.size.height == 812) //导航栏高度 #define NavigationHeight ([UIScreen mainScreen].bounds.size.height == 812.0 ? 88 : 64) //状态栏高度 #define KStatusBarSQHeight ([UIScreen mainScreen].bounds.size.height == 812.0 ? 44 : 20) /*TabBar高度*/ #define kTabBarHeight ([UIScreen mainScreen].bounds.size.height == 812.0 ? 83 : 49) #define kWJScreenHeight [UIScreen mainScreen].bounds.size.height //设置你底部的按钮按钮底部距离底部34 #define BottomHeight (kWJScreenHeight == 812.0 ? 34 : 0) /// 高度系数 812.0 是iPhoneX的高度尺寸,667.0表示是iPhone 8 的高度,如果你觉的它会变化,那我也很无奈 #define kWJHeightCoefficient (kWJScreenHeight == 812.0 ? 667.0/667.0 : kWJScreenHeight/667.0) //判断是否是ipad #define isPad ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) //判断iPhone4系列 #define kiPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) && !isPad : NO) //判断iPhone5系列 #define kiPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) && !isPad : NO) //判断iPhone6 6s 7系列 #define kiPhone6 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) && !isPad : NO) //判断iPhone6p 6sp 7p系列 #define kiPhone6Plus ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size) && !isPad : NO) //判断iPhoneX,Xs(iPhoneX,iPhoneXs) #define IS_IPHONE_X ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) && !isPad : NO) //判断iPhoneXr #define IS_IPHONE_Xr ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(828, 1792), [[UIScreen mainScreen] currentMode].size) && !isPad : NO) //判断iPhoneXsMax #define IS_IPHONE_Xs_Max ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1242, 2688), [[UIScreen mainScreen] currentMode].size)&& !isPad : NO) //判断iPhoneX所有系列 #define IS_PhoneXAll (IS_IPHONE_X || IS_IPHONE_Xr || IS_IPHONE_Xs_Max) #define k_Height_NavContentBar 44.0f #define k_Height_StatusBar (IS_PhoneXAll? 44.0 : 20.0) #define k_Height_NavBar (IS_PhoneXAll ? 88.0 : 64.0) #define k_Height_TabBar (IS_PhoneXAll ? 83.0 : 49.0) #define kScreenHeight [UIScreen mainScreen].bounds.size.height #define kScreenWidth [UIScreen mainScreen].bounds.size.width //判断是否是iPhoneX #define kIs_iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) #define kIs_iPhoneX kScreenWidth >= 375.0f && kScreenHeight >= 812.0f && kIs_iphone /*状态栏高度*/ #define kStatusBarHeight (CGFloat)(kIs_iPhoneX?(44.0):(20.0)) /*导航栏高度*/ #define kNavBarHeight (44) /*状态栏和导航栏总高度*/ #define kNavBarAndStatusBarHeight (CGFloat)(kIs_iPhoneX?(88.0):(64.0)) /*TabBar高度*/ //#define kTabBarHeight (CGFloat)(kIs_iPhoneX?(49.0 + 34.0):(49.0)) /*顶部安全区域远离高度*/ #define kTopBarSafeHeight (CGFloat)(kIs_iPhoneX?(44.0):(0)) /*底部安全区域远离高度*/ #define kBottomSafeHeight (CGFloat)(kIs_iPhoneX?(34.0):(0)) /*iPhoneX的状态栏高度差值*/ #define kTopBarDifHeight (CGFloat)(kIs_iPhoneX?(24.0):(0)) /*导航条和Tabbar总高度*/ #define kNavAndTabHeight (kNavBarAndStatusBarHeight + kTabBarHeight) #endif /* SQScreenMacro_h */
46.77
187
0.779987
797b8685969e05df9c041723653502f29792b917
936
php
PHP
tests/Amqp/Fixture/FailureTransactionWithFatalError/ChannelConfiguration.php
ecotoneframework/amqp
883dde1b5f290633eafb19951e13721a149d65be
[ "MIT" ]
1
2022-02-07T17:08:33.000Z
2022-02-07T17:08:33.000Z
tests/Amqp/Fixture/FailureTransactionWithFatalError/ChannelConfiguration.php
ecotoneframework/amqp
883dde1b5f290633eafb19951e13721a149d65be
[ "MIT" ]
null
null
null
tests/Amqp/Fixture/FailureTransactionWithFatalError/ChannelConfiguration.php
ecotoneframework/amqp
883dde1b5f290633eafb19951e13721a149d65be
[ "MIT" ]
null
null
null
<?php namespace Test\Ecotone\Amqp\Fixture\FailureTransactionWithFatalError; use Ecotone\Amqp\AmqpBackedMessageChannelBuilder; use Ecotone\Amqp\Configuration\AmqpConfiguration; use Ecotone\Messaging\Attribute\ServiceContext; use Ecotone\Messaging\Attribute\Extension; use Ecotone\Messaging\Endpoint\PollingMetadata; class ChannelConfiguration { const QUEUE_NAME = "placeOrder"; #[ServiceContext] public function registerCommandChannel(): array { return [ AmqpBackedMessageChannelBuilder::create(self::QUEUE_NAME) ->withReceiveTimeout(1), PollingMetadata::create(self::QUEUE_NAME) ->setHandledMessageLimit(1) ->setExecutionTimeLimitInMilliseconds(1), AmqpConfiguration::createWithDefaults() ->withTransactionOnAsynchronousEndpoints(true) ->withTransactionOnCommandBus(true) ]; } }
30.193548
69
0.70406
6612f9a789256d62ab44e2bf1f83424dbef24a36
6,525
py
Python
ROAR_iOS/ios_runner.py
fedepal450/ROAR-RL_FullControl
99c86b5d2f9da626098c0c13c63cbaf63d78792f
[ "Apache-2.0" ]
1
2022-02-06T23:51:52.000Z
2022-02-06T23:51:52.000Z
ROAR_iOS/ios_runner.py
fedepal450/ROAR-RL_FullControl
99c86b5d2f9da626098c0c13c63cbaf63d78792f
[ "Apache-2.0" ]
null
null
null
ROAR_iOS/ios_runner.py
fedepal450/ROAR-RL_FullControl
99c86b5d2f9da626098c0c13c63cbaf63d78792f
[ "Apache-2.0" ]
1
2021-12-12T21:03:55.000Z
2021-12-12T21:03:55.000Z
from ROAR.utilities_module.data_structures_models import SensorsData from ROAR.utilities_module.vehicle_models import Vehicle, VehicleControl from ROAR.agent_module.agent import Agent from ROAR.utilities_module.data_structures_models import Transform from ROAR_iOS.config_model import iOSConfig from Bridges.ios_bridge import iOSBridge import logging import pygame from typing import Optional, Tuple from ROAR_iOS.manual_control import ManualControl from ROAR_iOS.depth_cam_streamer import DepthCamStreamer from ROAR_iOS.rgb_camera_streamer import RGBCamStreamer from ROAR_iOS.transform_streamer import TransformStreamer from ROAR_iOS.control_streamer import ControlStreamer import numpy as np import cv2 import qrcode from ROAR.utilities_module.utilities import get_ip class iOSRunner: def __init__(self, agent: Agent, ios_config: iOSConfig): self.agent = agent self.ios_config = ios_config self.ios_bridge = iOSBridge() self.pygame_display_width = 800 self.pygame_display_height = 640 self.logger = logging.getLogger("iOS Runner") self.display: Optional[pygame.display] = None self.controller = ManualControl(max_throttle=self.ios_config.max_throttle, max_steering=self.ios_config.max_steering) self.setup_pygame() self.world_cam_streamer = RGBCamStreamer(host=self.ios_config.ios_ip_addr, port=self.ios_config.ios_port, name=self.ios_config.world_cam_route_name, resize=(self.pygame_display_height, self.pygame_display_width) ) self.depth_cam_streamer = DepthCamStreamer(host=self.ios_config.ios_ip_addr, port=self.ios_config.ios_port, name=self.ios_config.depth_cam_route_name, threaded=True, update_interval=0.1, ) self.transform_streamer = TransformStreamer(host=self.ios_config.ios_ip_addr, port=self.ios_config.ios_port, name=self.ios_config.transform_route_name) self.control_streamer = ControlStreamer(host=self.ios_config.ios_ip_addr, port=self.ios_config.ios_port, name=self.ios_config.control_route_name) self.logger.info("iOS Runner Initialized") def auto_configure_screen_size(self, mode_idx: Optional[int] = 0): modes = pygame.display.list_modes() # big -> small self.pygame_display_width, self.pygame_display_height = 1080, 640 def setup_pygame(self): """ Initiate pygame Returns: """ pygame.init() pygame.font.init() self.auto_configure_screen_size(mode_idx=-1) self.display = pygame.display.set_mode((self.pygame_display_width, self.pygame_display_height)) self.logger.debug("PyGame initiated") def show_qr_code(self): cv2.imshow("qr code", np.array(qrcode.make(f"{get_ip()}").convert('RGB'))) cv2.waitKey(1000) cv2.destroyWindow("qr code") def start_game_loop(self, auto_pilot=False): self.logger.info("Starting Game loop") # self.agent.add_threaded_module(self.transform_streamer) # self.agent.add_threaded_module(self.depth_cam_streamer) self.agent.add_threaded_module(self.world_cam_streamer) try: self.agent.start_module_threads() clock = pygame.time.Clock() should_continue = True while should_continue: clock.tick_busy_loop(60) should_continue, control = self.update_pygame(clock=clock) sensor_data, vehicle = self.convert_data() agent_control = self.agent.run_step(vehicle=vehicle, sensors_data=sensor_data) if auto_pilot: control = self.ios_bridge.convert_control_from_agent_to_source(agent_control) self.control_streamer.send(control) except Exception as e: self.logger.error(f"Something bad happend {e}") finally: self.on_finish() def convert_data(self): try: sensor_data: SensorsData = \ self.ios_bridge.convert_sensor_data_from_source_to_agent( { "front_rgb": self.world_cam_streamer.curr_image, "front_depth": self.depth_cam_streamer.curr_image, } ) vehicle = self.ios_bridge.convert_vehicle_from_source_to_agent( { "transform": self.transform_streamer.transform, } ) return sensor_data, vehicle except Exception as e: self.logger.error(f"Cannot convert data: {e}") return SensorsData(), Vehicle() def on_finish(self): self.logger.info("Finishing...") self.control_streamer.send(VehicleControl()) self.agent.shutdown_module_threads() def update_pygame(self, clock) -> Tuple[bool, VehicleControl]: """ Update the pygame window, including parsing keypress Args: clock: pygame clock Returns: bool - whether to continue the game VehicleControl - the new VehicleControl cmd by the keyboard """ if self.display is not None and self.agent.front_rgb_camera.data is not None: frame = self.agent.front_rgb_camera.data.copy() if self.ios_config.ar_mode: frame = cv2.rotate(frame, cv2.ROTATE_90_COUNTERCLOCKWISE) reshaped = cv2.resize(frame, (self.pygame_display_height, self.pygame_display_width)) data = cv2.flip(cv2.cvtColor(reshaped, cv2.COLOR_BGR2RGB), 0) pygame.surfarray.blit_array(self.display, data) pygame.display.flip() return self.controller.parse_events(clock=clock)
45
97
0.596015
45d4034caa65a7276e5757a8880ec1388027ee1f
1,796
py
Python
ansible/roles/sf-logserver/meta/sfconfig.py
softwarefactory-project/sf-conf
965b46df87608db5c847cd224e59972877227a99
[ "Apache-2.0" ]
1
2019-02-26T13:25:17.000Z
2019-02-26T13:25:17.000Z
ansible/roles/sf-logserver/meta/sfconfig.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
null
null
null
ansible/roles/sf-logserver/meta/sfconfig.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
null
null
null
# 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 sfconfig.components import Component class LogServer(Component): def prepare(self, args): super(LogServer, self).prepare(args) args.glue["loguser_authorized_keys"] = [] def configure(self, args, host): self.get_or_generate_ssh_key(args, "zuul_logserver_rsa") args.glue["logservers"].append({ "name": "sflogs", "host": args.glue["logserver_host"], "user": "loguser", "path": "/var/www/logs", }) if args.glue["logserver_host"] != args.glue["install_server_host"]: args.glue.setdefault("zuul_ssh_known_hosts", []).append({ "host_packed": args.glue["logserver_host"], "host": args.glue["logserver_host"], "port": 22 }) args.glue["logs_expiry"] = args.sfconfig["logs"]["expiry"] args.glue["loguser_authorized_keys"].append( args.glue["zuul_logserver_rsa_pub"]) # When logserver is hosted on the gateway, we can use fqdn instead args.glue["logserver_hostname"] = args.glue["logserver_host"] if args.glue["logserver_host"] == args.glue["gateway_host"]: args.glue["logserver_hostname"] = args.sfconfig["fqdn"]
42.761905
75
0.64922
c3d233a4868cd706e4a6b13f7b7d45706ab59bdc
4,115
cs
C#
src/WPFDevelopers/Controls/CutImage/DragDrop.cs
aheng2/WPFDevelopers
8eae31abaec198b28bcb09430f03db01090e12d4
[ "MIT" ]
143
2021-12-16T03:36:03.000Z
2022-03-31T09:25:23.000Z
src/WPFDevelopers/Controls/CutImage/DragDrop.cs
bingcaihuang/WPFDevelopers
8eae31abaec198b28bcb09430f03db01090e12d4
[ "MIT" ]
1
2022-02-09T11:29:37.000Z
2022-02-11T03:40:00.000Z
src/WPFDevelopers/Controls/CutImage/DragDrop.cs
bingcaihuang/WPFDevelopers
8eae31abaec198b28bcb09430f03db01090e12d4
[ "MIT" ]
29
2021-12-20T08:07:48.000Z
2022-03-27T14:23:10.000Z
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; namespace WPFDevelopers.Controls { [TemplatePart(Name = ThumbTemplateName, Type = typeof(Thumb))] [TemplatePart(Name = ThumbRightBottomTemplateName, Type = typeof(Thumb))] public class DragDrop : Control { private const string ThumbTemplateName = "PART_Rect"; private const string ThumbRightBottomTemplateName = "PART_RectRightBottom"; private Thumb _thumb; private Thumb _rectRightBottomThumb; public event Action UpdateImageEvent; #region 依赖属性 public static readonly DependencyProperty ParentMaxWidthProperty = DependencyProperty.Register("ParentMaxWidth", typeof(double), typeof(DragDrop), new PropertyMetadata(null)); public double ParentMaxWidth { get { return (double)this.GetValue(ParentMaxWidthProperty); } set { this.SetValue(ParentMaxWidthProperty, value); } } public static readonly DependencyProperty ParentMaxHeightProperty = DependencyProperty.Register("ParentMaxHeight", typeof(double), typeof(DragDrop), new PropertyMetadata(null)); public double ParentMaxHeight { get { return (double)this.GetValue(ParentMaxHeightProperty); } set { this.SetValue(ParentMaxHeightProperty, value); } } #endregion public override void OnApplyTemplate() { base.OnApplyTemplate(); _thumb = GetTemplateChild(ThumbTemplateName) as Thumb; _rectRightBottomThumb = GetTemplateChild(ThumbRightBottomTemplateName) as Thumb; RegisterEventListener(); } protected virtual void RegisterEventListener() { _thumb.DragDelta += OnDragDeltaHandler; _rectRightBottomThumb.DragDelta += OnRightBottomDragDeltaHandler; } static DragDrop() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DragDrop), new FrameworkPropertyMetadata(typeof(DragDrop))); } public System.Drawing.Rectangle GetCutRectangle() { return new System.Drawing.Rectangle((int)Canvas.GetLeft(this), (int)Canvas.GetTop(this), (int)this.ActualWidth, (int)this.ActualHeight); } #region 中间拖动 private void OnDragDeltaHandler(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e) { double left = Canvas.GetLeft(this) + e.HorizontalChange; double top = Canvas.GetTop(this) + e.VerticalChange; if (left < 0) left = 0; if (top < 0) top = 0; if (left + this.Width > this.ParentMaxWidth) left = this.ParentMaxWidth - this.Width; if (top + this.Height > this.ParentMaxHeight) top = this.ParentMaxHeight - this.Height; Canvas.SetLeft(this, left); Canvas.SetTop(this, top); if (UpdateImageEvent != null) { UpdateImageEvent(); } } #endregion #region 右下点拖动 private void OnRightBottomDragDeltaHandler(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e) { if (this.Width + e.HorizontalChange > 0) this.Width += e.HorizontalChange; double left = Canvas.GetLeft(this); if (left + this.Width > this.ParentMaxWidth) { this.Width = this.ParentMaxWidth - left; } if (this.Height + e.VerticalChange > 0) this.Height += e.VerticalChange; double top = Canvas.GetTop(this); if (top + this.Height > this.ParentMaxHeight) { this.Height = this.ParentMaxHeight - top; } if (UpdateImageEvent != null) { UpdateImageEvent(); } } #endregion } }
35.474138
148
0.598056
568fdfd2eb6d35f45e89261ed491dc0384c7a07f
120
rs
Rust
src/entity/mod.rs
Micutio/inn
09dd91cfb927eb7e26345bc7f22166fa2a6d69a4
[ "MIT" ]
38
2019-07-19T12:27:17.000Z
2022-03-10T15:23:08.000Z
src/entity/mod.rs
Micutio/inn
09dd91cfb927eb7e26345bc7f22166fa2a6d69a4
[ "MIT" ]
3
2020-11-17T09:52:44.000Z
2022-03-27T17:22:34.000Z
src/entity/mod.rs
Micutio/inn
09dd91cfb927eb7e26345bc7f22166fa2a6d69a4
[ "MIT" ]
3
2019-07-30T02:03:29.000Z
2022-01-03T14:01:16.000Z
pub mod act; pub mod ai; pub mod control; pub mod genetics; pub mod inventory; pub mod object; pub use object::Object;
13.333333
23
0.741667
3fa96ec3213f8d6b9abb8130c883cf0341e8267b
7,318
swift
Swift
MyGithubUserSearch/Views/UserTableViewCell.swift
jinuman/github-user-search-ios
7cfe841d914c0d72c1907af7f0fa313dcba54778
[ "MIT" ]
4
2019-05-03T14:41:28.000Z
2020-10-20T15:24:09.000Z
MyGithubUserSearch/Views/UserTableViewCell.swift
jinuman/github-user-search-ios
7cfe841d914c0d72c1907af7f0fa313dcba54778
[ "MIT" ]
null
null
null
MyGithubUserSearch/Views/UserTableViewCell.swift
jinuman/github-user-search-ios
7cfe841d914c0d72c1907af7f0fa313dcba54778
[ "MIT" ]
1
2019-08-13T21:01:51.000Z
2019-08-13T21:01:51.000Z
// // UserTableViewCell.swift // MyGithubUserSearch // // Created by Jinwoo Kim on 06/05/2019. // Copyright © 2019 jinuman. All rights reserved. // import UIKit import RxSwift import RxCocoa import RxDataSources import ReactorKit class UserTableViewCell: UITableViewCell, View { typealias Reactor = UserCellReactor // MARK: - Properties // MARK: UI private let tapGestureByImage: UITapGestureRecognizer = UITapGestureRecognizer() private let tapGestureByLabel: UITapGestureRecognizer = UITapGestureRecognizer() private lazy var profileImageView: UIImageView = { let imageView = UIImageView() imageView.contentMode = .scaleAspectFill imageView.clipsToBounds = true imageView.isUserInteractionEnabled = true imageView.layer.cornerRadius = Metric.profileImageSize.width / 2.0 imageView.addGestureRecognizer(self.tapGestureByImage) return imageView }() private lazy var usernameLabel: UILabel = { let label = UILabel() label.font = UIFont.boldSystemFont(ofSize: 14) label.textColor = .black label.isUserInteractionEnabled = true label.addGestureRecognizer(tapGestureByLabel) return label }() private let scoreLabel: UILabel = { let label = UILabel() label.font = UIFont.systemFont(ofSize: 12) label.textColor = .gray return label }() typealias OrganizationDataSource = RxCollectionViewSectionedReloadDataSource<OrganizationSectionModel> private let dataSource = OrganizationDataSource(configureCell: { (dataSource, collectionView, indexPath, item) -> UICollectionViewCell in let cell = collectionView.dequeueReusableCell( cellType: OrganizationCell.self, for: indexPath ) if let url = URL(string: item.organizationImageUrl) { cell.organizationImageView.setImage(with: url) } return cell }) private lazy var organizationCollectionView: UICollectionView = { let layout = UICollectionViewFlowLayout() layout.scrollDirection = .horizontal let collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout) collectionView.backgroundColor = .white collectionView.register([OrganizationCell.self]) collectionView.alwaysBounceHorizontal = true collectionView.showsHorizontalScrollIndicator = false return collectionView }() // MARK: General var disposeBag: DisposeBag = DisposeBag() var didTapCellItem: ((Bool, UITableViewCell) -> ())? private var isTapped: Bool = false // MARK: - Initializing override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) self.initializeLayout() } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func layoutSubviews() { super.layoutSubviews() let inset: CGFloat = Metric.edgeInset self.contentView.frame = self.contentView.frame.inset( by: UIEdgeInsets(top: inset / 2, left: inset, bottom: inset / 2, right: inset) ) } override func prepareForReuse() { super.prepareForReuse() self.profileImageView.image = nil self.usernameLabel.text = nil self.scoreLabel.text = nil // self.reactor = nil // self.disposeBag = DisposeBag() } // MARK: - Binding func bind(reactor: UserCellReactor) { self.setupCell(with: reactor) self.organizationCollectionView.rx.setDelegate(self) .disposed(by: disposeBag) // Action Binding Observable.of(self.tapGestureByImage.rx.event, self.tapGestureByLabel.rx.event) .merge() .withLatestFrom(reactor.state) .map { $0.isTapped } .filter { $0 == false } .map { _ in reactor.currentState.userInfo.organizationsUrl} .map { Reactor.Action.updateOrganizationUrl($0) } .bind(to: reactor.action) .disposed(by: disposeBag) // State Binding reactor.state .map { $0.organizationItems } .distinctUntilChanged() .filter { $0.isEmpty == false } .map { [OrganizationSectionModel(items: $0)] } .observeOn(MainScheduler.asyncInstance) .bind(to: self.organizationCollectionView.rx.items(dataSource: self.dataSource)) .disposed(by: disposeBag) reactor.state .map { $0.organizationItems } .filter { !$0.isEmpty } .withLatestFrom(reactor.state) .map { $0.isTapped } .subscribe(onNext: { [weak self] isTapped in guard let `self` = self else { return } self.didTapCellItem?(isTapped, self) self.isTapped = isTapped }) .disposed(by: disposeBag) } // MARK: - Methods private func initializeLayout() { let stackView = UIStackView(arrangedSubviews: [ self.usernameLabel, self.scoreLabel ]) stackView.axis = .vertical stackView.distribution = .fillEqually stackView.spacing = Metric.contentSpacing self.contentView.addSubviews([ self.profileImageView, stackView, self.organizationCollectionView ]) self.profileImageView.snp.makeConstraints { $0.top.leading.equalToSuperview() $0.size.equalTo(Metric.profileImageSize) } stackView.snp.makeConstraints { $0.top.trailing.equalToSuperview() $0.leading.equalTo(self.profileImageView.snp.trailing).offset(Metric.profileSpacing) } self.organizationCollectionView.snp.makeConstraints { $0.top.equalTo(self.profileImageView.snp.bottom).offset(Metric.orgVerticalSpacing) $0.leading.trailing.bottom.equalToSuperview() } } private func setupCell(with reactor: UserCellReactor) { let userInfo: UserInfo = reactor.currentState.userInfo guard let profileImageUrl = URL(string: userInfo.profileImageUrl) else { return } #warning("뭔가 개선이 필요하다..너무 많이 불린다.") self.profileImageView.setImage(with: profileImageUrl) self.usernameLabel.text = userInfo.username let scoreText: String = "score: \(userInfo.score.description)" self.scoreLabel.text = scoreText } } extension UserTableViewCell: UICollectionViewDelegateFlowLayout { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { return isTapped ? Metric.orgImageSize : .zero } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { return Metric.orgItemSpacing } }
34.356808
170
0.635556
276406d94e6bcc064e6e0ae635a78b62d3f2e7d9
2,754
lua
Lua
data/colors/textadept.lua
Jipok/lite-xl
61379a9ab84d6aa79b2aee77f0edceb3223dd563
[ "MIT" ]
4
2020-05-25T13:56:46.000Z
2020-06-17T08:30:40.000Z
data/colors/textadept.lua
franko/lite
e78451322276098d0dd66e3e82db8c304ebbad74
[ "MIT" ]
null
null
null
data/colors/textadept.lua
franko/lite
e78451322276098d0dd66e3e82db8c304ebbad74
[ "MIT" ]
null
null
null
local b05 = 'rgba(0,0,0,0.5)' local red = '#994D4D' local b80 = '#333333' local orange = '#B3661A' local b60 = '#808080' local green = '#52994D' local b40 = '#ADADAD' local teal = '#4D9999' local b20 = '#CECECE' local blue = '#1A66B3' local b00 = '#E6E6E6' local magenta = '#994D99' --------------------------=-------------------------- local style = require 'core.style' local common = require 'core.common' --------------------------=-------------------------- style.line_highlight = { common.color(b20) } style.background = { common.color(b00) } style.background2 = { common.color(b20) } style.background3 = { common.color(b20) } style.text = { common.color(b60) } style.caret = { common.color(b80) } style.accent = { common.color(b80) } style.dim = { common.color(b60) } style.divider = { common.color(b40) } style.selection = { common.color(b40) } style.line_number = { common.color(b60) } style.line_number2 = { common.color(b80) } style.scrollbar = { common.color(b40) } style.scrollbar2 = { common.color(b60) } style.nagbar = { common.color(red) } style.nagbar_text = { common.color(b00) } style.nagbar_dim = { common.color(b05) } --------------------------=-------------------------- style.syntax = {} style.syntax['normal'] = { common.color(b80) } style.syntax['symbol'] = { common.color(b80) } style.syntax['comment'] = { common.color(b60) } style.syntax['keyword'] = { common.color(blue) } style.syntax['keyword2'] = { common.color(red) } style.syntax['number'] = { common.color(teal) } style.syntax['literal'] = { common.color(blue) } style.syntax['string'] = { common.color(green) } style.syntax['operator'] = { common.color(magenta) } style.syntax['function'] = { common.color(blue) } --------------------------=-------------------------- style.syntax.paren1 = { common.color(magenta) } style.syntax.paren2 = { common.color(orange) } style.syntax.paren3 = { common.color(teal) } style.syntax.paren4 = { common.color(blue) } style.syntax.paren5 = { common.color(red) } --------------------------=-------------------------- style.lint = {} style.lint.info = { common.color(blue) } style.lint.hint = { common.color(green) } style.lint.warning = { common.color(red) } style.lint.error = { common.color(orange) }
52.961538
53
0.486202
72670d6ec8dfeb3d9fe4ed4626712aec72e5f917
2,340
kt
Kotlin
app/src/main/java/com/example/clone_daum/ui/main/navigation/NavigationViewModel.kt
aucd29/clone-daum
759e4a0bbb96578a47cccf591015eb3b715cb3dc
[ "Apache-2.0" ]
9
2018-12-20T12:42:28.000Z
2020-02-13T08:26:44.000Z
app/src/main/java/com/example/clone_daum/ui/main/navigation/NavigationViewModel.kt
aucd29/clone-daum
759e4a0bbb96578a47cccf591015eb3b715cb3dc
[ "Apache-2.0" ]
2
2019-04-01T11:33:11.000Z
2019-05-07T04:03:11.000Z
app/src/main/java/com/example/clone_daum/ui/main/navigation/NavigationViewModel.kt
aucd29/clone-daum
759e4a0bbb96578a47cccf591015eb3b715cb3dc
[ "Apache-2.0" ]
null
null
null
package com.example.clone_daum.ui.main.navigation import android.app.Application import android.view.View import androidx.databinding.ObservableBoolean import androidx.databinding.ObservableField import androidx.databinding.ObservableFloat import androidx.databinding.ObservableInt import brigitte.* import brigitte.arch.SingleLiveEvent import brigitte.viewmodel.CommandEventViewModel import com.example.clone_daum.R import org.slf4j.LoggerFactory import javax.inject.Inject /** * Created by <a href="mailto:aucd29@gmail.com">Burke Choi</a> on 2018. 12. 20. <p/> */ class NavigationViewModel @Inject constructor( app: Application ) : CommandEventViewModel(app), IDialogAware { companion object { private val logger = LoggerFactory.getLogger(NavigationViewModel::class.java) const val URL_NOTIFICATION = "https://m.daum.net/channel/notice_an" const val CMD_SETTING = "setting" const val CMD_MAIL = "mail" const val CMD_CAFE = "cafe" const val CMD_ALARM = "alarm" const val CMD_LOGIN = "login" const val CMD_BROWSER = "browser" const val CMD_URL_HISTORY = "url-history" const val CMD_EDIT_HOME_MENU = "edit-home-menu" const val CMD_TEXT_SIZE = "text-size" const val CMD_BOOKMARK = "bookmark" const val ITN_FAV_DESC_SHOW = "favorites-desc-show" const val ITN_FAV_DESC_HIDE = "favorites-desc-hide" } override val dialogEvent = SingleLiveEvent<DialogParam>() val backgroundAlpha = ObservableFloat(1f) val viewFavoriteDesc = ObservableInt(View.GONE) val circleCrop = ObservableBoolean(true) val defaultUserPhoto = ObservableField("drawable://ic_mood_black_24dp") val requireLogin = ObservableField(this.app.string(R.string.navi_require_login)) //////////////////////////////////////////////////////////////////////////////////// // // COMMAND // //////////////////////////////////////////////////////////////////////////////////// override fun command(cmd: String, data: Any) { when (cmd) { ITN_FAV_DESC_SHOW -> viewFavoriteDesc.visible() ITN_FAV_DESC_HIDE -> viewFavoriteDesc.gone() else -> super.command(cmd, data) } } }
34.925373
88
0.632479
df28928356059d30e54a67f6daf8baa95c2cbcb4
415
css
CSS
src/components/footer/Footer.css
HenriqueCSaraiva/SaraivaGeek
28feeeec903d386a3921ed7088d9869c829bbeb0
[ "MIT" ]
null
null
null
src/components/footer/Footer.css
HenriqueCSaraiva/SaraivaGeek
28feeeec903d386a3921ed7088d9869c829bbeb0
[ "MIT" ]
null
null
null
src/components/footer/Footer.css
HenriqueCSaraiva/SaraivaGeek
28feeeec903d386a3921ed7088d9869c829bbeb0
[ "MIT" ]
null
null
null
.footer{ background-color: rgb(156, 16, 16); height: 100px; margin-bottom: 0; } .footer__text{ font-size: large; font-weight: 500; margin-left: 10px; margin-right: 10px; } .footer__row{ align-items: center; display: flex; margin-bottom: 15px; margin-top: 15px; justify-content: center; } .footer__icone{ height: 54px; margin-left: 15px; width: 54px; }
15.37037
39
0.614458
0748b2de5b531b6f9ab3d67697aa572c868f9538
524
hpp
C++
Managers/GUI/Commands.hpp
MadLadSquad/UntitledLinuxGameManager
f4f003e2b929055f3a00afb63cc1118f1765cb99
[ "MIT" ]
1
2022-02-01T12:45:19.000Z
2022-02-01T12:45:19.000Z
Managers/GUI/Commands.hpp
MadLadSquad/UntitledLinuxGameManager
f4f003e2b929055f3a00afb63cc1118f1765cb99
[ "MIT" ]
null
null
null
Managers/GUI/Commands.hpp
MadLadSquad/UntitledLinuxGameManager
f4f003e2b929055f3a00afb63cc1118f1765cb99
[ "MIT" ]
null
null
null
#pragma once namespace UGM::Managers::GUI { void restart(bool bAll = false, char* name = (char*)"none"); void poweroff(bool bAll = false, char* name = (char*)"none"); void poweron(bool bAll = false, char* name = (char*)"none"); void newContainer(); void deleteContainer(char* name); void execProgram(char* containerName, char* command); void genscript(char* containerName, char* program); void pin(char* containerName, char* program); void unpin(char* containerName, char* program); }
30.823529
65
0.673664
9c31a924d81608a84489efd8973af3fe69bcce7c
109
lua
Lua
demo/conf.lua
DPS2004/lovebpm
22f8537083818ebfc2a0788fbec3e991894371f9
[ "MIT" ]
59
2016-07-02T13:43:42.000Z
2022-03-19T23:13:05.000Z
demo/conf.lua
DPS2004/lovebpm
22f8537083818ebfc2a0788fbec3e991894371f9
[ "MIT" ]
null
null
null
demo/conf.lua
DPS2004/lovebpm
22f8537083818ebfc2a0788fbec3e991894371f9
[ "MIT" ]
3
2020-09-18T15:51:36.000Z
2021-08-06T03:49:51.000Z
function love.conf(t) t.window.title = "Lovebpm Demo" t.window.width = 500 t.window.height = 500 end
13.625
33
0.678899
4bc9c3fb72b73fff1e29c7f66711e9af8f1e889b
1,041
h
C
dbms/src/Analyzers/AnalyzeArrayJoins.h
qqiangwu/ClickHouse
4700d375d8238ca3d7f39a1d0001f173272bbf3a
[ "Apache-2.0" ]
5
2018-05-10T14:40:44.000Z
2020-12-13T11:43:15.000Z
dbms/src/Analyzers/AnalyzeArrayJoins.h
RCcode/ClickHouse
ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2
[ "Apache-2.0" ]
null
null
null
dbms/src/Analyzers/AnalyzeArrayJoins.h
RCcode/ClickHouse
ccfb51b8dd680a8ad2863e0b2f4e32364b86daf2
[ "Apache-2.0" ]
2
2020-05-23T04:55:22.000Z
2020-05-24T11:30:51.000Z
#pragma once #include <Parsers/IAST.h> #include <unordered_map> #include <vector> namespace DB { class WriteBuffer; struct CollectAliases; struct CollectTables; /** For every ARRAY JOIN, collect a map: * result alias -> source * * There could be several variants: * * SELECT elem FROM t ARRAY JOIN array AS elem elem -> array * SELECT n.elem FROM t ARRAY JOIN nested AS n n -> nested * SELECT array FROM t ARRAY JOIN array array -> array * SELECT nested.elem FROM t ARRAY JOIN nested nested -> nested * SELECT elem FROM t ARRAY JOIN [1, 2, 3] AS elem elem -> [1, 2, 3] * * Does not analyze arrayJoin functions. */ struct AnalyzeArrayJoins { void process(const ASTPtr & ast); struct SourceInfo { String column_name; ASTPtr node; }; using ResultToSource = std::unordered_map<String, SourceInfo>; using ArrayJoins = std::vector<ResultToSource>; /// Debug output void dump(WriteBuffer & out) const; }; }
22.148936
76
0.636888
441f0956730791d5e0aa26e404b82a440ea61193
2,257
py
Python
test/test_jsonobjects.py
DLR-RM/python-jsonconversion
02bc24840884b91e92b6b94730d1c2d302eeea62
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
6
2017-12-01T14:07:33.000Z
2022-03-26T20:14:57.000Z
test/test_jsonobjects.py
DLR-RM/python-jsonconversion
02bc24840884b91e92b6b94730d1c2d302eeea62
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
2
2018-11-25T14:55:41.000Z
2021-05-17T07:23:42.000Z
test/test_jsonobjects.py
DLR-RM/python-jsonconversion
02bc24840884b91e92b6b94730d1c2d302eeea62
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
1
2020-11-17T20:47:31.000Z
2020-11-17T20:47:31.000Z
# Copyright (C) 2016-2017 DLR # # All rights reserved. This program and the accompanying materials are made # available under the terms of the 2-Clause BSD License ("Simplified BSD # License") which accompanies this distribution, and is available at # https://opensource.org/licenses/BSD-2-Clause # # Contributors: # Franz Steinmetz <franz.steinmetz@dlr.de> from jsonconversion.jsonobject import JSONObject from testing_utils import convert_with_assertion class JO(JSONObject): def __init__(self, a, b, c): self.a = a self.b = b self.c = c @classmethod def from_dict(cls, _dict): return cls(_dict['a'], _dict['b'], _dict['c']) def to_dict(self): return {'a': self.a, 'b': self.b, 'c': self.c} def __eq__(self, other): return self.a == other.a and self.b == other.b and self.c == other.c def __str__(self): return "{0}: a = {1} {4}, b = {2} {5}, c = {3} {6}".format(self.__class__.__name__, self.a, self.b, self.c, type(self.a), type(self.b), type(self.c)) def test_simple_objects(): j1 = JO(1, 2, 3) j2 = JO(1.1, 2.2, 3.3) j3 = JO('a', "bcd", None) j4 = JO('1.1', "3", "0") j5 = JO(-2, "preempted", float) convert_with_assertion(j1) convert_with_assertion(j2) convert_with_assertion(j3) convert_with_assertion(j4) convert_with_assertion(j5) def test_nested_objects(): l1 = [JO(1, 2, 3), JO('1.1', "3", "0")] t1 = tuple(l1[:]) d1 = {0: l1[:], 1: tuple(t1)} convert_with_assertion(l1) convert_with_assertion(t1) convert_with_assertion(d1) def test_complex_objects(): j1 = JO({0: 'a', 1: int, 2: -5}, dict(enumerate(list("abc"))), (1, 2, 3)) j2 = JO([1, 2, {3: 'a'}, (4, 5, set([6, 7]))], {0: [1, 2], 1: (3, 4), 'abc': [{'x': 1, 'y': 2}]}, j1) j3 = JO({0: j1, 1: {0: j1}}, {0: list, 1: {0: float}}, {0: None, 1: {0: None}}) j4 = JO({0: JO(1, 2, 3), 1: {0: JO(1, 2, 3)}}, {0: JO(-2, "preempted", float), 1: {0: JO(-2, "preempted", float)}}, JO(-2, "preempted", float)) convert_with_assertion(j1) convert_with_assertion(j2) convert_with_assertion(j3) convert_with_assertion(j4)
30.917808
115
0.572441
0dd1c194cfcf0c52106714523d7955d8ddf549b0
146
cs
C#
src/Ratana.Library.Email/IEmailer.cs
superkarn/RatanaLibrary
fd44e6e376d59b690700b3762cacbad3a96240c4
[ "Apache-2.0" ]
null
null
null
src/Ratana.Library.Email/IEmailer.cs
superkarn/RatanaLibrary
fd44e6e376d59b690700b3762cacbad3a96240c4
[ "Apache-2.0" ]
1
2019-09-05T02:20:12.000Z
2019-11-11T03:19:23.000Z
src/Ratana.Library.Email/IEmailer.cs
superkarn/Ratana.Library
fd44e6e376d59b690700b3762cacbad3a96240c4
[ "Apache-2.0" ]
null
null
null
using System.Net.Mail; namespace Ratana.Library.Email { public interface IEmailer { void Send(MailMessage mailMessage); } }
14.6
43
0.671233
d366098d58fe79a1ce79c22681d8a645131ea009
3,157
css
CSS
public/main.css
RedundantPancake/robbertdewilde.com
682b7fc4c009d95c709b12de7c20de494bb7c8ef
[ "MIT" ]
null
null
null
public/main.css
RedundantPancake/robbertdewilde.com
682b7fc4c009d95c709b12de7c20de494bb7c8ef
[ "MIT" ]
null
null
null
public/main.css
RedundantPancake/robbertdewilde.com
682b7fc4c009d95c709b12de7c20de494bb7c8ef
[ "MIT" ]
null
null
null
/* So you found my incredible CSS file! Have a looka round, I wrote this with the help of the internet. It's a mess I know. But it works! So don't touch it :D */ *{ font-family: 'Courier New', monospace; background: black; font-size: clamp(16px, 4vw, 22px); } hr{ padding: 0px; margin: 0px; border: none; height: 1px; border-top: 1px dashed #7AFB4C; } html, body{ margin: 0; padding: 0; height: 100vh; width: 100vw; /* height: -webkit-fill-available; */ overflow: hidden; } .clear{clear: both;} .red{color:red;} .grey{color:grey;} .green{color:#7AFB4C;} .terminal { overflow:hidden; margin: 0em; height:100%; } #scrollableContent{ height: -moz-calc(100vh - 45px); height: -o-calc(100vh - 45px); height: -webkit-calc(100vh - 45px); height: calc(100vh - 45px); /* min-height: -webkit-fill-available; */ width: 100%; display: flex; flex-direction: column-reverse; overflow-y: auto; overflow-x: hidden; } #responseText { padding: 8px; width: 100%; } #inputWrapper { height: 40px; padding-left: 8px; padding-right: 8px; bottom: 0%; min-width: 100%; max-width: 100%; } #playerInput{ background: transparent; border: none; outline:none; min-width: 90%; max-width: 95%; } input{ color:#7AFB4C;; } ::placeholder { color:grey; } .textLine{ display: block; word-break: break-all; padding: 0 25px 0 7px; } .rainbow-bg{ animation: rainbow-bg 2.5s linear; animation-iteration-count: infinite; } .rainbow{ animation: rainbow 2.5s linear; animation-iteration-count: infinite; } @keyframes rainbow-bg{ 100%,0%{ background-color: rgb(255,0,0); } 8%{ background-color: rgb(255,127,0); } 16%{ background-color: rgb(255,255,0); } 25%{ background-color: rgb(127,255,0); } 33%{ background-color: rgb(0,255,0); } 41%{ background-color: rgb(0,255,127); } 50%{ background-color: rgb(0,255,255); } 58%{ background-color: rgb(0,127,255); } 66%{ background-color: rgb(0,0,255); } 75%{ background-color: rgb(127,0,255); } 83%{ background-color: rgb(255,0,255); } 91%{ background-color: rgb(255,0,127); } } @keyframes rainbow{ 100%,0%{ color: rgb(255,0,0); } 8%{ color: rgb(255,127,0); } 16%{ color: rgb(255,255,0); } 25%{ color: rgb(127,255,0); } 33%{ color: rgb(0,255,0); } 41%{ color: rgb(0,255,127); } 50%{ color: rgb(0,255,255); } 58%{ color: rgb(0,127,255); } 66%{ color: rgb(0,0,255); } 75%{ color: rgb(127,0,255); } 83%{ color: rgb(255,0,255); } 91%{ color: rgb(255,0,127); } } /* .fade-in { animation: fadeIn 2s; opacity: 1; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } */ .shadow { box-shadow: 0px 0px 10px rgba(0,0,0,.4)}
16.189744
64
0.533101
b31601220ae46f5ccc260c65899d9477d2b58b22
998
py
Python
dirigible/fts/tests/test_2557_ClickAwaySavesUsercode.py
EnoX1/dirigible-spreadsheet
9a3289c67a93c40190565ad5a555710c50c5f958
[ "MIT" ]
168
2015-01-03T02:09:30.000Z
2022-03-31T22:28:00.000Z
dirigible/fts/tests/test_2557_ClickAwaySavesUsercode.py
EnoX1/dirigible-spreadsheet
9a3289c67a93c40190565ad5a555710c50c5f958
[ "MIT" ]
4
2017-03-14T20:49:49.000Z
2020-04-02T16:13:00.000Z
dirigible/fts/tests/test_2557_ClickAwaySavesUsercode.py
EnoX1/dirigible-spreadsheet
9a3289c67a93c40190565ad5a555710c50c5f958
[ "MIT" ]
46
2015-01-18T04:39:24.000Z
2022-02-17T22:33:05.000Z
# Copyright (c) 2010 Resolver Systems Ltd. # All Rights Reserved # from functionaltest import FunctionalTest class Test_2557_ClickAwaySavesUsercode(FunctionalTest): def test_blur_on_edit_textarea_saves_usercode(self): # * Harold logs in to Dirigible and creates a new sheet self.login_and_create_new_sheet() # * He enters some usercode that sets A1 to 4 self.selenium.get_eval('window.editor.focus()') self.enter_usercode('worksheet[1, 1].value = 4') # * He does something to cause a blur event on the editarea textbox ## We use fire_event because Selenium does not fire the full event stack ## for clicks. If this changes in future Selenium versions, it would be nice ## to expand this test to check behaviour for clicking on cells, links and ## edit sheet name self.selenium.get_eval("window.editor.blur()") # * ... and notes that A1 contains 4 self.wait_for_cell_value(1, 1, '4')
36.962963
84
0.689379
8e7211a9f77628b52af8324dc7852a57d0b685c4
4,628
js
JavaScript
controllers/proyectos-controller.js
PabloHdzVizcarra/up-task-node-js
3a4000570834d8f4d9f2ce236ae781cc4b31ccd5
[ "MIT" ]
null
null
null
controllers/proyectos-controller.js
PabloHdzVizcarra/up-task-node-js
3a4000570834d8f4d9f2ce236ae781cc4b31ccd5
[ "MIT" ]
null
null
null
controllers/proyectos-controller.js
PabloHdzVizcarra/up-task-node-js
3a4000570834d8f4d9f2ce236ae781cc4b31ccd5
[ "MIT" ]
null
null
null
const Proyectos = require("../models/Proyectos"); const TaskModel = require('../models/Tasks'); // controlador para la ruta home exports.proyectosHome = async (req, res) => { const userFromSessionLib = res.locals.dataUser.id; const projectsFromDatabase = await Proyectos.findAll({ where: { userId: userFromSessionLib } }); res.render("index", { namePage: "Proyectos", proyectos: projectsFromDatabase, //_ pass data to view blink: "Blink 182" }); }; exports.formularioProyecto = async (req, res) => { // tenemos que elaborar la consulta a la data base const userFromSessionLib = res.locals.dataUser.id; const projectsFromDatabase = await Proyectos.findAll({ where: { userId: userFromSessionLib } }); // en render tienes que poner el nombre de tu archivo que usaras res.render("nuevoProyecto", { namePage: "Nuevo Proyecto", proyectos: projectsFromDatabase, }); }; exports.nuevoProyecto = async (req, res) => { const userFromSessionLib = res.locals.dataUser.id; const projectsFromDatabase = await Proyectos.findAll({ where: { userId: userFromSessionLib } }); // validacion del valor del input //* en esta parte podemos manejar js comun const { name } = req.body; let errors = []; if (!name) { errors.push({ texto: "Agrega un nombre al proyecto", }); } // validacion de errores if (errors.length > 0) { res.render("nuevoProyecto", { namePage: "Nuevo Proyecto", errors, proyectos: projectsFromDatabase, }); } else { // creamos una URL para el proyecto // const url = slug(name).toLowerCase(); //_ obtenemos el id del usuario por variables locals const userFromSessionLib = res.locals.dataUser.id; await Proyectos.create({ name, userId: userFromSessionLib }); res.redirect("/"); } }; exports.proyectoPorURL = async (req, res, next) => { const userFromSessionLib = res.locals.dataUser.id; const proyectosPromise = Proyectos.findAll({ where: { userId: userFromSessionLib } }); // traemos el proyecto de la Data Base // metodo findOne (Sequelize) para obtener 1 solo elemento const proyectoPromise = Proyectos.findOne({ where: { url: req.params.url, userId: userFromSessionLib }, }); const [proyectos, proyecto] = await Promise.all([ proyectosPromise, proyectoPromise, ]); // check current project task const tasks = await TaskModel.findAll({ where: { proyectoId: proyecto.id }, include: [ //* with this method we include data to the query { model: Proyectos } ] }); if (!proyecto) return next(); // render a la view res.render("tareas", { namePage: "Tareas del Proyecto", proyecto, proyectos, tasks }); }; exports.formularioEditar = async (req, res) => { const userFromSessionLib = res.locals.dataUser.id; const proyectosPromise = Proyectos.findAll({ where: { userId: userFromSessionLib } }); // get data actual element const proyectoPromise = Proyectos.findOne({ where: { id: req.params.id, userId: userFromSessionLib }, }); const [proyectos, proyecto] = await Promise.all([ proyectosPromise, proyectoPromise, ]); // render view res.render("nuevoProyecto", { namePage: "Editar Proyecto", proyectos, proyecto, }); }; exports.actualizarProyecto = async (req, res) => { // tenemos que elaborar la consulta a la data base const userFromSessionLib = res.locals.dataUser.id; const projectsFromDatabase = await Proyectos.findAll({ where: { userId: userFromSessionLib } }); // validacion del valor del input //* en esta parte podemos manejar js comun const { name } = req.body; let errors = []; if (!name) { errors.push({ texto: "Agrega un nombre al proyecto", }); } // validacion de errores if (errors.length > 0) { res.render("nuevoProyecto", { namePage: "Nuevo Proyecto", errors, proyectos: projectsFromDatabase, }); } else { await Proyectos.update({ name: name }, { where: { id: req.params.id } }); res.redirect("/"); } }; exports.eliminarProyecto = async (req, res, next) => { // request tiene la informacion // puedes usar query o params para obtener los datos const { url } = req.params; // metodo de sequelize para eliminar const resultOfDeleteProject = await Proyectos.destroy({ where: { url: url }, }); if (!resultOfDeleteProject) return next(); res.status(200).send("Proyecto eliminado correctamente"); };
23.256281
77
0.646067
d66dc046b18c7529a438a581a1933446e49a21f6
2,605
cs
C#
DeliveriesDemo/DeliveriesDemo.Core/Commands/RelayParameterlessCommand.cs
poiasd3241/DeliveriesDemo
0d91a3c090c7a86bc921bc08019c40c43d3249fd
[ "MIT" ]
null
null
null
DeliveriesDemo/DeliveriesDemo.Core/Commands/RelayParameterlessCommand.cs
poiasd3241/DeliveriesDemo
0d91a3c090c7a86bc921bc08019c40c43d3249fd
[ "MIT" ]
null
null
null
DeliveriesDemo/DeliveriesDemo.Core/Commands/RelayParameterlessCommand.cs
poiasd3241/DeliveriesDemo
0d91a3c090c7a86bc921bc08019c40c43d3249fd
[ "MIT" ]
null
null
null
using System; namespace DeliveriesDemo.Core.Commands { /// <summary> /// Custom <see cref="IRelayCommand"/> implementation.<br/> /// Any parameter passed in to the <see cref="CanExecute(object)"/> or <see cref="Execute(object)"/> will be ignored. /// </summary> public class RelayParameterlessCommand : IRelayCommand { #region Private Members /// <summary> /// <see cref="Action"/> to execute. /// </summary> private readonly Action _execute; /// <summary> /// <see cref="Func{TResult}"/> that defines the <see cref="CanExecute(object)"/> value. /// </summary> private readonly Func<bool> _canExecute; #endregion #region Public Events public event EventHandler CanExecuteChanged; #endregion #region Constructors /// <summary> /// Constructor to use when the <see cref="CanExecute(object)"/> should always return <see langword="true"/>. /// </summary> /// <param name="execute"><see cref="Action"/> to execute.</param> public RelayParameterlessCommand(Action execute) : this(execute, null) { _execute = execute; } /// <summary> /// Constructor to use when the <see cref="CanExecute(object)"/> needs to be defined by a <see cref="Func{TResult}"/>. /// </summary> /// <param name="execute"><see cref="Action"/> to execute.</param> /// <param name="canExecute"><see cref="Func{TResult}"/> that defines the <see cref="CanExecute(object)"/> value.</param> public RelayParameterlessCommand(Action execute, Func<bool> canExecute) { _execute = execute; _canExecute = canExecute; } #endregion #region Public Methods /// <summary> /// Determines if <see cref="Execute(object)"/> can execute. /// </summary> /// <param name="parameter">This parameter will be ignored. It is here to satisfy the <see cref="System.Windows.Input.ICommand"/>.</param> /// <returns><see langword="true"/> if this command can be executed; otherwise, <see langword="false"/></returns> public bool CanExecute(object parameter) { return _canExecute == null || _canExecute(); } /// <summary> /// Executes the command by calling the <see cref="_execute"/> <see cref="Action"/> /// </summary> /// <param name="parameter">This parameter will be ignored. It is here to satisfy the <see cref="System.Windows.Input.ICommand"/>.</param> public void Execute(object parameter) { _execute(); } public void InvokeCanExecuteChanged(object sender = null, EventArgs e = null) { CanExecuteChanged?.Invoke(sender, e); } #endregion } }
31.011905
141
0.653359
7f892de805844e837b4bc501ca12ffcff96d45d4
3,267
php
PHP
resources/views/pages/admin/obat/create.blade.php
Anisapandu23/klinik_hb
7e6f5262c9a1f3435a0cabca5d26acd365793313
[ "MIT" ]
null
null
null
resources/views/pages/admin/obat/create.blade.php
Anisapandu23/klinik_hb
7e6f5262c9a1f3435a0cabca5d26acd365793313
[ "MIT" ]
null
null
null
resources/views/pages/admin/obat/create.blade.php
Anisapandu23/klinik_hb
7e6f5262c9a1f3435a0cabca5d26acd365793313
[ "MIT" ]
null
null
null
@extends('templates.admin') <head> <title>OBAT | KLINIK PRATAMA HB</title> </head> @section('content') <div class="content"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"> Tambah Data Obat</h4> </div> <div class="card-body"> <div class="table"> <table class="table"> <form> <fieldset enable> <div class="mb-3"> <label for="TextInput" class="form-label">Kode Obat</label> <input type="text" id="disabledTextInput" class="form-control" placeholder=""> </div> <div class="mb-3"> <label for="TextInput" class="form-label">Nama Obat</label> <input type="text" id="disabledTextInput" class="form-control" placeholder=""> </div> <div class="mb-3"> <label for="TextInput" class="form-label">Jenis Obat</label> <input type="text" id="disabledTextInput" class="form-control" placeholder=""> </div> <div class="mb-3"> <label for="TextInput" class="form-label">Tanggal Kadaluwarsa Obat</label> <input type="text" id="disabledTextInput" class="form-control" placeholder=""> </div> <div class="mb-3"> <label for="TextInput" class="form-label">Harga Obat</label> <input type="text" id="disabledTextInput" class="form-control" placeholder=""> </div> <div class="mb-3"> <label for="TextInput" class="form-label">harga Jual Obat</label> <input type="text" id="disabledTextInput" class="form-control" placeholder=""> </div> <div class="mb-3"> <label for="TextInput" class="form-label">Jumlah Ketersediaan</label> <input type="text" id="disabledTextInput" class="form-control" placeholder=""> </div> </div> <button type="submit" class="btn btn-primary float-right btn-md">Simpan</button> <button class="btn btn-warning float-right btn-md mr-2" type="button" onclick="history.back()">Batal</button> </fieldset> </form> </table> </div> </div> </div> </div> @endsection
56.327586
118
0.38996
3a6c17e388ee02e7664bbebb10ee88dd56745b65
1,128
dart
Dart
lib/validators.dart
chrisnorman7/worldsmith_studio
e48f732bd062bae19c32f900711bfcd0a48ebe4f
[ "Unlicense" ]
null
null
null
lib/validators.dart
chrisnorman7/worldsmith_studio
e48f732bd062bae19c32f900711bfcd0a48ebe4f
[ "Unlicense" ]
null
null
null
lib/validators.dart
chrisnorman7/worldsmith_studio
e48f732bd062bae19c32f900711bfcd0a48ebe4f
[ "Unlicense" ]
null
null
null
/// Provides validators. import 'dart:io'; /// Returns [message] if [value] is `null` or empty. String? validateNonEmptyValue({ required final String? value, final String message = 'You must supply a value', }) { if (value == null || value.isEmpty) { return message; } return null; } /// Ensure the given [value] is a path. String? validatePath({ required final String? value, final bool allowDirectories = true, final String emptyMessage = 'You must provide a file or folder to import', final String invalidPathMessage = 'Not a file or folder', }) { if (value == null || value.isEmpty) { return emptyMessage; } final file = File(value); if (file.existsSync()) { return null; } if (allowDirectories) { final directory = Directory(value); if (directory.existsSync()) { return null; } } return invalidPathMessage; } /// Ensure the given [value] is an integer. String? validateInt({ required final String? value, final String message = 'Invalid number', }) => value == null || value.isEmpty || int.tryParse(value) == null ? message : null;
24.521739
76
0.654255
da5c6046e61441f45c97a4f44925e47fa55b8f28
376
rb
Ruby
benchmarks/liquid-render/run_many.rb
kaspergrubbe/yjit-bench
bd48cde9fdce8c9d75457bc1c71ef7c455e27006
[ "MIT" ]
22
2021-03-16T07:43:49.000Z
2022-03-11T04:59:35.000Z
benchmarks/liquid-render/run_many.rb
kaspergrubbe/yjit-bench
bd48cde9fdce8c9d75457bc1c71ef7c455e27006
[ "MIT" ]
54
2021-03-11T18:45:45.000Z
2022-03-31T14:32:18.000Z
benchmarks/liquid-render/run_many.rb
kaspergrubbe/yjit-bench
bd48cde9fdce8c9d75457bc1c71ef7c455e27006
[ "MIT" ]
3
2021-04-30T12:27:19.000Z
2021-06-03T16:56:06.000Z
#require 'benchmark/ips' require_relative 'performance/theme_runner' Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first profiler = ThemeRunner.new profiler.compile puts('**** RUNNING BENCHMARK ****') 500.times do # This benchmark is very quick # Run it multiple times to reduce time measurement noise 20.times do profiler.render end end
20.888889
61
0.728723
dcea685a03a2f1298d22a6733dde9ff6cba6a313
950
dart
Dart
lib/src/models/account/accounts.dart
OlegNovosad/flutter-gmb-api
fd69f66780abd5a3cd87ee80389c3369461fa0ee
[ "BSD-3-Clause" ]
3
2021-02-25T10:44:44.000Z
2021-12-31T01:28:22.000Z
lib/src/models/account/accounts.dart
Newgarden-Solutions/google_my_business
fd69f66780abd5a3cd87ee80389c3369461fa0ee
[ "BSD-3-Clause" ]
34
2021-02-23T12:56:18.000Z
2022-02-13T10:09:06.000Z
lib/src/models/account/accounts.dart
OlegNovosad/flutter-gmb-api
fd69f66780abd5a3cd87ee80389c3369461fa0ee
[ "BSD-3-Clause" ]
1
2021-08-23T17:56:50.000Z
2021-08-23T17:56:50.000Z
import 'package:json_annotation/json_annotation.dart'; import 'account.dart'; part 'accounts.g.dart'; /// Paginated list of accounts /// https://mybusinessaccountmanagement.googleapis.com/v1/accounts @JsonSerializable() class Accounts { /// A collection of accounts to which the user has access. /// The personal account of the user doing the query will always be the first item of the result, unless it is filtered out. final List<Account> accounts; /// If the number of accounts exceeds the requested page size, this field is populated with a token to fetch the next page of accounts on a subsequent call to `accounts.list`. /// If there are no more accounts, this field is not present in the response. final String? nextPageToken; Accounts(this.accounts, this.nextPageToken); factory Accounts.fromJson(Map<String, dynamic> json) => _$AccountsFromJson(json); Map<String, dynamic> toJson() => _$AccountsToJson(this); }
38
177
0.750526
f40271df8152d9ca199d72fc43dd2666da670a7f
317
cs
C#
TLCGen.Dependencies/TLCGen.Dependencies/Models.Enumerations/RateltikkerTypeEnum.cs
PeterSnijders/TLCGen
c27f5970c103d4b90ae90b0035eef5f036a929d3
[ "MIT" ]
6
2017-04-04T08:28:42.000Z
2021-05-08T10:45:52.000Z
TLCGen.Dependencies/TLCGen.Dependencies/Models.Enumerations/RateltikkerTypeEnum.cs
PeterSnijders/TLCGen
c27f5970c103d4b90ae90b0035eef5f036a929d3
[ "MIT" ]
44
2016-08-15T09:31:49.000Z
2019-09-15T17:23:16.000Z
TLCGen.Dependencies/TLCGen.Dependencies/Models.Enumerations/RateltikkerTypeEnum.cs
PeterSnijders/TLCGen
c27f5970c103d4b90ae90b0035eef5f036a929d3
[ "MIT" ]
12
2016-12-01T11:35:58.000Z
2021-12-20T15:52:56.000Z
using System.ComponentModel; using TLCGen.Helpers; namespace TLCGen.Models.Enumerations { [TypeConverter(typeof(EnumDescriptionTypeConverter))] public enum RateltikkerTypeEnum { Geen, Hoeflake, [Description("Hoeflake (bewaakt)")] HoeflakeBewaakt, Accross } }
19.8125
57
0.66877
73c78913b51cf674933f2c50e74a442f1398e1c4
5,470
dart
Dart
lib/src/common_exp.dart
chrisdolan/chrome.dart
6960c90777ed75377d20938c5a7f10287e5bcc6f
[ "BSD-2-Clause-FreeBSD" ]
70
2015-01-25T13:22:26.000Z
2021-06-18T10:40:04.000Z
lib/src/common_exp.dart
chrisdolan/chrome.dart
6960c90777ed75377d20938c5a7f10287e5bcc6f
[ "BSD-2-Clause-FreeBSD" ]
58
2015-02-18T17:15:44.000Z
2020-05-15T10:14:49.000Z
lib/src/common_exp.dart
chrisdolan/chrome.dart
6960c90777ed75377d20938c5a7f10287e5bcc6f
[ "BSD-2-Clause-FreeBSD" ]
39
2015-04-25T02:14:51.000Z
2021-12-16T12:22:23.000Z
library chrome.src.common_exp; import 'dart:js'; import 'dart:typed_data' as typed_data; /** * The abstract superclass of objects that can hold [JsObject] proxies. */ class ChromeObject { final dynamic jsProxy; /** * Create a new instance of a `ChromeObject`, which creates and delegates to * a JsObject proxy. */ ChromeObject() : jsProxy = new JsObject(context['Object']); /** * Create a new instance of a `ChromeObject`, which delegates to the given * JsObject proxy. */ ChromeObject.fromProxy(this.jsProxy); JsObject toJs() => jsProxy; String toString() => jsProxy.toString(); } /** * A common super class for the Chrome APIs. */ abstract class ChromeApi { /** * Returns true if the API is available. The common causes of an API not being * avilable are: * * * a permission is missing in the application's manifest.json file * * the API is defined on a newer version of Chrome then the current runtime */ bool get available; } /** * The abstract superclass of Chrome enums. */ abstract class ChromeEnum { final String value; const ChromeEnum(this.value); String toString() => value; } // This is shared in common by app.window and system.display. class Bounds extends ChromeObject { static Bounds create(JsObject jsProxy) => jsProxy == null ? null : new Bounds.fromProxy(jsProxy); Bounds(); Bounds.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); int get left => jsProxy['left']; set left(int value) => jsProxy['left'] = value; int get top => jsProxy['top']; set top(int value) => jsProxy['top'] = value; int get width => jsProxy['width']; set width(int value) => jsProxy['width'] = value; int get height => jsProxy['height']; set height(int value) => jsProxy['height'] = value; } class ArrayBuffer extends ChromeObject { static ArrayBuffer create(/*JsObject*/ jsProxy) => new ArrayBuffer.fromProxy(jsProxy); ArrayBuffer(); ArrayBuffer._proxy(jsProxy) : super.fromProxy(jsProxy); factory ArrayBuffer.fromProxy(/*JsObject*/ jsProxy) { // TODO: investigate and fix // if (jsProxy is typed_data.Uint8List) { // return new _Uint8ListArrayBuffer(jsProxy); // } else { return new ArrayBuffer._proxy(jsProxy); // } } factory ArrayBuffer.fromBytes(List<int> data) { var uint8Array = new JsObject(context['Uint8Array'], [new JsArray.from(data)]); return new ArrayBuffer.fromProxy(uint8Array['buffer']); } factory ArrayBuffer.fromString(String str) { var uint8Array = new JsObject(context['Uint8Array'], [new JsArray.from(str.codeUnits)]); return new ArrayBuffer.fromProxy(uint8Array['buffer']); } List<int> getBytes() { if (jsProxy is typed_data.Uint8List) { return jsProxy as typed_data.Uint8List; } else { var int8View = new JsObject(context['Uint8Array'], [jsProxy]); List<int> result = new List<int>(int8View['length']); // TODO: this is _very_ slow // can we instead do: jsArray = Array.apply([], int8View); for (int i = 0; i < result.length; i++) { result[i] = int8View[i]; } return result; } } } class Date extends ChromeObject { Date.fromProxy(jsProxy) : super.fromProxy(jsProxy); } // TODO: See ArrayBuffer.fromProxy. //class _Uint8ListArrayBuffer implements ArrayBuffer { // List<int> _bytes; // JsObject _jsProxy; // // _Uint8ListArrayBuffer( typed_data.Uint8List list) { // _bytes = list.toList(); // } // // List<int> getBytes() => _bytes; // // JsObject get jsProxy { // if (_jsProxy == null) { // _jsProxy = new ArrayBuffer.fromBytes(_bytes).jsProxy; // } // // return _jsProxy; // } // // JsObject toJs() => jsProxy; //} // TODO: this is a hack, to eliminate analysis warnings. remove as soon as possible class DeviceCallback { DeviceCallback.fromProxy(JsObject jsProxy); } // TODO: this is a hack, to eliminate analysis warnings. remove as soon as possible class SuggestFilenameCallback { SuggestFilenameCallback.fromProxy(JsObject jsProxy); } class ProviderSuccessCallback { ProviderSuccessCallback.fromProxy(JsObject jsProxy); } class ProviderErrorCallback { ProviderErrorCallback.fromProxy(JsObject jsProxy); } class MetadataCallback { MetadataCallback.fromProxy(JsObject jsProxy); } class EntriesCallback { EntriesCallback.fromProxy(JsObject jsProxy); } class PrintersCallback { PrintersCallback.fromProxy(JsObject jsProxy); } class FileDataCallback { FileDataCallback.fromProxy(JsObject jsProxy); } class CapabilitiesCallback { CapabilitiesCallback.fromProxy(JsObject jsProxy); } class PrintCallback { PrintCallback.fromProxy(JsObject jsProxy); } class PrinterInfoCallback { PrinterInfoCallback.fromProxy(JsObject jsProxy); } class CertificatesCallback { CertificatesCallback.fromProxy(JsObject jsProxy); } class ActionsCallback { ActionsCallback.fromProxy(JsObject jsProxy); } class SignCallback { SignCallback.fromProxy(JsObject jsProxy); } class SubtleCrypto { SubtleCrypto.fromProxy(JsObject jsProxy); } class RequestPinCallback { RequestPinCallback.fromProxy(JsObject jsProxy); } class StopPinRequestCallback { StopPinRequestCallback.fromProxy(JsObject jsProxy); } // TODO: class LocalMediaStream extends ChromeObject { static LocalMediaStream create(JsObject jsProxy) => new LocalMediaStream.fromProxy(jsProxy); LocalMediaStream(); LocalMediaStream.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); }
24.419643
99
0.710238
a66bdab4fc8419ab0785922d3888fb61986d6f6c
381
rb
Ruby
app/helpers/application_helper.rb
cannikin/blerg
93a83e8cd598a4d8e02a26824c4a434e40a50fc2
[ "MIT" ]
null
null
null
app/helpers/application_helper.rb
cannikin/blerg
93a83e8cd598a4d8e02a26824c4a434e40a50fc2
[ "MIT" ]
null
null
null
app/helpers/application_helper.rb
cannikin/blerg
93a83e8cd598a4d8e02a26824c4a434e40a50fc2
[ "MIT" ]
null
null
null
module ApplicationHelper def flash_class classes = ['alert'] if flash[:notice] classes << 'alert-success' elsif flash[:error] classes << 'alert-danger' end classes.join(' ') end def flash_message flash[:notice] || flash[:error] end def markdown(text) Redcarpet::Markdown.new(Redcarpet::Render::HTML.new).render(text) end end
17.318182
69
0.64042
cc292895f594969912175f69b62a798a6fcb8fd5
1,245
rb
Ruby
lib/qrda-import/data-element-importers/procedure_order_importer.rb
sjpadgett/cqm-parsers
67b1d609378194eb46a7b104f5468f7e5519d191
[ "Apache-2.0" ]
null
null
null
lib/qrda-import/data-element-importers/procedure_order_importer.rb
sjpadgett/cqm-parsers
67b1d609378194eb46a7b104f5468f7e5519d191
[ "Apache-2.0" ]
null
null
null
lib/qrda-import/data-element-importers/procedure_order_importer.rb
sjpadgett/cqm-parsers
67b1d609378194eb46a7b104f5468f7e5519d191
[ "Apache-2.0" ]
null
null
null
module QRDA module Cat1 class ProcedureOrderImporter < SectionImporter def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:procedure[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.63']")) super(entry_finder) @id_xpath = './cda:id' @code_xpath = './cda:code' @author_datetime_xpath = "./cda:author/cda:time" @method_xpath = './cda:methodCode' @anatomical_approach_site_xpath = "./cda:approachSiteCode" @anatomical_location_site_xpath = "./cda:targetSiteCode" @ordinality_xpath = "./cda:priorityCode" @entry_class = QDM::ProcedureOrder end def create_entry(entry_element, nrh = NarrativeReferenceHandler.new) procedure_order = super procedure_order.method = code_if_present(entry_element.at_xpath(@method_xpath)) procedure_order.anatomicalApproachSite = code_if_present(entry_element.at_xpath(@anatomical_approach_site_xpath)) procedure_order.anatomicalLocationSite = code_if_present(entry_element.at_xpath(@anatomical_location_site_xpath)) procedure_order.ordinality = code_if_present(entry_element.at_xpath(@ordinality_xpath)) procedure_order end end end end
46.111111
151
0.717269
29873a60be4b94123594a6195dee6ea2d2e167be
585
rb
Ruby
lib/hyperwaverelay.rb
skord/hyperwaverelay
e248aaf1fe41f8c4d2fb804487db79ce03e91afa
[ "MIT" ]
null
null
null
lib/hyperwaverelay.rb
skord/hyperwaverelay
e248aaf1fe41f8c4d2fb804487db79ce03e91afa
[ "MIT" ]
null
null
null
lib/hyperwaverelay.rb
skord/hyperwaverelay
e248aaf1fe41f8c4d2fb804487db79ce03e91afa
[ "MIT" ]
null
null
null
require "bundler/setup" require "hyperwaverelay/version" require "hyperwaverelay/keys" require "hyperwaverelay/vault" require "hyperwaverelay/project" require "hyperwaverelay/util" require "thor" class Thor def self.source_root File.dirname(__FILE__) end end module Hyperwaverelay class Cli < Thor include Thor::Actions desc "project", "work with your project" subcommand "project", Project desc "keys SUBCOMMAND ARGS", "manage SSH keys" subcommand "keys", Keys desc "vault SUBCOMMAND ARGS", "manage vault" subcommand "vault", Vault end end
21.666667
51
0.736752
5ad402576a903209f0c25df640f30392b014fdaa
837
cs
C#
Programming Fundamentals - Sep-2017/14.List-Lab/02.AppendLists/AppendLists.cs
PavelRunchev/Programming-Fundamentals-2017
69345132f3847ea476d1d83dc2f72dfa62b0d65d
[ "MIT" ]
null
null
null
Programming Fundamentals - Sep-2017/14.List-Lab/02.AppendLists/AppendLists.cs
PavelRunchev/Programming-Fundamentals-2017
69345132f3847ea476d1d83dc2f72dfa62b0d65d
[ "MIT" ]
null
null
null
Programming Fundamentals - Sep-2017/14.List-Lab/02.AppendLists/AppendLists.cs
PavelRunchev/Programming-Fundamentals-2017
69345132f3847ea476d1d83dc2f72dfa62b0d65d
[ "MIT" ]
null
null
null
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AppendLists { class AppendLists { static void Main() { string[] input = Console.ReadLine() .Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries); List<int> appendList = new List<int>(); for (int i = input.Length - 1; i >= 0; i--) { int[] tokens = input[i].Trim() .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) .Select(int.Parse) .ToArray(); appendList.AddRange(tokens); } Console.WriteLine(string.Join(" ", appendList)); } } }
27
85
0.497013
9ded54747afbedb006e80ec368959f75f0e65006
1,043
sh
Shell
deploy.sh
WonderInventions/nucleus
ea7e1e9fcd59eccc53d948aab832d7c1b1df28f6
[ "Apache-2.0" ]
null
null
null
deploy.sh
WonderInventions/nucleus
ea7e1e9fcd59eccc53d948aab832d7c1b1df28f6
[ "Apache-2.0" ]
null
null
null
deploy.sh
WonderInventions/nucleus
ea7e1e9fcd59eccc53d948aab832d7c1b1df28f6
[ "Apache-2.0" ]
null
null
null
#!/bin/bash set -e if [[ -z "$1" ]] ; then echo "Arguments of environment required." exit 1 fi case $1 in tfdev) target_account_id=369862142687 ;; prod) target_account_id=795400190015 ;; esac case $1 in tfdev) ecr_account_id=369862142687 ;; prod) ecr_account_id=334803245014 ;; esac if [[ -z "$target_account_id" ]] ; then echo "Environment must be one of tfdev, prod" exit 1 fi aws sts get-caller-identity | grep -q $target_account_id if [[ ! $? ]] ; then exit 1 fi echo "Deploying locally built nucleus:latest to AWS account $1 ($target_account_id)" aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin $ecr_account_id.dkr.ecr.us-east-2.amazonaws.com docker tag nucleus:latest $ecr_account_id.dkr.ecr.us-east-2.amazonaws.com/nucleus:$1 docker push $ecr_account_id.dkr.ecr.us-east-2.amazonaws.com/nucleus:$1 echo "Done pushing to Docker" aws ecs update-service --cluster nucleus-cluster --service nucleus-service --force-new-deployment --region us-east-2
26.075
140
0.720997
79a9cad74ace95c462c71c93b8d21e73ade64559
3,912
cc
C++
table/table_heap.cc
invzhi/vtab
8af23691c51651dda35707e437b3361a49b47fb4
[ "MIT" ]
null
null
null
table/table_heap.cc
invzhi/vtab
8af23691c51651dda35707e437b3361a49b47fb4
[ "MIT" ]
null
null
null
table/table_heap.cc
invzhi/vtab
8af23691c51651dda35707e437b3361a49b47fb4
[ "MIT" ]
null
null
null
#include "table/table_heap.h" #include <cassert> #include "page/page.h" #include "table/table_iterator.h" bool TableHeap::GetTuple(const RowID &row_id, Tuple &tuple) { PageID page_id = row_id.GetPageID(); auto data_page = static_cast<DataPage *>(buffer_pool_->FetchPage(page_id)); if (data_page == nullptr) return false; data_page->RLock(); bool ok = data_page->GetTuple(row_id.GetSlotNum(), tuple); data_page->RUnlock(); buffer_pool_->UnpinPage(page_id, false); return ok; } bool TableHeap::InsertTuple(RowID &row_id, const Tuple &tuple) { // TODO: remove hard code if (28 + tuple.length() > PAGE_SIZE) return false; auto data_page = static_cast<DataPage *>(buffer_pool_->FetchPage(first_page_id_)); if (data_page == nullptr) { return false; } int32_t slot_number = -1; data_page->WLock(); while (!data_page->InsertTuple(slot_number, tuple)) { PageID next_page_id = data_page->GetNextPageID(); if (next_page_id != INVALID_PAGE_ID) { data_page->WUnlock(); buffer_pool_->UnpinPage(data_page->GetID(), false); data_page = static_cast<DataPage *>(buffer_pool_->FetchPage(next_page_id)); if (data_page == nullptr) return false; data_page->WLock(); } else { auto next_page = static_cast<DataPage *>(buffer_pool_->NewPage()); if (next_page == nullptr) { data_page->WUnlock(); buffer_pool_->UnpinPage(data_page->GetID(), false); return false; } data_page->SetNextPageID(next_page->GetID()); data_page->WUnlock(); next_page->WLock(); next_page->Init(data_page->GetID()); buffer_pool_->UnpinPage(data_page->GetID(), true); data_page = next_page; } } row_id.Set(data_page->GetID(), slot_number); data_page->WUnlock(); buffer_pool_->UnpinPage(data_page->GetID(), true); return true; } bool TableHeap::UpdateTuple(const RowID &row_id, const Tuple &tuple) { PageID page_id = row_id.GetPageID(); auto data_page = static_cast<DataPage *>(buffer_pool_->FetchPage(page_id)); if (data_page == nullptr) return false; data_page->WLock(); bool is_updated = data_page->UpdateTuple(row_id.GetSlotNum(), tuple); data_page->WUnlock(); buffer_pool_->UnpinPage(page_id, is_updated); return is_updated; } bool TableHeap::MarkDelete(const RowID &row_id) { PageID page_id = row_id.GetPageID(); auto data_page = static_cast<DataPage *>(buffer_pool_->FetchPage(page_id)); if (data_page == nullptr) return false; data_page->WLock(); bool is_deleted = data_page->MarkDelete(row_id.GetSlotNum()); data_page->WUnlock(); buffer_pool_->UnpinPage(page_id, is_deleted); return true; } void TableHeap::Drop() { PageID page_id = first_page_id_; DataPage *data_page = nullptr; while (page_id != INVALID_PAGE_ID) { data_page = static_cast<DataPage *>(buffer_pool_->FetchPage(page_id)); if (data_page == nullptr) return; data_page->RLock(); PageID next_page_id = data_page->GetNextPageID(); data_page->RUnlock(); buffer_pool_->UnpinPage(page_id, false); buffer_pool_->DeletePage(page_id); page_id = next_page_id; } } TableIterator TableHeap::begin() { PageID page_id = first_page_id_; auto page = static_cast<DataPage *>(buffer_pool_->FetchPage(page_id)); assert(page); int32_t slot_num; page->RLock(); while (!page->GetFirstSlotNum(slot_num)) { page_id = page->GetNextPageID(); page->RUnlock(); buffer_pool_->UnpinPage(page->GetID(), false); if (page_id == INVALID_PAGE_ID) return TableIterator(this, RowID()); page = static_cast<DataPage *>(buffer_pool_->FetchPage(page_id)); assert(page); page->RLock(); } page->RUnlock(); buffer_pool_->UnpinPage(page->GetID(), false); return TableIterator(this, RowID(page_id, slot_num)); } TableIterator TableHeap::end() { return TableIterator(this, RowID()); }
27.356643
84
0.684816
a1d35bb1e1d47156a72dc2d8bf6df55f0688e41b
823
swift
Swift
magicpager/magicpager/model/widget/collection/ListWidgetModel.swift
SvenFang/MagicPager-IOS
7caac06f1cdad3a2e6731348473a005c03f1003e
[ "Apache-2.0" ]
null
null
null
magicpager/magicpager/model/widget/collection/ListWidgetModel.swift
SvenFang/MagicPager-IOS
7caac06f1cdad3a2e6731348473a005c03f1003e
[ "Apache-2.0" ]
null
null
null
magicpager/magicpager/model/widget/collection/ListWidgetModel.swift
SvenFang/MagicPager-IOS
7caac06f1cdad3a2e6731348473a005c03f1003e
[ "Apache-2.0" ]
null
null
null
// // ListWidgetModel.swift // magicpager // // Created by Sven on 02/08/2019. // Copyright © 2019 Sven. All rights reserved. // import UIKit @objc public class ListWidgetModel: BaseCollectionWidgetModel { //SINGLE:单列 DOUBLE:双列瀑布流 @objc public var listType: String = ListWidgetType.SINGLE override public func mapping(map: Map) { super.mapping(map: map) listType <- map["listType"] } @objc public required init() { super.init() self.type = WidgetModelType.LIST_TYPE } required init?(map: Map) { super.init(map: map) } override public func copy(with zone: NSZone? = nil) -> Any { let copyItem = super.copy(with: zone) as! ListWidgetModel copyItem.listType = self.listType return copyItem } }
23.514286
65
0.622114
01804e57ed94fa709f4f0df8511c9057242c202b
145
sh
Shell
docker-entrypoint.sh
toposoid/scala-common-nlp-japanese-web
3210d907aa1c52682904516a6d8352c6aed6808d
[ "Apache-2.0" ]
null
null
null
docker-entrypoint.sh
toposoid/scala-common-nlp-japanese-web
3210d907aa1c52682904516a6d8352c6aed6808d
[ "Apache-2.0" ]
2
2021-12-23T10:36:29.000Z
2021-12-28T12:17:19.000Z
docker-entrypoint.sh
toposoid/scala-common-nlp-japanese-web
3210d907aa1c52682904516a6d8352c6aed6808d
[ "Apache-2.0" ]
null
null
null
#!/bin/bash cd /app/scala-common-nlp-japanese-web/target/universal scala-common-nlp-japanese-web-0.1-SNAPSHOT/bin/scala-common-nlp-japanese-web
29
76
0.793103
c674646bc427c3b18dc51b1172575aa2e33cf642
2,876
py
Python
projects/day051/twitter-complaint-bot.py
gabrielmdr/100-days-of-code
095357e3edb2479efcba81851614901c0000389d
[ "MIT" ]
null
null
null
projects/day051/twitter-complaint-bot.py
gabrielmdr/100-days-of-code
095357e3edb2479efcba81851614901c0000389d
[ "MIT" ]
null
null
null
projects/day051/twitter-complaint-bot.py
gabrielmdr/100-days-of-code
095357e3edb2479efcba81851614901c0000389d
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException import time CHROME_DRIVER_PATH = "C:\\Development\\chromedriver.exe" TWITTER_EMAIL = "Your Twitter account e-mail address" TWITTER_PASSWORD = "Your Twitter account password" PROMISED_DOWN = 20 PROMISED_UP = 7.5 class InternetSpeedTwitterBot: def __init__(self): self.driver = webdriver.Chrome(CHROME_DRIVER_PATH) self.down = 0 self.up = 0 def get_internet_speed(self): self.driver.get("https://www.speedtest.net/") time.sleep(5) go_button = self.driver.find_element_by_xpath("//*[@id='container']/div/div[3]/div/div/div/div[2]/div[3]/div[1]/a") go_button.click() time.sleep(60) download_span = self.driver.find_element_by_css_selector(".download-speed") download_speed = float(download_span.text) upload_span = self.driver.find_element_by_css_selector(".upload-speed") upload_speed = float(upload_span.text) self.down = download_speed self.up = upload_speed print(f"Download speed: {self.down}") print(f"Upload speed: {self.up}") return def tweet_at_provider(self): if self.down < PROMISED_DOWN or self.up < PROMISED_UP: self.driver.get("https://twitter.com/login") time.sleep(10) email_input = self.driver.find_element_by_xpath("//*[@id='react-root']/div/div/div[2]/main/div/div/div[2]/form/div/div[1]/label/div/div[2]/div/input") password_input = self.driver.find_element_by_xpath("//*[@id='react-root']/div/div/div[2]/main/div/div/div[2]/form/div/div[2]/label/div/div[2]/div/input") email_input.send_keys(TWITTER_EMAIL) password_input.send_keys(TWITTER_PASSWORD) login_button = self.driver.find_element_by_xpath("//*[@id='react-root']/div/div/div[2]/main/div/div/div[2]/form/div/div[3]/div") login_button.click() time.sleep(20) tweet = f"Hey Internet Provider, why is my internet speed {self.down}down/{self.up}up when I pay for {PROMISED_DOWN}down/{PROMISED_UP}up?" try: draft_input = self.driver.find_element_by_xpath("//*[@id='react-root']/div/div/div[2]/main/div/div/div/div[1]/div/div[2]/div/div[2]/div[1]/div/div/div/div[2]/div[1]/div/div/div/div/div/div/div/div/div/div[1]/div/div/div/div[2]/div/div/div/div") draft_input.send_keys(tweet) tweet_button = self.driver.find_element_by_xpath("//*[@id='react-root']/div/div/div[2]/main/div/div/div/div[1]/div/div[2]/div/div[2]/div[1]/div/div/div/div[2]/div[4]/div/div/div[2]/div[3]/div/span/span") tweet_button.click() except NoSuchElementException: print("Could not tweet.\n") time.sleep(5) self.driver.quit() return
50.45614
260
0.651947
e7541bd74b3e9a9a39c4d0d8d343f585253e43cc
6,519
php
PHP
src/third/ninjaforms/class-ninja-translate-json-weglot.php
szepeviktor/translate-wordpress
dc706ade8b2b755ba48f003081e43d89e173e003
[ "MIT" ]
null
null
null
src/third/ninjaforms/class-ninja-translate-json-weglot.php
szepeviktor/translate-wordpress
dc706ade8b2b755ba48f003081e43d89e173e003
[ "MIT" ]
null
null
null
src/third/ninjaforms/class-ninja-translate-json-weglot.php
szepeviktor/translate-wordpress
dc706ade8b2b755ba48f003081e43d89e173e003
[ "MIT" ]
null
null
null
<?php namespace WeglotWP\Third\NinjaForms; if ( ! defined( 'ABSPATH' ) ) { exit; } use Weglot\Client\Api\WordEntry; use Weglot\Client\Api\Enum\WordType; use Weglot\Client\Client; use Weglot\Client\Endpoint\Translate; use Weglot\Client\Api\TranslateEntry; use Weglot\Client\Api\Enum\BotType; use WeglotWP\Helpers\Helper_Json_Inline_Weglot; /** * Ninja_Translate_Json_Weglot * * @since 2.5.0 * @version 3.0.0 */ class Ninja_Translate_Json_Weglot { /** * @since 3.0.0 */ public function __construct() { $this->parser_services = weglot_get_service( 'Parser_Service_Weglot' ); } protected function translate_entries( $all_words ) { // TranslateEntry $params = [ 'language_from' => weglot_get_original_language(), 'language_to' => weglot_get_current_language(), 'request_url' => weglot_get_current_full_url(), 'bot' => BotType::HUMAN, ]; $translate = new TranslateEntry( $params ); $word_collection = $translate->getInputWords(); foreach ( $all_words as $value ) { $value = Helper_Json_Inline_Weglot::format_for_api( $value ); $word_collection->addOne( new WordEntry( $value, WordType::TEXT ) ); } $client = $this->parser_services->get_client(); $translate = new Translate( $translate, $client ); return $translate->handle(); } /** * @since 2.5.0 * * @param string $content * @return array */ protected function translate_i18n( $content ) { if ( ! apply_filters( 'weglot_ninja_forms_translate_i18n', false ) ) { return $content; } preg_match( '#nfi18n(.*?);#', $content, $match ); if ( ! isset( $match[1] ) ) { return $content; } $regex = apply_filters( 'weglot_ninja_forms_translate_i18n', '#(title|changeEmailErrorMsg|changeDateErrorMsg|confirmFieldErrorMsg|fieldNumberNumMinError|fieldNumberNumMaxError|fieldNumberIncrementBy|fieldTextareaRTEInsertLink|fieldTextareaRTEInsertMedia|fieldTextareaRTESelectAFile|formErrorsCorrectErrors|validateRequiredField|honeypotHoneypotError|fileUploadOldCodeFileUploadInProgress|previousMonth|nextMonth|fieldsMarkedRequired|fileUploadOldCodeFileUpload)":"(.*?)",#' ); preg_match_all( $regex, $match[1], $all ); if ( empty( $all[2] ) ) { return $content; } $object = $this->translate_entries( $all[2] ); foreach ( $object->getInputWords() as $key => $input_word ) { $from_input_encoding = apply_filters( 'weglot_ninja_translate_need_json_encode', true ); $to_output_encoding = apply_filters( 'weglot_ninja_translate_need_json_encode', true ); $from_input = $input_word->getWord(); $to_output = $object->getOutputWords()[ $key ]->getWord(); if ( '' === $from_input ) { continue; } if ( $from_input_encoding ) { $from_input = Helper_Json_Inline_Weglot::need_json_encode_api( $from_input ); } if ( $to_output_encoding ) { $to_output = Helper_Json_Inline_Weglot::need_json_encode_api( $to_output ); } $content = str_replace( '"' . $from_input . '"', '"' . $to_output . '"', $content ); } return $content; } /** * @since 2.5.0 * @param string $content * @return array */ protected function translate_form_settings( $content ) { $regex = apply_filters( 'weglot_ninja_forms_match_form_settings', '#form\.settings=(.*?);#' ); preg_match( $regex, $content, $match ); if ( ! isset( $match[1] ) ) { return $content; } $regex = apply_filters( 'weglot_ninja_forms_translate_form_settings', '#(title|changeEmailErrorMsg|changeDateErrorMsg|confirmFieldErrorMsg|fieldNumberNumMinError|fieldNumberNumMaxError|fieldNumberIncrementBy|fieldTextareaRTEInsertLink|fieldTextareaRTEInsertMedia|fieldTextareaRTESelectAFile|formErrorsCorrectErrors|validateRequiredField|honeypotHoneypotError|fileUploadOldCodeFileUploadInProgress|previousMonth|nextMonth|fieldsMarkedRequired)":"(.*?)",#' ); preg_match_all( $regex, $match[1], $all ); if ( empty( $all[2] ) ) { return $content; } $object = $this->translate_entries( $all[2] ); foreach ( $object->getInputWords() as $key => $input_word ) { $from_input_encoding = apply_filters( 'weglot_ninja_translate_need_json_encode', true ); $to_output_encoding = apply_filters( 'weglot_ninja_translate_need_json_encode', true ); $from_input = $input_word->getWord(); $to_output = $object->getOutputWords()[ $key ]->getWord(); if ( '' === $from_input ) { continue; } if ( $from_input_encoding ) { $from_input = Helper_Json_Inline_Weglot::need_json_encode_api( $from_input ); } if ( $to_output_encoding ) { $to_output = Helper_Json_Inline_Weglot::need_json_encode_api( $to_output ); } $content = str_replace( '"' . $from_input . '"', '"' . $to_output . '"', $content ); } return $content; } /** * @since 2.5.0 * @param string $content * @return array */ protected function translate_form_fields( $content ) { $regex = apply_filters( 'weglot_ninja_forms_match_form_fields', '#form\.fields=(.*?);#' ); preg_match( $regex, $content, $match ); if ( ! isset( $match[1] ) ) { return $content; } $regex = apply_filters( 'weglot_ninja_forms_translate_form_fields', '#(label|help_text|value)":"(.*?)",#' ); preg_match_all( $regex, $match[1], $all ); if ( empty( $all[1] ) ) { return $content; } $object = $this->translate_entries( $all[2] ); foreach ( $object->getInputWords() as $key => $input_word ) { $from_input_encoding = apply_filters( 'weglot_ninja_translate_need_json_encode', true ); $to_output_encoding = apply_filters( 'weglot_ninja_translate_need_json_encode', true ); $from_input = $input_word->getWord(); $to_output = $object->getOutputWords()[ $key ]->getWord(); if ( '' === $from_input ) { continue; } if ( $from_input_encoding ) { $from_input = Helper_Json_Inline_Weglot::need_json_encode_api( $from_input ); } if ( $to_output_encoding ) { $to_output = Helper_Json_Inline_Weglot::need_json_encode_api( $to_output ); } $content = str_replace( '"' . $from_input . '"', '"' . $to_output . '"', $content ); } return $content; } /** * @since 2.5.0 * @param string $content * @return string */ public function translate_words( $content ) { $content = $this->translate_form_settings( $content ); $content = $this->translate_form_fields( $content ); $content = $this->translate_i18n( $content ); return $content; } }
31.492754
478
0.672956
ae9a9e6c90edf75f8f81dfa18d32d42f7fb96f2c
6,101
dart
Dart
flutter_application_1/lib/screens/mainScreen/profilescreen.dart
Leegeonmin/capstone-2022-07
049ee2f7d236582ff14dd9ae9abfbb577b4bd739
[ "MIT" ]
1
2022-03-20T11:49:12.000Z
2022-03-20T11:49:12.000Z
flutter_application_1/lib/screens/mainScreen/profilescreen.dart
Leegeonmin/capstone-2022-07
049ee2f7d236582ff14dd9ae9abfbb577b4bd739
[ "MIT" ]
6
2022-03-08T12:56:58.000Z
2022-03-29T12:26:23.000Z
flutter_application_1/lib/screens/mainScreen/profilescreen.dart
Leegeonmin/capstone-2022-07
049ee2f7d236582ff14dd9ae9abfbb577b4bd739
[ "MIT" ]
4
2022-03-04T06:44:36.000Z
2022-03-08T12:36:11.000Z
// Copyright 2018 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/cupertino.dart'; // ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables, prefer_const_constructors_in_immutables, non_constant_identifier_names import 'package:flutter/material.dart'; import 'package:flutter_application_1/Color/Color.dart'; import 'package:flutter_application_1/Components/indicator.dart'; import 'package:flutter_application_1/Components/main_app_bar.dart'; import 'package:flutter_application_1/screens/Register/function.dart'; import 'package:flutter_application_1/screens/Register/login_screen.dart'; import 'package:flutter_application_1/screens/mainScreen/alertOnoffScreen.dart'; import 'package:google_fonts/google_fonts.dart'; class Profilescreen extends StatefulWidget { Profilescreen({Key? key}) : super(key: key); @override State<Profilescreen> createState() => _ProfilescreenState(); } class _ProfilescreenState extends State<Profilescreen> { Future<Map<String, dynamic>> _getuserdata() async { String useruid = await FirebaseAuth.instance.currentUser!.uid; var finduser = await FirebaseFirestore.instance .collection('users') .where("uid", isEqualTo: useruid) .get(); Map<String, dynamic> userdata = finduser.docs[0].data(); return userdata; } Widget profileimgandnickname(size, data) { String nickname = data['nickname']; return Container( margin: EdgeInsets.only(top: size.height * 0.05), color: Color.fromRGBO(249, 249, 249, 1), height: size.height * 0.35, width: size.width * 0.9, child: Column( children: [ Image.asset('assets/icons/user.png', width: size.height * 0.2), SizedBox( height: size.height * 0.03, ), Text( nickname, style: GoogleFonts.notoSans(fontSize: size.width * 0.05), ), ], ), ); } Widget profilealarm(size) { return InkWell( onTap: () { Navigator.push( context, MaterialPageRoute( builder: (context) { return AlertOnoffScreen(); }, ), ); }, child: Container( decoration: const BoxDecoration( borderRadius: BorderRadius.only( topLeft: Radius.circular(8), topRight: Radius.circular(8), bottomLeft: Radius.circular(8), bottomRight: Radius.circular(8), ), boxShadow: [ BoxShadow( color: Colors.grey, offset: Offset(0, 1), blurRadius: 1) ], color: Colors.white), padding: EdgeInsets.only(left: size.width * 0.04), width: size.width * 0.8, height: size.height * 0.07, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Row( children: [ Icon(Icons.notifications_none, color: CHART_MINUS), SizedBox(width: size.width * 0.04), Text( '알람 설정', style: GoogleFonts.notoSans(fontSize: size.width * 0.04), ), ], ), Container( margin: EdgeInsets.only(right: size.width * 0.05), child: Icon(Icons.arrow_forward_ios), ) ], )), ); } Widget profilelogout(size) { return InkWell( child: Container( decoration: const BoxDecoration( borderRadius: BorderRadius.only( topLeft: Radius.circular(8), topRight: Radius.circular(8), bottomLeft: Radius.circular(8), bottomRight: Radius.circular(8), ), boxShadow: [ BoxShadow( color: Colors.grey, offset: Offset(0, 1), blurRadius: 1) ], color: Colors.white), padding: EdgeInsets.only(left: size.width * 0.04), width: size.width * 0.8, height: size.height * 0.07, child: Row( children: [ Icon(Icons.logout, color: CHART_MINUS), SizedBox(width: size.width * 0.04), Text( '로그아웃', style: GoogleFonts.notoSans(fontSize: size.width * 0.04), ) ], )), onTap: () async { print("Log out"); signOut(context); Navigator.push( context, MaterialPageRoute(builder: (_) => LoginScreen())); }, ); } Widget SettingPage(context) { Size size = MediaQuery.of(context).size; return FutureBuilder<Map<String, dynamic>>( future: _getuserdata(), builder: (BuildContext context, AsyncSnapshot<Map<String, dynamic>> snapshot) { Map<String, dynamic>? data = snapshot.data; if (snapshot.connectionState == ConnectionState.done) { return Container( margin: EdgeInsets.symmetric(horizontal: size.width * 0.05), width: size.width * 0.9, height: size.height * 0.7, child: Column( children: [ profileimgandnickname(size, data), profilealarm(size), SizedBox(height: size.height * 0.01), profilelogout(size), ], )); } else { return Center(child: indicator()); } }); } @override Widget build(BuildContext context) { _getuserdata(); return Scaffold( appBar:profileAppBar( context, "프로필", ), body: SettingPage(context), ); } }
33.521978
161
0.558597
cc1c37707aaa4088ab79c448fb07d82aeda3d50f
207
swift
Swift
test/attr/attr_final_protocol_extension.swift
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
72,551
2015-12-03T16:45:13.000Z
2022-03-31T18:57:59.000Z
test/attr/attr_final_protocol_extension.swift
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
39,352
2015-12-03T16:55:06.000Z
2022-03-31T23:43:41.000Z
test/attr/attr_final_protocol_extension.swift
lwhsu/swift
e1e7a3fe75b4762d5e3d4d241f40b56946a03fdb
[ "Apache-2.0" ]
13,845
2015-12-03T16:45:13.000Z
2022-03-31T11:32:29.000Z
// RUN: %target-typecheck-verify-swift -swift-version 4 protocol P {} extension P { final func inExtension() {} // expected-error {{only classes and class members may be marked with 'final'}} {{3-9=}} }
25.875
118
0.68599
ffb2a7a6e648a5e32b67a3d3b43f4aa8b9b9cccd
24,038
py
Python
fmpy/fmi2.py
chaoticjoy/FMPy
178af2471c81fb932fc77f75bc7a8b0a472df847
[ "CC-BY-3.0", "CC-BY-4.0" ]
1
2021-03-17T14:24:08.000Z
2021-03-17T14:24:08.000Z
fmpy/fmi2.py
fmi-tools/FMPy
178af2471c81fb932fc77f75bc7a8b0a472df847
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
fmpy/fmi2.py
fmi-tools/FMPy
178af2471c81fb932fc77f75bc7a8b0a472df847
[ "CC-BY-3.0", "CC-BY-4.0" ]
null
null
null
""" FMI 2.0 interface """ import pathlib from ctypes import * from . import free, calloc from .fmi1 import _FMU, FMICallException, printLogMessage fmi2Component = c_void_p fmi2ComponentEnvironment = c_void_p fmi2FMUstate = c_void_p fmi2ValueReference = c_uint fmi2Real = c_double fmi2Integer = c_int fmi2Boolean = c_int fmi2Char = c_char fmi2String = c_char_p fmi2Type = c_int fmi2Byte = c_char fmi2Status = c_int fmi2OK = 0 fmi2Warning = 1 fmi2Discard = 2 fmi2Error = 3 fmi2Fatal = 4 fmi2Pending = 5 fmi2CallbackLoggerTYPE = CFUNCTYPE(None, fmi2ComponentEnvironment, fmi2String, fmi2Status, fmi2String, fmi2String) fmi2CallbackAllocateMemoryTYPE = CFUNCTYPE(c_void_p, c_size_t, c_size_t) fmi2CallbackFreeMemoryTYPE = CFUNCTYPE(None, c_void_p) fmi2StepFinishedTYPE = CFUNCTYPE(None, fmi2ComponentEnvironment, fmi2Status) fmi2ModelExchange = 0 fmi2CoSimulation = 1 fmi2True = 1 fmi2False = 0 fmi2StatusKind = c_int fmi2DoStepStatus = 0 fmi2PendingStatus = 1 fmi2LastSuccessfulTime = 2 fmi2Terminated = 3 def allocateMemory(nobj, size): return calloc(nobj, size) def freeMemory(obj): free(obj) def stepFinished(componentEnvironment, status): pass class fmi2CallbackFunctions(Structure): _fields_ = [('logger', fmi2CallbackLoggerTYPE), ('allocateMemory', fmi2CallbackAllocateMemoryTYPE), ('freeMemory', fmi2CallbackFreeMemoryTYPE), ('stepFinished', fmi2StepFinishedTYPE), ('componentEnvironment', fmi2ComponentEnvironment)] class fmi2EventInfo(Structure): _fields_ = [('newDiscreteStatesNeeded', fmi2Boolean), ('terminateSimulation', fmi2Boolean), ('nominalsOfContinuousStatesChanged', fmi2Boolean), ('valuesOfContinuousStatesChanged', fmi2Boolean), ('nextEventTimeDefined', fmi2Boolean), ('nextEventTime', fmi2Real)] class _FMU2(_FMU): """ Base class for FMI 2.0 FMUs """ def __init__(self, **kwargs): super(_FMU2, self).__init__(**kwargs) # Inquire version numbers of header files and setting logging status self._fmi2Function('fmi2GetTypesPlatform', [], [], fmi2String) self._fmi2Function('fmi2GetVersion', [], [], fmi2String) self._fmi2Function('fmi2SetDebugLogging', ['component', 'loggingOn', 'nCategories', 'categories'], [fmi2Component, fmi2Boolean, c_size_t, POINTER(fmi2String)]) # Creation and destruction of FMU instances and setting debug status self._fmi2Function('fmi2Instantiate', ['instanceName', 'fmuType', 'guid', 'resourceLocation', 'callbacks', 'visible', 'loggingOn'], [fmi2String, fmi2Type, fmi2String, fmi2String, POINTER(fmi2CallbackFunctions), fmi2Boolean, fmi2Boolean], fmi2Component) self._fmi2Function('fmi2FreeInstance', ['component'], [fmi2Component], None) # Enter and exit initialization mode, terminate and reset self._fmi2Function('fmi2SetupExperiment', ['component', 'toleranceDefined', 'tolerance', 'startTime', 'stopTimeDefined', 'stopTime'], [fmi2Component, fmi2Boolean, fmi2Real, fmi2Real, fmi2Boolean, fmi2Real]) self._fmi2Function('fmi2EnterInitializationMode', ['component'], [fmi2Component], fmi2Status) self._fmi2Function('fmi2ExitInitializationMode', ['component'], [fmi2Component], fmi2Status) self._fmi2Function('fmi2Terminate', ['component'], [fmi2Component], fmi2Status) self._fmi2Function('fmi2Reset', ['component'], [fmi2Component], fmi2Status) # Getting and setting variable values self._fmi2Function('fmi2GetReal', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Real)]) self._fmi2Function('fmi2GetInteger', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Integer)]) self._fmi2Function('fmi2GetBoolean', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Boolean)]) self._fmi2Function('fmi2GetString', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2String)]) self._fmi2Function('fmi2SetReal', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Real)]) self._fmi2Function('fmi2SetInteger', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Integer)]) self._fmi2Function('fmi2SetBoolean', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Boolean)]) self._fmi2Function('fmi2SetString', ['component', 'vr', 'nvr', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2String)]) # Getting and setting the internal FMU state self._fmi2Function('fmi2GetFMUstate', ['component', 'FMUstate'], [fmi2Component, POINTER(fmi2FMUstate)]) self._fmi2Function('fmi2SetFMUstate', ['component', 'FMUstate'], [fmi2Component, fmi2FMUstate]) self._fmi2Function('fmi2FreeFMUstate', ['component', 'FMUstate'], [fmi2Component, POINTER(fmi2FMUstate)]) self._fmi2Function('fmi2SerializedFMUstateSize', ['component', 'FMUstate', 'size'], [fmi2Component, fmi2FMUstate, POINTER(c_size_t)]) self._fmi2Function('fmi2SerializeFMUstate', ['component', 'FMUstate', 'serializedState', 'size'], [fmi2Component, fmi2FMUstate, POINTER(fmi2Byte), c_size_t]) self._fmi2Function('fmi2DeSerializeFMUstate', ['component', 'FMUstate', 'serializedState', 'size'], [fmi2Component, POINTER(fmi2Byte), c_size_t, POINTER(fmi2FMUstate)]) # Getting partial derivatives self._fmi2Function('fmi2GetDirectionalDerivative', ['component', 'vUnknown_ref', 'nUnknown', 'vKnown_ref', 'nKnown', 'dvKnown', 'dvUnknown'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Real), POINTER(fmi2Real)]) def _fmi2Function(self, fname, argnames, argtypes, restype=fmi2Status): """ Add an FMI 2.0 function to this instance and add a wrapper that allows logging and checks the return code if the return type is fmi2Status Parameters: fname the name of the function argnames names of the arguments argtypes types of the arguments restype return type """ if not hasattr(self.dll, fname): def raise_exception(*args): raise Exception("Function %s is missing in shared library." % fname) setattr(self, fname, raise_exception) return # get the exported function form the shared library f = getattr(self.dll, fname) f.argtypes = argtypes f.restype = restype def w(*args): """ Wrapper function for the FMI call """ # call the FMI function res = f(*args) if self.fmiCallLogger is not None: # log the call self._log_fmi_args(fname, argnames, argtypes, args, restype, res) if restype == fmi2Status: # status code # check the status code if res > fmi2Warning: raise FMICallException(function=fname, status=res) return res setattr(self, fname, w) # Inquire version numbers of header files and setting logging status def getTypesPlatform(self): types_platform = self.fmi2GetTypesPlatform() return types_platform.decode('utf-8') def getVersion(self): version = self.fmi2GetVersion() return version.decode('utf-8') def setDebugLogging(self, loggingOn, categories): categories_ = (fmi2String * len(categories))() categories_[:] = [c.encode('utf-8') for c in categories] self.fmi2SetDebugLogging(self.component, fmi2True if loggingOn else fmi2False, len(categories), categories_) # Creation and destruction of FMU instances and setting debug status def instantiate(self, visible=False, callbacks=None, loggingOn=False): kind = fmi2ModelExchange if isinstance(self, FMU2Model) else fmi2CoSimulation resourceLocation = pathlib.Path(self.unzipDirectory, 'resources').as_uri() if callbacks is None: callbacks = fmi2CallbackFunctions() callbacks.logger = fmi2CallbackLoggerTYPE(printLogMessage) callbacks.allocateMemory = fmi2CallbackAllocateMemoryTYPE(allocateMemory) callbacks.freeMemory = fmi2CallbackFreeMemoryTYPE(freeMemory) self.callbacks = callbacks self.component = self.fmi2Instantiate(self.instanceName.encode('utf-8'), kind, self.guid.encode('utf-8'), resourceLocation.encode('utf-8'), byref(self.callbacks), fmi2True if visible else fmi2False, fmi2True if loggingOn else fmi2False) if self.component is None: raise Exception("Failed to instantiate model") def freeInstance(self): self.fmi2FreeInstance(self.component) self.freeLibrary() # Enter and exit initialization mode, terminate and reset def setupExperiment(self, tolerance=None, startTime=0.0, stopTime=None): toleranceDefined = fmi2True if tolerance is not None else fmi2False if tolerance is None: tolerance = 0.0 stopTimeDefined = fmi2True if stopTime is not None else fmi2False if stopTime is None: stopTime = 0.0 return self.fmi2SetupExperiment(self.component, toleranceDefined, tolerance, startTime, stopTimeDefined, stopTime) def enterInitializationMode(self): return self.fmi2EnterInitializationMode(self.component) def exitInitializationMode(self): return self.fmi2ExitInitializationMode(self.component) def terminate(self): return self.fmi2Terminate(self.component) def reset(self): return self.fmi2Reset(self.component) # Getting and setting variable values def getReal(self, vr): vr = (fmi2ValueReference * len(vr))(*vr) value = (fmi2Real * len(vr))() self.fmi2GetReal(self.component, vr, len(vr), value) return list(value) def getInteger(self, vr): vr = (fmi2ValueReference * len(vr))(*vr) value = (fmi2Integer * len(vr))() self.fmi2GetInteger(self.component, vr, len(vr), value) return list(value) def getBoolean(self, vr): vr = (fmi2ValueReference * len(vr))(*vr) value = (fmi2Boolean * len(vr))() self.fmi2GetBoolean(self.component, vr, len(vr), value) return list(value) def getString(self, vr): vr = (fmi2ValueReference * len(vr))(*vr) value = (fmi2String * len(vr))() self.fmi2GetString(self.component, vr, len(vr), value) return list(value) def setReal(self, vr, value): vr = (fmi2ValueReference * len(vr))(*vr) value = (fmi2Real * len(vr))(*value) self.fmi2SetReal(self.component, vr, len(vr), value) def setInteger(self, vr, value): vr = (fmi2ValueReference * len(vr))(*vr) value = (fmi2Integer * len(vr))(*value) self.fmi2SetInteger(self.component, vr, len(vr), value) def setBoolean(self, vr, value): vr = (fmi2ValueReference * len(vr))(*vr) value = (fmi2Boolean * len(vr))(*value) self.fmi2SetBoolean(self.component, vr, len(vr), value) def setString(self, vr, value): vr = (fmi2ValueReference * len(vr))(*vr) value = map(lambda s: s.encode('utf-8') if s is not None else s, value) value = (fmi2String * len(vr))(*value) self.fmi2SetString(self.component, vr, len(vr), value) # Getting and setting the internal FMU state def getFMUstate(self): state = fmi2FMUstate() self.fmi2GetFMUstate(self.component, byref(state)) return state def setFMUstate(self, state): self.fmi2SetFMUstate(self.component, state) def freeFMUstate(self, state): self.fmi2FreeFMUstate(self.component, byref(state)) def serializeFMUstate(self, state): """ Serialize an FMU state Parameters: state the FMU state Returns: the serialized state as a byte string """ size = c_size_t() self.fmi2SerializedFMUstateSize(self.component, state, byref(size)) serializedState = create_string_buffer(size.value) self.fmi2SerializeFMUstate(self.component, state, serializedState, size) return serializedState.raw def deSerializeFMUstate(self, serializedState, state=fmi2FMUstate()): """ De-serialize an FMU state Parameters: serializedState the serialized state as a byte string state previous FMU state for re-use (optional) Returns: the de-serialized FMU state """ buffer = create_string_buffer(serializedState, size=len(serializedState)) self.fmi2DeSerializeFMUstate(self.component, buffer, len(buffer), byref(state)) return state # Getting partial derivatives def getDirectionalDerivative(self, vUnknown_ref, vKnown_ref, dvKnown): """ Get partial derivatives Parameters: vUnknown_ref a list of value references of the unknowns vKnown_ref a list of value references of the knowns dvKnown a list of delta values (one per known) Returns: a list of the partial derivatives (one per unknown) """ vUnknown_ref = (fmi2ValueReference * len(vUnknown_ref))(*vUnknown_ref) vKnown_ref = (fmi2ValueReference * len(vKnown_ref))(*vKnown_ref) dvKnown = (fmi2Real * len(dvKnown))(*dvKnown) dvUnknown = (fmi2Real * len(vUnknown_ref))() self.fmi2GetDirectionalDerivative(self.component, vUnknown_ref, len(vUnknown_ref), vKnown_ref, len(vKnown_ref), dvKnown, dvUnknown) return list(dvUnknown) class FMU2Model(_FMU2): """ An FMI 2.0 Model Exchange FMU """ def __init__(self, **kwargs): super(FMU2Model, self).__init__(**kwargs) # Enter and exit the different modes self._fmi2Function('fmi2EnterEventMode', ['component'], [fmi2Component]) self._fmi2Function('fmi2NewDiscreteStates', ['component', 'eventInfo'], [fmi2Component, POINTER(fmi2EventInfo)]) self._fmi2Function('fmi2EnterContinuousTimeMode', ['component'], [fmi2Component]) self._fmi2Function('fmi2CompletedIntegratorStep', ['component', 'noSetFMUStatePriorToCurrentPoint', 'enterEventMode', 'terminateSimulation'], [fmi2Component, fmi2Boolean, POINTER(fmi2Boolean), POINTER(fmi2Boolean)]) # Providing independent variables and re-initialization of caching self._fmi2Function('fmi2SetTime', ['component', 'time'], [fmi2Component, fmi2Real]) self._fmi2Function('fmi2SetContinuousStates', ['component', 'x', 'nx'], [fmi2Component, POINTER(fmi2Real), c_size_t]) # Evaluation of the model equations self._fmi2Function('fmi2GetDerivatives', ['component', 'derivatives', 'nx'], [fmi2Component, POINTER(fmi2Real), c_size_t]) self._fmi2Function('fmi2GetEventIndicators', ['component', 'eventIndicators', 'ni'], [fmi2Component, POINTER(fmi2Real), c_size_t]) self._fmi2Function('fmi2GetContinuousStates', ['component', 'x', 'nx'], [fmi2Component, POINTER(fmi2Real), c_size_t]) self._fmi2Function('fmi2GetNominalsOfContinuousStates', ['component', 'x_nominal', 'nx'], [fmi2Component, POINTER(fmi2Real), c_size_t]) # Enter and exit the different modes def enterEventMode(self): return self.fmi2EnterEventMode(self.component) def newDiscreteStates(self): eventInfo = fmi2EventInfo() self.fmi2NewDiscreteStates(self.component, byref(eventInfo)) return (eventInfo.newDiscreteStatesNeeded != fmi2False, eventInfo.terminateSimulation != fmi2False, eventInfo.nominalsOfContinuousStatesChanged != fmi2False, eventInfo.valuesOfContinuousStatesChanged != fmi2False, eventInfo.nextEventTimeDefined != fmi2False, eventInfo.nextEventTime) def enterContinuousTimeMode(self): return self.fmi2EnterContinuousTimeMode(self.component) def completedIntegratorStep(self, noSetFMUStatePriorToCurrentPoint=fmi2True): enterEventMode = fmi2Boolean() terminateSimulation = fmi2Boolean() self.fmi2CompletedIntegratorStep(self.component, noSetFMUStatePriorToCurrentPoint, byref(enterEventMode), byref(terminateSimulation)) return enterEventMode.value, terminateSimulation.value # Providing independent variables and re-initialization of caching def setTime(self, time): return self.fmi2SetTime(self.component, time) def setContinuousStates(self, x, nx): return self.fmi2SetContinuousStates(self.component, x, nx) # Evaluation of the model equations def getDerivatives(self, dx, nx): return self.fmi2GetDerivatives(self.component, dx, nx) def getEventIndicators(self, z, nz): return self.fmi2GetEventIndicators(self.component, z, nz) def getContinuousStates(self, x, nx): return self.fmi2GetContinuousStates(self.component, x, nx) def getNominalsOfContinuousStates(self, x_nominal, nx): return self.fmi2GetNominalsOfContinuousStates(self.component, x_nominal, nx) class FMU2Slave(_FMU2): """ An FMI 2.0 Co-Simulation FMU """ def __init__(self, instanceName=None, **kwargs): kwargs['instanceName'] = instanceName super(FMU2Slave, self).__init__(**kwargs) # Simulating the slave self._fmi2Function('fmi2SetRealInputDerivatives', ['c', 'vr', 'nvr', 'order', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Integer), POINTER(fmi2Real)]) self._fmi2Function('fmi2GetRealOutputDerivatives', ['c', 'vr', 'nvr', 'order', 'value'], [fmi2Component, POINTER(fmi2ValueReference), c_size_t, POINTER(fmi2Integer), POINTER(fmi2Real)]) self._fmi2Function('fmi2DoStep', ['component', 'currentCommunicationPoint', 'communicationStepSize', 'noSetFMUStatePriorToCurrentPoint'], [fmi2Component, fmi2Real, fmi2Real, fmi2Boolean]) self._fmi2Function('fmi2CancelStep', ['component'], [fmi2Component]) # Inquire slave status self._fmi2Function('fmi2GetStatus', ['component', 'kind', 'value'], [fmi2Component, fmi2StatusKind, POINTER(fmi2Status)]) self._fmi2Function('fmi2GetRealStatus', ['component', 'kind', 'value'], [fmi2Component, fmi2StatusKind, POINTER(fmi2Real)]) self._fmi2Function('fmi2GetIntegerStatus', ['component', 'kind', 'value'], [fmi2Component, fmi2StatusKind, POINTER(fmi2Integer)]) self._fmi2Function('fmi2GetBooleanStatus', ['component', 'kind', 'value'], [fmi2Component, fmi2StatusKind, POINTER(fmi2Boolean)]) self._fmi2Function('fmi2GetStringStatus', ['component', 'kind', 'value'], [fmi2Component, fmi2StatusKind, POINTER(fmi2String)]) # Simulating the slave def setRealInputDerivatives(self, vr, order, value): vr = (fmi2ValueReference * len(vr))(*vr) order = (fmi2Integer * len(vr))(*order) value = (fmi2Real * len(vr))(*value) self.fmi2SetRealInputDerivatives(self.component, vr, len(vr), order, value) def getRealOutputDerivatives(self, vr, order): vr = (fmi2ValueReference * len(vr))(*vr) order = (fmi2Integer * len(vr))(*order) value = (fmi2Real * len(vr))() self.fmi2GetRealOutputDerivatives(self.component, vr, len(vr), order, value) return list(value) def doStep(self, currentCommunicationPoint, communicationStepSize, noSetFMUStatePriorToCurrentPoint=fmi2True): self.fmi2DoStep(self.component, currentCommunicationPoint, communicationStepSize, noSetFMUStatePriorToCurrentPoint) def cancelStep(self): self.fmi2CancelStep(self.component) # Inquire slave status def getStatus(self, kind): value = fmi2Status(fmi2OK) self.fmi2GetStatus(self.component, kind, byref(value)) return value def getRealStatus(self, kind): value = fmi2Real(0.0) self.fmi2GetRealStatus(self.component, kind, byref(value)) return value def getIntegerStatus(self, kind): value = fmi2Integer(0) self.fmi2GetIntegerStatus(self.component, kind, byref(value)) return value def getBooleanStatus(self, kind): value = fmi2Boolean(fmi2False) self.fmi2GetBooleanStatus(self.component, kind, byref(value)) return value def getStringStatus(self, kind): value = fmi2String(b'') self.fmi2GetStringStatus(self.component, kind, byref(value)) return value
39.666667
160
0.595266
88871d0266ed7989fe8b943df73e0fbb7fa9c616
4,143
kt
Kotlin
kvstore/src/main/kotlin/kvstore/client/SocketChannel.kt
wellls/Kites
ce055b10d422177e01a9d32ad07a789599e8d7c1
[ "MIT" ]
42
2020-11-17T12:32:43.000Z
2021-03-02T00:48:32.000Z
kvstore/src/main/kotlin/kvstore/client/SocketChannel.kt
WyattJia/Kites
ce055b10d422177e01a9d32ad07a789599e8d7c1
[ "MIT" ]
null
null
null
kvstore/src/main/kotlin/kvstore/client/SocketChannel.kt
WyattJia/Kites
ce055b10d422177e01a9d32ad07a789599e8d7c1
[ "MIT" ]
8
2020-12-04T18:14:15.000Z
2020-12-10T12:58:31.000Z
package kvstore.client import raft.service.AddNodeCommand import raft.service.Channel import raft.service.ChannelException import java.io.* import java.net.InetSocketAddress import java.net.Socket class SocketChannel(private val host: String, private val port: Int) : Channel { override fun send(payload: Any?): Any? { try { Socket().use { socket -> socket.tcpNoDelay = true socket.connect(InetSocketAddress(host, port)) if (payload != null) { this.write(socket.getOutputStream(), payload) } return read(socket.getInputStream()) } } catch (e: IOException) { throw ChannelException("failed to send and receive", e) } } @Throws(IOException::class) private fun read(input: InputStream): Any? { val dataInput = DataInputStream(input) val messageType = dataInput.readInt() val payloadLength = dataInput.readInt() val payload = ByteArray(payloadLength) dataInput.readFully(payload) return when (messageType) { MessageConstants.MSG_TYPE_SUCCESS -> null MessageConstants.MSG_TYPE_FAILURE -> { val protoFailure: Protos.Failure = Protos.Failure.parseFrom(payload) throw ChannelException( "error code " + protoFailure.getErrorCode().toString() + ", message " + protoFailure.getMessage() ) } MessageConstants.MSG_TYPE_REDIRECT -> { val protoRedirect: Protos.Redirect = Protos.Redirect.parseFrom(payload) throw RedirectException(NodeId(protoRedirect.getLeaderId())) } MessageConstants.MSG_TYPE_GET_COMMAND_RESPONSE -> { val protoGetCommandResponse: GetCommandResponse = Protos.GetCommandResponse.parseFrom(payload) if (!protoGetCommandResponse.getFound()) null else protoGetCommandResponse.getValue().toByteArray() } else -> throw ChannelException("unexpected message type $messageType") } } @Throws(IOException::class) private fun write(output: OutputStream, payload: Any) { if (payload is GetCommand) { val protoGetCommand: GetCommand = Protos.GetCommand.newBuilder().setKey((payload as GetCommand).getKey()).build() this.write(output, MessageConstants.MSG_TYPE_GET_COMMAND, protoGetCommand) } else if (payload is SetCommand) { val setCommand: SetCommand = payload as SetCommand val protoSetCommand: SetCommand = Protos.SetCommand.newBuilder() .setKey(setCommand.getKey()) .setValue(ByteString.copyFrom(setCommand.getValue())).build() this.write(output, MessageConstants.MSG_TYPE_SET_COMMAND, protoSetCommand) } else if (payload is AddNodeCommand) { val command: AddNodeCommand = payload as AddNodeCommand val protoAddServerCommand: AddNodeCommand = Protos.AddNodeCommand.newBuilder().setNodeId(command.getNodeId()) .setHost(command.getHost()).setPort(command.getPort()).build() this.write(output, MessageConstants.MSG_TYPE_ADD_SERVER_COMMAND, protoAddServerCommand) } else if (payload is RemoveNodeCommand) { val command: RemoveNodeCommand = payload as RemoveNodeCommand val protoRemoveServerCommand: RemoveNodeCommand = Protos.RemoveNodeCommand.newBuilder().setNodeId(command.getNodeId().getValue()).build() this.write(output, MessageConstants.MSG_TYPE_REMOVE_SERVER_COMMAND, protoRemoveServerCommand) } } @Throws(IOException::class) private fun write(output: OutputStream, messageType: Int, message: MessageLite) { val dataOutput = DataOutputStream(output) val messageBytes: ByteArray = message.toByteArray() dataOutput.writeInt(messageType) dataOutput.writeInt(messageBytes.size) dataOutput.write(messageBytes) dataOutput.flush() } }
45.032609
117
0.647357
276aa72a2d994af289e7ee6f471a412d244d83cd
2,053
sql
SQL
capstoneproject.sql
UjangCode/ShareCamp
6612bdb94f6610a5d043c3894d43d5f784151da6
[ "MIT" ]
null
null
null
capstoneproject.sql
UjangCode/ShareCamp
6612bdb94f6610a5d043c3894d43d5f784151da6
[ "MIT" ]
null
null
null
capstoneproject.sql
UjangCode/ShareCamp
6612bdb94f6610a5d043c3894d43d5f784151da6
[ "MIT" ]
null
null
null
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2021 at 09:10 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `capstoneproject` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_login` -- CREATE TABLE `tb_login` ( `id_login` int(5) NOT NULL, `email` int(50) NOT NULL, `password` int(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `tb_user` -- CREATE TABLE `tb_user` ( `id_user` int(5) NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `nama` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tb_user` -- INSERT INTO `tb_user` (`id_user`, `email`, `password`, `nama`) VALUES (1, 'adji@gmail.com', '12345', 'adji nugraha'), (2, 'putra@gmail.com', '54321', 'putra nugraha'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_login` -- ALTER TABLE `tb_login` ADD PRIMARY KEY (`id_login`); -- -- Indexes for table `tb_user` -- ALTER TABLE `tb_user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_login` -- ALTER TABLE `tb_login` MODIFY `id_login` int(5) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tb_user` -- ALTER TABLE `tb_user` MODIFY `id_user` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
22.075269
69
0.657087
9f53ca68973aaedf3fca96ef4df565924e493d0c
4,952
lua
Lua
luci-app-quickstart/luasrc/controller/istore_backend.lua
lianhecai/small-package
e8aadb3e5b451523ff308ac5c46823301d0ade0b
[ "Apache-2.0" ]
15
2022-02-19T10:36:38.000Z
2022-03-04T10:59:15.000Z
luci-app-quickstart/luasrc/controller/istore_backend.lua
cyzzc/small-package
f6ecb8927699903a20d22cfd8801623d36184e17
[ "Apache-2.0" ]
null
null
null
luci-app-quickstart/luasrc/controller/istore_backend.lua
cyzzc/small-package
f6ecb8927699903a20d22cfd8801623d36184e17
[ "Apache-2.0" ]
null
null
null
-- Copyright 2022 xiaobao <xiaobao@linkease.com> -- Licensed to the public under the MIT License local http = require "luci.http" local nixio = require "nixio" local ltn12 = require "luci.ltn12" local table = require "table" local util = require "luci.util" module("luci.controller.istore_backend", package.seeall) local BLOCKSIZE = 2048 local ISTOREOS_PORT = 3038 function index() entry({"istore"}, call("istore_backend")).leaf=true end function sink_socket(sock, io_err) if sock then return function(chunk, err) if not chunk then return 1 else return sock:send(chunk) end end else return ltn12.sink.error(io_err or "unable to send socket") end end local function session_retrieve(sid, allowed_users) local sdat = util.ubus("session", "get", { ubus_rpc_session = sid }) if type(sdat) == "table" and type(sdat.values) == "table" and type(sdat.values.token) == "string" and (not allowed_users or util.contains(allowed_users, sdat.values.username)) then return sid, sdat.values end return nil, nil end function istore_backend() local sock = nixio.connect("127.0.0.1", ISTOREOS_PORT) if not sock then http.status(500, "connect failed") return end local input = {} input[#input+1] = http.getenv("REQUEST_METHOD") .. " " .. http.getenv("REQUEST_URI") .. " HTTP/1.1" local req = http.context.request local start = "HTTP_" local start_len = string.len(start) local ctype = http.getenv("CONTENT_TYPE") if ctype then input[#input+1] = "Content-Type: " .. ctype end for k, v in pairs(req.message.env) do if string.sub(k, 1, start_len) == start and not string.find(k, "FORWARDED") then input[#input+1] = string.sub(k, start_len+1, string.len(k)) .. ": " .. v end end local sid = http.getcookie("sysauth") if sid then local sid, sdat = session_retrieve(sid, nil) if sdat ~= nil then input[#input+1] = "X-Forwarded-Sid: " .. sid input[#input+1] = "X-Forwarded-Token: " .. sdat.token end end -- input[#input+1] = "X-Forwarded-For: " .. http.getenv("REMOTE_HOST") ..":".. http.getenv("REMOTE_PORT") local num = tonumber(http.getenv("CONTENT_LENGTH")) or 0 input[#input+1] = "Content-Length: " .. tostring(num) input[#input+1] = "\r\n" local source = ltn12.source.cat(ltn12.source.string(table.concat(input, "\r\n")), http.source()) local ret = ltn12.pump.all(source, sink_socket(sock, "write sock error")) if ret ~= 1 then sock:close() http.status(500, "proxy error") return end local linesrc = sock:linesource() local line, code, error = linesrc() if not line then sock:close() http.status(500, "response parse failed") return end local protocol, status, msg = line:match("^([%w./]+) ([0-9]+) (.*)") if not protocol then sock:close() http.status(500, "response protocol error") return end num = tonumber(status) or 0 http.status(num, msg) local chunked = 0 line = linesrc() while line and line ~= "" do local key, val = line:match("^([%w-]+)%s?:%s?(.*)") if key and key ~= "Status" then if key == "Transfer-Encoding" and val == "chunked" then chunked = 1 end if key ~= "Connection" and key ~= "Transfer-Encoding" then http.header(key, val) end end line = linesrc() end if not line then sock:close() http.status(500, "parse header failed") return end local body_buffer = linesrc(true) if chunked == 1 then ltn12.pump.all(chunksource(sock, body_buffer), http.write) else local body_source = ltn12.source.cat(ltn12.source.string(body_buffer), sock:blocksource()) ltn12.pump.all(body_source, http.write) end sock:close() end function chunksource(sock, buffer) buffer = buffer or "" return function() local output local _, endp, count = buffer:find("^([0-9a-fA-F]+);?.-\r\n") while not count and #buffer <= 1024 do local newblock, code = sock:recv(1024 - #buffer) if not newblock then return nil, code end buffer = buffer .. newblock _, endp, count = buffer:find("^([0-9a-fA-F]+);?.-\r\n") end count = tonumber(count, 16) if not count then return nil, -1, "invalid encoding" elseif count == 0 then return nil elseif count + 2 <= #buffer - endp then output = buffer:sub(endp+1, endp+count) buffer = buffer:sub(endp+count+3) return output else output = buffer:sub(endp+1, endp+count) buffer = "" if count - #output > 0 then local remain, code = sock:recvall(count-#output) if not remain then return nil, code end output = output .. remain count, code = sock:recvall(2) else count, code = sock:recvall(count+2-#buffer+endp) end if not count then return nil, code end return output end end end
28.136364
107
0.630452
3ead1601aac20a678c2db89307144d68ea7c0b3d
2,272
swift
Swift
MoyaVsWinter/MUser.swift
sanjaymhj/MoyaVsWinter
0c10eeea6d014f71146b1fe1505d62c75a52a759
[ "MIT" ]
null
null
null
MoyaVsWinter/MUser.swift
sanjaymhj/MoyaVsWinter
0c10eeea6d014f71146b1fe1505d62c75a52a759
[ "MIT" ]
null
null
null
MoyaVsWinter/MUser.swift
sanjaymhj/MoyaVsWinter
0c10eeea6d014f71146b1fe1505d62c75a52a759
[ "MIT" ]
null
null
null
// // MUser.swift // MoyaVsWinter // // Created by Sanjay Maharjan on 8/10/17. // Copyright © 2017 Leapfrog. All rights reserved. // import Foundation import Moya var MProvider = MoyaProvider<AppAPI>() enum MURLs { static var login = URL(string: URLConstants.login)! static var logout = URL(string: URLConstants.logout)! static var register = URL(string: URLConstants.register)! static var store = URL(string: URLConstants.securityQuestionList)! } //let googleProvider = MoyaProvider<another>() // //enum another: TargetType { // case .login: // // var baseURL: URL //} enum AppAPI: TargetType { case login(username: String, password: String) case logout case register(params: [String: Any]) case store /// The target's base `URL`. var baseURL: URL { return URL(string: URLConstants.getBaseURL())! } /// The path to be appended to `baseURL` to form the full `URL`. var path: String { switch self { case .login: return "auth/login" case .logout: return "auth/logout" case .register: return "auth/register" case .store: return "mckesson/store-locator" }} /// The HTTP method used in the request. var method: Moya.Method { switch self { case .login: return .post case .logout: return .delete case .register: return .post case .store: return .get } } /// The parameters to be encoded in the request. var parameters: [String: Any]? { //[Any] switch self { case .login(let username, let password): return [ "email": username as Any, "password": password as Any ] case .register(let params): return params default: return nil } } var param: [Any]? { return nil } /// The method used for parameter encoding. var parameterEncoding: ParameterEncoding { return URLEncoding.default } /// Provides stub data for use in testing. var sampleData: Data { return "From Test Data".data(using: String.Encoding.utf8)! } /// The type of HTTP task to be performed. var task: Task { return .request } /// Whether or not to perform Alamofire validation. Defaults to `false`. var validate: Bool { return false } }
21.433962
74
0.636444
aa090c45e0f2ee163bb3c9de31fb16ab6692f7f3
1,140
rb
Ruby
Kernel/Think/Read/read.rb
YiiGaa/Christmas
15df321b7c055e57ea2f3c5e51ec5606b0f52ad1
[ "MIT" ]
null
null
null
Kernel/Think/Read/read.rb
YiiGaa/Christmas
15df321b7c055e57ea2f3c5e51ec5606b0f52ad1
[ "MIT" ]
null
null
null
Kernel/Think/Read/read.rb
YiiGaa/Christmas
15df321b7c055e57ea2f3c5e51ec5606b0f52ad1
[ "MIT" ]
null
null
null
=begin param = { "action" => "*", //需要调用的动作 "path" => "*" //读取文件路劲 } =end # encoding=UTF-8 #require_relative './ReadExcel/readExcel.rb' require_relative './ReadJson/readJson.rb' require_relative './ReadTempl/readTempl.rb' require_relative './ReadTemplInLine/readTemplInLine.rb' require_relative './ReadTxt/readTxt.rb' require_relative './ReadDirectoryList/readDirectoryList.rb' require_relative './ReadFileList/readFileList.rb' require_relative './ReadHttp/readHttp.rb' class CRead def initialize() @ReadMap = { #"ReadExcel" => CReadExcel.new, "ReadJson" => CReadJson.new, "ReadTempl" => CReadTempl.new, "ReadTemplInLine" => CReadTemplInLine.new, "ReadTxt" => CReadTxt.new, "ReadDirectoryList" => CReadDirectoryList.new, "ReadFileList" => CReadFileList.new, "ReadHttp" => CReadHttp.new } end def start(param) return @ReadMap[param['action']].start(param) end end
34.545455
67
0.570175
3502e7054833abadef6df49ae6edfd2cbecf6218
6,370
kt
Kotlin
app/src/main/java/com/rogertalk/roger/ui/screens/InviteActivity.kt
rogertalk/roger-android
55c9922947311d9d8a1e930463b9ac2a1332e006
[ "MIT" ]
1
2019-09-09T13:40:35.000Z
2019-09-09T13:40:35.000Z
app/src/main/java/com/rogertalk/roger/ui/screens/InviteActivity.kt
rogertalk/roger-android
55c9922947311d9d8a1e930463b9ac2a1332e006
[ "MIT" ]
null
null
null
app/src/main/java/com/rogertalk/roger/ui/screens/InviteActivity.kt
rogertalk/roger-android
55c9922947311d9d8a1e930463b9ac2a1332e006
[ "MIT" ]
null
null
null
package com.rogertalk.roger.ui.screens import android.content.Context import android.content.Intent import android.os.Bundle import com.rogertalk.kotlinjubatus.LONG_ANIM_DURATION import com.rogertalk.kotlinjubatus.beGone import com.rogertalk.kotlinjubatus.fadeIn import com.rogertalk.roger.R import com.rogertalk.roger.manager.EventTrackingManager import com.rogertalk.roger.manager.LocalInviteManager import com.rogertalk.roger.models.json.Stream import com.rogertalk.roger.repo.StreamCacheRepo import com.rogertalk.roger.repo.UserAccountRepo import com.rogertalk.roger.ui.screens.base.BaseAppCompatActivity import com.rogertalk.roger.utils.android.ShareUtils import com.rogertalk.roger.utils.constant.NO_ID import com.rogertalk.roger.utils.extensions.stringResource import com.rogertalk.roger.utils.image.RoundImageUtils import com.rogertalk.roger.utils.log.logDebug import com.rogertalk.roger.utils.phone.PhoneUtils import kotlinx.android.synthetic.main.invite_after_talking_screen.* import java.util.* import kotlin.LazyThreadSafetyMode.NONE class InviteActivity : BaseAppCompatActivity() { companion object { private val EXTRA_TOKEN = "token" private val EXTRA_STREAM_ID = "streamId" private val EXTRA_PARTICIPANT_NAME = "participantName" private val EXTRA_PHONE_LIST = "phoneList" private val EXTRA_OPEN_GROUP = "openGroup" fun start(context: Context, token: String, participantName: String, phoneList: ArrayList<String>, streamId: Long, isOpenGroup: Boolean): Intent { val startIntent = Intent(context, InviteActivity::class.java) startIntent.putExtra(EXTRA_TOKEN, token) startIntent.putExtra(EXTRA_STREAM_ID, streamId) startIntent.putExtra(EXTRA_PARTICIPANT_NAME, participantName) startIntent.putExtra(EXTRA_PHONE_LIST, phoneList) startIntent.putExtra(EXTRA_OPEN_GROUP, isOpenGroup) return startIntent } fun shareViaOther(context: Context, token: String, isOpenGroup: Boolean, groupName: String? = null) { val userAccount = UserAccountRepo.current() ?: return EventTrackingManager.invitation(EventTrackingManager.InvitationMethod.ONE_ON_ONE_OTHER) val message: String val link = " ${ShareUtils.getCompleteShareUrl(userAccount, token, isOpenGroup)}" if (isOpenGroup) { val group = groupName ?: "" message = R.string.invitation_send_email_chooser.stringResource(group) + link } else { message = R.string.invitation_message.stringResource() + link } ShareUtils.shareAudioLink(message, context) } } // Extras private val token: String by lazy(NONE) { intent.getStringExtra(EXTRA_TOKEN) } private val streamId: Long by lazy(NONE) { intent.getLongExtra(EXTRA_STREAM_ID, NO_ID) } private val participantName: String by lazy(NONE) { intent.getStringExtra(EXTRA_PARTICIPANT_NAME) } private val phoneList: ArrayList<String> by lazy(NONE) { intent.getStringArrayListExtra(EXTRA_PHONE_LIST) } private val isOpenGroup: Boolean by lazy(NONE) { intent.getBooleanExtra(EXTRA_OPEN_GROUP, false) } private val stream: Stream? get() { return StreamCacheRepo.getStream(streamId) } // // OVERRIDE METHODS // override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.invite_after_talking_screen) setupUI() // Clear memory LocalInviteManager.newlyInvitedParticipants = ArrayList() } override fun onBackPressed() { super.onBackPressed() supportFinishAfterTransition() } // // PUBLIC METHODS // // // PRIVATE METHODS // private fun setupUI() { // Load Avatar val stream = StreamCacheRepo.getStream(streamId) stream?.let { val photo = stream.imageURL if (photo != null) { RoundImageUtils.createRoundImageMainAvatar(this, contactPhoto, photo) } } logDebug { "Phone numbers list: $phoneList" } // Deal with each invite flow case separately if (isOpenGroup) { setupUIForOpenGroup() } else { setupUIForNormalInvite() } // Make other components appear outerCircle.fadeIn(LONG_ANIM_DURATION) { startConversationDescription.fadeIn() } } private fun setupUIForOpenGroup() { val groupName = stream?.title ?: return startConversationDescription.text = R.string.invite_open_group_main.stringResource(groupName) // For open groups, always share via multiple options otherSharingOptionsButton.beGone() sendButton.setOnClickListener { shareViaOther(true) } } private fun setupUIForNormalInvite() { startConversationDescription.text = R.string.invite_start_conversation_description.stringResource(participantName) val canSendSms = PhoneUtils.canSendSms() val isGroup = phoneList.size > 1 if (canSendSms) { sendButton.setText(R.string.invite_send_via_sms_button_label) sendButton.setOnClickListener { shareViaSMS() } if (isGroup) { otherSharingOptionsButton.beGone() } else { otherSharingOptionsButton.setOnClickListener { shareViaOther(false) } } } else { // This device cannot send SMS! otherSharingOptionsButton.beGone() sendButton.setOnClickListener { shareViaOther(false) } } } private fun shareViaSMS() { val userAccount = UserAccountRepo.current() ?: return val message = R.string.invitation_message.stringResource() + " ${ShareUtils.getCompleteShareUrl(userAccount, token, isOpenGroup = false)}" EventTrackingManager.invitation(EventTrackingManager.InvitationMethod.ONE_ON_ONE_SMS) ShareUtils.shareViaSMS(message, phoneList, this) finish() } private fun shareViaOther(isOpenGroup: Boolean) { shareViaOther(this, token, isOpenGroup, participantName) finish() } }
36.609195
122
0.679435
fb8a453b4d46355832126de47c38a383331682db
2,256
h
C
src/graphics/lib/compute/spinel/platforms/vk/device.h
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
210
2019-02-05T12:45:09.000Z
2022-03-28T07:59:06.000Z
src/graphics/lib/compute/spinel/platforms/vk/device.h
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
56
2021-06-03T03:16:25.000Z
2022-03-20T01:07:44.000Z
src/graphics/lib/compute/spinel/platforms/vk/device.h
PlugFox/fuchsia
39afe5230d41628b3c736a6e384393df954968c8
[ "BSD-2-Clause" ]
73
2019-03-06T18:55:23.000Z
2022-03-26T12:04:51.000Z
// Copyright 2019 The Fuchsia 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 SRC_GRAPHICS_LIB_COMPUTE_SPINEL_PLATFORMS_VK_DEVICE_H_ #define SRC_GRAPHICS_LIB_COMPUTE_SPINEL_PLATFORMS_VK_DEVICE_H_ // // // #include <vulkan/vulkan_core.h> #include "allocator_device.h" #include "allocator_host.h" #include "spinel/spinel_vk.h" // // // struct spn_device { struct spn_vk_environment environment; // Vulkan environment struct spn_context * context; // Spinel abstract interface struct spn_vk * instance; // Instance of target state and resources struct hotsort_vk * hs; // HotSort instance struct { struct { struct spn_allocator_host_perm perm; } host; struct { struct { struct spn_allocator_device_perm drw; // device read-write struct spn_allocator_device_perm hw_dr; // host write / device read once struct spn_allocator_device_perm hrw_dr; // host read-write / device read once struct spn_allocator_device_perm hr_dw; // host read / device write once } perm; struct { struct spn_allocator_device_temp drw; // device read-write } temp; } device; } allocator; struct spn_queue_pool * queue_pool; struct spn_handle_pool * handle_pool; struct spn_dispatch * dispatch; struct spn_block_pool * block_pool; struct spn_status_block_pool * status; }; // // Disable device because of a fatal error // void spn_device_lost(struct spn_device * const device); // // // uint64_t spn_device_get_timeout_ns(struct spn_device * const device); // // // spn_result_t spn_device_wait_all(struct spn_device * const device, bool const wait_all, char const * const label_name); spn_result_t spn_device_wait(struct spn_device * const device, char const * const label_name); // // // void spn_debug_utils_cmd_begin(VkCommandBuffer cb, char const * const label_name); void spn_debug_utils_cmd_end(VkCommandBuffer cb); // // // #endif // SRC_GRAPHICS_LIB_COMPUTE_SPINEL_PLATFORMS_VK_DEVICE_H_
22.117647
87
0.686613
06e9ddbd5d41c9f96f73c520c1781fa771359353
307
py
Python
django/pactf_web/ctflex_helpers.py
milesmcc/pactf-2018
cfd9d94a7b6828259220f52ab3c5893a28429c62
[ "MIT" ]
10
2016-02-29T00:30:54.000Z
2021-04-18T17:47:54.000Z
django/pactf_web/ctflex_helpers.py
milesmcc/pactf-2018
cfd9d94a7b6828259220f52ab3c5893a28429c62
[ "MIT" ]
1
2018-06-21T21:55:33.000Z
2018-06-25T12:49:59.000Z
django/pactf_web/ctflex_helpers.py
milesmcc/pactf-2018
cfd9d94a7b6828259220f52ab3c5893a28429c62
[ "MIT" ]
8
2016-04-01T14:57:05.000Z
2019-04-01T03:37:21.000Z
"""Define objects for CTFlex""" # def eligible(team): # """Determine eligibility of team # # This function is used by CTFlex. # """ # return (team.standing == team.GOOD_STANDING # and team.country == team.US_COUNTRY # and team.background == team.SCHOOL_BACKGROUND)
25.583333
60
0.618893
3da4fa8e2dfdf7f6a75d0063236746c1b708ede0
1,542
dart
Dart
LibTest/convert/JsonDecoder/JsonDecoder_A01_t02.dart
tvolkert/co19
435727789062a45da3d20da09024651fdeb8cafe
[ "BSD-3-Clause" ]
null
null
null
LibTest/convert/JsonDecoder/JsonDecoder_A01_t02.dart
tvolkert/co19
435727789062a45da3d20da09024651fdeb8cafe
[ "BSD-3-Clause" ]
null
null
null
LibTest/convert/JsonDecoder/JsonDecoder_A01_t02.dart
tvolkert/co19
435727789062a45da3d20da09024651fdeb8cafe
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file * for details. All rights reserved. Use of this source code is governed by a * BSD-style license that can be found in the LICENSE file. */ /** * @assertion const JsonDecoder([reviver(key, value)]) * Constructs a new JsonDecoder. * The reviver may be null. * @description Checks that this constructor creates decoder which works as * expected. Test constructor with reviver parameter * @author sgrekhov@unipro.ru */ import "dart:convert"; import "../../../Utils/expect.dart"; var reviverKeys = []; var reviverValues = []; reviver(key, value) { reviverKeys.add(key); reviverValues.add(value); return "x"; } check(JsonDecoder decoder, String toDecode, List expKeys, List expValues) { reviverKeys = []; reviverValues = []; var decoded = decoder.convert(toDecode); Expect.equals("x", decoded); Expect.listEquals(expKeys, reviverKeys); Expect.listEquals(reviverValues, expValues); } main() { JsonDecoder decoder = new JsonDecoder(reviver); check(decoder, '{"a": 3}', ["a", null], [3, {"a": "x"}]); check(decoder, '{"b": 3.14}', ["b", null], [3.14, {"b": "x"}]); check(decoder, '{"c": true}', ["c", null], [true, {"c": "x"}]); check(decoder, '["d", "e"]', [0, 1, null], ["d", "e", ["x", "x"]]); check(decoder, '{"f": {"g": "h"}}', ["g", "f", null], ["h", {"g": "x"}, {"f": "x"}]); check(decoder, '["й", "ф"]', [0, 1, null], ["й", "ф", ["x", "x"]]); check(decoder, '{"й": "ф"}', ["й", null], ["ф", {"й": "x"}]); }
32.808511
77
0.59987
efbdbb48c7ec269b34254df070bff7c0674030d4
369
kt
Kotlin
data/src/main/java/dev/mslalith/focuslauncher/data/database/entities/AppRoom.kt
mslalith/focus_launcher
92e0ad336e4cee942fc7434bb4bc0cf4acaf4467
[ "Apache-2.0" ]
1
2022-03-07T09:01:45.000Z
2022-03-07T09:01:45.000Z
data/src/main/java/dev/mslalith/focuslauncher/data/database/entities/AppRoom.kt
mslalith/focus_launcher
92e0ad336e4cee942fc7434bb4bc0cf4acaf4467
[ "Apache-2.0" ]
null
null
null
data/src/main/java/dev/mslalith/focuslauncher/data/database/entities/AppRoom.kt
mslalith/focus_launcher
92e0ad336e4cee942fc7434bb4bc0cf4acaf4467
[ "Apache-2.0" ]
null
null
null
package dev.mslalith.focuslauncher.data.database.entities import androidx.room.Entity import androidx.room.PrimaryKey import dev.mslalith.focuslauncher.data.utils.Constants @Entity(tableName = Constants.Database.APPS_TABLE_NAME) data class AppRoom( val name: String, @PrimaryKey(autoGenerate = false) val packageName: String, val isSystem: Boolean, )
26.357143
57
0.791328
e47e4d50641c327da61f68082af5a195698634bd
5,559
rs
Rust
src/gameboy.rs
bthuilot/gb-emu-rust
17ab3bff49d03ab703ac89e63701924a3fe5c2fd
[ "MIT" ]
null
null
null
src/gameboy.rs
bthuilot/gb-emu-rust
17ab3bff49d03ab703ac89e63701924a3fe5c2fd
[ "MIT" ]
null
null
null
src/gameboy.rs
bthuilot/gb-emu-rust
17ab3bff49d03ab703ac89e63701924a3fe5c2fd
[ "MIT" ]
null
null
null
use crate::bit_functions::{reset, set, test}; use crate::cpu::{Z80}; use crate::graphics::{ColorPixel, SCREEN_HEIGHT, SCREEN_WIDTH}; use crate::memory::{DIV, MMU, TIMA, TMA, FRAMES_PER_SECOND, CLOCK_SPEED}; use crate::graphics::{CGBPalette, PALETTE_BGB}; pub struct Gameboy { pub memory: MMU, pub cpu: Z80, // TODO: Sounds paused: bool, pub working_screen: [[ColorPixel; SCREEN_HEIGHT as usize]; SCREEN_WIDTH as usize], pub bg_priority: [[bool; SCREEN_HEIGHT as usize]; SCREEN_WIDTH as usize], pub tile_scanline: [u8; SCREEN_WIDTH as usize], pub scanline_counter: isize, pub cleared: bool, pub rendered_screen: [[ColorPixel; SCREEN_HEIGHT as usize]; SCREEN_WIDTH as usize], pub interrupts_enabling: bool, pub interrupts_on: bool, pub halted: bool, pub cgb_mode: bool, pub current_palette: usize, pub bg_palette: CGBPalette, pub sprite_palette: CGBPalette, } impl Gameboy { pub fn update(&mut self) -> usize { if self.paused { return 0; } let mut cycles = 0; while cycles < self.memory.speed.cycle_frames * (self.memory.speed.current as usize + 1) { let mut cycles_op = 4; if !self.halted { cycles_op = self.execute_next_opcode(); } cycles += cycles_op; self.update_graphics(cycles_op as isize); self.update_timers(cycles_op); cycles += self.do_interrupts(); } return cycles; } pub fn update_timers(&mut self, cycles: usize) { self.divider_register(cycles); if self.is_clock_enabled() { self.memory.timer.value += cycles; let freq = self.get_clock_freq_count(); while self.memory.timer.value >= freq { self.memory.timer.value = self.memory.timer.value.wrapping_sub(freq); let tima = self.read(TIMA); if tima == 0xFF { self.memory.ram[TIMA.wrapping_sub(0xFF00) as usize] = self.read(TMA); self.request_interrupt(2); } else { self.memory.ram[TIMA.wrapping_sub(0xFF00) as usize] = tima.wrapping_add(1); } } } } pub fn get_clock_freq_count(&self) -> usize { return match self.get_clock_freq() { 0 => 1024, 1 => 16, 2 => 64, _ => 256, }; } pub fn toggle_speed(&mut self, on: bool) { let frames = if on {4 * CLOCK_SPEED / FRAMES_PER_SECOND} else {CLOCK_SPEED / FRAMES_PER_SECOND}; self.memory.speed.cycle_frames = frames; } pub fn divider_register(&mut self, cycles: usize) { self.cpu.divider += cycles; if self.cpu.divider >= 255 { self.cpu.divider -= 255; self.memory.ram[(DIV - 0xFF00) as usize] = self.memory.ram[(DIV - 0xFF00) as usize].wrapping_add(1); } } pub fn request_interrupt(&mut self, interrupt: u8) { let mut req = self.read_upper_ram(0xFF0F); req = set(req, interrupt); self.write(0xFF0F, req); } pub fn do_interrupts(&mut self) -> usize { if self.interrupts_enabling { self.interrupts_on = true; self.interrupts_enabling = false; return 0; } if !self.interrupts_on && !self.halted { return 0; } let req = self.read_upper_ram(0xFF0F); let enabled = self.read_upper_ram(0xFFFF); if req > 0 { for i in 0_u8..5 { if test(req, i) && test(enabled, i) { self.service_interrupt(i); return 20; } } } return 0; } pub fn service_interrupt(&mut self, interrupt: u8) { if !self.interrupts_on && self.halted { self.halted = false; return; } self.interrupts_on = false; self.halted = false; let mut req = self.read_upper_ram(0xFF0F); req = reset(req, interrupt); self.write(0xFF0F, req); self.push_stack(self.cpu.pc); self.cpu.pc = match interrupt { 0 => 0x40, 1 => 0x48, 2 => 0x50, 3 => 0x58, 4 => 0x60, _ => 0x00, // Shouldnt happen } } pub fn new(rom: &str) -> Gameboy { let mut cpu = Z80::new(); let mut memory = MMU::new(rom); memory.init(); let cgb_mode = memory.has_cgb_mode(); cpu.init(cgb_mode); return Gameboy { memory, cpu, paused: false, working_screen: [[ColorPixel { r: 255, b: 255, g: 255, }; SCREEN_HEIGHT as usize]; SCREEN_WIDTH as usize], bg_priority: [[false; SCREEN_HEIGHT as usize]; SCREEN_WIDTH as usize], tile_scanline: [0; SCREEN_WIDTH as usize], scanline_counter: 456, cleared: false, rendered_screen: [[ColorPixel { r: 255, b: 255, g: 255, }; SCREEN_HEIGHT as usize]; SCREEN_WIDTH as usize], interrupts_enabling: false, interrupts_on: false, halted: false, cgb_mode, current_palette: PALETTE_BGB as usize, bg_palette: CGBPalette::new(), sprite_palette: CGBPalette::new(), }; } }
31.055866
104
0.536068
2facafecdef042874093d1fec189c428eebea3ed
1,814
py
Python
tuneit/tools/time.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
tuneit/tools/time.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
tuneit/tools/time.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
"Tools for measuring and optimize the execution time" # pylint: disable=C0303,C0330 __all__ = [ "benchmark", ] from timeit import timeit from .base import sample class Time(float): "Time formatter" units = {"nsec": 1e-9, "usec": 1e-6, "msec": 1e-3, "sec": 1.0} def __str__(self): scales = [(scale, unit) for unit, scale in Time.units.items()] scales.sort(reverse=True) for scale, unit in scales: if self >= scale: break return f"{self / scale:.3f} {unit}" __repr__ = __str__ def default_timer(fnc, number=100): return timeit(fnc, number=100) / number def benchmark( tunable, *variables, timer=default_timer, timer_kwargs=None, samples=None, label="Time", **kwargs, ): """ Crosscheck the result of tunable against the reference. Parameters ---------- comparison: callable (default = numpy.allclose) The function to use for comparison. It is called as fnc(reference, value) and should return a value from 0 (False) to 1 (True). reference: Any The reference value. If None, than the default values are used to produce the result. variables: list of str Set of variables to sample. samples: int The number of samples to run. If None, all the combinations are sampled. timer_kwargs: dict Arguments passed to the timer. For default timer: - number: (int) number of iterations kwargs: dict Variables passed to the compute function. See help(tunable.compute) """ return sample( tunable, *variables, callback=lambda fnc: Time(timer(fnc, **(timer_kwargs or {}))), callback_calls=True, samples=samples, label=label, **kwargs, )
25.549296
93
0.620728
72cfaed030c8f535fd8357a5ccd9cfeabdff9a74
189
cs
C#
TinyBackend/Program.cs
eldeko/TinyPNGFolderToAPI
f6ad2ab44da7d19a4689aedaa2ac3b573cb3c2d5
[ "MIT" ]
null
null
null
TinyBackend/Program.cs
eldeko/TinyPNGFolderToAPI
f6ad2ab44da7d19a4689aedaa2ac3b573cb3c2d5
[ "MIT" ]
null
null
null
TinyBackend/Program.cs
eldeko/TinyPNGFolderToAPI
f6ad2ab44da7d19a4689aedaa2ac3b573cb3c2d5
[ "MIT" ]
null
null
null
using System.Threading.Tasks; namespace TinyBackend { class Program { static async Task Main(string[] args) { } } }
14.538462
45
0.455026
7292a5ce66cd8c42743f477aa95205c67e2e5f94
632
cs
C#
src/SanityDotNet/Web/EndpointRouteBuilderExtensions.cs
MattisOlsson/SanityDotNet
58ef5262b5bc4afce6f94296380b8d8d8e90c057
[ "Apache-2.0" ]
null
null
null
src/SanityDotNet/Web/EndpointRouteBuilderExtensions.cs
MattisOlsson/SanityDotNet
58ef5262b5bc4afce6f94296380b8d8d8e90c057
[ "Apache-2.0" ]
null
null
null
src/SanityDotNet/Web/EndpointRouteBuilderExtensions.cs
MattisOlsson/SanityDotNet
58ef5262b5bc4afce6f94296380b8d8d8e90c057
[ "Apache-2.0" ]
null
null
null
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Routing; using SanityDotNet.Mvc.Routing; namespace SanityDotNet.Web { public static class EndpointRouteBuilderExtensions { public static IEndpointRouteBuilder MapSanityRoutes(this IEndpointRouteBuilder endpoints) { endpoints.MapControllerRoute("Home", "{controller=StartPage}/{action=index}"); endpoints.MapControllerRoute("Webhooks", "webhooks/{controller}/{action=index}/{id?}"); endpoints.MapDynamicControllerRoute<SanityRouteValueTransformer>("{**slugs}"); return endpoints; } } }
37.176471
99
0.712025
c42a24c0464599f37230836540333f75a738d277
1,894
cc
C++
lib/wam_orderby.cc
fbsamples/wamquery
d772b10adb5ff7979212b0b2d6197c06c4553478
[ "Apache-2.0" ]
1
2021-09-12T13:28:40.000Z
2021-09-12T13:28:40.000Z
lib/wam_orderby.cc
fbsamples/wamquery
d772b10adb5ff7979212b0b2d6197c06c4553478
[ "Apache-2.0" ]
null
null
null
lib/wam_orderby.cc
fbsamples/wamquery
d772b10adb5ff7979212b0b2d6197c06c4553478
[ "Apache-2.0" ]
1
2021-09-12T12:36:55.000Z
2021-09-12T12:36:55.000Z
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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. */ /* orderby + limit implementation */ #include <algorithm> #include "wam_orderby.h" /* array to sort (maybe be partially sort) */ static tuple_t **tuples = NULL; typedef tuple_t *tuple_p; static uint64_t size = 0; void wam_orderby_init(uint64_t input_size) { tuples = new tuple_p[input_size]; } void wam_orderby_free(void) { if (!tuples) return; delete []tuples; tuples = NULL; } void wam_orderby_visit(tuple_t *t) { tuples[size++] = t; } /* NOTE: the same as wam_query_orderby_compare(a, b) but returns bool instead of * int 0|1 */ static inline bool compare_tuple(tuple_t *a, tuple_t *b) { return wam_query_orderby_compare(a, b); } tuple_t **wam_orderby_function(uint64_t limit) { if (limit >= size) // full sort std::sort(tuples, tuples + size, compare_tuple); else // partial sort std::partial_sort(tuples, tuples + limit, tuples + size, compare_tuple); return tuples; } /* NOTE: the same as wam_query_groupby_compare(a, b) but returns bool instead of * int 0|1 */ static inline bool compare_groupby_key(tuple_t *a, tuple_t *b) { return wam_query_groupby_compare(a, b); } tuple_t **wam_orderby_group_key(void) { std::sort(tuples, tuples + size, compare_groupby_key); return tuples; }
21.522727
80
0.703801
fb9dca47e60e7d5f781306b9aed9c9d084015be6
1,373
h
C
src/gameworld/gameworld/other/turntable/turntableconfig.h
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
3
2021-12-16T13:57:28.000Z
2022-03-26T07:50:08.000Z
src/gameworld/gameworld/other/turntable/turntableconfig.h
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
null
null
null
src/gameworld/gameworld/other/turntable/turntableconfig.h
mage-game/metagame-xm-server
193b67389262803fe0eae742800b1e878b5b3087
[ "MIT" ]
1
2022-03-26T07:50:11.000Z
2022-03-26T07:50:11.000Z
#ifndef __TURN_TABLE__ #define __TURN_TABLE__ #include <string> #include "servercommon/servercommon.h" #include "servercommon/struct/itemlistparam.h" #include "servercommon/configbase.h" #include "servercommon/pugixml/pugixml_adapter.hpp" static const int TURNTABLE_REWARDS_MAX_COUNT = 8; enum TURNTABLE_TYPE { TURNTABLE_TYPE_MILLIIONAIRE = 0, TURNTABLE_TYPE_MAX_COUNT = 16, }; UNSTD_STATIC_CHECK(0 == TURNTABLE_TYPE_MAX_COUNT % 2 && 16 == TURNTABLE_TYPE_MAX_COUNT); struct TurnTableRewardCfg { TurnTableRewardCfg() : item_index(0), weight(0), is_notice(false) { } int item_index; int weight; bool is_notice; ItemConfigData item; }; struct TurnTableRollCfg { TurnTableRollCfg() : type(-1), great_index(0), lucky_max(0), need_item(0), need_num(0) { memset(rewards, 0, sizeof(rewards)); } int type; int great_index; int lucky_max; ItemID need_item; int need_num; TurnTableRewardCfg rewards[TURNTABLE_REWARDS_MAX_COUNT]; }; class TurnTableConfig : public ConfigBase { public: TurnTableConfig(); ~TurnTableConfig(); bool Init(const std::string &path, std::string *err); const TurnTableRollCfg * GetRollCfgList(int req_type); private: int InitTurnTableRewardsCfg(PugiXmlNode RootElement); int InitTurnTableRollCfg(PugiXmlNode RootElement); int m_roll_cfg_count; TurnTableRollCfg m_roll_cfg_list[TURNTABLE_TYPE_MAX_COUNT]; }; #endif
19.898551
88
0.776402
b0fcbea0d21265bc89ceda84be9bec4809b5c355
1,014
py
Python
guitarpractice/tests/exercises/test_technique_hammers_pulls.py
craigargh/guitar-practice-core
d7a9d2f0123d20e3ad7721d0b1a396c5f6fc6818
[ "MIT" ]
null
null
null
guitarpractice/tests/exercises/test_technique_hammers_pulls.py
craigargh/guitar-practice-core
d7a9d2f0123d20e3ad7721d0b1a396c5f6fc6818
[ "MIT" ]
null
null
null
guitarpractice/tests/exercises/test_technique_hammers_pulls.py
craigargh/guitar-practice-core
d7a9d2f0123d20e3ad7721d0b1a396c5f6fc6818
[ "MIT" ]
null
null
null
import random from unittest import TestCase from guitarpractice.exercises.technique_hammers_pulls import technique_hammers_pulls from guitarpractice.models import Beat class TestHammersAndPulls(TestCase): def test_level_one_has_eighth_notes(self): random.seed(10) result = technique_hammers_pulls(variation='level-1') self.assertEqual(8, len(result.notes)) self.assertTrue(all(Beat(1, 8) == note.duration for note in result.notes)) def test_level_two_has_eighth_notes(self): random.seed(10) result = technique_hammers_pulls(variation='level-2') self.assertEqual(8, len(result.notes)) self.assertTrue(all(Beat(1, 8) == note.duration for note in result.notes)) def test_level_two_can_have_sixteenth_notes(self): random.seed(3) result = technique_hammers_pulls(variation='level-2') self.assertEqual(16, len(result.notes)) self.assertTrue(all(Beat(1, 16) == note.duration for note in result.notes))
31.6875
84
0.718935
9ff8310c218c0dabb97df75347295e6a2190420f
488
py
Python
habmapslib/habmapslib/ConfHandler.py
alpeza/habmapsgateway
a531da53b78b3e445b2cae8be1edc73a9084d40d
[ "CC0-1.0" ]
null
null
null
habmapslib/habmapslib/ConfHandler.py
alpeza/habmapsgateway
a531da53b78b3e445b2cae8be1edc73a9084d40d
[ "CC0-1.0" ]
null
null
null
habmapslib/habmapslib/ConfHandler.py
alpeza/habmapsgateway
a531da53b78b3e445b2cae8be1edc73a9084d40d
[ "CC0-1.0" ]
null
null
null
import yaml class ConfHandler(object): """Clase encargada de cargar la configuración""" def __init__(self, file='conf.yaml'): super(ConfHandler, self).__init__() self.configfile = file self.config = {} self.load() def load(self): with open(self.configfile) as file: self.config = yaml.load(file, Loader=yaml.FullLoader) def printf(self): print(self.config) def getConfig(self): return self.config
25.684211
65
0.616803
f45fbc3c12671fb3fae2b11205dbb1312d93f6cd
1,269
cs
C#
Turner.Infrastructure.Mediator/Error.cs
epicbrownie/Turner.Infrastructure.Mediator
81cbb3a0e133433f7d97d407a74e17ffe03e46c9
[ "MIT" ]
null
null
null
Turner.Infrastructure.Mediator/Error.cs
epicbrownie/Turner.Infrastructure.Mediator
81cbb3a0e133433f7d97d407a74e17ffe03e46c9
[ "MIT" ]
null
null
null
Turner.Infrastructure.Mediator/Error.cs
epicbrownie/Turner.Infrastructure.Mediator
81cbb3a0e133433f7d97d407a74e17ffe03e46c9
[ "MIT" ]
null
null
null
using System.Threading.Tasks; namespace Turner.Infrastructure.Mediator { public class Error { public string PropertyName { get; set; } public string ErrorMessage { get; set; } public static Response AsResponse(string errorMessage, string propertyName = "") { var error = new Error { PropertyName = propertyName, ErrorMessage = errorMessage }; return error.AsResponse(); } public static Response<TResult> AsResponse<TResult>(string errorMessage, string propertyName = "") { var error = new Error { PropertyName = propertyName, ErrorMessage = errorMessage }; return error.AsResponse<TResult>(); } public static Task<Response> AsResponseAsync(string errorMessage, string propertyName = "") { return Task.FromResult(AsResponse(errorMessage, propertyName)); } public static Task<Response<TResult>> AsResponseAsync<TResult>(string errorMessage, string propertyName = "") { return Task.FromResult(AsResponse<TResult>(errorMessage, propertyName)); } } }
29.511628
117
0.583136
07b32032f189ae2627ebb4287ff3aca4a00469bf
8,309
swift
Swift
TurtleTools/TurtleCore/Lexer.swift
foxostro/Turtle16
67e6d2afa02f2bc07711f8e8d756e5b891ea8df5
[ "MIT" ]
1
2021-08-18T22:30:11.000Z
2021-08-18T22:30:11.000Z
TurtleTools/TurtleCore/Lexer.swift
foxostro/Turtle16
67e6d2afa02f2bc07711f8e8d756e5b891ea8df5
[ "MIT" ]
null
null
null
TurtleTools/TurtleCore/Lexer.swift
foxostro/Turtle16
67e6d2afa02f2bc07711f8e8d756e5b891ea8df5
[ "MIT" ]
null
null
null
// // Lexer.swift // TurtleCore // // Created by Andrew Fox on 8/20/19. // Copyright © 2019 Andrew Fox. All rights reserved. // open class Lexer: NSObject { public let string: String private var position: String.Index public var isAtEnd:Bool { return position == string.endIndex } public let lineMapper: SourceLineRangeMapper public private(set) var tokens: [Token] = [] public class Rule : NSObject { public let regex: NSRegularExpression? public let emit: (SourceAnchor) -> Token? public init(pattern: String, emit: @escaping (SourceAnchor) -> Token?) { self.regex = try? NSRegularExpression(pattern: "^\(pattern)", options: []) self.emit = emit } } public var rules: [Rule] = [] public private(set) var errors: [CompilerError] = [] public var hasError:Bool { return errors.count != 0 } public required init(_ string: String, _ url: URL? = nil) { self.string = string position = string.startIndex lineMapper = SourceLineRangeMapper(url: url, text: string) } public func peekRange(_ ahead: Int = 0) -> Range<String.Index>? { var start: String.Index = position for _ in 0..<ahead { string.formIndex(after: &start) if start >= string.endIndex { return nil } } var end: String.Index = start if start < string.endIndex { string.formIndex(after: &end) } else { return nil } let range = start..<end return range } public func peek(_ ahead: Int = 0) -> Substring? { guard let range = peekRange(ahead) else { return nil } let substring = string[range] return substring } public func advance() { if position != string.endIndex { string.formIndex(after: &position) } } public func match(pattern: String) -> SourceAnchor? { return match(rule: Rule(pattern: pattern, emit: {_ in return nil})) } public func match(rule: Rule) -> SourceAnchor? { guard let regex = rule.regex else { return nil } guard let match = regex.firstMatch(in: string, options: [], range: NSRange(position..., in: string)) else { return nil } let matchedRange = Range(match.range, in: string)! position = matchedRange.upperBound return SourceAnchor(range: matchedRange, lineMapper: lineMapper) } public func advanceToNewline() { while let c = peek() { if c == "\n" { break } advance() } } public func scanTokens() { errors = [] while !isAtEnd { do { try scanToken() } catch let error as CompilerError { errors.append(error) advanceToNewline() // recover by skipping to the next line } catch { // This catch block should be unreachable because scanToken() // only throws CompilerError. Regardless, we need it to satisfy // the compiler. errors.append(CompilerError(sourceAnchor: tokens.last?.sourceAnchor, message: "unrecoverable error: \(error.localizedDescription)")) return } } let eofAnchor = SourceAnchor(range: string.endIndex..<string.endIndex, lineMapper: lineMapper) tokens.append(TokenEOF(sourceAnchor: eofAnchor)) } public func scanToken() throws { for rule in rules { if let anchor = match(rule: rule) { if let token = rule.emit(anchor) { tokens.append(token) } return } } throw unexpectedCharacterError(sourceAnchor: SourceAnchor(range: peekRange()!, lineMapper: lineMapper)) } func unexpectedCharacterError(sourceAnchor: SourceAnchor) -> CompilerError { return CompilerError(sourceAnchor: sourceAnchor, message: "unexpected character: `\(sourceAnchor.text)'") } public func makeNewlineRule() -> Lexer.Rule { return Rule(pattern: "\n") { TokenNewline(sourceAnchor: $0) } } public func makeCommaRule() -> Lexer.Rule { return Rule(pattern: ",") { TokenComma(sourceAnchor: $0) } } public func makeColonRule() -> Lexer.Rule { return Rule(pattern: ":") { TokenColon(sourceAnchor: $0) } } public func makeForwardSlashRule() -> Lexer.Rule { return Rule(pattern: "/") { TokenForwardSlash(sourceAnchor: $0) } } public func makeQuotedStringRule() -> Lexer.Rule { return Rule(pattern: "\".*\"") {[weak self] in TokenLiteralString(sourceAnchor: $0, literal: self!.interpretQuotedString(lexeme: String($0.text))) } } fileprivate func interpretQuotedString(lexeme: String) -> String { var result = String(lexeme.dropFirst().dropLast()) let map = ["\0" : "\\0", "\t" : "\\t", "\n" : "\\n", "\r" : "\\r", "\"" : "\\\"", "\'" : "\\\'", "\\" : "\\\\"] for (entity, description) in map { result = result.replacingOccurrences(of: description, with: entity) } return result } public func makeIdentifierRule() -> Lexer.Rule { return Rule(pattern: "[_a-zA-Z][\\-_a-zA-Z0-9]*\\b") { TokenIdentifier(sourceAnchor: $0) } } public func makeDecimalNumberRule() -> Lexer.Rule { return Rule(pattern: "[-]{0,1}[0-9]+\\b") { let scanner = Scanner(string: String($0.text)) var number: Int = 0 let result = scanner.scanInt(&number) assert(result) return TokenNumber(sourceAnchor: $0, literal: number) } } public func makeHexadecimalNumberWithDollarSigilRule() -> Lexer.Rule { return Rule(pattern: "\\$[0-9a-fA-F]+\\b") { let scanner = Scanner(string: String($0.text.dropFirst())) var number: UInt64 = 0 let result = scanner.scanHexInt64(&number) assert(result) return TokenNumber(sourceAnchor: $0, literal: Int(number)) } } public func makeHexadecimalNumberRule() -> Lexer.Rule { return Rule(pattern: "0[xX][0-9a-fA-F]+\\b") { let scanner = Scanner(string: String($0.text)) var number: UInt64 = 0 let result = scanner.scanHexInt64(&number) assert(result) return TokenNumber(sourceAnchor: $0, literal: Int(number)) } } public func makeBinaryNumberRule() -> Lexer.Rule { return Rule(pattern: "0b[01]+\\b") { let scanner = Scanner(string: String($0.text)) var number = 0 let result = scanner.scanBinaryInt(&number) assert(result) return TokenNumber(sourceAnchor: $0, literal: number) } } public func makeQuotedCharacterRule() -> Lexer.Rule { return Rule(pattern: "'.'") { let number = Int(String($0.text).split(separator: "'").first!.unicodeScalars.first!.value) return TokenNumber(sourceAnchor: $0, literal: number) } } public func makeWhitespaceRule() -> Lexer.Rule { return Rule(pattern: "[ \t]+") {_ in nil } } public func makeCommentRule() -> Lexer.Rule { return Rule(pattern: "((#)|(//))") {[weak self] _ in self!.advanceToNewline() return nil } } public func makeParenLeftRule() -> Lexer.Rule { return Rule(pattern: "\\(") { TokenParenLeft(sourceAnchor: $0) } } public func makeParenRightRule() -> Lexer.Rule { return Rule(pattern: "\\)") { TokenParenRight(sourceAnchor: $0) } } }
32.081081
115
0.535082
9731bf6cae5483117bc9b4c53499a765aed3cd5e
7,459
rb
Ruby
bin/_seqTuplets.rb
piperauritum/LotusRoot
004d2c520a24e42b9a6468b65319de9934037be2
[ "MIT" ]
null
null
null
bin/_seqTuplets.rb
piperauritum/LotusRoot
004d2c520a24e42b9a6468b65319de9934037be2
[ "MIT" ]
null
null
null
bin/_seqTuplets.rb
piperauritum/LotusRoot
004d2c520a24e42b9a6468b65319de9934037be2
[ "MIT" ]
null
null
null
require_relative '_override' require_relative '_notation' class DataProcess include Notation def initialize(_tuplets) @tpl_param = _tuplets end def unfold_elements(dur, elm) if dur.select{|e| e<1}!=[] puts "LotusRoot >> Durations has wrong values #{dur.select{|e| e<1}}" raise end elm.map.with_index{|el, i| du = dur.on(i) if du>0 case el when /@:/ # tremolo [el]+["=:"]*(du-1) when /@=/ # repeat markup on tied notes fo = el.sub("=", "") fo = fo.gsub(/#A(.*?)A#/m, "\\1") # markup head la = el.sub("@", "=") la = la.gsub(/#A.*?A#/m, "") [fo]+[la]*(du-1) when /@/ # attack [el]+["="]*(du-1) when /(r!|s!|rrr|sss)/ # rest, spacer rest [el]+[$1]*(du-1) when /%/ # two-notes tremolo head = el.sub("%", "%ATK") rept = el.scan(/%\d+/)[0] + el.scan(/\[.+\]/)[0] [head]+[rept]*(du-1) when /=/ # tie [el]*du when Array # staccato stacc_el, stacc_du = el if stacc_du > du puts "LotusRoot >> Staccato duration is longer than event duration." raise end sdu = [stacc_du, du].min-1 rest = ["r!"]*(du-stacc_du) if stacc_el=~/@:/ [stacc_el]+["=:"]*sdu+rest else [stacc_el]+["="]*sdu+rest end end end }.flatten end def process_metre(metre) begin metre.map{|e| MtrParam.new(e)} rescue puts "LotusRoot >> .metre must be [Integer..] or [[[Integer..], Rational]..]" raise end end def beat_structure(metre) metre.map{|e| if e.unit==1 [1]*e.beat.sum else e.beat.map{|f| e.unit*f} end }.flatten end def assemble_tuplets(elms, tpar, metre) tpls = [] beats = beat_structure(metre) idx = 0 while elms.size>0 begin tp = tpar.on(idx) rescue puts "LotusRoot >> Parameter of tuplet must be [Integer..] or [[Integer, Integer, Rational]..]" raise end beat = beats.on(idx) rept = 1 case tp when Array tpp = tp.to_tpar when Integer tpp = tuplet_num_to_param(tp, beat) rto = Rational(tpp.numer, tpp.denom) if [ !tpp.even?, tpp.numer>tp, tpp.numer!=rto.numerator, Rational(tp, rto.numerator)%1==0 ].all? if beat%1==0 rept = tpp.numer/tp tpp = [tp, tpp.denom/rept, tpp.unit].to_tpar else rept = tpp.numer/rto.numerator tpp = [rto.numerator, rto.denominator, tpp.unit].to_tpar end end end rept.times{ begin len = tpp.numer tick = tpp.tick rescue puts "LotusRoot >> Parameter of tuplet must be [Integer..] or [[Integer, Integer, Rational]..]" raise end if Integer===tp && tick.numerator>1 len = tp tick *= Rational(tpp.numer, tp) end if note_value(tpp)[tick]==nil puts <<-EOS LotusRoot >> There is not notation of the duration (#{tick}) for tuplet (#{tpp.ar}) LotusRoot >> Beat: (#{beat}) LotusRoot >> #{note_value(tpp.ar)} EOS raise end # Cut tuplet out from array if elms.size>len ay = elms.slice!(0, len) else ay = elms.slice!(0, elms.size) ay += Array.new(len-ay.size, "r!") end # Simplify tuplet only_rest = ay-["r!"]==[] only_tie = ay-%w(= =:)==[] only_trem = ay.map{|e| !!(e=~/%\d+/)}.all? atk_tie = !!(ay[0]=~/@/) && ay[1..-1]-%w(= =:)==[] atk_trem = !!(ay[0]=~/%ATK/) && ay[1..-1].map{|e| !!(e=~/%\d+/)}.all? atk_mktie = (!!(ay[0]=~/@/) || !!(ay[0]=~/==/)) && ay[1..-1].map{|e| !!(e=~/==/)}.all? tu = Tuplet.new if [only_rest, only_tie, only_trem, atk_tie, atk_trem, atk_mktie].any? du = tick*len tick = Rational(1, du.denominator) len = du.numerator ay = [ay[0]] + [ay[1]]*(len-1) tu.par = [len, len, tick].to_tpar else if Integer === tp tu.par = tpp else tu.par = tpar.on(idx).to_tpar end end ay = ay.map{|e| Event.new(e, tick)} tu.evts = ay tpls << tu } idx += 1 end tpls end def delete_ties_across_beats(tpls) tpls.map{|e| if e.evts[0].el=="=" && e.evts.map(&:el).uniq!=["="] re = true e.evts.map!{|f| case f.el when /@/ re = false f when "=" re ? Event.new("r!", f.du) : f else f end } end e } end def subdivide_tuplet(tuplet, prev, tick, subdiv=true) tuple = tuplet.evts.deepcopy tpp = tuplet.par quad, evt = [], nil t = tuple.size beat_struc = [t] if subdiv if @dotDuplet beat_struc = [2]*(t/2)+[t%2] elsif t%3==0 beat_struc = [3]*(t/3) if tpp.numer!=3 else beat_struc = [4]*(t/4)+[t%4] end end beat_struc -= [0] sliced = [] beat_struc.each{|e| sliced << tuple.shift(e) } sliced.each.with_index{|sl, j| qa = [] sl.each_with_index{|ev, i| if i==0 evt = ev else isTie = [ev.el]-%w(= =:)==[] markedTie = (prev.evts.el=~/@/ || prev.evts.el=~/==/) && ev.el=~/==/ bothRests = %w(r! s!).map{|e| prev.evts.el=~/#{e}/ && ev.el=="#{e}" }.any? bothTrems = prev.evts.el=~/%/ && ev.el=~/%/ && !(ev.el=~/%ATK/) # isAtk = ev.el=~/(@|%ATK|rrr|sss)/ # newRest = %w(r! s!).map{|e| # (!(prev=~/#{e}/) && ev.el=~/#{e}/) || ev.el=~/#{e}./ # }.any? # noNval = note_value(tpp)[evt.dsum+tick]==nil if [isTie, bothTrems, bothRests, markedTie].any? evt.du = [evt.du, tick] else qa << evt evt = ev end end prev = Tuplet.new(tpp, ev) } qa << evt quad << qa } quad = Tuplet.new(tpp, quad) [quad, prev] end def recombine_tuplet(tuplet) quad = tuplet.evts tpp = tuplet.par tick = tpp.tick beat_struc = quad.map{|e| (e.dlook.flatten.sum/tick).to_i } if tpp.even? beat_struc = [tpp.numer].map{|e| if e%3==0 [3]*(e/3) else [4]*(e/4)+[e%4]-[0] end }.flatten end tp_ary = [beat_struc, tpp.denom, tpp.unit].to_tpar while 0 id = 0 time = 0 again = false boo = false while id<quad.size fo, la = quad[id], quad[id+1] if la!=nil fol, laf = fo.last, la.first nv = fol.dsum + laf.dsum if fo.size>1 time += fo[0..-2].dtotal boo = true end if @dotDuplet && tpp.dot? nval = note_value_dot(tpp)[nv] else nval = note_value(tpp)[nv] end bothNotes = [ [laf.el]-%w(= =:)==[] && [ fol.el=~/@/, fol.el=='+', [fol.el]-%w(= =:)==[] ].any?, [ fol.el=~/%/, laf.el=~/%/, !(laf.el=~/%ATK/) ].all?, fol.el=~/@/ && laf.el=~/==/, fol.el=~/==/ && laf.el=~/==/, ].any? bothRests = [ fol.el=~/r!/ && laf.el=="r!", fol.el=~/s!/ && laf.el=="s!", ].any? pos_table = { 3 => { 2 => [0, 1], 3 => [0], 6 => [0], }, 4 => { 2 => [0, 1, 2], 3 => [0, 1], 4 => [0, 2], 6 => [0, 2], 8 => [0], }, } npos = allowed_positions(tp_ary, pos_table, nv) if tpp.even? || [6,8].map{|e| tpp.numer==e }.any? if @tidyTuplet!=nil && npos.all?{|e| time!=e} nval = nil end end if (bothNotes || bothRests) && nval!=nil fol.du = [fol.du, laf.du] la.shift quad.delete_if{|e| e==[]} again = again || true end time -= fo[0..-2].dtotal if boo time += fo.dtotal end id += 1 end break if again == false end Tuplet.new(tpp, quad.flatten!) end end
19.628947
100
0.499933
7af7ecfbc39729e129a024a620eb8f00c1961da4
440
cs
C#
SystemManagement.Repository/DeptRepository.cs
KINGGUOKUN/SystemManagement
97d1b84ea05cc4256b69dbe1972cc1ec77dd3022
[ "MIT" ]
217
2020-03-07T13:28:12.000Z
2022-03-22T11:05:51.000Z
SystemManagement.Repository/DeptRepository.cs
KINGGUOKUN/SystemManagement
97d1b84ea05cc4256b69dbe1972cc1ec77dd3022
[ "MIT" ]
5
2020-03-14T10:26:46.000Z
2022-02-27T21:12:08.000Z
SystemManagement.Repository/DeptRepository.cs
KINGGUOKUN/SystemManagement
97d1b84ea05cc4256b69dbe1972cc1ec77dd3022
[ "MIT" ]
75
2020-03-12T01:58:02.000Z
2021-12-14T11:54:38.000Z
using System; using System.Collections.Generic; using System.Text; using SystemManagement.Entity; using SystemManagement.Repository.Contract; using WeihanLi.EntityFramework; namespace SystemManagement.Repository { public class DeptRepository : EFRepository<SystemManageDbContext, SysDept>, IDeptRepository { public DeptRepository(SystemManageDbContext dbContext) : base(dbContext) { } } }
24.444444
95
0.743182
e25eb4fee986638f7e9bb5d755d3b6ea08b0aa1b
2,861
js
JavaScript
src/store/modules/d2admin/modules/account.js
MicrosoftCore/atis-coco-admin
11da7af5117f907ac46ff26ef1349bd9d7825fdf
[ "MIT" ]
null
null
null
src/store/modules/d2admin/modules/account.js
MicrosoftCore/atis-coco-admin
11da7af5117f907ac46ff26ef1349bd9d7825fdf
[ "MIT" ]
null
null
null
src/store/modules/d2admin/modules/account.js
MicrosoftCore/atis-coco-admin
11da7af5117f907ac46ff26ef1349bd9d7825fdf
[ "MIT" ]
null
null
null
import JsCookie from 'js-cookie' import { AccountLoginService } from '@/common/service' export default { namespaced: true, state: { vm: undefined }, actions: { /** * @description App 引导程序 * 此时一切准备就绪,开始获取用户信息并加载菜单 */ async bootstrap ({ state, commit, dispatch }) { // Global vuex root. const scope = { root: true } // 先拿用户 const user = await dispatch('d2admin/user/get', state.vm, scope) // 拿到用户之后, 再加载菜单, 用户信息, 常规数据 if (user) { commit('d2admin/user/set', user, scope) commit('d2admin/menu/asideSet', user, scope) dispatch('common/initialize', null, scope) state.vm.$router.push({ name: 'index' }) } }, /** * @description 登陆 * @param {Object} param context * @param {Object} param username {String} 用户账号 * @param {Object} param password {String} 密码 */ async login ({ state, dispatch }, params) { const vm = state.vm const result = await AccountLoginService(vm, { ...params, grant_type: 'password' }) if (result) { const { access_token, expires_in, error, error_description } = result if (error && error_description) { vm.$message.error(error_description) Promise.reject(error_description) } else { const setting = { expires: expires_in } JsCookie.set('access_token', access_token, setting) vm.$log.capsule( `login-success`, `${vm.$moment().format('YYYY/MM/DD HH:mm:ss')}`, `success`) await dispatch('bootstrap') } } }, /** * @description 注销用户并返回登陆页面 * @param {Object} param context * @param {Object} param confirm {Boolean} 是否需要确认 */ logout ({ state }, { confirm = false }) { /** * @description 注销 */ const logout = () => { // 删除cookie JsCookie.remove('access_token') // 跳转路由 state.vm.$router.push({ name: 'login' }) } if (confirm) { state.vm.$confirm('注销此账户吗?', '注销', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { logout() }).catch(() => { // 取消了注销 state.vm.$message('放弃注销用户') }) } else { logout() } } }, mutations: { /** * @description 用户登陆后从持久化数据加载一系列的设置 * @param {Object} state vuex state */ load (state, vm) { // Vue -> store 挂载实例 state.vm = vm // DB -> store 加载用户名 this.commit('d2admin/user/load') // DB -> store 持久化数据加载这个用户之前设置的侧边栏折叠状态 this.commit('d2admin/menu/asideMenusLoad') } } }
23.072581
61
0.506816
7c04383871198259ed02929a947c7a7ce162082f
10,973
py
Python
metal/types/bgp_session.py
displague/metal-python
96e64e9ac41025d85ff6f61693165e29e1c366db
[ "MIT" ]
null
null
null
metal/types/bgp_session.py
displague/metal-python
96e64e9ac41025d85ff6f61693165e29e1c366db
[ "MIT" ]
3
2021-09-27T05:10:36.000Z
2021-09-27T06:10:57.000Z
metal/types/bgp_session.py
displague/metal-python
96e64e9ac41025d85ff6f61693165e29e1c366db
[ "MIT" ]
null
null
null
# coding: utf-8 """ Metal API This is the API for Equinix Metal. The API allows you to programmatically interact with all of your Equinix Metal resources, including devices, networks, addresses, organizations, projects, and your user account. The official API docs are hosted at <https://metal.equinix.com/developers/api>. # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: support@equinixmetal.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six from metal.configuration import Configuration class BgpSession(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. """ """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ openapi_types = { 'id': 'str', 'status': 'str', 'learned_routes': 'list[str]', 'address_family': 'str', 'device': 'Href', 'href': 'str', 'default_route': 'bool', 'created_at': 'datetime', 'updated_at': 'datetime' } attribute_map = { 'id': 'id', 'status': 'status', 'learned_routes': 'learned_routes', 'address_family': 'address_family', 'device': 'device', 'href': 'href', 'default_route': 'default_route', 'created_at': 'created_at', 'updated_at': 'updated_at' } def __init__(self, id=None, status=None, learned_routes=None, address_family=None, device=None, href=None, default_route=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501 """BgpSession - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._id = None self._status = None self._learned_routes = None self._address_family = None self._device = None self._href = None self._default_route = None self._created_at = None self._updated_at = None self.discriminator = None if id is not None: self.id = id if status is not None: self.status = status if learned_routes is not None: self.learned_routes = learned_routes self.address_family = address_family if device is not None: self.device = device if href is not None: self.href = href if default_route is not None: self.default_route = default_route if created_at is not None: self.created_at = created_at if updated_at is not None: self.updated_at = updated_at @property def id(self): """Gets the id of this BgpSession. # noqa: E501 :return: The id of this BgpSession. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this BgpSession. :param id: The id of this BgpSession. # noqa: E501 :type id: str """ self._id = id @property def status(self): """Gets the status of this BgpSession. # noqa: E501 The status of the BGP Session. Multiple status values may be reported when the device is connected to multiple switches, one value per switch. Each status will start with \"unknown\" and progress to \"up\" or \"down\" depending on the connected device. Subsequent \"unknown\" values indicate a problem acquiring status from the switch. # noqa: E501 :return: The status of this BgpSession. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): """Sets the status of this BgpSession. The status of the BGP Session. Multiple status values may be reported when the device is connected to multiple switches, one value per switch. Each status will start with \"unknown\" and progress to \"up\" or \"down\" depending on the connected device. Subsequent \"unknown\" values indicate a problem acquiring status from the switch. # noqa: E501 :param status: The status of this BgpSession. # noqa: E501 :type status: str """ allowed_values = ["unknown", "up", "down"] # noqa: E501 if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 .format(status, allowed_values) ) self._status = status @property def learned_routes(self): """Gets the learned_routes of this BgpSession. # noqa: E501 :return: The learned_routes of this BgpSession. # noqa: E501 :rtype: list[str] """ return self._learned_routes @learned_routes.setter def learned_routes(self, learned_routes): """Sets the learned_routes of this BgpSession. :param learned_routes: The learned_routes of this BgpSession. # noqa: E501 :type learned_routes: list[str] """ self._learned_routes = learned_routes @property def address_family(self): """Gets the address_family of this BgpSession. # noqa: E501 :return: The address_family of this BgpSession. # noqa: E501 :rtype: str """ return self._address_family @address_family.setter def address_family(self, address_family): """Sets the address_family of this BgpSession. :param address_family: The address_family of this BgpSession. # noqa: E501 :type address_family: str """ if self.local_vars_configuration.client_side_validation and address_family is None: # noqa: E501 raise ValueError("Invalid value for `address_family`, must not be `None`") # noqa: E501 allowed_values = ["ipv4", "ipv6"] # noqa: E501 if self.local_vars_configuration.client_side_validation and address_family not in allowed_values: # noqa: E501 raise ValueError( "Invalid value for `address_family` ({0}), must be one of {1}" # noqa: E501 .format(address_family, allowed_values) ) self._address_family = address_family @property def device(self): """Gets the device of this BgpSession. # noqa: E501 :return: The device of this BgpSession. # noqa: E501 :rtype: Href """ return self._device @device.setter def device(self, device): """Sets the device of this BgpSession. :param device: The device of this BgpSession. # noqa: E501 :type device: Href """ self._device = device @property def href(self): """Gets the href of this BgpSession. # noqa: E501 :return: The href of this BgpSession. # noqa: E501 :rtype: str """ return self._href @href.setter def href(self, href): """Sets the href of this BgpSession. :param href: The href of this BgpSession. # noqa: E501 :type href: str """ self._href = href @property def default_route(self): """Gets the default_route of this BgpSession. # noqa: E501 :return: The default_route of this BgpSession. # noqa: E501 :rtype: bool """ return self._default_route @default_route.setter def default_route(self, default_route): """Sets the default_route of this BgpSession. :param default_route: The default_route of this BgpSession. # noqa: E501 :type default_route: bool """ self._default_route = default_route @property def created_at(self): """Gets the created_at of this BgpSession. # noqa: E501 :return: The created_at of this BgpSession. # noqa: E501 :rtype: datetime """ return self._created_at @created_at.setter def created_at(self, created_at): """Sets the created_at of this BgpSession. :param created_at: The created_at of this BgpSession. # noqa: E501 :type created_at: datetime """ self._created_at = created_at @property def updated_at(self): """Gets the updated_at of this BgpSession. # noqa: E501 :return: The updated_at of this BgpSession. # noqa: E501 :rtype: datetime """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): """Sets the updated_at of this BgpSession. :param updated_at: The updated_at of this BgpSession. # noqa: E501 :type updated_at: datetime """ self._updated_at = updated_at def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} def convert(x): if hasattr(x, "to_dict"): args = getfullargspec(x.to_dict).args if len(args) == 1: return x.to_dict() else: return x.to_dict(serialize) else: return x for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) attr = self.attribute_map.get(attr, attr) if serialize else attr if isinstance(value, list): result[attr] = list(map( lambda x: convert(x), value )) elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], convert(item[1])), value.items() )) else: result[attr] = convert(value) return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, BgpSession): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" if not isinstance(other, BgpSession): return True return self.to_dict() != other.to_dict()
30.823034
359
0.601203
23fbd84857aded1a8539f3456fb5c7dc55b3877a
640
js
JavaScript
packages/framework/assets/js/admin/components/fixedBar.js
LukasHeinz/shopsys
3c57fb81ee65b9fd8c317b0b957700e0e912f0f4
[ "PostgreSQL" ]
null
null
null
packages/framework/assets/js/admin/components/fixedBar.js
LukasHeinz/shopsys
3c57fb81ee65b9fd8c317b0b957700e0e912f0f4
[ "PostgreSQL" ]
null
null
null
packages/framework/assets/js/admin/components/fixedBar.js
LukasHeinz/shopsys
3c57fb81ee65b9fd8c317b0b957700e0e912f0f4
[ "PostgreSQL" ]
null
null
null
import SymfonyToolbarSupport from './symfonyToolbarSupport'; import Register from '../../common/utils/register'; export default class FixedBar { static onSymfonyToolbarShow () { $('.window-fixed-bar').addClass('window-fixed-bar--developer-mode'); } static onSymfonyToolbarHide () { $('.window-fixed-bar').removeClass('window-fixed-bar--developer-mode'); } static init () { SymfonyToolbarSupport.registerOnToolbarShow(FixedBar.onSymfonyToolbarShow); SymfonyToolbarSupport.registerOnToolbarHide(FixedBar.onSymfonyToolbarHide); } } (new Register()).registerCallback(FixedBar.init);
30.47619
83
0.714063
ed19a55486aff994dc813a1dc4668ddd078d0ab5
2,883
lua
Lua
Lua Test/Weapons/projectile.lua
Rud156/LoveCeleste
da8f856b8f3ab90a7d6011d98bdc885f938d4ad6
[ "MIT" ]
null
null
null
Lua Test/Weapons/projectile.lua
Rud156/LoveCeleste
da8f856b8f3ab90a7d6011d98bdc885f938d4ad6
[ "MIT" ]
null
null
null
Lua Test/Weapons/projectile.lua
Rud156/LoveCeleste
da8f856b8f3ab90a7d6011d98bdc885f938d4ad6
[ "MIT" ]
null
null
null
local PROJECTILE_SPEED = 25 local PROJECTILE_DESTROY_TIME = 0.5 local Projectile = { xPosition = 0, yPosition = 0, scale = 0, color = nil, body = nil, shape = nil, fixture = nil, destroyTime = 0, markedForDestroy = false, image = nil } Projectile.__index = Projectile function Projectile:new(xPosition, yPosition, scale, color, imagePath) local projectile = {} setmetatable(projectile, Projectile) projectile.xPosition = xPosition projectile.yPosition = yPosition projectile.scale = scale projectile.color = color projectile.body = nil projectile.shape = nil projectile.fixture = nil projectile.destroyTime = PROJECTILE_DESTROY_TIME projectile.markedForDestroy = false projectile.image = TEXTURE_MANAGER:getImageByPath(imagePath) return projectile end function Projectile:setupPhysics(objectTag) local width, height = self.image:getDimensions() width = width * self.scale height = height * self.scale self.body = love.physics.newBody(WORLD, self.xPosition, self.yPosition, "dynamic") self.body:setGravityScale(0) self.shape = love.physics.newRectangleShape(width, height) self.fixture = love.physics.newFixture(self.body, self.shape) self.fixture:setSensor(true) self.fixture:setUserData({ tag = objectTag, gameObject = self }) end function Projectile:update(dt) if self.body ~= nil then self.xPosition, self.yPosition = self.body:getPosition() self.body:setAwake(true) end if not self.markedForDestroy then self.destroyTime = self.destroyTime - dt if self.destroyTime <= 0 then self.markedForDestroy = true self:destroyProjectile() end end end function Projectile:draw() local originX = self.image:getWidth() * 0.5 local originY = self.image:getHeight() * 0.5 love.graphics.setColor(self.color.r, self.color.g, self.color.b, self.color.a) love.graphics.draw(self.image, self.xPosition, self.yPosition, 0, self.scale, self.scale, originX, originY) end function Projectile:drawPhysics() love.graphics.setColor(0, 0, 0, 1) love.graphics.polygon("line", self.body:getWorldPoints(self.shape:getPoints())) end function Projectile:launchProjectile(xDirection, yDirection) self.body:applyLinearImpulse(xDirection * PROJECTILE_SPEED, yDirection * PROJECTILE_SPEED) self.destroyTime = PROJECTILE_DESTROY_TIME; end function Projectile:getBody() return self.body end function Projectile:markForDestroy() self.markedForDestroy = true end function Projectile:isMarkedForDestroy() return self.markedForDestroy end function Projectile:destroyProjectile() if self.markedForDestroy and self.body ~= nil then self.body:destroy() self.body = nil end end local mod = {} mod.Projectile = Projectile return mod
27.721154
111
0.714533
455ab043ca617ad4f4b606687e9a9fc210b24170
578
py
Python
src/sst/elements/simpleElementExample/tests/subcomponent_tests/legacy/refFiles/test_sc_legacy_2nn.py
Xiaoyang-Lu/sst-elements
7946241e9f5a57a0bfdbfbf8452deacb1c3a9051
[ "BSD-3-Clause" ]
null
null
null
src/sst/elements/simpleElementExample/tests/subcomponent_tests/legacy/refFiles/test_sc_legacy_2nn.py
Xiaoyang-Lu/sst-elements
7946241e9f5a57a0bfdbfbf8452deacb1c3a9051
[ "BSD-3-Clause" ]
null
null
null
src/sst/elements/simpleElementExample/tests/subcomponent_tests/legacy/refFiles/test_sc_legacy_2nn.py
Xiaoyang-Lu/sst-elements
7946241e9f5a57a0bfdbfbf8452deacb1c3a9051
[ "BSD-3-Clause" ]
null
null
null
Loader0:mySubComp[0]:mySubCompSlot.numSent : Accumulator : Sum.u32 = 15; SumSQ.u32 = 15; Count.u64 = 15; Min.u32 = 1; Max.u32 = 1; Loader0:mySubComp[1]:mySubCompSlot.numSent : Accumulator : Sum.u32 = 15; SumSQ.u32 = 15; Count.u64 = 15; Min.u32 = 1; Max.u32 = 1; Loader1:mySubComp[0]:mySubCompSlot.numRecv : Accumulator : Sum.u32 = 15; SumSQ.u32 = 15; Count.u64 = 15; Min.u32 = 1; Max.u32 = 1; Loader1:mySubComp[1]:mySubCompSlot.numRecv : Accumulator : Sum.u32 = 15; SumSQ.u32 = 15; Count.u64 = 15; Min.u32 = 1; Max.u32 = 1; Simulation is complete, simulated time: 10 us
96.333333
132
0.686851
f46a6d7cf6fa2d1b4f98c893d9bc52502013ebe4
432
cs
C#
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/GetOssObjectsInput.cs
icxldd/abp-vue-admin-element-typescript
1ecc702e22536015da69db303059d9e3e3ae9d3c
[ "MIT" ]
389
2020-05-28T16:21:36.000Z
2021-12-15T02:47:51.000Z
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/GetOssObjectsInput.cs
icxldd/abp-vue-admin-element-typescript
1ecc702e22536015da69db303059d9e3e3ae9d3c
[ "MIT" ]
113
2020-06-14T12:20:06.000Z
2021-12-15T02:10:07.000Z
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.Application.Contracts/LINGYUN/Abp/OssManagement/GetOssObjectsInput.cs
icxldd/abp-vue-admin-element-typescript
1ecc702e22536015da69db303059d9e3e3ae9d3c
[ "MIT" ]
114
2020-05-19T13:14:44.000Z
2021-12-11T08:29:45.000Z
using Volo.Abp.Application.Dtos; namespace LINGYUN.Abp.OssManagement { public class GetOssObjectsInput : PagedAndSortedResultRequestDto { public string Bucket { get; set; } public string Prefix { get; set; } public string Delimiter { get; set; } public string Marker { get; set; } public string EncodingType { get; set; } public bool MD5 { get; set; } } }
28.8
69
0.615741
6254fb548a254fa7b75b6ceb6638467e63b9e64a
2,310
kt
Kotlin
mobile/src/main/java/com/podcreep/app/podcasts/podcast/PodcastDetailsLayout.kt
podcreep/android
2a2bbe1d1acafcd561b1b20d64a89c6e5233e562
[ "Apache-2.0" ]
null
null
null
mobile/src/main/java/com/podcreep/app/podcasts/podcast/PodcastDetailsLayout.kt
podcreep/android
2a2bbe1d1acafcd561b1b20d64a89c6e5233e562
[ "Apache-2.0" ]
null
null
null
mobile/src/main/java/com/podcreep/app/podcasts/podcast/PodcastDetailsLayout.kt
podcreep/android
2a2bbe1d1acafcd561b1b20d64a89c6e5233e562
[ "Apache-2.0" ]
null
null
null
package com.podcreep.app.podcasts.podcast import android.content.Context import android.view.LayoutInflater import android.widget.FrameLayout import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.LiveData import androidx.lifecycle.MediatorLiveData import androidx.lifecycle.Observer import com.podcreep.App import com.podcreep.R import com.podcreep.app.podcasts.episode.BaseEpisodeListLayout import com.podcreep.concurrency.TaskRunner import com.podcreep.databinding.PodcastDetailsBinding import com.podcreep.model.store.Episode import com.podcreep.model.store.Podcast import com.podcreep.model.store.Subscription class PodcastDetailsLayout( context: Context, lifecycleOwner: LifecycleOwner, podcast: LiveData<Podcast>, episodes: LiveData<List<Episode>>, taskRunner: TaskRunner, private val callbacks: Callbacks) : FrameLayout(context) { val binding: PodcastDetailsBinding private val episodeListLayout: EpisodeListLayout interface Callbacks: BaseEpisodeListLayout.Callbacks { } init { val inflater = LayoutInflater.from(context) binding = PodcastDetailsBinding.inflate(inflater, this, true) val subscriptionsLiveData = MediatorLiveData<List<Subscription>>() subscriptionsLiveData.addSource(podcast) { p -> run { val sub = Subscription(p.id) sub.podcast.value = p val subscriptions = ArrayList<Subscription>() subscriptions.add(sub) subscriptionsLiveData.value = subscriptions } } episodeListLayout = EpisodeListLayout( context, lifecycleOwner, subscriptionsLiveData, episodes, callbacks) findViewById<FrameLayout>(R.id.episode_list).addView(episodeListLayout) podcast.observe(lifecycleOwner, Observer { p -> run { refresh(p) } }) } fun refresh(podcast: Podcast) { binding.podcast = podcast binding.iconCache = App.i.iconCache binding.executePendingBindings() } class EpisodeListLayout(context: Context, lifecycleOwner: LifecycleOwner, subscriptions: LiveData<List<Subscription>>, episodes: LiveData<List<Episode>>, callbacks: Callbacks) : BaseEpisodeListLayout(context, lifecycleOwner, subscriptions, episodes, callbacks) { } }
31.643836
90
0.735498
da2880f674697c7753e45fa3748d7b23053e425a
943
ts
TypeScript
src/app/order-service.service.ts
ejohnsonw/travel-assist-merchant
715ae983e742edb44f17700cb5918e55fb3b0cb2
[ "MIT" ]
null
null
null
src/app/order-service.service.ts
ejohnsonw/travel-assist-merchant
715ae983e742edb44f17700cb5918e55fb3b0cb2
[ "MIT" ]
7
2021-03-09T23:58:38.000Z
2022-03-02T06:24:52.000Z
src/app/order-service.service.ts
ejohnsonw/travel-assist-merchant
715ae983e742edb44f17700cb5918e55fb3b0cb2
[ "MIT" ]
null
null
null
import {Injectable} from '@angular/core'; import {Socket} from 'ngx-socket-io'; import {Order} from './order'; @Injectable({ providedIn: 'root' }) export class OrderServiceService { order orders constructor(private socket: Socket) { this.order = this.socket.fromEvent<string>('travel_assist'); ; this.orders = socket.fromEvent<string[]>('travel_assist'); } // getOrder(id: string) { // this.socket.emit('getDoc', id); // } // // newOrder() { // this.socket.emit('addDoc', { id: this.docId(), doc: '' }); // } // // editOrder(order: Order) { // this.socket.emit('editDoc', order); // } // // private docId() { // let text = ''; // const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; // // for (let i = 0; i < 5; i++) { // text += possible.charAt(Math.floor(Math.random() * possible.length)); // } // // return text; // } }
22.452381
89
0.588547
b6d14182d5be1c94d248efaac735b6422586bb35
421
rs
Rust
vulkan/src/shader.rs
IcyDefiance/space-thing
b7309b21f91027d2495fcae9c4b17e3bd3a5df9c
[ "MIT" ]
null
null
null
vulkan/src/shader.rs
IcyDefiance/space-thing
b7309b21f91027d2495fcae9c4b17e3bd3a5df9c
[ "MIT" ]
null
null
null
vulkan/src/shader.rs
IcyDefiance/space-thing
b7309b21f91027d2495fcae9c4b17e3bd3a5df9c
[ "MIT" ]
2
2019-12-05T15:22:56.000Z
2019-12-05T15:33:38.000Z
use crate::device::Device; use ash::{version::DeviceV1_0, vk}; use std::sync::Arc; pub struct ShaderModule { device: Arc<Device>, pub vk: vk::ShaderModule, } impl ShaderModule { pub(crate) fn from_vk(device: Arc<Device>, vk: vk::ShaderModule) -> Arc<Self> { Arc::new(Self { device, vk }) } } impl Drop for ShaderModule { fn drop(&mut self) { unsafe { self.device.vk.destroy_shader_module(self.vk, None) }; } }
22.157895
80
0.68171
8ffd633524e1939ea7486a96e2cc57e6c172a616
1,824
swift
Swift
src/Modules/ComicList/Implementations/ComicListPresenterImpl.swift
sanekgusev/xkcd-swift
1cde560b1b292789c128dd4b974fca57ea4c866b
[ "MIT" ]
null
null
null
src/Modules/ComicList/Implementations/ComicListPresenterImpl.swift
sanekgusev/xkcd-swift
1cde560b1b292789c128dd4b974fca57ea4c866b
[ "MIT" ]
null
null
null
src/Modules/ComicList/Implementations/ComicListPresenterImpl.swift
sanekgusev/xkcd-swift
1cde560b1b292789c128dd4b974fca57ea4c866b
[ "MIT" ]
null
null
null
// // ComicListPresenterImpl.swift // xkcd-swift // // Created by Aleksandr Gusev on 01/05/16. // // import ReactiveCocoa final class ComicListPresenterImpl: ComicListPresenter { let interactor: ComicListInteractor let router: ComicListRouter lazy var mutableComicCount: MutableProperty<UInt?> = { let reactiveLatestComic = self.interactor[.Latest].comic let mutableComicCount = MutableProperty(reactiveLatestComic.value?.number) let mappedProducer = reactiveLatestComic.producer.map({ $0?.number }) mutableComicCount <~ mappedProducer return mutableComicCount }() init(interactor: ComicListInteractor, router: ComicListRouter) { self.interactor = interactor self.router = router } var comicCount: AnyProperty<UInt?> { return AnyProperty(mutableComicCount) } var refreshing: AnyProperty<Bool> { return AnyProperty(interactor[.Latest].loading) } var lastRefreshError: AnyProperty<ComicRepositoryError?> { return AnyProperty(interactor[.Latest].lastLoadError) } subscript (index: UInt) -> ReactiveComicType? { guard let latestComicNumber = interactor[.Latest].comic.value?.number else { return nil } return interactor[.Number(latestComicNumber - index)] } func selectComicAtIndex(index: UInt) { let reactiveComic = interactor[.Number(index + 1)] router.handleComicSelected(reactiveComic) } func refreshComicCountWithSignal(@noescape setUp: (Signal<UInt, ComicRepositoryError>, Disposable) -> ()) { interactor[.Latest].retrieveComicWithSignal({ signal, disposable in setUp(signal.map({ $0.number }), disposable) }) } }
29.901639
111
0.659539
d633eb6e545d40f8f5e96a0a59c268e30847b84f
1,280
ps1
PowerShell
ARMTemplateTips/Demos/demoCommands.ps1
sam-cogan/sessions
5a72461f480692649248836a6a823d204d9d010a
[ "MIT" ]
4
2019-02-27T16:02:20.000Z
2019-07-01T22:47:42.000Z
ARMTemplateTips/Demos/demoCommands.ps1
sam-cogan/sessions
5a72461f480692649248836a6a823d204d9d010a
[ "MIT" ]
null
null
null
ARMTemplateTips/Demos/demoCommands.ps1
sam-cogan/sessions
5a72461f480692649248836a6a823d204d9d010a
[ "MIT" ]
3
2019-02-27T15:16:30.000Z
2019-03-01T18:28:03.000Z
### 3_Outputs New-AzureRmResourceGroupDeployment -Name "3_outputs_1" -ResourceGroupName "igniteARMDemos" -TemplateFile .\3_Outputs\simpleOutput.json $x=New-AzureRmResourceGroupDeployment -Name "3_outputs_2" -ResourceGroupName "igniteARMDemos" -TemplateFile .\3_Outputs\objectOutput.json $y= [Newtonsoft.Json.JsonConvert]::SerializeObject($x.Outputs.publicIP.value, [Newtonsoft.Json.Formatting]::Indented) | ConvertFrom-Json New-AzureRmResourceGroupDeployment -Name "3_outputs_3" -ResourceGroupName "igniteARMDemos" -TemplateFile .\3_Outputs\Variables.json ### 4_NestedTemplates $x=New-AzureRmResourceGroupDeployment -Name "4_nested_1" -ResourceGroupName "crossSubscriptionDeployment" -TemplateFile .\4_NestedTemplates\2_cross_sub\CrossSubscriptionDeployments.json -TemplateParameterFile .\4_NestedTemplates\2_cross_sub\CrossSubscriptionDeployments.parameters.json ### 6_conditions New-AzureRmResourceGroupDeployment -Name "6_conditions_1" -ResourceGroupName "igniteARMDemos" -TemplateFile .\6_Conditions\if.json -TemplateParameterFile .\6_Conditions\if.params.json ### 8_sublevel New-AzureRmDeployment -Name "8_sublevel_01" -Location "West Europe" -TemplateFile .\8_SubLevelDeployments\template.json -TemplateParameterFile .\8_SubLevelDeployments\template.parameters.json
64
285
0.842969
33cd290328e47ec6aef0d415d3266731750b6257
1,091
h
C
macOS/10.13/CoreUI.framework/CUIPSDGradient.h
onmyway133/Runtime-Headers
e9b80e7ab9103f37ad421ad6b8b58ee06369d21f
[ "MIT" ]
30
2016-10-09T20:13:00.000Z
2022-01-24T04:14:57.000Z
macOS/10.13/CoreUI.framework/CUIPSDGradient.h
onmyway133/Runtime-Headers
e9b80e7ab9103f37ad421ad6b8b58ee06369d21f
[ "MIT" ]
null
null
null
macOS/10.13/CoreUI.framework/CUIPSDGradient.h
onmyway133/Runtime-Headers
e9b80e7ab9103f37ad421ad6b8b58ee06369d21f
[ "MIT" ]
7
2017-08-29T14:41:25.000Z
2022-01-19T17:14:54.000Z
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI */ @interface CUIPSDGradient : NSObject { double drawingAngle; CUIPSDGradientEvaluator * evaluator; unsigned int gradientStyle; } @property (atomic, readwrite) double drawingAngle; @property (atomic, readwrite, retain) CUIPSDGradientEvaluator *evaluator; @property (atomic, readwrite) unsigned int gradientStyle; + (id)cuiPSDGradientWithColors:(id)arg1 locations:(id)arg2 midpointLocations:(id)arg3 angle:(double)arg4 isRadial:(BOOL)arg5; + (id)cuiPSDGradientWithColors:(id)arg1 locations:(id)arg2 midpointLocations:(id)arg3 angle:(double)arg4 style:(unsigned int)arg5; + (id)getMidpointLocationFromArray:(id)arg1 atIndex:(long long)arg2 withPolicy:(int)arg3; - (void)dealloc; - (double)drawingAngle; - (id)evaluator; - (unsigned int)gradientStyle; - (id)initWithEvaluator:(id)arg1 drawingAngle:(double)arg2 gradientStyle:(unsigned int)arg3; - (void)setDrawingAngle:(double)arg1; - (void)setEvaluator:(id)arg1; - (void)setGradientStyle:(unsigned int)arg1; @end
37.62069
130
0.779102
f46ff668f0398e7a784ea9aeb4accbb8273bd8be
1,364
cs
C#
src/Assets/Plugins/UIWidgets/Standart Assets/ListView/ListViewInt/ListViewIntComponent.cs
yy1985710/ecsrx
60f394fca2ce24ab587d88a09872f70b5f6ecbee
[ "MIT" ]
11
2019-10-22T07:21:18.000Z
2021-04-06T21:38:45.000Z
src/Assets/Plugins/UIWidgets/Standart Assets/ListView/ListViewInt/ListViewIntComponent.cs
yy1985710/ecsrx
60f394fca2ce24ab587d88a09872f70b5f6ecbee
[ "MIT" ]
null
null
null
src/Assets/Plugins/UIWidgets/Standart Assets/ListView/ListViewInt/ListViewIntComponent.cs
yy1985710/ecsrx
60f394fca2ce24ab587d88a09872f70b5f6ecbee
[ "MIT" ]
4
2020-02-28T02:44:39.000Z
2020-03-02T09:09:25.000Z
using UnityEngine; using UnityEngine.UI; namespace UIWidgets { /// <summary> /// ListViewInt component. /// </summary> public class ListViewIntComponent : ListViewIntComponentBase { /// <summary> /// The number. /// </summary> [SerializeField] public Text Number; /// <summary> /// Sets the data. /// </summary> /// <param name="item">Item.</param> public override void SetData(int item) { Number.text = item.ToString(); } /// <summary> /// Is color setted. /// </summary> protected bool IsColorSetted; /// <summary> /// Sets specified colors. /// </summary> /// <param name="primary">Primary color.</param> /// <param name="background">Background color.</param> /// <param name="fadeDuration">Fade duration.</param> public override void Coloring(Color primary, Color background, float fadeDuration) { // reset default color to white, otherwise it will look darker than specified color, // because actual color = Text.color * Text.CrossFadeColor if (!IsColorSetted) { Number.color = Color.white; Background.color = Color.white; } // change color instantly for first time Number.CrossFadeColor(primary, IsColorSetted ? fadeDuration : 0f, true, true); Background.CrossFadeColor(background, IsColorSetted ? fadeDuration : 0f, true, true); IsColorSetted = true; } } }
25.735849
88
0.670088
5ac7da71197d421be21b336bba8bed032570f615
176
cs
C#
Modules/MinoriEditorShell/Services/IMesWindow.cs
fossabot/MinoriEditorShell
7ee3fa05a5d9586b49104b23076309359c72f9c8
[ "MS-PL" ]
null
null
null
Modules/MinoriEditorShell/Services/IMesWindow.cs
fossabot/MinoriEditorShell
7ee3fa05a5d9586b49104b23076309359c72f9c8
[ "MS-PL" ]
null
null
null
Modules/MinoriEditorShell/Services/IMesWindow.cs
fossabot/MinoriEditorShell
7ee3fa05a5d9586b49104b23076309359c72f9c8
[ "MS-PL" ]
null
null
null
using System; namespace MinoriEditorShell.Services { public interface IMesWindow { String DisplayName { get; set; } String Title { get; set; } } }
16
40
0.625
7bab119eebd683486b6ab0cfae11eb623ae09eb8
525
rb
Ruby
config/routes.rb
danielstutzman/basicruby-backend
79a7c434f27991bef5e1371a150315e39317a04c
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/ruby/7bab119eebd683486b6ab0cfae11eb623ae09eb8routes.rb
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/ruby/7bab119eebd683486b6ab0cfae11eb623ae09eb8routes.rb
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
BasicRuby::Application.routes.draw do get '/:topic_num' => 'application#index', topic_num: /([0-9]+)([PYBRGO])/ get '/:topic_num/:rep_num' => 'application#index', topic_num: /([0-9]+)([PYBRGO])/, rep_num: /([0-9]+)/ get '/api/all_exercises' => 'api#all_exercises' get '/api/menu' => 'api#menu' get '/api/exercise/:path' => 'api#exercise' get '/api/exercise/:path/:rep_num' => 'api#exercise' post '/api/mark_complete' => 'api#mark_complete' end
37.5
61
0.56
38af5007a560217bfbbd1546e5c47731a5821db6
9,613
php
PHP
application/views/temp_admin/sidebar.php
rioagf/skripsiku
3649d35fdc7162a93229117ae86229a4409aab7e
[ "MIT" ]
null
null
null
application/views/temp_admin/sidebar.php
rioagf/skripsiku
3649d35fdc7162a93229117ae86229a4409aab7e
[ "MIT" ]
null
null
null
application/views/temp_admin/sidebar.php
rioagf/skripsiku
3649d35fdc7162a93229117ae86229a4409aab7e
[ "MIT" ]
null
null
null
<!-- Sidebar --> <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar"> <!-- Sidebar - Brand --> <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html"> <div class="sidebar-brand-icon rotate-n-15"> <i class="fas fa-laugh-wink"></i> </div> <div class="sidebar-brand-text mx-3">Skripsiku <sup>V1</sup></div> </a> <!-- Divider --> <hr class="sidebar-divider my-0"> <!-- Nav Item - Dashboard --> <li class="nav-item <?php if ($this->uri->segment('2') == '' || $this->uri->segment('2') == '/'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea') ?>"> <i class="fas fa-fw fa-tachometer-alt"></i> <span>Dashboard</span> </a> </li> <!-- Divider --> <hr class="sidebar-divider"> <!-- Heading --> <div class="sidebar-heading"> Pesanan </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'list_pemesanan'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/list_pemesanan') ?>"> <i class="fas fa-fw fa-book"></i> <span>Pesanan</span> </a> </li> <li class="nav-item <?php if ($this->uri->segment('2') == 'berkas_masuk' || $this->uri->segment('2') == 'berkas_keluar'){echo 'active';} ?>"> <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo"> <i class="fas fa-fw fa-file"></i> <span>Berkas</span> </a> <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar"> <div class="bg-white py-2 collapse-inner rounded"> <h6 class="collapse-header">Jenis Berkas:</h6> <a class="collapse-item <?php if ($this->uri->segment('2') == 'berkas_masuk'){echo 'active';} ?>" href="<?= base_url('adminarea/berkas_masuk') ?>">Berkas Masuk</a> <a class="collapse-item <?php if ($this->uri->segment('2') == 'berkas_keluar'){echo 'active';} ?>" href="<?= base_url('adminarea/berkas_keluar') ?>">Berkas Keluar</a> </div> </div> </li> <?php if ($this->session->userdata('role') == "admin"): ?> <li class="nav-item <?php if ($this->uri->segment('2') == 'pembayaran'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/pembayaran') ?>"> <i class="fas fa-fw fa-money-check-alt"></i> <span>Pembayaran</span> </a> </li> <?php endif ?> <?php if ($this->session->userdata('role') == "admin"): ?> <!-- Divider --> <hr class="sidebar-divider d-none d-md-block"> <!-- Heading --> <div class="sidebar-heading"> Customer </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'customer'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/customer') ?>"> <i class="fas fa-fw fa-users"></i> <span>Data Customer</span> </a> </li> <!-- Divider --> <hr class="sidebar-divider d-none d-md-block"> <!-- Heading --> <div class="sidebar-heading"> Laporan Keuangan </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'laporan_keuangan'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/laporan_keuangan') ?>"> <i class="far fa-file-pdf"></i> <span>Laporan Keuangan</span> </a> </li> <!-- Divider --> <hr class="sidebar-divider"> <!-- Heading --> <div class="sidebar-heading"> Produk dan Artikel </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'produk' || $this->uri->segment('2') == 'edit_produk' || $this->uri->segment('2') == 'tambah_produk'){echo 'active';} ?>"> <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages" aria-expanded="true" aria-controls="collapsePages"> <i class="fas fa-fw fa-folder"></i> <span>Produk</span> </a> <div id="collapsePages" class="collapse" aria-labelledby="headingPages" data-parent="#accordionSidebar"> <div class="bg-white py-2 collapse-inner rounded"> <h6 class="collapse-header">Item:</h6> <a class="collapse-item <?php if ($this->uri->segment('2') == 'produk' || $this->uri->segment('2') == 'edit_produk'){echo 'active';} ?>" href="<?= base_url('adminarea/produk') ?>">List Produk</a> <a class="collapse-item <?php if ($this->uri->segment('2') == 'tambah_produk'){echo 'active';} ?>" href="<?= base_url('adminarea/tambah_produk') ?>">Tambah Produk</a> </div> </div> </li> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'artikel' || $this->uri->segment('2') == 'tambah_artikel' || $this->uri->segment('2') == 'edit_artikel'){echo 'active';} ?>"> <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages2" aria-expanded="true" aria-controls="collapsePages2"> <i class="fas fa-fw fa-pen"></i> <span>Artikel</span> </a> <div id="collapsePages2" class="collapse" aria-labelledby="headingPages" data-parent="#accordionSidebar"> <div class="bg-white py-2 collapse-inner rounded"> <h6 class="collapse-header">Item:</h6> <a class="collapse-item <?php if ($this->uri->segment('2') == 'artikel' || $this->uri->segment('2') == 'edit_artikel'){echo 'active';} ?>" href="<?= base_url('adminarea/artikel') ?>">List Artikel</a> <a class="collapse-item <?php if ($this->uri->segment('2') == 'edit_artikel'){echo 'active';} ?>" href="<?= base_url('adminarea/tambah_artikel') ?>">Tambah Artikel</a> </div> </div> </li> <!-- Divider --> <hr class="sidebar-divider d-none d-md-block"> <!-- Heading --> <div class="sidebar-heading"> Slider and Gallery </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'slider' || $this->uri->segment('2') == 'add_slider' || $this->uri->segment('2') == 'edit_slider'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/slider') ?>"> <i class="fas fa-fw fa-images"></i> <span>Slider</span> </a> </li> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'gallery' || $this->uri->segment('2') == 'add_gallery' || $this->uri->segment('2') == 'edit_gallery'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/gallery') ?>"> <i class="fas fa-fw fa-image"></i> <span>Galeri</span> </a> </li> <!-- Divider --> <hr class="sidebar-divider"> <!-- Heading --> <div class="sidebar-heading"> Karir </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'karir' || $this->uri->segment('2') == 'tambah_karir' || $this->uri->segment('2') == 'edit_karir'){echo 'active';} ?>"> <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePages3" aria-expanded="true" aria-controls="collapsePages3"> <i class="fas fa-fw fa-folder"></i> <span>Karir</span> </a> <div id="collapsePages3" class="collapse" aria-labelledby="headingPages" data-parent="#accordionSidebar"> <div class="bg-white py-2 collapse-inner rounded"> <h6 class="collapse-header">Item:</h6> <a class="collapse-item <?php if ($this->uri->segment('2') == 'karir' || $this->uri->segment('2') == 'edit_karir'){echo 'active';} ?>" href="<?= base_url('adminarea/karir') ?>">List Karir</a> <a class="collapse-item <?php if ($this->uri->segment('2') == 'tambah_karir'){echo 'active';} ?>" href="<?= base_url('adminarea/tambah_karir') ?>">Tambah Karir</a> </div> </div> </li> <!-- Divider --> <hr class="sidebar-divider d-none d-md-block"> <!-- Heading --> <div class="sidebar-heading"> Site Setting </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'setting'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/setting') ?>"> <i class="fas fa-fw fa-sliders-h"></i> <span>Setting</span> </a> </li> <!-- Divider --> <hr class="sidebar-divider d-none d-md-block"> <!-- Heading --> <div class="sidebar-heading"> Staff </div> <!-- Nav Item - Pages Collapse Menu --> <li class="nav-item <?php if ($this->uri->segment('2') == 'staff'){echo 'active';} ?>"> <a class="nav-link" href="<?= base_url('adminarea/staff') ?>"> <i class="fas fa-fw fa-users"></i> <span>Data Staff</span> </a> </li> <?php endif ?> <!-- Sidebar Toggler (Sidebar) --> <div class="text-center d-none d-md-inline"> <button class="rounded-circle border-0" id="sidebarToggle"></button> </div> </ul> <!-- End of Sidebar -->
43.894977
215
0.544575