text
stringlengths
3
1.05M
""" legoBTLE.networking.server ========================== This package holds the classes to set up a server where devices can register and route message from and to the bluetooth sender/receiver. """ import asyncio import os from asyncio import AbstractEventLoop, StreamReader, StreamWriter, IncompleteReadError from collections import defaultdict from datetime import datetime from legoBTLE.exceptions.Exceptions import ServerClientRegisterError from legoBTLE.legoWP.message.upstream import EXT_SERVER_NOTIFICATION from legoBTLE.legoWP.message.upstream import UpStreamMessageBuilder from legoBTLE.legoWP.types import C from legoBTLE.legoWP.types import MESSAGE_TYPE from legoBTLE.legoWP.types import PERIPHERAL_EVENT from legoBTLE.legoWP.types import SERVER_SUB_COMMAND if os.name == 'posix': from bluepy import btle from bluepy.btle import BTLEInternalError, Peripheral global host global port if os.name == 'posix': global Future_BTLEDevice connectedDevices: defaultdict = defaultdict() internalDevices: defaultdict = defaultdict() if os.name == 'posix': class BTLEDelegate(btle.DefaultDelegate): """Delegate class that initially handles the raw data coming from the Lego(c) Model. """ def __init__(self, loop: AbstractEventLoop, remoteHost=('127.0.0.1', 8888)): super().__init__() self._loop = loop self._remoteHost = remoteHost return def handleNotification(self, cHandle, data): # actual Callback function """Distribute received notifications to the respective device. Parameters ---------- cHandle : Handle of the data data : bytearray Notifications from the bluetooth device as bytearray. Returns ------- None Nothing """ print(f"[BTLEDelegate]-[MSG]: Returned NOTIFICATION = {data.hex()}") M_RET = UpStreamMessageBuilder(data, debug=True).dispatch() try: if (M_RET is not None) and (M_RET.m_header.m_type == MESSAGE_TYPE.UPS_HUB_ATTACHED_IO) and (M_RET.m_io_event == PERIPHERAL_EVENT.VIRTUAL_IO_ATTACHED): print(f"{C.BOLD}{C.FAIL}RAW:\tCOMMAND --> {M_RET.COMMAND}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tHEADER --> {M_RET.m_header}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tM_TYPE --> {M_RET.m_header.m_type}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tM_TYPE == --> {M_RET.m_header.m_type == MESSAGE_TYPE.UPS_HUB_ATTACHED_IO}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tM_IO_EVENT --> {M_RET.m_io_event}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tM_IO_EVENT == --> {M_RET.m_io_event == PERIPHERAL_EVENT.VIRTUAL_IO_ATTACHED}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tM_PORT --> {M_RET.m_port}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tM_PORT_A --> {M_RET.m_port_a}{C.ENDC}", end="\r\n") print(f"{C.BOLD}{C.FAIL}RAW:\tM_PORT_B --> {M_RET.m_port_b}{C.ENDC}", end="\r\n") if (M_RET is not None) and (M_RET.m_header.m_type == MESSAGE_TYPE.UPS_HUB_ATTACHED_IO) and ( M_RET.m_io_event == PERIPHERAL_EVENT.VIRTUAL_IO_ATTACHED): # we search for the setup port with which the combined device first registered setup_port: int = (110 + 1 * int.from_bytes(M_RET.m_port_a, 'little', signed=False) + 2 * int.from_bytes(M_RET.m_port_b, 'little', signed=False) ) print(f"*****************************************************SETUPPORT: {setup_port}") connectedDevices[setup_port][1].write(data[0:1]) asyncio.create_task(connectedDevices[setup_port][1].drain()) connectedDevices[setup_port][1].write(data) asyncio.create_task(connectedDevices[setup_port][1].drain()) # change initial port value of motor_a.port + motor_b.port to virtual port connectedDevices[data[3]] = connectedDevices[setup_port][0], connectedDevices[setup_port][1] del connectedDevices[setup_port] elif (M_RET.m_header.m_type == MESSAGE_TYPE.UPS_HUB_GENERIC_ERROR) and (M_RET.m_error_cmd == MESSAGE_TYPE.DNS_VIRTUAL_PORT_SETUP): print("*" * 10, f"[BTLEDelegate.handleNotification()]-[MSG]: {C.BOLD}{C.OKBLUE}VIRTUAL PORT SETUP: ACK -- BEGIN\r\n") print("*" * 10, f"[BTLEDelegate.handleNotification()]-[MSG]: {C.BOLD}{C.OKBLUE}RECEIVED GENERIC_ERROR_NOTIFICATION: OK, see\r\n") print("*" * 10, f"[BTLEDelegate.handleNotification()]-[MSG]: {C.BOLD}{C.OKBLUE}https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#hub-attached-i-o\r\n") print("*" * 10, f"[BTLEDelegate.handleNotification()]-[MSG]: {C.BOLD}{C.OKBLUE}VIRTUAL PORT SETUP: ACK -- END \r\n") else: print(f"To PORT: {data[3]}") connectedDevices[data[3]][1].write(data[0:1]) connectedDevices[data[3]][1].write(data) asyncio.create_task(connectedDevices[data[3]][1].drain()) except TypeError as te: print( f"[BTLEDelegate]-[MSG]: WRONG ANSWER\r\n\t\t{data.hex()}\r\nFROM BTLE... {C.FAIL}IGNORING...{C.ENDC}\r\n\t{te.args}") return except KeyError as ke: print(f"[BTLEDelegate]-[MSG]: DEVICE CLIENT AT PORT [{data[3]}] {C.BOLD}{C.WARNING}NOT CONNECTED{C.ENDC} " f"TO SERVER [{self._remoteHost[0]}:{self._remoteHost[1]}]... {C.WARNING}Ignoring Notification from BTLE...{C.ENDC}") else: print(f"[BTLEDelegate]-[MSG]: {C.BOLD}{C.OKBLUE}FOUND PORT {data[3]} / {C.UNDERLINE}MESSAGE SENT...{C.ENDC}\n-----------------------") return async def connectBTLE(loop: AbstractEventLoop, deviceaddr: str = '90:84:2B:5E:CF:1F', host: str = '127.0.0.1', btleport: int = 9999) -> Peripheral: """ Establish the LEGO\ |copy| Hub <-> Computer bluetooth connection. Parameters ---------- loop : `AbstractEventLoop` A reference to the event lopp. btleport : int The server port. host : str The hostname. deviceaddr : str The MAC Address of the LEGO\ |copy| Hub. Raises ------ Exception """ print(f"[BTLE]-[MSG]: {C.HEADER}{C.BLINK}COMMENCE CONNECT TO [{deviceaddr}]{C.ENDC}...") try: BTLE_DEVICE: Peripheral = Peripheral(deviceaddr) BTLE_DEVICE.withDelegate(BTLEDelegate(loop=loop, remoteHost=(host, 8888))) except Exception as btle_ex: raise else: print(f"[{deviceaddr}]-[MSG]: {C.OKBLUE}CONNECTION TO [{deviceaddr}] {C.BOLD}{C.UNDERLINE}COMPLETE{C.ENDC}...") return BTLE_DEVICE def _listenBTLE(btledevice: Peripheral, loop, debug: bool = False): try: if btledevice.waitForNotifications(.001): if debug: print(f"[SERVER]-[MSG]: NOTIFICATION RECEIVED... [T: {datetime.timestamp(datetime.now())}]") except BTLEInternalError: pass finally: loop.call_later(.0015, _listenBTLE, btledevice, loop, debug) return async def _listen_clients(reader: StreamReader, writer: StreamWriter, debug: bool = True) -> bool: """This is the central message receiving function. The function listens for incoming message (the commands) from the devices. Once a message has been received it is - if not the initial connection request - sent to the BTLE device. Parameters ---------- reader : StreamReader The reader instance writer : StreamWriter The write instance. debug : bool If ``True``: Verbose Messages to stdout else: don't show. Returns ------- bool ``True`` if everything is good, ``False`` otherwise. """ global host global port global Future_BTLEDevice conn_info = writer.get_extra_info('peername') size: int = 0 handle: int = -1 while True: try: carrier_info: bytearray = bytearray(await reader.readexactly(n=2)) size: int = carrier_info[1] handle: int = carrier_info[0] print(f"[{host}:{port}]-[MSG]: {C.OKGREEN}CARRIER SIGNAL DETECTED: handle={handle}, size={size}...{C.ENDC}") CLIENT_MSG_DATA: bytearray = bytearray(await reader.readexactly(n=size)) if CLIENT_MSG_DATA[2] == MESSAGE_TYPE.UPS_DNS_GENERAL_HUB_NOTIFICATIONS[0]: print(f"{C.BOLD}{C.FAIL}{CLIENT_MSG_DATA.hex()}{C.ENDC}") if debug: print( f"[{host}:{port}]-[MSG]: {C.BOLD}{C.UNDERLINE}{C.OKBLUE}SENDING{C.ENDC}: " f"{C.OKGREEN}{C.BOLD}{handle}, {CLIENT_MSG_DATA[2:].hex()}{C.ENDC} {C.BOLD}{C.UNDERLINE}{C.OKBLUE} " f"FROM{C.ENDC}{C.BOLD}{C.OKBLUE} DEVICE [{conn_info[0]}:{conn_info[1]}]{C.UNDERLINE} " f"TO{C.ENDC}{C.BOLD}{C.OKBLUE} BTLE device{C.ENDC}") if os.name == 'posix': print(f"HANDLE: {handle} / DATA: {CLIENT_MSG_DATA[2:]}") Future_BTLEDevice.writeCharacteristic(0x0f, val=CLIENT_MSG_DATA[2:], withResponse=True) continue if debug: print( f"[{host}:{port}]-[MSG]: {C.BOLD}{C.OKBLUE}{C.UNDERLINE}RECEIVED " f"CLIENTMESSAGE{C.ENDC}{C.BOLD}{C.OKBLUE}: {CLIENT_MSG_DATA.hex()} FROM DEVICE " f"[{conn_info[0]}:{conn_info[1]}]{C.ENDC}") con_key_index = CLIENT_MSG_DATA[3] if con_key_index not in connectedDevices.keys(): # wait until Connection Request from client if ((CLIENT_MSG_DATA[2] != MESSAGE_TYPE.UPS_DNS_EXT_SERVER_CMD[0]) or (CLIENT_MSG_DATA[-1] != SERVER_SUB_COMMAND.REG_W_SERVER[0])): continue else: if ((CLIENT_MSG_DATA[2] == MESSAGE_TYPE.UPS_DNS_EXT_SERVER_CMD[0]) or (CLIENT_MSG_DATA[-1] == SERVER_SUB_COMMAND.REG_W_SERVER[0])): if debug: print("*"*10, f" {C.BOLD}{C.OKBLUE}NEW DEVICE: {con_key_index} DETECTED", end="*" * 10+f"{C.ENDC}\r\n") connectedDevices[con_key_index] = (reader, writer) if debug: print("**", " " * 8, f"\t\t{C.BOLD}{C.OKBLUE}DEVICE: {con_key_index} REGISTERED", end="*" * 10 + f"{C.ENDC}\r\n") print(f"{C.BOLD}{C.OKBLUE}*"*20, end=f"{C.ENDC}\r\n") print("*" * 10, f" {C.BOLD}{C.OKBLUE}[{host}:{port}]-[MSG]: SUMMARY CONNECTED DEVICES:{C.ENDC}") for con_dev_k, con_dev_v in connectedDevices.items(): print(f"{C.BOLD}{C.OKBLUE}**[{host}:{port}]-[MSG]: \t" f"PORT: {con_dev_k} / DEVICE: {con_dev_v[1]}{C.ENDC}") print(f"{C.BOLD}{C.OKBLUE}*" * 20, end=f"{C.ENDC}\r\n") ACK_MSG_DATA: bytearray = CLIENT_MSG_DATA ACK_MSG_DATA[-1:] = PERIPHERAL_EVENT.EXT_SRV_CONNECTED ACK_MSG = UpStreamMessageBuilder(data=ACK_MSG_DATA, debug=True).dispatch() connectedDevices[con_key_index][1].write(ACK_MSG.COMMAND[0:1]) await connectedDevices[con_key_index][1].drain() connectedDevices[con_key_index][1].write(ACK_MSG.COMMAND) await connectedDevices[con_key_index][1].drain() if debug: print(f"[{host}:{port}]-[MSG]: SENT ACKNOWLEDGEMENT TO DEVICE AT [{conn_info[0]}:{conn_info[1]}]...") else: print("*" * 10, f" {C.BOLD}{C.FAIL}WRONG COMMAND / THIS SHOULD NOT BE POSSIBLE", end="*" * 10 + f"{C.ENDC}\r\n") raise ServerClientRegisterError(message=CLIENT_MSG_DATA.hex()) else: if debug: print(f"[{host}:{port}]-[MSG]: [{conn_info[0]}:{conn_info[1]}]: CONNECTION FOUND IN DICTIONARY...") print( f"[{host}:{port}]-[MSG]: RECEIVED [{CLIENT_MSG_DATA.hex()!r}] FROM " f"[{conn_info[0]}:{conn_info[1]}]") if ((CLIENT_MSG_DATA[2] == MESSAGE_TYPE.UPS_DNS_EXT_SERVER_CMD[0]) and (CLIENT_MSG_DATA[-1] == SERVER_SUB_COMMAND.DISCONNECT_F_SERVER[0])): print( f"[{host}:{port}]-[MSG]: RECEIVED REQ FOR DISCONNECTING DEVICE: " f"[{conn_info[0]}:{conn_info[1]}]...") disconnect: bytearray = bytearray( b'\x00' + MESSAGE_TYPE.UPS_DNS_EXT_SERVER_CMD + CLIENT_MSG_DATA[3:4] + SERVER_SUB_COMMAND.DISCONNECT_F_SERVER + PERIPHERAL_EVENT.EXT_SRV_DISCONNECTED ) disconnect = bytearray( bytearray((len(disconnect) + 1).to_bytes(1, byteorder='little', signed=False)) + disconnect ) ACK: EXT_SERVER_NOTIFICATION = EXT_SERVER_NOTIFICATION(disconnect) connectedDevices[con_key_index][1].write(ACK.m_header.m_length) await connectedDevices[con_key_index][1].drain() connectedDevices[con_key_index][1].write(ACK.COMMAND) await connectedDevices[con_key_index][1].drain() connectedDevices.pop(con_key_index) if debug: print(f"[{host}:{port}]-[MSG]: DEVICE [{conn_info[0]}:{conn_info[1]}] DISCONNECTED FROM SERVER...") print(f"connected Devices: {connectedDevices}") continue elif CLIENT_MSG_DATA[2] == MESSAGE_TYPE.DNS_VIRTUAL_PORT_SETUP[0]: if debug: print(f"[{host}:{port}]-[MSG]: [{conn_info[0]}:{conn_info[1]}] RECEIVED VIRTUAL PORT SETUP REQUEST...") elif ((CLIENT_MSG_DATA[2] == MESSAGE_TYPE.UPS_DNS_EXT_SERVER_CMD) and (CLIENT_MSG_DATA[4] == SERVER_SUB_COMMAND.REG_W_SERVER)): if debug: print( f"[{host}:{port}]-[MSG]: [{conn_info[0]}:{conn_info[1]}] ALREADY CONNECTED, IGNORING REQUEST...") continue else: if debug: print(f"[{host}:{port}]-[MSG]: SENDING [{CLIENT_MSG_DATA.hex()}]:[{con_key_index!r}] " f"FROM {conn_info!r}") if os.name == 'posix': Future_BTLEDevice.writeCharacteristic(0x0e, CLIENT_MSG_DATA, True) except (IncompleteReadError, ConnectionError, ConnectionResetError): print(f"[{host}:{port}]-[MSG]: CLIENT [{conn_info[0]}:{conn_info[1]}] RESET CONNECTION... " f"DISCONNECTED...") await asyncio.sleep(.05) connectedDevices.clear() return False except ConnectionAbortedError: print( f"[{host}:{port}]-[MSG]: CLIENT [{conn_info[0]}:{conn_info[1]}] ABORTED CONNECTION... " f"DISCONNECTED...") await asyncio.sleep(.05) connectedDevices.clear() return False continue return True if __name__ == '__main__': global Future_BTLEDevice loop = asyncio.get_event_loop() server = loop.run_until_complete(asyncio.start_server( _listen_clients, '127.0.0.1', 8888)) try: loop.run_until_complete(asyncio.wait((asyncio.ensure_future(server.serve_forever()),), timeout=.1)) host, port = server.sockets[0].getsockname() print(f"[{host}:{port}]-[MSG]: SERVER RUNNING...") if (os.name == 'posix') and callable(connectBTLE) and callable(_listenBTLE): try: Future_BTLEDevice = loop.run_until_complete(asyncio.ensure_future(connectBTLE(loop=loop))) except Exception as btle_ex: raise else: loop.call_soon(_listenBTLE, Future_BTLEDevice, loop) print(f"[{host}:{port}]: BTLE CONNECTION TO [{Future_BTLEDevice.services} SET UP...") loop.run_forever() except KeyboardInterrupt: print(f"SHUTTING DOWN...") loop.run_until_complete(loop.shutdown_asyncgens()) loop.stop() loop.close()
"""Tests for 'site'. Tests assume the initial paths in sys.path once the interpreter has begun executing have not been removed. """ import unittest import test.support from test.support import run_unittest, TESTFN, EnvironmentVarGuard from test.support import captured_stderr import builtins import os import sys import re import encodings import urllib.request import urllib.error import subprocess import sysconfig from copy import copy # Need to make sure to not import 'site' if someone specified ``-S`` at the # command-line. Detect this by just making sure 'site' has not been imported # already. if "site" in sys.modules: import site else: raise unittest.SkipTest("importation of site.py suppressed") if site.ENABLE_USER_SITE and not os.path.isdir(site.USER_SITE): # need to add user site directory for tests os.makedirs(site.USER_SITE) site.addsitedir(site.USER_SITE) class HelperFunctionsTests(unittest.TestCase): """Tests for helper functions. """ def setUp(self): """Save a copy of sys.path""" self.sys_path = sys.path[:] self.old_base = site.USER_BASE self.old_site = site.USER_SITE self.old_prefixes = site.PREFIXES self.original_vars = sysconfig._CONFIG_VARS self.old_vars = copy(sysconfig._CONFIG_VARS) def tearDown(self): """Restore sys.path""" sys.path[:] = self.sys_path site.USER_BASE = self.old_base site.USER_SITE = self.old_site site.PREFIXES = self.old_prefixes sysconfig._CONFIG_VARS = self.original_vars sysconfig._CONFIG_VARS.clear() sysconfig._CONFIG_VARS.update(self.old_vars) def test_makepath(self): # Test makepath() have an absolute path for its first return value # and a case-normalized version of the absolute path for its # second value. path_parts = ("Beginning", "End") original_dir = os.path.join(*path_parts) abs_dir, norm_dir = site.makepath(*path_parts) self.assertEqual(os.path.abspath(original_dir), abs_dir) if original_dir == os.path.normcase(original_dir): self.assertEqual(abs_dir, norm_dir) else: self.assertEqual(os.path.normcase(abs_dir), norm_dir) def test_init_pathinfo(self): dir_set = site._init_pathinfo() for entry in [site.makepath(path)[1] for path in sys.path if path and os.path.isdir(path)]: self.assertIn(entry, dir_set, "%s from sys.path not found in set returned " "by _init_pathinfo(): %s" % (entry, dir_set)) def pth_file_tests(self, pth_file): """Contain common code for testing results of reading a .pth file""" self.assertIn(pth_file.imported, sys.modules, "%s not in sys.modules" % pth_file.imported) self.assertIn(site.makepath(pth_file.good_dir_path)[0], sys.path) self.assertFalse(os.path.exists(pth_file.bad_dir_path)) def test_addpackage(self): # Make sure addpackage() imports if the line starts with 'import', # adds directories to sys.path for any line in the file that is not a # comment or import that is a valid directory name for where the .pth # file resides; invalid directories are not added pth_file = PthFile() pth_file.cleanup(prep=True) # to make sure that nothing is # pre-existing that shouldn't be try: pth_file.create() site.addpackage(pth_file.base_dir, pth_file.filename, set()) self.pth_file_tests(pth_file) finally: pth_file.cleanup() def make_pth(self, contents, pth_dir='.', pth_name=TESTFN): # Create a .pth file and return its (abspath, basename). pth_dir = os.path.abspath(pth_dir) pth_basename = pth_name + '.pth' pth_fn = os.path.join(pth_dir, pth_basename) pth_file = open(pth_fn, 'w', encoding='utf-8') self.addCleanup(lambda: os.remove(pth_fn)) pth_file.write(contents) pth_file.close() return pth_dir, pth_basename def test_addpackage_import_bad_syntax(self): # Issue 10642 pth_dir, pth_fn = self.make_pth("import bad)syntax\n") with captured_stderr() as err_out: site.addpackage(pth_dir, pth_fn, set()) self.assertRegex(err_out.getvalue(), "line 1") self.assertRegex(err_out.getvalue(), re.escape(os.path.join(pth_dir, pth_fn))) # XXX: the previous two should be independent checks so that the # order doesn't matter. The next three could be a single check # but my regex foo isn't good enough to write it. self.assertRegex(err_out.getvalue(), 'Traceback') self.assertRegex(err_out.getvalue(), r'import bad\)syntax') self.assertRegex(err_out.getvalue(), 'SyntaxError') def test_addpackage_import_bad_exec(self): # Issue 10642 pth_dir, pth_fn = self.make_pth("randompath\nimport nosuchmodule\n") with captured_stderr() as err_out: site.addpackage(pth_dir, pth_fn, set()) self.assertRegex(err_out.getvalue(), "line 2") self.assertRegex(err_out.getvalue(), re.escape(os.path.join(pth_dir, pth_fn))) # XXX: ditto previous XXX comment. self.assertRegex(err_out.getvalue(), 'Traceback') self.assertRegex(err_out.getvalue(), 'ImportError') @unittest.skipIf(sys.platform == "win32", "Windows does not raise an " "error for file paths containing null characters") def test_addpackage_import_bad_pth_file(self): # Issue 5258 pth_dir, pth_fn = self.make_pth("abc\x00def\n") with captured_stderr() as err_out: site.addpackage(pth_dir, pth_fn, set()) self.assertRegex(err_out.getvalue(), "line 1") self.assertRegex(err_out.getvalue(), re.escape(os.path.join(pth_dir, pth_fn))) # XXX: ditto previous XXX comment. self.assertRegex(err_out.getvalue(), 'Traceback') self.assertRegex(err_out.getvalue(), 'TypeError') def test_addsitedir(self): # Same tests for test_addpackage since addsitedir() essentially just # calls addpackage() for every .pth file in the directory pth_file = PthFile() pth_file.cleanup(prep=True) # Make sure that nothing is pre-existing # that is tested for try: pth_file.create() site.addsitedir(pth_file.base_dir, set()) self.pth_file_tests(pth_file) finally: pth_file.cleanup() @unittest.skipUnless(site.ENABLE_USER_SITE, "requires access to PEP 370 " "user-site (site.ENABLE_USER_SITE)") def test_s_option(self): usersite = site.USER_SITE self.assertIn(usersite, sys.path) env = os.environ.copy() rc = subprocess.call([sys.executable, '-c', 'import sys; sys.exit(%r in sys.path)' % usersite], env=env) self.assertEqual(rc, 1) env = os.environ.copy() rc = subprocess.call([sys.executable, '-s', '-c', 'import sys; sys.exit(%r in sys.path)' % usersite], env=env) self.assertEqual(rc, 0) env = os.environ.copy() env["PYTHONNOUSERSITE"] = "1" rc = subprocess.call([sys.executable, '-c', 'import sys; sys.exit(%r in sys.path)' % usersite], env=env) self.assertEqual(rc, 0) env = os.environ.copy() env["PYTHONUSERBASE"] = "/tmp" rc = subprocess.call([sys.executable, '-c', 'import sys, site; sys.exit(site.USER_BASE.startswith("/tmp"))'], env=env) self.assertEqual(rc, 1) def test_getuserbase(self): site.USER_BASE = None user_base = site.getuserbase() # the call sets site.USER_BASE self.assertEqual(site.USER_BASE, user_base) # let's set PYTHONUSERBASE and see if it uses it site.USER_BASE = None import sysconfig sysconfig._CONFIG_VARS = None with EnvironmentVarGuard() as environ: environ['PYTHONUSERBASE'] = 'xoxo' self.assertTrue(site.getuserbase().startswith('xoxo'), site.getuserbase()) def test_getusersitepackages(self): site.USER_SITE = None site.USER_BASE = None user_site = site.getusersitepackages() # the call sets USER_BASE *and* USER_SITE self.assertEqual(site.USER_SITE, user_site) self.assertTrue(user_site.startswith(site.USER_BASE), user_site) def test_getsitepackages(self): site.PREFIXES = ['xoxo'] dirs = site.getsitepackages() if (sys.platform == "darwin" and sysconfig.get_config_var("PYTHONFRAMEWORK")): # OS X framework builds site.PREFIXES = ['Python.framework'] dirs = site.getsitepackages() self.assertEqual(len(dirs), 3) wanted = os.path.join('/Library', sysconfig.get_config_var("PYTHONFRAMEWORK"), sys.version[:3], 'site-packages') self.assertEqual(dirs[2], wanted) elif os.sep == '/': # OS X non-framwework builds, Linux, FreeBSD, etc self.assertEqual(len(dirs), 2) wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3], 'site-packages') self.assertEqual(dirs[0], wanted) wanted = os.path.join('xoxo', 'lib', 'site-python') self.assertEqual(dirs[1], wanted) else: # other platforms self.assertEqual(len(dirs), 2) self.assertEqual(dirs[0], 'xoxo') wanted = os.path.join('xoxo', 'lib', 'site-packages') self.assertEqual(dirs[1], wanted) class PthFile(object): """Helper class for handling testing of .pth files""" def __init__(self, filename_base=TESTFN, imported="time", good_dirname="__testdir__", bad_dirname="__bad"): """Initialize instance variables""" self.filename = filename_base + ".pth" self.base_dir = os.path.abspath('') self.file_path = os.path.join(self.base_dir, self.filename) self.imported = imported self.good_dirname = good_dirname self.bad_dirname = bad_dirname self.good_dir_path = os.path.join(self.base_dir, self.good_dirname) self.bad_dir_path = os.path.join(self.base_dir, self.bad_dirname) def create(self): """Create a .pth file with a comment, blank lines, an ``import <self.imported>``, a line with self.good_dirname, and a line with self.bad_dirname. Creation of the directory for self.good_dir_path (based off of self.good_dirname) is also performed. Make sure to call self.cleanup() to undo anything done by this method. """ FILE = open(self.file_path, 'w') try: print("#import @bad module name", file=FILE) print("\n", file=FILE) print("import %s" % self.imported, file=FILE) print(self.good_dirname, file=FILE) print(self.bad_dirname, file=FILE) finally: FILE.close() os.mkdir(self.good_dir_path) def cleanup(self, prep=False): """Make sure that the .pth file is deleted, self.imported is not in sys.modules, and that both self.good_dirname and self.bad_dirname are not existing directories.""" if os.path.exists(self.file_path): os.remove(self.file_path) if prep: self.imported_module = sys.modules.get(self.imported) if self.imported_module: del sys.modules[self.imported] else: if self.imported_module: sys.modules[self.imported] = self.imported_module if os.path.exists(self.good_dir_path): os.rmdir(self.good_dir_path) if os.path.exists(self.bad_dir_path): os.rmdir(self.bad_dir_path) class ImportSideEffectTests(unittest.TestCase): """Test side-effects from importing 'site'.""" def setUp(self): """Make a copy of sys.path""" self.sys_path = sys.path[:] def tearDown(self): """Restore sys.path""" sys.path[:] = self.sys_path def test_abs_paths(self): # Make sure all imported modules have their __file__ and __cached__ # attributes as absolute paths. Arranging to put the Lib directory on # PYTHONPATH would cause the os module to have a relative path for # __file__ if abs_paths() does not get run. sys and builtins (the # only other modules imported before site.py runs) do not have # __file__ or __cached__ because they are built-in. parent = os.path.relpath(os.path.dirname(os.__file__)) env = os.environ.copy() env['PYTHONPATH'] = parent code = ('import os, sys', # use ASCII to avoid locale issues with non-ASCII directories 'os_file = os.__file__.encode("ascii", "backslashreplace")', r'sys.stdout.buffer.write(os_file + b"\n")', 'os_cached = os.__cached__.encode("ascii", "backslashreplace")', r'sys.stdout.buffer.write(os_cached + b"\n")') command = '\n'.join(code) # First, prove that with -S (no 'import site'), the paths are # relative. proc = subprocess.Popen([sys.executable, '-S', '-c', command], env=env, stdout=subprocess.PIPE) stdout, stderr = proc.communicate() self.assertEqual(proc.returncode, 0) os__file__, os__cached__ = stdout.splitlines()[:2] self.assertFalse(os.path.isabs(os__file__)) self.assertFalse(os.path.isabs(os__cached__)) # Now, with 'import site', it works. proc = subprocess.Popen([sys.executable, '-c', command], env=env, stdout=subprocess.PIPE) stdout, stderr = proc.communicate() self.assertEqual(proc.returncode, 0) os__file__, os__cached__ = stdout.splitlines()[:2] self.assertTrue(os.path.isabs(os__file__)) self.assertTrue(os.path.isabs(os__cached__)) def test_no_duplicate_paths(self): # No duplicate paths should exist in sys.path # Handled by removeduppaths() site.removeduppaths() seen_paths = set() for path in sys.path: self.assertNotIn(path, seen_paths) seen_paths.add(path) def test_add_build_dir(self): # Test that the build directory's Modules directory is used when it # should be. # XXX: implement pass def test_setting_quit(self): # 'quit' and 'exit' should be injected into builtins self.assertTrue(hasattr(builtins, "quit")) self.assertTrue(hasattr(builtins, "exit")) def test_setting_copyright(self): # 'copyright', 'credits', and 'license' should be in builtins self.assertTrue(hasattr(builtins, "copyright")) self.assertTrue(hasattr(builtins, "credits")) self.assertTrue(hasattr(builtins, "license")) def test_setting_help(self): # 'help' should be set in builtins self.assertTrue(hasattr(builtins, "help")) def test_aliasing_mbcs(self): if sys.platform == "win32": import locale if locale.getdefaultlocale()[1].startswith('cp'): for value in encodings.aliases.aliases.values(): if value == "mbcs": break else: self.fail("did not alias mbcs") def test_sitecustomize_executed(self): # If sitecustomize is available, it should have been imported. if "sitecustomize" not in sys.modules: try: import sitecustomize except ImportError: pass else: self.fail("sitecustomize not imported automatically") @test.support.requires_resource('network') def test_license_exists_at_url(self): # This test is a bit fragile since it depends on the format of the # string displayed by license in the absence of a LICENSE file. url = license._Printer__data.split()[1] req = urllib.request.Request(url, method='HEAD') try: with test.support.transient_internet(url): with urllib.request.urlopen(req) as data: code = data.getcode() except urllib.error.HTTPError as e: code = e.code self.assertEqual(code, 200, msg="Can't find " + url) if __name__ == "__main__": unittest.main()
from game.pkchess.objbase import BattleObjectModel __all__ = ["CharacterModel"] class CharacterModel(BattleObjectModel): pass
import sys, math, pdb from datetime import timedelta import pandas as pd import logging import numpy as np def combine_municipalities_data(municipality_id_df, municipality_data): municipality_ids = municipality_id_df['municipalityId'].unique() summary = None for municipality_id in municipality_ids: name = municipality_data[municipality_data['KUNTANRO'].isin(municipality_id_df[municipality_id_df['municipalityId'] == municipality_id]['originalMunicipalityId'])]['KUNTANIMIFI'] m_name = None if len(name) > 0: m_name = name.item() municipality = { "municipalityId": municipality_id, "municipalityName": m_name } if summary is None: summary = pd.DataFrame(municipality, index = [0]) else: summary.loc[len(summary)] = municipality summary['municipalityId'] = summary['municipalityId'].astype(int) return summary
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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. */ 'use strict'; // MODULES // var isCollection = require( '@stdlib/assert/is-collection' ); var isFunction = require( '@stdlib/assert/is-function' ); // MAIN // /** * Until a test condition is true, invokes a function once for each element in a collection, iterating from right to left. * * ## Notes * * - For dynamic array resizing, the only behavior made intentionally consistent with `doUntilEach` (iterating from left to right) is when elements are pushed onto the beginning (end) of an array. In other words, for `doUntilEach()`, `[].push()` behavior is consistent with `doUntilEachRight()` `[].unshift()` behavior. * - The condition is evaluated **after** executing the function to invoke; thus, the provided function **always** executes at least once. * - If provided an empty collection, the function invokes the provided function with the collection index set to `undefined`. * * * @param {Collection} collection - input collection * @param {Function} fcn - function to invoke * @param {Function} predicate - function which indicates whether to stop iterating over a collection * @param {*} [thisArg] - execution context for the applied function * @throws {TypeError} first argument must be a collection * @throws {TypeError} second argument must be a function * @throws {TypeError} third argument must be a function * @returns {Collection} input collection * * @example * function predicate( v, index, collection ) { * return ( v !== v ); * } * * function log( v, index, collection ) { * console.log( '%s: %d', index, v ); * } * * var arr = [ 1, NaN, 2, 3, 4, 5 ]; * * doUntilEachRight( arr, log, predicate ); */ function doUntilEachRight( collection, fcn, predicate, thisArg ) { var len; var i; if ( !isCollection( collection ) ) { throw new TypeError( 'invalid argument. First argument must be a collection. Value: `'+collection+'`.' ); } if ( !isFunction( fcn ) ) { throw new TypeError( 'invalid argument. Second argument must be a function. Value: `'+fcn+'`.' ); } if ( !isFunction( predicate ) ) { throw new TypeError( 'invalid argument. Third argument must be a function. Value: `'+predicate+'`.' ); } len = collection.length; if ( len === 0 ) { fcn.call( thisArg, void 0, void 0, collection ); len = collection.length; if ( len === 0 ) { return collection; } } i = len - 1; do { fcn.call( thisArg, collection[ i ], i, collection ); // Account for dynamically resizing a collection... if ( len !== collection.length ) { i += ( collection.length - len ); len = collection.length; } i -= 1; } while ( i >= 0 && !predicate( collection[ i+1 ], i+1, collection ) ); return collection; } // EXPORTS // module.exports = doUntilEachRight;
//C:\Users\Your Name>npm install mysql var mysql = require('mysql'); //Download MySQL and create user : http://dev.mysql.com/downloads/mysql/ var con = mysql.createConnection({ host: "localhost", user: "nodejs_user", password: "uqUYfgkUPL4TavWW" }); con.connect(function(err) { if (err) throw err; console.log("Connected!"); });
from matplotlib import pyplot as plt from matplotlib import image as Image import numpy as np import math import sys import os class LineBuilder(): def __init__(self, scale, img_size ,line,line2,line3,line_paral_1,line_paral_2,text_1,line_ex1,line_ex2, line_relative, text_relative,result_name): self.line = line self.vertical_line_1 = line2 self.vertical_line_2 = line3 self.text_1 = text_1 self.result_name = result_name self.line_paral_1 = line_paral_1 self.line_paral_2 = line_paral_2 self.line_ex1 = line_ex1 self.line_ex2 = line_ex2 self.line_relative = line_relative self.text_relative = text_relative self.line.set_linewidth(0.5) self.vertical_line_1.set_linewidth(0.5) self.vertical_line_2.set_linewidth(0.5) self.line_paral_1.set_linewidth(0.5) self.line_paral_2.set_linewidth(0.5) self.line_ex1.set_linewidth(0.5) self.line_ex2.set_linewidth(0.5) self.line_relative.set_linewidth(0.5) self.xs = list(line.get_xdata()) self.ys = list(line.get_ydata()) self.point_prev = [0, 0] self.point_update = [10, 11] self.press = None self.key = 0 self.holding = None # scale == 1cm self.scale = float(scale) self.factor = round(float(img_size)/112,2) self.scale_pixel = 1 self.enter_count = 0 def connect(self): 'connect to all the events we need' self.cidpress = self.line.figure.canvas.mpl_connect( 'button_press_event', self.on_press) self.cidrelease = self.line.figure.canvas.mpl_connect( 'button_release_event', self.on_release) self.cidmotion = self.line.figure.canvas.mpl_connect( 'motion_notify_event', self.on_motion) self.cidkeypress = self.line.figure.canvas.mpl_connect( 'key_press_event', self.on_key_press) def on_press(self, event): print('operator:',self.key) if self.holding : print('holding') return print('click', event) # if event.inaxes!=self.line.axes: return if self.key ==0: # draw the relative line relative_x = list(self.line_relative.get_xdata()) relative_y = list(self.line_relative.get_ydata()) print('relative_x',relative_x) if relative_x[0]==0: relative_x[0]=event.xdata relative_y[0]=event.ydata print('relative_x_sign',relative_x) self.line_relative.set_data(relative_x,relative_y) return elif len(relative_x)==1: relative_x.append(event.xdata) relative_y.append(event.xdata) else: point_distance_1 = np.sqrt( np.square(relative_x[0]-event.xdata) + np.square(relative_y[0]-event.ydata) ) point_distance_2 = np.sqrt( np.square(relative_x[1]-event.xdata) + np.square(relative_y[1]-event.ydata) ) if point_distance_1<=point_distance_2: relative_x[0]=event.xdata relative_y[0]=event.ydata else: relative_x[1]=event.xdata relative_y[1]=event.ydata self.line_relative.set_data(relative_x,relative_y) self.line_relative.figure.canvas.draw() self.scale_pixel = np.sqrt( np.square(relative_x[0] -relative_x[1]) + np.square(relative_y[0] - relative_y[1])) # t = 'pixels:'+ str(round(self.scale_pixel,2)) + '\n' + 'scale:' +str(self.scale)+'cm' # t = str(self.scale)+'cm' t = '' self.text_relative.set_text(t) self.text_relative.set_position( [(relative_x[0]+relative_x[1])/2, (relative_y[0]+relative_y[1])/2 ]) self.text_relative.figure.canvas.draw() if self.key =='b': # draw the basic line if len(self.xs)==2: self.xs = list(self.line.get_xdata()) self.ys = list(self.line.get_ydata()) x1 = self.xs[0] x2 = self.xs[1] x3 = event.xdata y1 = self.ys[0] y2 = self.ys[1] y3 = event.ydata slope_12 = (y2-y1)/(x2-x1+1e-5) slope_13 = (y3-y1)/(x3-x1+1e-5) rate = np.abs(slope_13/(slope_12+1e-5)) print('slope_12:',slope_12) print('slope_13:',slope_13) print('rate',rate) # if x3>=min(x1,x2) and x3<=max(x1,x2) and y3>=min(y1,y2) and y3<=max(y1,y2) and rate<=1.4 and rate>=0.7: if (x3>=(min(x1,x2)-1) and x3<=(max(x1,x2)+1) and y3>=(min(y1,y2)-3) and y3<=(max(y1,y2)+3) ) and \ ( (rate<=1.4 and rate>=0.7) or (np.abs(slope_12)>10 and np.abs(slope_13)>10) or (np.abs(slope_12)< 0.1 and np.abs(slope_13)<0.1 ) ): self.press = x3,y3 return else: point_distance_1 = np.sqrt( np.square(self.xs[0]-event.xdata) + np.square(self.ys[0]-event.ydata) ) point_distance_2 = np.sqrt( np.square(self.xs[1]-event.xdata) + np.square(self.ys[1]-event.ydata) ) if point_distance_1<point_distance_2: self.xs[0]=event.xdata self.ys[0]=event.ydata else: self.xs[1]=event.xdata self.ys[1]=event.ydata self.line.set_data(self.xs, self.ys) else: if self.xs[0]==0: self.xs[0] = event.xdata self.ys[0] = event.ydata self.line.set_data(self.xs, self.ys) return else: self.xs.append(event.xdata) self.ys.append(event.ydata) self.line.set_data(self.xs, self.ys) self.line.figure.canvas.draw() # draw vertical_line 1 if self.key =='n': # check for the basic line existance self.xs = list(self.line.get_xdata()) self.ys = list(self.line.get_ydata()) if len(self.xs)!=2: return # draw vertical_line_1 x1 = self.xs[0] x2 = self.xs[1] y1 = self.ys[0] y2 = self.ys[1] x3 = event.xdata y3 = event.ydata slope_12 = (y1-y2)/(x1-x2+1e-5) slope_34 = -1/(slope_12+1e-5) x4 = (y1-y3+x3*slope_34 - x1*slope_12)/(slope_34 - slope_12+1e-5) y4 = y1 + (x4-x1)*slope_12 self.vertical_line_1.set_data([x3,x4],[y3,y4]) self.vertical_line_1.figure.canvas.draw() # draw vertical_line 2 if self.key =='m': # check for the basic line existance self.xs = list(self.line.get_xdata()) self.ys = list(self.line.get_ydata()) if len(self.xs)!=2: return # draw vertical_line_1 x1 = self.xs[0] x2 = self.xs[1] y1 = self.ys[0] y2 = self.ys[1] x3 = event.xdata y3 = event.ydata slope_12 = (y1-y2)/(x1-x2+1e-5) slope_34 = -1/(slope_12+1e-5) x4 = (y1-y3+x3*slope_34 - x1*slope_12)/(slope_34 - slope_12+1e-5) y4 = y1 + (x4-x1)*slope_12 self.vertical_line_2.set_data([x3,x4],[y3,y4]) self.vertical_line_2.figure.canvas.draw() def on_motion(self, event): if self.press is None: return x3 , y3 = self.press dx = event.xdata - x3 dy = event.ydata - y3 self.xs = self.xs +dx self.ys = self.ys +dy self.line.set_data(self.xs,self.ys) self.line.figure.canvas.draw() self.press = event.xdata, event.ydata print('motion') def on_release(self, event): if self.press is None: return self.press = None print('release') def disconnect(self): 'disconnect all the stored connection ids' self.line.figure.canvas.mpl_disconnect(self.cidpress) self.line.figure.canvas.mpl_disconnect(self.cidrelease) self.line.figure.canvas.mpl_disconnect(self.cidmotion) self.line.figure.canvas.mpl_disconnect(self.cidkeypress) def on_key_press(self, event): print('key_press',event) print(event.key) if event.key == '0': self.key=0 if event.key == 'b': self.key='b' if event.key == 'n': self.key='n' if event.key == 'm': self.key='m' if event.key == 'escape': self.key=0 self.enter_count=0 self.line.set_data([0],[0]) self.vertical_line_1.set_data([0],[0]) self.vertical_line_2.set_data([0],[0]) self.text_1.set_text('') self.line_paral_1.set_data([0],[0]) self.line_paral_2.set_data([0],[0]) self.line_ex1.set_data([0],[0]) self.line_ex2.set_data([0],[0]) self.line_relative.set_data([0],[0]) self.text_relative.set_text('') self.line.figure.canvas.draw() self.vertical_line_1.figure.canvas.draw() self.vertical_line_2.figure.canvas.draw() self.text_1.figure.canvas.draw() self.line_paral_1.figure.canvas.draw() self.line_paral_2.figure.canvas.draw() self.line_ex1.figure.canvas.draw() self.line_ex2.figure.canvas.draw() self.line_relative.figure.canvas.draw() self.text_relative.figure.canvas.draw() print('clear done!') if event.key == 'enter': line_v1_x_list = list(self.vertical_line_1.get_xdata()) left_x = line_v1_x_list[1] line_v2_x_list = list(self.vertical_line_2.get_xdata()) right_x = line_v2_x_list[1] line_v1_y_list = list(self.vertical_line_1.get_ydata()) left_y = line_v1_y_list[1] line_v2_y_list = list(self.vertical_line_2.get_ydata()) right_y = line_v2_y_list[1] distance = np.sqrt( np.square(left_x - right_x) + np.square(left_y - right_y)) real_distance = (distance / self.scale_pixel) * self.scale print('real_distance:',real_distance) real_distance = round(real_distance,2) t = str(real_distance)+'mm' slope_12 = -(right_y - left_y)/(right_x -left_x+1e-5) # self.text_1.set_position([(left_x+right_x)/2 -2.5 ,(left_y+right_y)/2-6]) param_move_text = np.sqrt( np.square(2.5*2) /(np.square(slope_12)+1) ) * self.factor self.text_1.set_position([(left_x+right_x)/2 - param_move_text*slope_12 ,(left_y+right_y)/2- param_move_text]) # self.text_1.set_position([(left_x+right_x)/2 - 7*slope_12 ,(left_y+right_y)/2-7]) self.text_1.set_text(t) self.text_1.set_rotation( (np.arctan(slope_12)/math.pi)*180 ) self.text_1.figure.canvas.draw() pixels = np.sqrt((right_x- left_x)**2 + (right_y - left_y)**2) print('pixels_distance',pixels) if pixels > 15*self.factor: paral_rate = 1 - 15*self.factor / pixels param_move_bar = np.sqrt( np.square(1.6*2) /(np.square(slope_12)+1) )*self.factor if line_v1_x_list[1]<line_v2_x_list[1]: inverse=1 elif line_v1_x_list[1]>line_v2_x_list[1]: inverse=-1 self.line_paral_1.set_data([line_v1_x_list[1] - param_move_bar*slope_12 , line_v1_x_list[1] + inverse*1/2*(distance-16*self.factor)/np.sqrt(1+slope_12**2) - param_move_bar*slope_12 ], [line_v1_y_list[1] -param_move_bar,line_v1_y_list[1] - inverse*1/2*(distance-16*self.factor)/np.sqrt(1+slope_12**2)*slope_12 - param_move_bar ]) self.line_paral_1.figure.canvas.draw() self.line_paral_2.set_data([line_v2_x_list[1] - param_move_bar*slope_12 , line_v2_x_list[1] - inverse*1/2*(distance-16*self.factor)/np.sqrt(1+slope_12**2) - param_move_bar*slope_12 ], [line_v2_y_list[1] - param_move_bar,line_v2_y_list[1] + inverse*1/2*(distance-16*self.factor)/np.sqrt(1+slope_12**2)*slope_12 - param_move_bar ]) self.line_paral_2.figure.canvas.draw() else: self.line_paral_1.set_data([0],[0]) self.line_paral_1.figure.canvas.draw() self.line_paral_2.set_data([0],[0]) self.line_paral_2.figure.canvas.draw() print('slope_12',slope_12) # judge the side of line2 & line3 # param_move_ex = np.sqrt( np.square(4*2) /(np.square(slope_12)+1) )*self.factor param_move_ex = np.sqrt( np.square(2*2) /(np.square(slope_12)+1) )*self.factor if slope_12 >= 0 : if line_v1_x_list[1]>=line_v1_x_list[0]: # if -(line_v1_x_list[1] - line_v1_x_list[0])/(line_v1_y_list[1] - line_v1_y_list[0]+1e-5)<=0: self.line_ex1.set_data([line_v1_x_list[1],line_v1_x_list[1] + param_move_ex*slope_12], [line_v1_y_list[1],line_v1_y_list[1] + param_move_ex]) elif line_v1_x_list[1]<line_v1_x_list[0]: self.line_ex1.set_data([line_v1_x_list[1],line_v1_x_list[1] - param_move_ex*slope_12], [line_v1_y_list[1],line_v1_y_list[1] - param_move_ex]) if line_v2_x_list[1]>=line_v2_x_list[0]: self.line_ex2.set_data([line_v2_x_list[1],line_v2_x_list[1] + param_move_ex*slope_12], [line_v2_y_list[1],line_v2_y_list[1]+ param_move_ex]) elif line_v2_x_list[1]<line_v2_x_list[0]: self.line_ex2.set_data([line_v2_x_list[1],line_v2_x_list[1] - param_move_ex*slope_12], [line_v2_y_list[1],line_v2_y_list[1]- param_move_ex]) elif slope_12 < 0: if line_v1_x_list[1]>=line_v1_x_list[0]: # if -(line_v1_x_list[1] - line_v1_x_list[0])/(line_v1_y_list[1] - line_v1_y_list[0]+1e-5)<=0: self.line_ex1.set_data([line_v1_x_list[1],line_v1_x_list[1] - param_move_ex*slope_12], [line_v1_y_list[1],line_v1_y_list[1] - param_move_ex]) elif line_v1_x_list[1]<line_v1_x_list[0]: self.line_ex1.set_data([line_v1_x_list[1],line_v1_x_list[1] + param_move_ex*slope_12], [line_v1_y_list[1],line_v1_y_list[1] + param_move_ex]) if line_v2_x_list[1]>=line_v2_x_list[0]: self.line_ex2.set_data([line_v2_x_list[1],line_v2_x_list[1] - param_move_ex*slope_12], [line_v2_y_list[1],line_v2_y_list[1]- param_move_ex]) elif line_v2_x_list[1]<line_v2_x_list[0]: self.line_ex2.set_data([line_v2_x_list[1],line_v2_x_list[1] + param_move_ex*slope_12], [line_v2_y_list[1],line_v2_y_list[1]+ param_move_ex]) self.line_ex1.figure.canvas.draw() self.line_ex2.figure.canvas.draw() if self.enter_count==0: self.enter_count +=1 else: self.text_relative.set_text('') self.text_relative.figure.canvas.draw() self.line_relative.set_data([0],[0]) self.line_relative.figure.canvas.draw() self.text_1.set_text('') self.text_1.figure.canvas.draw() self.line_paral_1.set_data([0],[0]) self.line_paral_2.set_data([0],[0]) self.line_paral_1.figure.canvas.draw() self.line_paral_2.figure.canvas.draw() if event.key == 'j': if self.holding: self.holding = False else: self.holding = True if event.key == 'x': exists_num = 0 save_status = 0 while save_status==0: result_name = './data/result/'+ self.result_name+'_result_'+str(exists_num)+'.png' if not os.path.exists(result_name): plt.savefig(result_name,quality=100,dpi=800) print('save_success') print('file name:',result_name) break else: exists_num+=1 # plt.savefig('./1.png',quality=100,dpi=800) # print('save_success') # path = 'G:/Dataset/faces_emore/lfw/lfw_picture/1.jpg' if not os.path.exists('./data/result/'): os.mkdir('./data/result') path = sys.argv[1] target = Image.imread(path) sys_info = sys.platform if sys_info == 'win32': result_name_list = path.split('\\') if sys_info == 'darwin': result_name_list = path.split('/') print(result_name_list) result_name = result_name_list[-1].split('.')[0] print(result_name) if len(sys.argv)>2: scale = sys.argv[2] else: scale = 50 img_size = int(np.sqrt((np.shape(target)[0]**2 + np.shape(target)[1]**2) /2)) fig = plt.figure() ax = fig.add_subplot(111) ax.imshow(target) ax.set_title('click to build line segments') color_line = '#ff769c' color_text = 'w' line, = ax.plot([0], [0],color= color_line) # empty line line2, = ax.plot([0], [0],color=color_line) line3, = ax.plot([0], [0],color=color_line) line_paral_1, = ax.plot([0], [0],color=color_line) line_paral_2, = ax.plot([0], [0],color=color_line) line_ex1, = ax.plot([0], [0],color=color_line) line_ex2, = ax.plot([0], [0],color=color_line) # b_bar =ax.bar( [0],[0], color='k',align='center',linewidth=4) text_1 = ax.text(5,5,'',ha='center',va='top',wrap=True,color=color_text) line_relative, = ax.plot([0],[0],color=color_line) text_relative = ax.text(5,5,'',ha='center',va='top',wrap=True,color=color_text) lb = LineBuilder(scale,img_size,line,line2,line3,line_paral_1,line_paral_2,text_1,line_ex1,line_ex2,line_relative,text_relative,result_name) lb.connect() plt.show()
# This script calls [PaCMAP](https://arxiv.org/abs/1910.00204) functions to operate on the TopOGraph class # TriMAP was originally implemented by Yingfan Wang at https://github.com/YingfanWang/PaCMAP. # This is rather a modular adaptation, and does not change much of the optimization algorithm. # The main change is the similarity metric used to learn the lower-dimensional layout. # License: Apache # # Apache License # Version 2.0, January 2004 # http://www.apache.org/licenses/ # # TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION # # 1. Definitions. # # "License" shall mean the terms and conditions for use, reproduction, # and distribution as defined by Sections 1 through 9 of this document. # # "Licensor" shall mean the copyright owner or entity authorized by # the copyright owner that is granting the License. # # "Legal Entity" shall mean the union of the acting entity and all # other entities that control, are controlled by, or are under common # control with that entity. For the purposes of this definition, # "control" means (i) the power, direct or indirect, to cause the # direction or management of such entity, whether by contract or # otherwise, or (ii) ownership of fifty percent (50%) or more of the # outstanding shares, or (iii) beneficial ownership of such entity. # # "You" (or "Your") shall mean an individual or Legal Entity # exercising permissions granted by this License. # # "Source" form shall mean the preferred form for making modifications, # including but not limited to software source code, documentation # source, and configuration files. # # "Object" form shall mean any form resulting from mechanical # transformation or translation of a Source form, including but # not limited to compiled object code, generated documentation, # and conversions to other media types. # # "Work" shall mean the work of authorship, whether in Source or # Object form, made available under the License, as indicated by a # copyright notice that is included in or attached to the work # (an example is provided in the Appendix below). # # "Derivative Works" shall mean any work, whether in Source or Object # form, that is based on (or derived from) the Work and for which the # editorial revisions, annotations, elaborations, or other modifications # represent, as a whole, an original work of authorship. For the purposes # of this License, Derivative Works shall not include works that remain # separable from, or merely link (or bind by name) to the interfaces of, # the Work and Derivative Works thereof. # # "Contribution" shall mean any work of authorship, including # the original version of the Work and any modifications or additions # to that Work or Derivative Works thereof, that is intentionally # submitted to Licensor for inclusion in the Work by the copyright owner # or by an individual or Legal Entity authorized to submit on behalf of # the copyright owner. For the purposes of this definition, "submitted" # means any form of electronic, verbal, or written communication sent # to the Licensor or its representatives, including but not limited to # communication on electronic mailing lists, source code control systems, # and issue tracking systems that are managed by, or on behalf of, the # Licensor for the purpose of discussing and improving the Work, but # excluding communication that is conspicuously marked or otherwise # designated in writing by the copyright owner as "Not a Contribution." # # "Contributor" shall mean Licensor and any individual or Legal Entity # on behalf of whom a Contribution has been received by Licensor and # subsequently incorporated within the Work. # # 2. Grant of Copyright License. Subject to the terms and conditions of # this License, each Contributor hereby grants to You a perpetual, # worldwide, non-exclusive, no-charge, royalty-free, irrevocable # copyright license to reproduce, prepare Derivative Works of, # publicly display, publicly perform, sublicense, and distribute the # Work and such Derivative Works in Source or Object form. # # 3. Grant of Patent License. Subject to the terms and conditions of # this License, each Contributor hereby grants to You a perpetual, # worldwide, non-exclusive, no-charge, royalty-free, irrevocable # (except as stated in this section) patent license to make, have made, # use, offer to sell, sell, import, and otherwise transfer the Work, # where such license applies only to those patent claims licensable # by such Contributor that are necessarily infringed by their # Contribution(s) alone or by combination of their Contribution(s) # with the Work to which such Contribution(s) was submitted. If You # institute patent litigation against any entity (including a # cross-claim or counterclaim in a lawsuit) alleging that the Work # or a Contribution incorporated within the Work constitutes direct # or contributory patent infringement, then any patent licenses # granted to You under this License for that Work shall terminate # as of the date such litigation is filed. # # 4. Redistribution. You may reproduce and distribute copies of the # Work or Derivative Works thereof in any medium, with or without # modifications, and in Source or Object form, provided that You # meet the following conditions: # # (a) You must give any other recipients of the Work or # Derivative Works a copy of this License; and # # (b) You must cause any modified files to carry prominent notices # stating that You changed the files; and # # (c) You must retain, in the Source form of any Derivative Works # that You distribute, all copyright, patent, trademark, and # attribution notices from the Source form of the Work, # excluding those notices that do not pertain to any part of # the Derivative Works; and # # (d) If the Work includes a "NOTICE" text file as part of its # distribution, then any Derivative Works that You distribute must # include a readable copy of the attribution notices contained # within such NOTICE file, excluding those notices that do not # pertain to any part of the Derivative Works, in at least one # of the following places: within a NOTICE text file distributed # as part of the Derivative Works; within the Source form or # documentation, if provided along with the Derivative Works; or, # within a display generated by the Derivative Works, if and # wherever such third-party notices normally appear. The contents # of the NOTICE file are for informational purposes only and # do not modify the License. You may add Your own attribution # notices within Derivative Works that You distribute, alongside # or as an addendum to the NOTICE text from the Work, provided # that such additional attribution notices cannot be construed # as modifying the License. # # You may add Your own copyright statement to Your modifications and # may provide additional or different license terms and conditions # for use, reproduction, or distribution of Your modifications, or # for any such Derivative Works as a whole, provided Your use, # reproduction, and distribution of the Work otherwise complies with # the conditions stated in this License. # # 5. Submission of Contributions. Unless You explicitly state otherwise, # any Contribution intentionally submitted for inclusion in the Work # by You to the Licensor shall be under the terms and conditions of # this License, without any additional terms or conditions. # Notwithstanding the above, nothing herein shall supersede or modify # the terms of any separate license agreement you may have executed # with Licensor regarding such Contributions. # # 6. Trademarks. This License does not grant permission to use the trade # names, trademarks, service marks, or product names of the Licensor, # except as required for reasonable and customary use in describing the # origin of the Work and reproducing the content of the NOTICE file. # # 7. Disclaimer of Warranty. Unless required by applicable law or # agreed to in writing, Licensor provides the Work (and each # Contributor provides its Contributions) on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied, including, without limitation, any warranties or conditions # of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A # PARTICULAR PURPOSE. You are solely responsible for determining the # appropriateness of using or redistributing the Work and assume any # risks associated with Your exercise of permissions under this License. # # 8. Limitation of Liability. In no event and under no legal theory, # whether in tort (including negligence), contract, or otherwise, # unless required by applicable law (such as deliberate and grossly # negligent acts) or agreed to in writing, shall any Contributor be # liable to You for damages, including any direct, indirect, special, # incidental, or consequential damages of any character arising as a # result of this License or out of the use or inability to use the # Work (including but not limited to damages for loss of goodwill, # work stoppage, computer failure or malfunction, or any and all # other commercial damages or losses), even if such Contributor # has been advised of the possibility of such damages. # # 9. Accepting Warranty or Additional Liability. While redistributing # the Work or Derivative Works thereof, You may choose to offer, # and charge a fee for, acceptance of support, warranty, indemnity, # or other liability obligations and/or rights consistent with this # License. However, in accepting such obligations, You may act only # on Your own behalf and on Your sole responsibility, not on behalf # of any other Contributor, and only if You agree to indemnify, # defend, and hold each Contributor harmless for any liability # incurred by, or claims asserted against, such Contributor by reason # of your accepting any such warranty or additional liability. # # END OF TERMS AND CONDITIONS # # APPENDIX: How to apply the Apache License to your work. # # To apply the Apache License to your work, attach the following # boilerplate notice, with the fields enclosed by brackets "[]" # replaced with your own identifying information. (Don't include # the brackets!) The text should be enclosed in the appropriate # comment syntax for the file format. We also recommend that a # file or class name and description of purpose be included on the # same "printed page" as the copyright notice for easier # identification within third-party archives. # # Copyright 2020 Yingfan Wang, Haiyang Huang, Cynthia Rudin, Yaron Shaposhnik # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import time from numpy import random try: from typing import Literal except ImportError: try: from typing_extensions import Literal except ImportError: class LiteralMeta(type): def __getitem__(cls, values): if not isinstance(values, tuple): values = (values,) return type('Literal_', (Literal,), dict(__args__=values)) class Literal(metaclass=LiteralMeta): pass # PaCMAP def PaCMAP(data=None, init=None, n_dims=2, n_neighbors=10, MN_ratio=0.5, FP_ratio=2.0, pair_neighbors=None, pair_MN=None, pair_FP=None, distance="angular", lr=1.0, num_iters=450, verbose=False, intermediate=False): """ Dimensionality Reduction Using Pairwise-controlled Manifold Approximation and Projectio Inputs ------ data : np.array with the data to be reduced init : the initialization of the lower dimensional embedding. One of "pca" or "random", or a user-provided numpy ndarray with the shape (N, 2). Default to "random". n_dims : the number of dimension of the output. Default to 2. n_neighbors : the number of neighbors considered in the k-Nearest Neighbor graph. Default to 10 for dataset whose sample size is smaller than 10000. For large dataset whose sample size (n) is larger than 10000, the default value is: 10 + 15 * (log10(n) - 4). MN_ratio : the ratio of the number of mid-near pairs to the number of neighbors, n_MN = \lfloor n_neighbors * MN_ratio \rfloor . Default to 0.5. FP_ratio : the ratio of the number of further pairs to the number of neighbors, n_FP = \lfloor n_neighbors * FP_ratio \rfloor Default to 2. distance : Distance measure ('euclidean' (default), 'manhattan', 'angular', 'hamming') lr : Optimization method ('sd': steepest descent, 'momentum': GD with momentum, 'dbd': GD with momentum delta-bar-delta (default)) num_iters : number of iterations. Default to 450. 450 iterations is enough for most dataset to converge. pair_neighbors, pair_MN and pair_FP: pre-specified neighbor pairs, mid-near points, and further pairs. Allows user to use their own graphs. Default to None. verbose : controls verbosity (default False) intermediate : whether pacmap should also output the intermediate stages of the optimization process of the lower dimension embedding. If True, then the output will be a numpy array of the size (n, n_dims, 13), where each slice is a "screenshot" of the output embedding at a particular number of steps, from [0, 10, 30, 60, 100, 120, 140, 170, 200, 250, 300, 350, 450]. random_state : RandomState object (default None) """ try: import pacmap _have_pacmap = True except ImportError('TriMAP is needed for this embedding. Install it with `pip install trimap`'): return print('TriMAP is needed for this embedding. Install it with `pip install trimap`') pacmap_emb = pacmap.PaCMAP(n_dims=n_dims, n_neighbors=n_neighbors, MN_ratio=MN_ratio, FP_ratio=FP_ratio, pair_neighbors=pair_neighbors, pair_MN=pair_MN, pair_FP=pair_FP, distance=distance, lr=lr, num_iters=num_iters, verbose=verbose, intermediate=intermediate).fit_transform(X=data, init=init) return pacmap_emb
#!/usr/bin/env node // 初始化创建步骤选项列表 const { inquirerList, inquirerPrecssList, options, dependencies } = require('./store'); const inquirer = require('inquirer'); const store = require('./store'); module.exports = async function () { const answersStep = []; const submenu = ['precss']; await inquirerPro() await inquirerBase(answersStep, submenu); await hasPrecss(answersStep); require('./creator')(); }; async function inquirerPro () { await inquirer.prompt([ { name: 'name', message: '项目的名称', default: store.root }, { name: 'version', message: '项目的版本号', default: '1.0.0' }, { name: 'description', message: '项目的简介', default: `A react project` }, { name: 'author', message: '请输入作者名称', default: 'react' } ]).then((answers) => { store.pro = answers }).catch(err => { return Promise.reject(err) }) } // 一级菜单 基本选项 function inquirerBase (answersStep, submenu) { return new Promise(resolve => { const inquirerOptions = inquirer.createPromptModule(); inquirerOptions(inquirerList).then(answers => { submenu.forEach(item => { if (answers.options.includes(item)) answersStep.push(item); }); answers.options.forEach(item => { if (store.options[item] === false) store.options[item] = true; if (!answersStep.includes(item) && item in dependencies) { options.dependencies = [...options.dependencies, ...dependencies[item]]; } }); resolve(); }); }); } // 二级子菜单 css 预处理器 function hasPrecss (answersStep) { return new Promise((resolve, reject) => { if (answersStep.includes('precss')) { const inquirerPrecss = inquirer.createPromptModule(); inquirerPrecss(inquirerPrecssList).then(answers => { store.cssLoader = answers.Precss store.options.precss = answers.Precss || 'stylus'; options.dependencies = [...options.dependencies, ...dependencies[answers.Precss]]; resolve(); }); } else { resolve(); } }); }
#!/usr/bin/env python import asyncio import logging from typing import Any, Dict, List, Optional import ujson import hummingbot.connector.exchange.alpaca.alpaca_constants as CONSTANTS from hummingbot.connector.exchange.alpaca.alpaca_order_book import AlpacaOrderBook from hummingbot.connector.exchange.alpaca.alpaca_utils import convert_from_exchange_trading_pair, \ convert_to_exchange_trading_pair, \ convert_snapshot_message_to_order_book_row, \ build_api_factory, \ decompress_ws_message from hummingbot.core.api_throttler.async_throttler import AsyncThrottler from hummingbot.core.data_type.order_book import OrderBook from hummingbot.core.data_type.order_book_message import OrderBookMessage from hummingbot.core.data_type.order_book_tracker_data_source import OrderBookTrackerDataSource from hummingbot.core.web_assistant.connections.data_types import RESTMethod, RESTRequest, WSRequest from hummingbot.core.web_assistant.rest_assistant import RESTAssistant from hummingbot.core.web_assistant.web_assistants_factory import WebAssistantsFactory from hummingbot.core.web_assistant.ws_assistant import WSAssistant from hummingbot.logger import HummingbotLogger class AlpacaAPIOrderBookDataSource(OrderBookTrackerDataSource): MESSAGE_TIMEOUT = 10.0 SNAPSHOT_TIMEOUT = 60 * 60 # expressed in seconds PING_TIMEOUT = 2.0 _logger: Optional[HummingbotLogger] = None @classmethod def logger(cls) -> HummingbotLogger: if cls._logger is None: cls._logger = logging.getLogger(__name__) return cls._logger def __init__(self, throttler: Optional[AsyncThrottler] = None, trading_pairs: List[str] = None, api_factory: Optional[WebAssistantsFactory] = None): super().__init__(trading_pairs) self._throttler = throttler or self._get_throttler_instance() self._api_factory = api_factory or build_api_factory() self._rest_assistant = None self._snapshot_msg: Dict[str, any] = {} @classmethod def _get_throttler_instance(cls) -> AsyncThrottler: throttler = AsyncThrottler(CONSTANTS.RATE_LIMITS) return throttler async def _get_rest_assistant(self) -> RESTAssistant: if self._rest_assistant is None: self._rest_assistant = await self._api_factory.get_rest_assistant() return self._rest_assistant @classmethod async def get_last_traded_prices(cls, trading_pairs: List[str]) -> Dict[str, float]: throttler = cls._get_throttler_instance() async with throttler.execute_task(CONSTANTS.GET_LAST_TRADING_PRICES_PATH_URL): result = {} request = RESTRequest( method=RESTMethod.GET, url=f"{CONSTANTS.REST_URL}/{CONSTANTS.GET_LAST_TRADING_PRICES_PATH_URL}", ) rest_assistant = await build_api_factory().get_rest_assistant() response = await rest_assistant.call(request=request, timeout=10) response_json = await response.json() for ticker in response_json["data"]["tickers"]: t_pair = convert_from_exchange_trading_pair(ticker["symbol"]) if t_pair in trading_pairs and ticker["last_price"]: result[t_pair] = float(ticker["last_price"]) return result @staticmethod async def fetch_trading_pairs() -> List[str]: throttler = AlpacaAPIOrderBookDataSource._get_throttler_instance() async with throttler.execute_task(CONSTANTS.GET_TRADING_PAIRS_PATH_URL): request = RESTRequest( method=RESTMethod.GET, url=f"{CONSTANTS.REST_URL}/{CONSTANTS.GET_TRADING_PAIRS_PATH_URL}", ) rest_assistant = await build_api_factory().get_rest_assistant() response = await rest_assistant.call(request=request, timeout=10) if response.status == 200: try: response_json: Dict[str, Any] = await response.json() return [convert_from_exchange_trading_pair(symbol) for symbol in response_json["data"]["symbols"]] except Exception: pass # Do nothing if the request fails -- there will be no autocomplete for alpaca trading pairs return [] @staticmethod async def get_order_book_data(trading_pair: str) -> Dict[str, any]: """ Get whole orderbook """ throttler = AlpacaAPIOrderBookDataSource._get_throttler_instance() async with throttler.execute_task(CONSTANTS.GET_ORDER_BOOK_PATH_URL): request = RESTRequest( method=RESTMethod.GET, url=f"{CONSTANTS.REST_URL}/{CONSTANTS.GET_ORDER_BOOK_PATH_URL}?size=200&symbol=" f"{convert_to_exchange_trading_pair(trading_pair)}", ) rest_assistant = await build_api_factory().get_rest_assistant() response = await rest_assistant.call(request=request, timeout=10) if response.status != 200: raise IOError( f"Error fetching OrderBook for {trading_pair} at {CONSTANTS.EXCHANGE_NAME}. " f"HTTP status is {response.status}." ) orderbook_data: Dict[str, Any] = await response.json() orderbook_data = orderbook_data["data"] return orderbook_data async def get_new_order_book(self, trading_pair: str) -> OrderBook: snapshot: Dict[str, Any] = await self.get_order_book_data(trading_pair) snapshot_timestamp: float = float(snapshot["timestamp"]) snapshot_msg: OrderBookMessage = AlpacaOrderBook.snapshot_message_from_exchange( snapshot, snapshot_timestamp, metadata={"trading_pair": trading_pair} ) order_book = self.order_book_create_function() bids, asks = convert_snapshot_message_to_order_book_row(snapshot_msg) order_book.apply_snapshot(bids, asks, snapshot_msg.update_id) return order_book async def _sleep(self, delay): """ Function added only to facilitate patching the sleep in unit tests without affecting the asyncio module """ await asyncio.sleep(delay) async def listen_for_trades(self, ev_loop: asyncio.BaseEventLoop, output: asyncio.Queue): """ Listen for trades using websocket trade channel """ while True: try: ws: WSAssistant = await self._api_factory.get_ws_assistant() try: await ws.connect(ws_url=CONSTANTS.WSS_URL, message_timeout=self.MESSAGE_TIMEOUT, ping_timeout=self.PING_TIMEOUT) except RuntimeError: self.logger().info("Alpaca WebSocket already connected.") for trading_pair in self._trading_pairs: ws_message: WSRequest = WSRequest({ "op": "subscribe", "args": [f"spot/trade:{convert_to_exchange_trading_pair(trading_pair)}"] }) await ws.send(ws_message) while True: try: async for raw_msg in ws.iter_messages(): messages = decompress_ws_message(raw_msg.data) if messages is None: continue messages = ujson.loads(messages) if "errorCode" in messages.keys() or \ "data" not in messages.keys() or \ "table" not in messages.keys(): continue if messages["table"] != "spot/trade": # Not a trade message continue for msg in messages["data"]: # data is a list msg_timestamp: float = float(msg["s_t"] * 1000) t_pair = convert_from_exchange_trading_pair(msg["symbol"]) trade_msg: OrderBookMessage = AlpacaOrderBook.trade_message_from_exchange( msg=msg, timestamp=msg_timestamp, metadata={"trading_pair": t_pair}) output.put_nowait(trade_msg) break except asyncio.exceptions.TimeoutError: # Check whether connection is really dead await ws.ping() except asyncio.CancelledError: raise except asyncio.exceptions.TimeoutError: self.logger().warning("WebSocket ping timed out. Going to reconnect...") await ws.disconnect() await asyncio.sleep(30.0) except Exception: self.logger().error("Unexpected error.", exc_info=True) await ws.disconnect() await self._sleep(5.0) finally: await ws.disconnect() async def listen_for_order_book_diffs(self, ev_loop: asyncio.BaseEventLoop, output: asyncio.Queue): """ Listen for orderbook diffs using websocket book channel(all messages are snapshots) """ while True: try: ws: WSAssistant = await self._api_factory.get_ws_assistant() await ws.connect(ws_url=CONSTANTS.WSS_URL, message_timeout=self.MESSAGE_TIMEOUT, ping_timeout=self.PING_TIMEOUT) for trading_pair in self._trading_pairs: ws_message: WSRequest = WSRequest({ "op": "subscribe", "args": [f"spot/depth400:{convert_to_exchange_trading_pair(trading_pair)}"] }) await ws.send(ws_message) while True: try: async for raw_msg in ws.iter_messages(): messages = decompress_ws_message(raw_msg.data) if messages is None: continue messages = ujson.loads(messages) if "errorCode" in messages.keys() or \ "data" not in messages.keys() or \ "table" not in messages.keys(): continue if messages["table"] != "spot/depth5": # Not an order book message continue for msg in messages["data"]: # data is a list msg_timestamp: float = float(msg["ms_t"]) t_pair = convert_from_exchange_trading_pair(msg["symbol"]) snapshot_msg: OrderBookMessage = AlpacaOrderBook.snapshot_message_from_exchange( msg=msg, timestamp=msg_timestamp, metadata={"trading_pair": t_pair} ) output.put_nowait(snapshot_msg) break except asyncio.exceptions.TimeoutError: # Check whether connection is really dead await ws.ping() except asyncio.CancelledError: raise except asyncio.exceptions.TimeoutError: self.logger().warning("WebSocket ping timed out. Going to reconnect...") await ws.disconnect() await asyncio.sleep(30.0) except Exception: self.logger().network( "Unexpected error with WebSocket connection.", exc_info=True, app_warning_msg="Unexpected error with WebSocket connection. Retrying in 30 seconds. " "Check network connection." ) await ws.disconnect() await self._sleep(30.0) finally: await ws.disconnect() async def listen_for_order_book_snapshots(self, ev_loop: asyncio.BaseEventLoop, output: asyncio.Queue): """ Listen for orderbook snapshots by fetching orderbook """ while True: await self._sleep(self.SNAPSHOT_TIMEOUT) try: for trading_pair in self._trading_pairs: snapshot: Dict[str, any] = await self.get_order_book_data(trading_pair) snapshot_timestamp: float = float(snapshot["timestamp"]) snapshot_msg: OrderBookMessage = AlpacaOrderBook.snapshot_message_from_exchange( snapshot, snapshot_timestamp, metadata={"trading_pair": trading_pair} ) output.put_nowait(snapshot_msg) self.logger().debug(f"Saved order book snapshot for {trading_pair}") except asyncio.CancelledError: raise except Exception: self.logger().error("Unexpected error occured listening for orderbook snapshots. Retrying in 5 secs...", exc_info=True) await self._sleep(5.0)
const apiproxy_revision = context.getVariable('apiproxy.revision'); const healthcheck_status_code = context.getVariable('healthcheckResponse.status.code'); const healthcheck_request_url = context.getVariable('healthcheckRequest.url'); const healthcheck_failed = context.getVariable("servicecallout.ServiceCallout.CallHealthcheckEndpoint.failed"); function json_tryparse(raw) { try { return JSON.parse(raw); } catch (e) { return raw; } } const healthcheck_content = json_tryparse(context.getVariable('healthcheckResponse.content')); const healthcheck_status = (healthcheck_status_code/100 === 2) ? "pass" : "fail"; const timeout = (healthcheck_status_code === null && healthcheck_failed) ? "true" : "false"; const final_status = (healthcheck_status !== "pass") ? "fail" : "pass"; const resp = { "status" : final_status, "version" : "{{ DEPLOYED_VERSION }}" , "revision" : apiproxy_revision, "releaseId" : "{{ RELEASE_RELEASEID }}", "commitId": "{{ SOURCE_COMMIT_ID }}", "checks" : { "healthcheck" : { "status": healthcheck_status, "timeout" : timeout, "responseCode" : healthcheck_status_code, "outcome": healthcheck_content, "links" : {"self": healthcheck_request_url} } } }; context.setVariable("status.response", JSON.stringify(resp)); context.setVariable("response.content", JSON.stringify(resp)); context.setVariable("response.header.Content-Type", "application/json");
import React , { Component } from 'react'; import logo from '../../assets/curandoMe-white-logo-min.png'; import './Header.css' class Header extends Component{ render(){ return( <div className = "header"> <div className = "image"> <img src = { logo } className="img-fluid" alt = "Logo curando.Me"/> </div> <div className="buttons d-none d-lg-block d-xl-none"> <div className = "nav-buttons"> {/* <button className="map btn btn-default" >MAPA</button> */} <button className="find btn btn-default">ENCUENTRA</button> <button className="schedule btn btn-default">AGENDA</button> </div> <div className="access-buttons"> <button className="register btn btn-primary">REGISTRO</button> <button className="login btn btn-primary">LOGIN</button> </div> </div> </div> )} } export default Header;
casper.test.begin('Nested Viewmodels', 7, function (test) { casper .start('./fixtures/nested-vms.html') .then(function () { test.assertSelectorHasText('.ancestor', 'Andy Johnson') test.assertSelectorHasText('.jack', 'Jack, son of Andy') test.assertSelectorHasText('.mike', 'Mike, son of Jack') test.assertSelectorHasText('.jason', 'Jason, son of Jack') test.assertSelectorHasText('.tim', 'Tim, son of Mike, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.') test.assertSelectorHasText('.tom', 'Tom, son of Mike, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.') test.assertSelectorHasText('.andrew', 'Andrew, son of Jason, grandson of Jack, great-grandson of Andy, and offspring of family Johnson.') }) .run(function () { test.done() }) })
'use strict'; angular.module('cpZenPlatform').factory('userUtils', ['$location', '$window', '$translate', '$state', '$rootScope', 'cdDojoService', 'cdUsersService', 'auth', 'usSpinnerService', 'alertService', 'permissionService', 'Analytics', function($location, $window, $translate, $state, $rootScope, cdDojoService, cdUsersService, auth, usSpinnerService, alertService, permissionService, Analytics){ var userUtils = {}; var approvalRequired = ['mentor', 'champion']; userUtils.getAge = function (birthDate) { return moment.utc().diff(moment(birthDate), 'years'); }; userUtils.getBaseUserTypeByAge = function (birthDate) { var age = this.getAge(birthDate); if (age < 13) { return 'attendee-u13'; } else if (age < 18) { return 'attendee-o13'; } else { return 'parent-guardian'; } }; userUtils.doRegister = function (userFormData) { if(!userFormData.recaptchaResponse) return alertService.showError($translate.instant('Please resolve the captcha')); delete userFormData.passwordConfirm; var isAdult = false; userFormData.user['g-recaptcha-response'] = userFormData.recaptchaResponse; userFormData.user.emailSubject = 'Welcome to Zen, the CoderDojo community platform.'; if (this.getAge(userFormData.profile.dob) >= 18) { userFormData.user.initUserType = {'title':'Parent/Guardian','name':'parent-guardian'}; isAdult = true; } else if (this.getAge(userFormData.profile.dob) >= 13) { userFormData.user.initUserType = {'title':'Youth Over 13','name':'attendee-o13'}; } else { return alertService.showError($translate.instant('Sorry only users over 13 can signup, but your parent or guardian can sign up and create you an account')); } var user = userFormData.user; auth.register(_.omit(userFormData, 'referer'), function(data) { Analytics.trackEvent($state.current.name, 'click', 'register' + (isAdult ? '_adult' : '_kid')); userFormData.referer = userFormData.referer && userFormData.referer.indexOf("/dashboard/") === -1 ? '/dashboard' + userFormData.referer : userFormData.referer; if(data.ok) { auth.login({ email: user.email, password: user.password }, function(data) { var initUserTypeStr = data.user && data.user.initUserType; var initUserType = JSON.parse(initUserTypeStr); if($state.current.name === 'start-dojo'){ $window.location.href = $state.href('start-dojo'); } else { // We cannot use $state.go until we find a solution to update the user menu // EventId is having its own redirection, don't cumulate w/ referer var params = {userId: data.user.id}; if ($state.params.eventId) { params.eventId = $state.params.eventId; } else if (userFormData.referer) { params.referer = userFormData.referer; } // Note GFE 2019/02/08: replace default navigation to home // eventId can be ignored as all flows goes through Vuejs // Other referers might be in use: accepting an invite $window.location.href = params.referer ? params.referer : '/home'; } }); } else { var reason; if(data.why === 'nick-exists'){ reason = $translate.instant('user name already exists'); } if(data.error === 'captcha-failed'){ reason = $translate.instant('captcha error'); } alertService.showAlert($translate.instant('There was a problem registering your account:') + ' ' + reason); } }, function(err) { alertService.showError(JSON.stringify(err)); }); }; userUtils.defaultAvatar = function (usertype, sex) { var overallDefault = '/img/avatars/avatar.png'; var defaults = { 'attendee-o13': { default: '/img/avatars/ninja.png', 'Female': ['/img/avatars/kid-f.png', '/img/avatars/kid-f2.png'], 'Male': ['/img/avatars/kid-m.png', '/img/avatars/kid-m2.png', '/img/avatars/kid-m3.png'] }, 'attendee-u13':{ default: '/img/avatars/ninja.png', 'Female': ['/img/avatars/kid-f.png', '/img/avatars/kid-f2.png'], 'Male': ['/img/avatars/kid-m.png', '/img/avatars/kid-m2.png', '/img/avatars/kid-m3.png'] }, 'adult': { default: '/img/avatars/avatar.png', 'Female': ['/img/avatars/adult-f.png', '/img/avatars/adult-f2.png', '/img/avatars/adult-f3.png', '/img/avatars/adult-f4.png', '/img/avatars/adult-f5.png'], 'Male': ['/img/avatars/adult-m.png', '/img/avatars/adult-m2.png'] } }; var avatar = void 0; var userTypeAvatar = defaults[usertype]; if (_.includes(['mentor', 'parent-guardian', 'champion'], usertype)) { userTypeAvatar = defaults.adult; } if (userTypeAvatar) { if(sex) { avatar = _.sample(userTypeAvatar[sex]); } else { avatar = _.sample(_.concat(userTypeAvatar.Female, userTypeAvatar.Male)); } } return avatar || overallDefault; } /** * getTitleForUserTypes Return a title based upon usertypes of a user * @param {Array} userTypes List of userTypes/roles * @param {Object} user The user profile * @return {String} The title (ie : Youth Champion, Ninja) */ userUtils.getTitleForUserTypes = function (userTypes, user) { var title = []; var age = this.getAge(user.dob); if (_.includes(userTypes, 'champion')) { title.push($translate.instant('Champion')); } else if (_.includes(userTypes, 'mentor')) { title.push($translate.instant('Volunteer/Mentor')); } if (age < 18 || _.includes(userTypes, 'attendee-u13') || _.includes(userTypes, 'attendee-o13')) { if (title.length === 0) { title.push($translate.instant('Attendee')); } else { // so we have "Youth Mentor" rather than "Attendee Mentor" title.unshift($translate.instant('Youth')) } title.push('(' + age + ')'); } else if (title.length === 0) { title.push($translate.instant('Parent/Guardian')); } return title.join(' '); } userUtils.getPermissionsForUserTypes = function (userTypes, userDojo) { var def = { // name: array since we're using concat to have a one-level array 'champion': [{"title":"Dojo Admin","name":"dojo-admin"}, {"title":"Ticketing Admin","name":"ticketing-admin"}] }; var perms; // If original perm is lower than the new one, we reset it, else we expand it if (permissionService.getUserTypesIndex(userDojo.userTypes) < permissionService.getUserTypesIndex(userTypes) || !userDojo.userPermissions) { perms = []; } else { perms = userDojo.userPermissions; } userTypes.forEach(function (usertype) { if (def[usertype]) { perms = perms.concat(def[usertype]); } }); return _.uniqBy(perms, 'name'); } return userUtils; }]);
import{r as t,f as e,h as i,H as s,e as a}from"./p-212d0ebd.js";class n{constructor(i){t(this,i),this.transitioning=!1,this.tabs=[],this.useRouter=!1,this.onTabClicked=t=>{const{href:e,tab:i}=t.detail,s=this.tabs.find(t=>t.tab===i);if(this.useRouter&&void 0!==e){const t=document.querySelector("ion-router");t&&t.push(e)}else s&&this.select(s)},this.ionNavWillLoad=e(this,"ionNavWillLoad",7),this.ionTabsWillChange=e(this,"ionTabsWillChange",3),this.ionTabsDidChange=e(this,"ionTabsDidChange",3)}componentWillLoad(){this.useRouter||(this.useRouter=!!document.querySelector("ion-router")&&!this.el.closest("[no-router]")),this.tabs=Array.from(this.el.querySelectorAll("ion-tab")),this.initSelect().then(()=>{this.ionNavWillLoad.emit(),this.componentWillUpdate()})}componentDidUnload(){this.tabs.length=0,this.selectedTab=this.leavingTab=void 0}componentWillUpdate(){const t=this.el.querySelector("ion-tab-bar");t&&(t.selectedTab=this.selectedTab?this.selectedTab.tab:void 0)}async select(t){const e=await this.getTab(t);return!!this.shouldSwitch(e)&&(await this.setActive(e),await this.notifyRouter(),this.tabSwitch(),!0)}async getTab(t){const e="string"==typeof t?this.tabs.find(e=>e.tab===t):t;return e||console.error(`tab with id: "${e}" does not exist`),e}getSelected(){return Promise.resolve(this.selectedTab?this.selectedTab.tab:void 0)}async setRouteId(t){const e=await this.getTab(t);return this.shouldSwitch(e)?(await this.setActive(e),{changed:!0,element:this.selectedTab,markVisible:()=>this.tabSwitch()}):{changed:!1,element:this.selectedTab}}async getRouteId(){const t=this.selectedTab&&this.selectedTab.tab;return void 0!==t?{id:t,element:this.selectedTab}:void 0}async initSelect(){this.useRouter||(await Promise.all(this.tabs.map(t=>t.componentOnReady())),await this.select(this.tabs[0]))}setActive(t){return this.transitioning?Promise.reject("transitioning already happening"):(this.transitioning=!0,this.leavingTab=this.selectedTab,this.selectedTab=t,this.ionTabsWillChange.emit({tab:t.tab}),t.setActive())}tabSwitch(){const t=this.selectedTab,e=this.leavingTab;this.leavingTab=void 0,this.transitioning=!1,t&&e!==t&&(e&&(e.active=!1),this.ionTabsDidChange.emit({tab:t.tab}))}notifyRouter(){if(this.useRouter){const t=document.querySelector("ion-router");if(t)return t.navChanged("forward")}return Promise.resolve(!1)}shouldSwitch(t){return void 0!==t&&t!==this.selectedTab&&!this.transitioning}render(){return i(s,{onIonTabButtonClick:this.onTabClicked},i("slot",{name:"top"}),i("div",{class:"tabs-inner"},i("slot",null)),i("slot",{name:"bottom"}))}get el(){return a(this)}static get style(){return":host{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;z-index:0}.tabs-inner,:host{contain:layout size style}.tabs-inner{position:relative;-ms-flex:1;flex:1}"}}export{n as ion_tabs};
import { Typography } from "@material-ui/core"; import { LinkOut } from "../link/LinkOut" export default (props) => ( <Typography component={LinkOut} variant="h6" {...props}> {props.children} </Typography> );
//============================================================================= // ShowIncredibleActions.js // ---------------------------------------------------------------------------- // Copyright (c) 2017 Tsumio // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // ---------------------------------------------------------------------------- // Version // 1.0.7 2017/07/28 行動回数1回のとき、ウィンドウの表示非表示を設定できるように変更。 // 1.0.6 2017/07/27 ウィンドウの幅とオフセットを設定できるように変更。 // 1.0.5 2017/07/26 キャンセル時の挙動を調整。 // 1.0.4 2017/07/26 フロントビューに対応。 // 1.0.3 2017/07/25 行動時に表示をなくすように変更。 // 1.0.2 2017/07/24 PT人数によってはエラーが出る不具合を修正。 // 1.0.1 2017/07/24 プラグインパラメーターを追加。表示方式を選べるように変更。 // 1.0.0 2017/07/23 公開。 // ---------------------------------------------------------------------------- // [GitHub] : https://github.com/Tsumio/rmmv-plugins // [Blog] : http://ntgame.wpblog.jp/ // [Twitter]: https://twitter.com/TsumioNtGame //============================================================================= /*: * @plugindesc This is a plugin that displays the number of actions when battle scene. * @author Tsumio * * @param ----SideViewSettings---- * @desc * @default * * @param DisplayType * @type string * @desc This is a setting sets displaying type.You can set 'Number' or 'Exclamation' * @default Number * * @param StringColor * @type string * @desc This is a setting sets the number(or exclamation) color.You can use two type.The thing is 'string' type and 'CSS format' type. * @default #FFF * * @param OffSetX * @type number * @min -1000 * @max 1000 * @desc This is a setting sets the offset of X position. * @default 60 * * @param OffSetY * @type number * @min -1000 * @max 1000 * @desc This is a setting sets the offset of Y position. * @default -20 * * @param ----FrontViewSettings---- * @desc * @default * * @param AdvanceString * @type string * @desc Specify a character string that announces the number of actions. * @default Number of actions : * * @param ShowName * @type boolean * @desc Whether to display the name before the 'AdvanceString'. * @default true * * @param HideWindow * @type boolean * @desc Whether to hide the window when the number of actions is 1. * @default false * * @param WindowWidth * @type number * @max 2000 * @desc This is a setting sets the width of the window for displaying the number of actions. * @default 400 * * @param OffSetX_FV * @type number * @min -1000 * @max 1000 * @desc This is a setting sets the offset of Window X position. * @default 0 * * @param OffSetY_FV * @type number * @min -1000 * @max 1000 * @desc This is a setting sets the offset of Window Y position. * @default 0 * * @help * If there is a character that can act more than once when battle scene, the number of times that the action can be taken is displayed. * * ----how to use---- * You can use this plugin just by adding. * * If you use side view ,you can choose the display type from "Number" or "Exclamation". * If you use front view , only "Number" can be used. * * The reference coordinates of the window in front view are the coordinates of the command window. * * ----plugin command---- * There is no plugin command. * * --Terms of Use-- * This plugin is free for both commercial and non-commercial use. * You don't have to make sure to credit. * Furthermore, you may edit the source code to suit your needs, * so long as you don't claim the source code belongs to you. * */ /*:ja * @plugindesc 戦闘時に行動可能回数を表示するプラグインです。 * @author ツミオ * * * @param ----サイドビューの設定---- * @desc * @default * * @param 表示方式 * @type string * @desc 表示方式を設定します。(「数字」か「エクスクラメーション」を設定できます) * @default 数字 * * @param 文字色 * @type string * @desc 文字色の色を設定します。直接文字を指定することもできますが、CSS形式でより細かい指定もできます。 * @default #FFF * * @param X座標のオフセット * @type number * @min -1000 * @max 1000 * @desc X座標のオフセットを設定します。 * @default 60 * * @param Y座標のオフセット * @type number * @min -1000 * @max 1000 * @desc Y座標のオフセットを設定します。 * @default -20 * * @param ----フロントビューの設定---- * @desc * @default * * @param アナウンス文字 * @type string * @desc 行動回数をアナウンスする文字列を指定します。 * @default の行動回数: * * @param 名前の表示 * @type boolean * @desc アナウンス文字の前に名前を表示するかどうか。 * @default true * * @param ウィンドウの非表示 * @type boolean * @desc 行動回数1回のとき、ウィンドウを非表示にするかどうか。 * @default false * * @param ウィンドウの幅 * @type number * @max 2000 * @desc 行動回数を表示するウィンドウの幅を設定します。 * @default 400 * * @param X座標のオフセットFV * @type number * @min -1000 * @max 1000 * @desc ウィンドウのX座標のオフセットを設定します。 * @default 0 * * @param Y座標のオフセットFV * @type number * @min -1000 * @max 1000 * @desc ウィンドウのY座標のオフセットを設定します。 * @default 0 * * @help 戦闘時、複数回行動可能なキャラクターがいた場合、その行動可能回数を表示します。 * * 【使用方法】 * プラグインを導入するだけで使用できます。 * * サイドビューの場合、表示方式は「数字」か「エクスクラメーション」の2種類から選ぶことができます。 * フロントビューは数字のみに対応しています。 * * フロントビュー時のウィンドウの基準座標は、コマンドウィンドウの座標になっています。 * * 【プラグインコマンド】 * このプラグインにプラグインコマンドはありません。 * * 【備考】 * 当プラグインを利用したことによるいかなる損害に対しても、制作者は一切の責任を負わないこととします。 * * 【利用規約】 * ソースコードの著作権者が自分であると主張しない限り、 * 作者に無断で改変、再配布が可能です。 * 利用形態(商用、18禁利用等)についても制限はありません。 * 自由に使用してください。 * */ (function() { 'use strict'; var pluginName = 'ShowIncredibleActions'; //Declare NTMO namespace. var NTMO = NTMO || {}; //============================================================================= // Local function // These functions checks & formats pluguin's command parameters. // I borrowed these functions from Triacontane.Thanks! //============================================================================= var getParamString = function(paramNames) { if (!Array.isArray(paramNames)) paramNames = [paramNames]; for (var i = 0; i < paramNames.length; i++) { var name = PluginManager.parameters(pluginName)[paramNames[i]]; if (name) return name; } return ''; }; var getParamNumber = function(paramNames, min, max) { var value = getParamString(paramNames); if (arguments.length < 2) min = -Infinity; if (arguments.length < 3) max = Infinity; return (parseInt(value) || 0).clamp(min, max); }; //============================================================================= // Get and set pluguin parameters. //============================================================================= var param = {}; //Side view param.offsetX = getParamNumber(['OffSetX', 'X座標のオフセット']); param.offsetY = getParamNumber(['OffSetY', 'Y座標のオフセット']); param.displayType = getParamString(['DisplayType', '表示方式']); param.textColor = getParamString(['StringColor', '文字色']); //Front view param.advanceString = getParamString(['AdvanceString', 'アナウンス文字']); param.isShowName = getParamString(['ShowName', '名前の表示']); param.offsetX_FV = getParamNumber(['OffSetX_FV', 'X座標のオフセットFV']); param.offsetY_FV = getParamNumber(['OffSetY_FV', 'Y座標のオフセットFV']); param.windowWidth = getParamNumber(['WindowWidth', 'ウィンドウの幅']); param.hideWindow = getParamString(['HideWindow', 'ウィンドウの非表示']); //Convert param.isShowName = JSON.parse(param.isShowName); param.hideWindow = JSON.parse(param.hideWindow); //============================================================================= // Scene_Battle // Override Scene_Battle for displayng number of actions. //============================================================================= var _Scene_Battle_createDisplayObjects = Scene_Battle.prototype.createDisplayObjects; Scene_Battle.prototype.createDisplayObjects = function() { _Scene_Battle_createDisplayObjects.call(this); this.createNumberOfActions(); }; var _Scene_Battle_refreshStatus = Scene_Battle.prototype.refreshStatus; Scene_Battle.prototype.refreshStatus = function() { _Scene_Battle_refreshStatus.call(this); this.refreshShowingIncredibleActions(); }; var _Scene_Battle_createAllWindows = Scene_Battle.prototype.createAllWindows; Scene_Battle.prototype.createAllWindows = function() { _Scene_Battle_createAllWindows.call(this); this.createNumActionsWindow(); }; Scene_Battle.prototype.createNumActionsWindow = function() { if(!$gameSystem.isSideView()){ var height = 70; var y = this._partyCommandWindow.y - height; this._window_numActions = new Window_NumActions(0 + param.offsetX_FV, y + param.offsetY_FV, param.windowWidth,height); this.addWindow(this._window_numActions); } }; var _Scene_Battle_endCommandSelection = Scene_Battle.prototype.endCommandSelection; Scene_Battle.prototype.endCommandSelection = function() { _Scene_Battle_endCommandSelection.call(this); this.sprite_numberOfActions.bitmap.clear(); if(!$gameSystem.isSideView()){ this._window_numActions.hide(); } }; Scene_Battle.prototype.refreshShowingIncredibleActions = function() { switch(param.displayType){ case '数字' : case 'Number' : this.refreshNumberOfActions(); break; case 'エクスクラメーション': case 'Exclamation' : this.refreshExclamationOfActions(); break; default : this.refreshNumberOfActions(); break; } }; Scene_Battle.prototype.refreshExclamationOfActions = function() { this.sprite_numberOfActions.bitmap.clear(); if($gameSystem.isSideView()){ var p_len = this._spriteset._actorSprites.length; var p_obj = this._spriteset._actorSprites; var offset = -40; for(var i = 0; i < p_len; i++){ if(p_obj[i]._actor === undefined){//This code is necessary to avoid an error. continue; } if(p_obj[i]._actor.numActions() >= 2){ this.sprite_numberOfActions.bitmap.drawText('!', p_obj[i].x + offset + param.offsetX, p_obj[i].y + offset + param.offsetY, this.sprite_numberOfActions.width, 32, "left"); } } } }; Scene_Battle.prototype.refreshNumberOfActions = function() { this.sprite_numberOfActions.bitmap.clear(); if($gameSystem.isSideView()){ var p_len = this._spriteset._actorSprites.length; var p_obj = this._spriteset._actorSprites; var offset = -40; for(var i = 0; i < p_len; i++){ if(p_obj[i]._actor === undefined){//This code is necessary to avoid an error. continue; } if(p_obj[i]._actor.numActions() >= 2){ this.sprite_numberOfActions.bitmap.drawText(p_obj[i]._actor.numActions(), p_obj[i].x + offset + param.offsetX, p_obj[i].y + offset + param.offsetY, this.sprite_numberOfActions.width, 32, "left"); } } } }; Scene_Battle.prototype.createNumberOfActions = function() { this.sprite_numberOfActions = new Sprite(); this.sprite_numberOfActions.bitmap = new Bitmap(Graphics.width, Graphics.height); this.sprite_numberOfActions.bitmap.textColor = param.textColor; this.addChild(this.sprite_numberOfActions); }; var _Scene_Battle_startActorCommandSelection = Scene_Battle.prototype.startActorCommandSelection; Scene_Battle.prototype.startActorCommandSelection = function() { _Scene_Battle_startActorCommandSelection.call(this); if(!$gameSystem.isSideView()){ this._window_numActions.show(); this._window_numActions.drawNumAction(BattleManager.actor()._name, BattleManager.actor().numActions()); } }; var _Scene_Battle_startPartyCommandSelection = Scene_Battle.prototype.startPartyCommandSelection; Scene_Battle.prototype.startPartyCommandSelection = function() { _Scene_Battle_startPartyCommandSelection.call(this); if(!$gameSystem.isSideView()){ this._window_numActions.hide(); } }; //============================================================================= // Window_NumActions // Original Window class for Scene_Battle. //============================================================================= function Window_NumActions() { this.initialize.apply(this, arguments); } Window_NumActions.prototype = Object.create(Window_Base.prototype); Window_NumActions.prototype.constructor = Window_NumActions; Window_NumActions.prototype.initialize = function(x, y, width, height) { Window_Base.prototype.initialize.apply(this,arguments); this.hide(); this.drawNumAction(); }; Window_NumActions.prototype.drawNumAction = function(name,numActions) { if(name === undefined){ this.contents.clear(); return; } if(numActions === undefined){ this.contents.clear(); return; } if(param.hideWindow && numActions <= 1){ this.contents.clear(); this.hide(); return; } if(!param.isShowName){ name = ''; } this.show(); this.contents.clear(); this.drawTextEx(name + param.advanceString + numActions,0,0); }; })();
import React from 'react' import { useFormik } from 'formik'; import validationSchema from './validations'; function SignUp() { const {handleChange, handleSubmit, handleBlur, values, errors, touched} = useFormik({ initialValues: { email: '', password:'', passwordConfirm:'', }, onSubmit:values => { console.log(values); }, validationSchema }) return ( <div> <h1>Sign Up</h1> <form onSubmit={handleSubmit} > <label htmlFor="email">Email</label> <input name="email" type="email" onChange={handleChange} onBlur={handleBlur} value={values.email} /> {errors.email && touched.email && (<div style={{color:'red'}}>{errors.email}</div>)} <br /><br /> <label>password</label> <input name="password" onChange={handleChange} onBlur={handleBlur} value={values.password} /> {errors.password && touched.password && (<div style={{color:'red'}}>{errors.password}</div>)} <br /><br /> <label>confirm password</label> <input name="passwordConfirm" onChange={handleChange} onBlur={handleBlur} value={values.passwordConfirm} /> {errors.passwordConfirm && touched.passwordConfirm && (<div style={{color:'red'}}>{errors.passwordConfirm}</div>)} <br /><br /> <button type="submit">Submit</button> <br /><br /> <code>{JSON.stringify(values)}</code> </form> </div> ) } export default SignUp
import torch import torch.nn as nn from torch.autograd import Variable import numpy as np class RandomShift(nn.Module): def __init__(self, shift_min, shift_max): super(RandomShift, self).__init__() self.shift_min = shift_min self.shift_max = shift_max def forward(self, x): #FIXME: Code interprets a negative shift as a shift to the right. Symmetry means no big deal. shift = np.random.randint(self.shift_min, self.shift_max, 2) blank_canvas = Variable(torch.FloatTensor(torch.zeros(x.size())).cuda()) left = max(shift[0], 0) right = 28 - max(-shift[0], 0) top = max(shift[1], 0) bottom = 28 - max(-shift[1], 0) paste_left = max(-shift[0], 0) paste_right = paste_left + (right - left) paste_top = max(-shift[1], 0) paste_bottom = paste_top + (bottom - top) blank_canvas[:, :, paste_left:paste_right, paste_top:paste_bottom] = x[:, :, left:right, top:bottom] return blank_canvas
/** * Copyright (c) 2022 大漠穷秋. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { keyboardEvents, mouseEvents } from '../consts/DOM_EVENT_MAPPING_CONSTS'; import root from '../cross-platform/root'; /** * @class DOMEventInterceptor DOM 事件拦截器 * * 拦截所有原生的鼠标和键盘事件,拦截到的事件全部转发到全局事件总线上去, ICE 内部的事件转发器会监听事件总线,把事件派发到 canvas 内部特定的组件上去。 * * @see {DOMEventDispatcher} * @author 大漠穷秋<[email protected]> */ const DOMEventInterceptor = { //在同一个 window 中可能存在多个 ICE 实例,每一个 ICE 实例上都有一条事件总线,这里把多个事件总线实例隔开。 evtBuses: [], start: function () { if (root && root && root.addEventListener) { //所有原生 DOM 事件全部通过 EventBus 转发到 canvas 内部的对象上去 //TODO:不同浏览器版本,以及 NodeJS 环境兼容性测试 for (let i = 0; i < DOMEventInterceptor.evtBuses.length; i++) { const evtBus = DOMEventInterceptor.evtBuses[i]; const domEvts = [...mouseEvents, ...keyboardEvents]; for (let j = 0; j < domEvts.length; j++) { const item = domEvts[j]; root.addEventListener(item[0], (domEvt) => { evtBus.trigger(item[1], domEvt); }); } } } }, regitserEvtBus: function (evtBus) { if (DOMEventInterceptor.evtBuses.includes(evtBus)) { return; } DOMEventInterceptor.evtBuses.push(evtBus); }, delEvtBus: function (evtBus) { if (!DOMEventInterceptor.evtBuses.includes(evtBus)) { return; } DOMEventInterceptor.evtBuses.splice(DOMEventInterceptor.evtBuses.indexOf(evtBus), 1); }, }; export default DOMEventInterceptor;
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function IoWalk (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":"32","d":"M312.55 479.9l-56.42-114-44.62-57a72.37 72.37 0 01-10.06-36.9V143.64H217a40 40 0 0140 40v182.21"}},{"tag":"path","attr":{"fill":"none","strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":"32","d":"M127.38 291.78v-74.07s37-74.07 74.07-74.07"}},{"tag":"path","attr":{"d":"M368.09 291.78a18.49 18.49 0 01-10.26-3.11L297.7 250a21.18 21.18 0 01-9.7-17.79v-23.7a5.65 5.65 0 018.69-4.77l81.65 54.11a18.52 18.52 0 01-10.29 33.93zM171.91 493.47a18.5 18.5 0 01-14.83-7.41c-6.14-8.18-4-17.18 3.7-25.92l59.95-74.66a7.41 7.41 0 0110.76 2.06c1.56 2.54 3.38 5.65 5.19 9.09 5.24 9.95 6 16.11-1.68 25.7-8 10-52 67.44-52 67.44-2.62 2.98-7.23 3.7-11.09 3.7z"}},{"tag":"circle","attr":{"cx":"257","cy":"69.56","r":"37.04","strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":"16"}}]})(props); };
import process from 'process' import { once } from 'events' import assert from 'webassert' import chokidar from 'chokidar' import { basename, relative } from 'path' import makeArray from 'make-array' import ignore from 'ignore' import cpx from 'cpx2' import { getCopyGlob } from './lib/build-static/index.js' import { build, watchBuild } from './lib/builder.js' export class Siteup { constructor (src, dest, cwd = process.cwd(), opts = {}) { assert(src, 'src is a required argument') assert(dest, 'dest is a required argument') const defaultIgnore = ['.*', 'node_modules', basename(dest)] opts.ignore = defaultIgnore.concat(makeArray(opts.ignore)) this._src = src this._dest = dest this._cwd = cwd this.opts = opts this._watcher = null this._cpxWatcher = null this._building = false } get watching () { return Boolean(this._watcher) } build () { return build(this._src, this._dest, this.opts) } async watch () { // TODO: expose events and stuff to the caller instead. if (this.watching) throw new Error('Already watching.') let report try { report = await watchBuild(this._src, this._dest, this.opts) console.log('Initial JS, CSS and Page Build Complete') } catch (err) { console.error(err) if (err.report) report = err.report } this._cpxWatcher = cpx.watch(getCopyGlob(this._src), this._dest, { ignore: this.opts.ignore }) this._cpxWatcher.on('copy', (e) => { console.log(`Copy ${e.srcPath} to ${e.dstPath}`) }) this._cpxWatcher.on('remove', (e) => { console.log(`Remove ${e.path}`) }) this._cpxWatcher.on('watch-ready', () => { console.log('Copy watcher ready') }) this._cpxWatcher.on('watch-error', (err) => { console.log(`Copy error: ${err.message}`) }) const ig = ignore().add(this.opts.ignore) const anymatch = name => ig.ignores(relname(this._src, name)) const watcher = chokidar.watch(`${this._src}/**/*.+(js|css|html|md)`, { ignored: anymatch, persistent: true }) this._watcher = watcher await once(watcher, 'ready') watcher.on('add', path => { console.log(`File ${path} has been added`) watchBuild(this._src, this._dest, this.opts).then(() => console.log('Site Rebuilt')).catch(console.error) }) watcher.on('change', path => { console.log(`File ${path} has been changed`) watchBuild(this._src, this._dest, this.opts).then(() => console.log('Site Rebuilt')).catch(console.error) }) watcher.on('unlink', path => { console.log(`File ${path} has been removed`) watchBuild(this._src, this._dest, this.opts).then(() => console.log('Site Rebuilt')).catch(console.error) }) watcher.on('error', console.error) return report } async stopWatching () { if (!this.watching || !this._cpxWatcher) throw new Error('Not watching') await this._watcher.close() this._cpxWatcher.close() this._watcher = null this._cpxWatcher = null } } function relname (root, name) { return root === name ? basename(name) : relative(root, name) }
import React from 'react'; import './Footer.less'; import ScrollUpButton from 'react-scroll-up-button'; import {Element} from 'nav-frontend-typografi'; import {Link} from 'react-router-dom'; class Footer extends React.Component { render() { return ( <div className="footer"> <div className="footerElements"> <ScrollUpButton> <Element className="element">Til toppen</Element> </ScrollUpButton> <Element className="element">Søk i katalogen</Element> <Link to={'/begrepskatalogen/meld-inn-nytt-begrep'}><Element className="element">Meld inn nytt begrep</Element></Link> </div> </div> ); } } export default Footer;
const {SEDataSource} = require('./base'); class QuestionsAPI extends SEDataSource { constructor(key) { super(key, 'questions'); } } module.exports = QuestionsAPI;
const mongoose = require('mongoose') require('dotenv').config() mongoose.connect(`mongodb+srv://${process.env.USERNAME}:${process.env.PASSWORD}@cluster0-njnty.mongodb.net/resume`, { useUnifiedTopology: true, useNewUrlParser: true }) const connection = mongoose.connection connection.on('connected', ()=> { console.log('Connected') }) module.exports = connection
import sqlite3 #create database conn = sqlite3.connect('customer.db') #create cursor cur = conn.cursor() #create a table cur.execute(""" CREATE TABLE customers ( first_name text, last_name text, email text )""") #commit changes to database conn.commit() #close the connection conn.close()
'use strict'; polarity.export = PolarityComponent.extend({ computedTest: Ember.computed('block.data.details', function(){ let test = Ember.Object.create({ type: 'NA' }); return 'test data 2'; }) });
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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. # # Exception Class # this is a auto generated file generated by Cheetah # Namespace: com.sun.star.util # Libre Office Version: 7.3 import typing from ..uno.exception import Exception as Exception_85530a09 from ..uno.x_interface import XInterface as XInterface_8f010a43 class CloseVetoException(Exception_85530a09): """ Exception Class this exception can be thrown to prevent the environment of any object from closing See Also: `API CloseVetoException <https://api.libreoffice.org/docs/idl/ref/exceptioncom_1_1sun_1_1star_1_1util_1_1CloseVetoException.html>`_ """ __ooo_ns__: str = 'com.sun.star.util' __ooo_full_ns__: str = 'com.sun.star.util.CloseVetoException' __ooo_type_name__: str = 'exception' __pyunointerface__: str = 'com.sun.star.util.CloseVetoException' __pyunostruct__: str = 'com.sun.star.util.CloseVetoException' typeName: str = 'com.sun.star.util.CloseVetoException' """Literal Constant ``com.sun.star.util.CloseVetoException``""" def __init__(self, Message: typing.Optional[str] = '', Context: typing.Optional[XInterface_8f010a43] = None) -> None: """ Constructor Arguments: Message (str, optional): Message value. Context (XInterface, optional): Context value. """ kargs = { "Message": Message, "Context": Context, } self._init(**kargs) def _init(self, **kwargs) -> None: super()._init(**kwargs) __all__ = ['CloseVetoException']
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Misc utils/functions for hammer_vlsi. # # See LICENSE for licence details. import copy import inspect import math import sys import os import errno from functools import reduce from typing import List, Any, Set, Dict, Tuple, TypeVar, Callable, Iterable, Optional, Union from enum import Enum, unique import decimal from decimal import Decimal from .verilog_utils import * from .lef_utils import * def deepdict(x: dict) -> dict: """ Deep copy a dictionary. This is needed because dict() by itself only makes a shallow copy. See https://stackoverflow.com/questions/5105517/deep-copy-of-a-dict-in-python Convenience function. :param x: Dictionary to copy :return: Deep copy of the dictionary provided by copy.deepcopy(). """ return copy.deepcopy(x) def deeplist(x: list) -> list: """ Deep copy a list. This is needed because list() by itself only makes a shallow copy. See https://stackoverflow.com/questions/5105517/deep-copy-of-a-dict-in-python Convenience function. :param x: List to copy :return: Deep copy of the list provided by copy.deepcopy(). """ return copy.deepcopy(x) _T = TypeVar('_T') def add_lists(a: List[_T], b: List[_T]) -> List[_T]: """Helper method: join two lists together while type checking.""" assert isinstance(a, List) assert isinstance(b, List) return a + b def add_dicts(a: dict, b: dict) -> dict: """Helper method: join two dicts together while type checking. The second dictionary will override any entries in the first.""" assert isinstance(a, dict) assert isinstance(b, dict) # Deepdicts are necessary since Python dictionaries are mutable, and dict() does a shallow copy. # Here, don't modify the original 'a'. newdict = deepdict(a) # When we updated newdict with b, e.g. if b['a'] was a (mutable) list with id 123, then newdict['a'] would point to # the same list as in id(newdict['a']) == 123. # Therefore, we need to deepdict b (or the result equivalently). newdict.update(deepdict(b)) return newdict def reverse_dict(x: dict) -> dict: """ Reverse a dictionary (keys become values and vice-versa). Only works if the dictionary is isomorphic (no duplicate values), or some pairs will be lost. :param x: Dictionary to reverse :return: Reversed dictionary """ return {value: key for key, value in x.items()} def in_place_unique(items: List[Any]) -> None: """ "Fast" in-place uniquification of a list. :param items: List to be uniquified. """ seen = set() # type: Set[Any] i = 0 # We will be all done when i == len(items) while i < len(items): item = items[i] if item in seen: # Delete and keep index pointer the same. del items[i] continue else: seen.add(item) i += 1 def coerce_to_grid(num: float, grid: Decimal) -> Decimal: """ Coerce a floating-point number to the nearest multiple of the provided grid :param num: The input floating-point number :param grid: The decimal grid value to which num should be coerced :return: A decimal number on-grid """ return Decimal(round(num / float(grid))) * grid def check_on_grid(num: Decimal, grid: Decimal) -> bool: """ Checks if a number is an integer multiple of a specified grid unit. :param num: The number to check :param grid: The decimal grid value on which to check number :return: True if num is on-grid, False otherwise """ return Decimal(int(num / grid)) == (num / grid) def gcd(*values: int) -> int: """ Return the greatest common divisor of a series of ints :param values: The values of which to compute the GCD :return: The GCD """ assert len(values) > 0 return reduce(math.gcd, values) def lcm(*values: int) -> int: """ Return the least common multiple of a series of ints :param values: The values of which to compute the LCM :return: The LCM """ assert len(values) > 0 return reduce(lambda x, y: (x * y) // math.gcd(x, y), values) def lcm_grid(grid: Decimal, *values: Decimal) -> Decimal: """ Return the least common multiple of a series of decimal values on a provided grid :param grid: The unit grid :param values: The values of which to compute the LCM :return: The LCM """ return grid * lcm(*map(lambda x: int(x / grid), values)) def topological_sort(graph: Dict[str, Tuple[List[str], List[str]]], starting_nodes: List[str]) -> List[str]: """ Perform a topological sort on the graph and return a valid ordering. :param graph: dict that represents key as the node and value as a tuple of (outgoing edges, incoming edges). :param starting_nodes: List of starting nodes to use. :return: A valid topological ordering of the graph. """ # Make a copy of the graph since we'll be modifying it. working_graph = deepdict(graph) # type: Dict[str, Tuple[List[str], List[str]]] queue = [] # type: List[str] output = [] # type: List[str] # Add starting nodes to the queue. queue.extend(starting_nodes) while len(queue) > 0: # Get front-most node in the queue. node = queue.pop(0) # It should have no incoming edges. assert len(working_graph[node][1]) == 0 # Add it to the output. output.append(node) # Examine all targets of outgoing edges of this node. for target_node in working_graph[node][0]: # Remove the corresponding incoming edge there. working_graph[target_node][1].remove(node) # If the target node now has no incoming nodes, we can add it to the queue. if len(working_graph[target_node][1]) == 0: queue.append(target_node) return output def reduce_named(function: Callable, sequence: Iterable, initial: Any = None) -> Any: """ Version of functools.reduce with named arguments. See https://mail.python.org/pipermail/python-ideas/2014-October/029803.html """ if initial is None: return reduce(function, sequence) else: return reduce(function, sequence, initial) def reduce_list_str(function: Callable[[List[str], List[str]], List[str]], sequence: Iterable[List[str]], initial: Optional[List[str]] = None) -> List[str]: """ Hardcoded (i.e. not using generics) version of reduce for processing lists of lists of strings. Working around https://github.com/python/mypy/issues/4150 """ if initial is None: return reduce(function, sequence) # type: ignore else: return reduce(function, sequence, initial) # type: ignore def get_or_else(optional: Optional[_T], default: _T) -> _T: """ Get the value from the given Optional value or the default. :param optional: Optional value from which to extract a value. :param default: Default value if the given Optional is None. :return: Value from the Optional or the default. """ if optional is None: return default else: return optional _U = TypeVar('_U') def optional_map(optional: Optional[_T], func: Callable[[_T], _U]) -> Optional[_U]: """ If 'optional' is not None, then apply the given function to it. Otherwise, return None. :param optional: Optional value to map. :param func: Function to apply to optional value. :return: 'func' applied to optional, or None if 'optional' is None. """ if optional is None: return None else: return func(optional) def assert_function_type(function: Callable, args: List[type], return_type: type) -> None: """ Assert that the given function obeys its function type signature. Raises TypeError if the function is of the incorrect type. :param function: Function to typecheck :param args: List of arguments to the function :param return_type: Return type """ ret = check_function_type(function, args, return_type) if ret is not None: raise TypeError(ret) def check_function_type(function: Callable, args: List[type], return_type: type) -> Optional[str]: """ Check that the given function obeys its function type signature. :param function: Function to typecheck :param args: List of arguments to the function :param return_type: Return type :return: None if the function obeys its type signature, or an error message if the function is of the incorrect type. """ def msg(cause: str) -> str: if cause != "": cause_full = ": " + cause else: cause_full = cause return "Function {function} has an incorrect signature{cause_full}".format(function=str(function), cause_full=cause_full) def get_name_from_type(t: Any) -> str: """Getting names can be complicated.""" try: name = str(t.__name__) # type: ignore except AttributeError: # mypy objects are weird e.g. typing.Union doesn't have __name__ or __mro__ etc. name = str(t) return name def is_union(t: Any) -> bool: """Return true if 't' is a Union type.""" import typing if not hasattr(t, "__origin__"): if sys.version_info.major == 3 and sys.version_info.minor == 5 and sys.version_info.micro <= 2: # Python compatibility: <3.5.2 # Monkey-patch in the __args__ that's present in modern versions of the typing lib. if isinstance(t, typing.UnionMeta): # type: ignore assert(hasattr(t, "__union_params__")) setattr(t, "__args__", getattr(t, "__union_params__")) return True else: return False else: # Not a mypy type return False return t.__origin__ == typing.Union def compare_types_internal(a: Any, b: Any) -> bool: """ Comparing types is also complicated. Particularly when you have native Python types and mypy types floating around at once. WARNING: this method is in no way complete/exhaustive """ import typing if isinstance(a, str) and isinstance(b, str): # Two strings (e.g. if both are stringly-typed mypy annotations). # Just check if they are identical. return a == b elif isinstance(a, str) and isinstance(b, type): # A string and a type. # Likely the first is a mypy stringly-typed annotation and the # second one a real type. # Check that the name of the real type is the same as the # stringly-typed one. return a == b.__name__ elif a == dict and b == typing.Dict: return True elif is_union(a) and is_union(b): # type: ignore if len(a.__args__) == len(b.__args__): # type: ignore for ai, bi in list(zip(a.__args__, b.__args__)): # type: ignore if not compare_types(ai, bi): return False return True else: return False else: return a == b def compare_types(a: Any, b: Any) -> bool: """Order-insensitive compare.""" return compare_types_internal(a, b) or compare_types_internal(b, a) inspected = inspect.getfullargspec(function) annotations = inspected.annotations inspected_args = inspected.args # Check that methods are bound if len(inspected_args) > 0 and inspected_args[0] == "self": # If it is bound, then ignore self if hasattr(function, '__self__'): del inspected_args[0] if len(inspected_args) != len(args): return msg( "Too many arguments - got {got}, expected {expected}".format(got=len(inspected_args), expected=len(args))) else: for i, (inspected_var_name, expected) in list(enumerate(zip(inspected_args, args))): inspected = annotations.get(inspected_var_name, None) if not compare_types(inspected, expected): inspected_name = get_name_from_type(inspected) expected_name = get_name_from_type(expected) return msg("For argument {i}, got {got}, expected {expected}".format(i=i, got=inspected_name, expected=expected_name)) inspected_return = annotations['return'] if not compare_types(inspected_return, return_type): inspected_return_name = get_name_from_type(inspected_return) return_type_name = get_name_from_type(return_type) return msg( "Got return type {got}, expected {expected}".format(got=inspected_return_name, expected=return_type_name)) return None # Contributors: Be sure to add to this list if you need to call get_filetype @unique class HammerFiletype(Enum): """ An enum class containing the file types that Hammer knows/cares about """ NONE = 0 SPICE = 1 VERILOG = 2 def get_filetype(filename: str) -> HammerFiletype: """ Return an enumerated HammerFiletype object by parsing the file extension of the given filename. :param filename: The filename to parse :return: The enumerated file type """ split = filename.split(".") if len(split) == 1: return HammerFiletype.NONE extension = split[-1] if extension in ["sp", "spi", "nl", "cir", "spice", "cdl"]: return HammerFiletype.SPICE elif extension in ["v", "sv", "vh"]: return HammerFiletype.VERILOG else: raise NotImplementedError("Unknown file extension: {e}. Please update {f}!".format(e=extension, f=__file__)) def um2mm(length: Decimal, prec: int) -> Decimal: """ Convert a length in microns to millimeters with rounding. :param length: The input length in microns :param prec: The number of digits after the decimal place to use :return: A length in millimeters """ with decimal.localcontext() as c: c.rounding = decimal.ROUND_HALF_UP mm = length/Decimal(1000) p = c.power(10, prec) # I would use .quantize(...) here, but it doesn't seem to work for quantization values > 1 (only 1, .1, .01, ...) return (mm*p).to_integral_exact()/p def mkdir_p(path: str) -> None: """ Recursively create a directory structure if it does not exist (equivalent to the behavior of `mkdir -p` in most shells). :param path: The path to the file to create """ # https://stackoverflow.com/questions/18973418 try: os.makedirs(path) except OSError as e: if e.errno != errno.EEXIST: raise pass
import React, { useState } from "react"; import { Link, NavLink } from "react-router-dom"; const Navbar = () => { const [burgerOpen, setBurgerOpen] = useState(false); const activeClass = burgerOpen ? "is-active" : ""; return ( <nav className="navbar is-transparent" role="navigation" aria-label="main navigation" > <div className="container"> <div className="navbar-brand"> <Link to="/" className="navbar-item"> <span className="icon"> <i className="far fa-file-pdf" /> </span> <span>CPC</span> </Link> <a onClick={() => setBurgerOpen(!burgerOpen)} className={`navbar-burger burger ${activeClass}`} data-target="navMenu" role="button" > <span aria-hidden="true" /> <span aria-hidden="true" /> <span aria-hidden="true" /> </a> </div> <div id="navMenu" className={`navbar-menu ${activeClass}`}> <div className="navbar-start"> <NavLink exact to="/" className="navbar-item" activeClassName="is-active" > Home </NavLink> <NavLink exact to="/about" className="navbar-item" activeClassName="is-active" > About </NavLink> </div> </div> </div> </nav> ); }; export default Navbar;
import * as React from "react"; export class DateTime extends React.PureComponent { render() { let { timestamp, locale } = this.props; let value = new Date(timestamp * 1000).toLocaleDateString(locale, { timeZone: "UTC", timeZoneName: "short", year: "numeric", month: "long", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric" }); return value; } } //# sourceMappingURL=DateTime.js.map
// DO NOT EDIT! This test has been generated by tools/gentest.py. // OffscreenCanvas test in a worker:2d.composite.uncovered.pattern.source-out // Description:Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. // Note: importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test("Pattern fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged."); t.step(function() { var offscreenCanvas = new OffscreenCanvas(100, 50); var ctx = offscreenCanvas.getContext('2d'); ctx.fillStyle = 'rgba(0, 255, 255, 0.5)'; ctx.fillRect(0, 0, 100, 50); ctx.globalCompositeOperation = 'source-out'; var promise = new Promise(function(resolve, reject) { var xhr = new XMLHttpRequest(); xhr.open("GET", '/images/yellow.png'); xhr.responseType = 'blob'; xhr.send(); xhr.onload = function() { resolve(xhr.response); }; }); promise.then(function(response) { ctx.fillStyle = ctx.createPattern(response, 'no-repeat'); ctx.fillRect(0, 50, 100, 50); _assertPixelApprox(offscreenCanvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0", 5); }); t.done(); }); done();
macDetailCallback("38aa3c000000/24",[{"d":"2012-07-10","t":"add","a":"314, Maetan3-Dong, Yeongtong-Gu\nSuwon Gyunggi-Do 443-743\n\n","c":"KOREA, REPUBLIC OF","o":"SAMSUNG ELECTRO-MECHANICS"},{"d":"2015-08-27","t":"change","a":"314, Maetan3-Dong, Yeongtong-Gu\nSuwon Gyunggi-Do 443-743\n\n","c":"US","o":"SAMSUNG ELECTRO-MECHANICS"},{"d":"2016-05-25","t":"change","a":"314, Maetan3-Dong, Yeongtong-Gu Suwon Gyunggi-Do US 443-743","c":"US","o":"SAMSUNG ELECTRO MECHANICS CO., LTD."},{"d":"2019-07-01","t":"change","s":"ieee-oui.csv","a":"314, Maetan3-Dong, Yeongtong-Gu Suwon US 443-743","c":"US","o":"SAMSUNG ELECTRO MECHANICS CO., LTD."}]);
/* * @Author: 大司马 * @Date: 2021-01-04 15:58:08 * @LastEditors: 大司马 * @LastEditTime: 2021-01-18 16:27:21 * @FilePath: \open-platform-ui\platform-console\src\api\applyMgr.js */ import platform from '@/config/platform' import axios from '@/libs/api.request' // 获取申请分页 查询 初始化 export const getInit = data => { return axios.request({ url: platform.OPERATE + "/application-apply/page", method: "post", data }) } // 获取应用列表 export const getAppList = () => { return axios.request({ url: platform.OPERATE + "/application-apply/appl-all", method: "get", }) } // 统一并授权 export const passAndAuth = data => { return axios.request({ url: platform.OPERATE + "/application-apply/apply-agree", method: "post", data }) } // 拒绝 export const noPass = data => { return axios.request({ url: platform.OPERATE + `/application-apply/apply-refuse`, method: "post", data }) } // 获取权限 export const getAuth = data => { return axios.request({ url: platform.OPERATE + "/application-apply/permission-ist", method: "post", data }) } // 添加备注 export const addRemark = data => { return axios.request({ url: platform.OPERATE + "/application-apply/add-remark", method: "post", data }) }
""" Tests if a script is compliant with numsed python syntax. The following is tested: - the script respects python syntax - the only scalar type is integer - strings are allowed only as print arguments - characters in strings are limited to ASCII-32 (space) to ASCII-125 ("}") less the characters "@", "|" and ";" which are used by sed snippets - tuples are allowed as multiple assignments but tuples must be assigned to tuples of the same length. - tuples are not allowed as function results less for builtin divmod, but divmod results must be assigned immediately. - unary operators are - and + - binary operators are -, +, *, //, % and **, divmod function is available - comparison operators are ==, !=, <, <=, >, and >= - boolean operators are or, and and not - comparison operators and boolean operators are allowed only in test position (if, while and ternary if) - functions are defined at module level - functions from numsed_lib may not be redefined - functions accept only positional arguments with no default value - names are the only callables accepted - control flow statements are if-elif-else, while-else, break, continue, return, pass - all other constructs are not allowed """ from __future__ import print_function import inspect import ast import re try: import common import numsed_lib except ImportError: from . import common from . import numsed_lib FUTURE_FUNCTION = 'from __future__ import print_function\n' def check(source): try: with open(source) as f: # compile to catch syntax errors script = f.read() code = compile(script, source, "exec") except SyntaxError as e: msg = 'SyntaxError: %s\nline %d: %s' % (e.args[0], e.args[1][1], e.args[1][3]) return False, msg tree = ast.parse(FUTURE_FUNCTION + script) numsed_check_ast_visitor = NumsedCheckAstVisitor() try: numsed_check_ast_visitor.visit(tree) return True, '' except CheckException as e: msg, node = e.args return False, error_message(msg, node, script) def error_message(msg, node, script): script = script.splitlines() # remove the line added for from future lineno = node.lineno - 1 # count column from 1 col_offset = node.col_offset + 1 msg = 'numsed error: line %d col %d: %s\n' % (lineno, col_offset, msg) msg += script[lineno - 1] + '\n' msg += ' ' * (col_offset - 1) + '^' return msg BINOP = (ast.Add, ast.Sub, ast.Mult, ast.FloorDiv, ast.Mod, ast.Pow, ast.Eq, ast.NotEq, ast.Lt, ast.LtE, ast.Gt, ast.GtE) class NumsedCheckAstVisitor(ast.NodeVisitor): def __init__(self): # list of functions defined in lib # used to check there is no redefinition self.lib_functions = {x[0] for x in inspect.getmembers(numsed_lib, inspect.isfunction)} self.reserved_words = self.lib_functions | {'divmod'} def visit_Module(self, node): self.tree = node self.modulebody = node.body self.visit_child_nodes(node) def visit_ImportFrom(self, node): # allow for print_function pass def visit_Assign(self, node): def len_of_target(elt): if isinstance(elt, ast.Name): return 1 elif isinstance(elt, ast.Tuple): return len(elt.elts) else: raise CheckException('cannot assign to', node) num = len_of_target(node.targets[0]) for elt in node.targets[1:]: if len_of_target(elt) != num: raise CheckException('multiple assignment must have same number of variables', node) if isinstance(node.value, ast.Tuple): numv = len(node.value.elts) elif isinstance(node.value, ast.Call): if node.value.func.id == 'divmod': numv = 2 else: numv = 1 else: numv = 1 if numv != num: raise CheckException('targets and values must have same length', node) self.visit_child_nodes(node) def visit_AugAssign(self, node): self.visit(node.target) self.visit(node.value) def visit_Expr(self, node): self.visit_child_nodes(node) def visit_Name(self, node): if node.id in self.reserved_words and isinstance(node.ctx, ast.Store): raise CheckException('reserved word', node) def visit_Num(self, node): if not isinstance(node.n, int) and not (common.PY2 and isinstance(node.n, long)): raise CheckException('not an integer', node) def visit_Str(self, node): raise CheckException('strings not handled (unless as print argument)', node) def visit_Tuple(self, node): for elt in node.elts: if isinstance(elt, ast.Tuple): raise CheckException('elements of tuples may not be tuples', elt) self.visit_child_nodes(node) def visit_Store(self, node): pass def visit_Load(self, node): pass def visit_UnaryOp(self, node): if not isinstance(node.op, (ast.UAdd, ast.USub, ast.Not)): raise CheckException('operator not handled', node) if isinstance(node.op, ast.Not): self.assert_test_position(node) self.visit(node.operand) def visit_BinOp(self, node): if not isinstance(node.op, BINOP): raise CheckException('operator not handled', node) self.visit(node.left) self.visit(node.right) def visit_Compare(self, node): for op in node.ops: if not isinstance(op, (ast.Eq, ast.NotEq, ast.Lt, ast.LtE, ast.Gt, ast.GtE)): raise CheckException('comparator not handled', node) self.assert_test_position(node) self.visit(node.left) for _ in node.comparators: self.visit(_) def visit_BoolOp(self, node): self.assert_test_position(node) for _ in node.values: self.visit(_) def visit_IfExp(self, node): self.visit_child_nodes(node) def visit_Call(self, node): if isinstance(node.func, ast.Name): if node.func.id == 'print': self.visit_CallPrint(node) elif node.func.id == 'divmod': self.visit_CallDivmod(node) elif node.func.id == 'exit': self.visit_CallExit(node) else: self.visit_child_nodes(node) else: raise CheckException('callable not handled', node) def visit_CallPrint(self, node): for arg in node.args: if isinstance(arg, ast.Str): if re.match('^[ -~]*$', arg.s) and re.search('[@|;~]', arg.s) is None: pass else: raise CheckException('character not handled (@|;~)', arg) else: self.visit(arg) def visit_CallDivmod(self, node): parent = parent_node(self.tree, node) if isinstance(parent, ast.Assign): pass else: raise CheckException('divmod results must be assigned immediately', node) self.visit_child_nodes(node) def visit_CallExit(self, node): if len(node.args) > 0: raise CheckException('arguments are not allowed', node) def visit_If(self, node): self.visit_child_nodes(node) def visit_While(self, node): self.visit_child_nodes(node) def visit_Break(self, node): pass def visit_Continue(self, node): pass def visit_Pass(self, node): pass def visit_Return(self, node): if isinstance(node.value, ast.Tuple): raise CheckException('function result must be an integer', node.value) self.visit_child_nodes(node) def visit_Global(self, node): pass def visit_FunctionDef(self, node): if node not in self.modulebody: raise CheckException('function definitions allowed only at module level', node) if node.name in self.reserved_words: raise CheckException('reserved word', node) if node.args.vararg is not None: raise CheckException('no vararg arguments', node) if node.args.kwarg is not None: raise CheckException('no kwarg arguments', node) if len(node.args.defaults) > 0: raise CheckException('no default arguments', node) for _ in node.body: self.visit(_) def visit_child_nodes(self, node): for _ in ast.iter_child_nodes(node): self.visit(_) def generic_visit(self, node): raise CheckException('construct is not handled', node) def assert_test_position(self, node): parent = parent_node(self.tree, node) if isinstance(parent, (ast.BoolOp, ast.IfExp, ast.If, ast.While)): pass elif isinstance(parent, ast.UnaryOp) and isinstance(parent.op, ast.Not): pass else: raise CheckException('Not in test position', node) def parent_node(tree, node): for nod in ast.walk(tree): for _ in ast.iter_child_nodes(nod): if _ == node: return nod class CheckException(Exception): pass
"""This file contains the logic to run the __main__.py body of the program. Name: classes.py Authors: - Jurre Brandsen - Lennart Klein - Thomas de Lange LICENSE: MIT """ import collections from collections import Counter import copy import csv import heapq import random import sys from ast import literal_eval import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import colors as CLR import helpers import settings class Board(object): """Create a numpy board filled with numpy zeros upon initialising.""" def __init__(self, width, height, depth): """Initialing the varables of this class. :type widht: interger :param width: How many columns the board uses :type height: interger :param height: How many rows the board uses :type depth: interger :param depth: How many layers the board uses """ self.width = width self.height = height self.depth = depth self.board = np.zeros((self.depth, self.height, self.width), dtype=int) self.gates_objects = np.empty((self.depth, self.height, self.width), dtype=object) self.gates_numbers = np.zeros((self.depth, self.height, self.width), dtype=int) self.paths = [] self.paths_broken = [] self.paths_drawn = [] def draw_paths(self): """Draw all the paths for this board (if possible).""" # Calculate the route for this path for path in self.paths: result = path.draw(settings.PATH_ALGORITHM, self) # Save the results of this execution if result: self.paths_drawn.append(path) else: self.paths_broken.append(path) def redraw_broken_path(self): """Get first broken path.""" broken_path = self.paths_broken.pop(0) broken_path.undraw(self) amount_drawn_paths = len(self.paths_drawn) # Undraw other paths one by one for i in range(amount_drawn_paths): # Get and undraw first path drawn_path = self.paths_drawn.pop(0) drawn_path.undraw(self) # Try to draw broken path if broken_path.draw(settings.PATH_ALGORITHM, self): self.paths_drawn.append(broken_path) # Try to draw the removed path again if drawn_path.draw(settings.PATH_ALGORITHM, self): self.paths_drawn.append(drawn_path) else: self.paths_broken.append(drawn_path) return True else: # Reset the removed path drawn_path.draw(settings.PATH_ALGORITHM, self) self.paths_drawn.append(drawn_path) # Couldn't fix this broken path self.paths_broken.append(broken_path) return False def shorten_every_path(self): """Redraw every path with DIJKSTRA pathfinding.""" for path in self.paths: path.undraw(self) path.draw("DIJKSTRA", self) def redraw_random_path(self): """Pick three random paths.""" paths = [] index = random.randint(1, len(self.paths_drawn) - 1) paths.append(self.paths_drawn.pop(len(self.paths_drawn) - index)) paths.append(self.paths_drawn.pop(len(self.paths_drawn) - 1 - index)) for path in paths: # Undraw the path path.undraw(self) temp_cost = settings.COST_PASSING_GATE settings.COST_PASSING_GATE = 0 for path in paths: # Redraw the path if path.draw("ASTAR", self): self.paths_drawn.append(path) else: self.paths_broken.append(path) settings.COST_PASSING_GATE = temp_cost def get_result(self, type_): """Look at the path and analyze if it is commplete. :type type_: string :param type_: Returned value of a drawn line. """ if type_ == "average": return round(len(self.paths_drawn) / len(self.paths) * 100, 2) if type_ == "made": return len(self.paths_drawn) if type_ == "broken": return len(self.paths_broken) def get_coords(self, axes, label): """Get the coordinate of a board with it's label. :type axes: string :param axes: Devided coord into Z, Y, X :type label: numpy(object) :param label: Get a coord in board the corresponding label :rtype: tuple """ labels = np.argwhere(self.board == label) coords = [] for coord in labels: if axes == 'z': coords.append(coord[0]) if axes == 'y': coords.append(coord[1]) if axes == 'x': coords.append(coord[2]) return coords def reset_coordinate(self, z, y, x): """Reset the coordinates of a board to 0. :type z: interger :type y: interger :type x: interger """ self.board[z, y, x] = 0 def get_neighbors(self, coord): """Get the neighbors of a given coordinate. :type coord: coord(tuple) :param coord: A coordinate on the board :rtype: interger """ (z, y, x) = coord valid_coords = [] neighbors = [[z, y, x+1], [z, y, x-1], [z, y+1, x], [z, y-1, x], [z+1, y, x], [z-1, y, x]] for neighbor in neighbors: # Check if the coord is positive if any(axes < 0 for axes in neighbor): continue # Check if the coord falls within the board if neighbor[2] >= settings.BOARD_WIDTH or \ neighbor[1] >= settings.BOARD_HEIGHT or \ neighbor[0] >= settings.BOARD_DEPTH: continue # Add this neighbor to the output valid_coords.append(neighbor) return valid_coords def get_score(self): """Accumulated length of all the paths. :rtype: interger """ return len(np.argwhere(self.board >= settings.SIGN_PATH_START)) def plot(self): """Graph configurations uses plt from the .""" fig = plt.figure() ax = fig.gca(projection='3d') ax.set_xlim(0, self.width) ax.set_ylim(0, self.height) ax.set_zlim(self.depth, 0) ax.set_xlabel("X") ax.set_ylabel("Y") ax.set_zlabel("Z") for path in self.paths: ax.plot(path.get_coords('x'), path.get_coords('y'), path.get_coords('z'), zorder=-1) # Add gates to the graph ax.scatter(self.get_coords('x', settings.SIGN_GATE), self.get_coords('y', settings.SIGN_GATE), self.get_coords('z', settings.SIGN_GATE), color="black") # Show the graph plt.show() def print_board(self): """Show the numpyboard in ASCII.""" np.set_printoptions(threshold=np.nan) print(self.board) def set_gates(self, gates): """Set the gates on the board. :type gates: Gate(object) :param gates: Give the selected netlist in settings.py. """ # Set very gate in this board for gate in gates.gates: self.gates_objects[gate.z, gate.y, gate.x] = gate self.gates_numbers[gate.z, gate.y, gate.x] = gate.label self.board[gate.z, gate.y, gate.x] = gates.sign_gate def set_paths(self, netlist): """Set the value of the netlist and appends it to the numpyboard. :type netlist: Netlist(object) :param netlist: Get de netlist object and use it to set the paths """ path_number = settings.SIGN_PATH_START for connection in netlist.list: # Get the coordinates of the two gates in this connection a = connection[0] b = connection[1] coordGateA = np.argwhere(self.gates_numbers == a + 1) coordGateB = np.argwhere(self.gates_numbers == b + 1) # Create a new path object new_path = Path(coordGateA[0], coordGateB[0], path_number, "grey") # Add this path to the board object self.paths.append(new_path) # Set a new path_number for the next path path_number += 1 class Gate(object): """Gate sets the gates in a board.""" def __init__(self, label, x, y, z, spaces_needed): """Initiate the varables used by Gate. :type label: intergernt :param label: Label for a gate :type x: interger :param x: x-axis location :type y: interger :param y: y-axis location :type z: interger :param z: z-axis location :type spaces_needed: interger :param spaces_needed: Spaces needed in the gate to connect all paths """ self.label = label self.x = int(x) self.y = int(y) self.z = int(z) self.spaces_needed = spaces_needed def get_free_spaces(self, board, coord): """Interger with the amount of free spaces. :type board: numpy(object) :param board: a threedimensional Numpy array :type coord: interger :param coord: """ counter = 0 free_spaces = 0 for neighbor in board.get_neighbors(coord): # Count if neighbor is free on the board if board.board[neighbor[0], neighbor[1], neighbor[2]] == 0: counter += 1 return free_spaces - self.spaces_needed def __str__(self): """String return. :rtype self: String """ return self.label class Gates(object): """Gates Class that makes a board with gates.""" def __init__(self, file_nr, amount, sign, netlist): """Initiate the Gates class. :type number: interger :param number: number of gates file used :type sign: interger :param sign: identifier of the gate :type netlist: Netlist(object) :param netlist: a netlist object to put in the Gates(object) :type number: interger :param number: identifier """ self.gates = [] self.sign_gate = sign # Read a CSV file for gate tuples file = "gates/gates-"+amount+"/"+file_nr+".csv" with open(file, 'r') as csvfile: reader = csv.reader(csvfile) # Skip the header next(reader, None) for row in reader: # Skip row if the data is commented if row[0][:1] != '#': # Get the name of the gate gateLabel = int(row[0]) # Fetch the coords X and Y gateX = int(row[1]) gateY = int(row[2]) gateZ = int(row[3]) # Get information on this gate from the netlist spaces_needed = 0 for connection in netlist.list: if (connection[0] + 1) == gateLabel or ( connection[1] + 1) == gateLabel: spaces_needed += 1 # Save gate object in gates list new_gate = Gate(gateLabel, gateX, gateY, gateZ, spaces_needed) self.gates.append(new_gate) def reset_spaces_needed(self, netlist): """Reset the amount of spaces needed. :type netlist: Netlist(object) :param number: the netlist object """ for gate in self.gates: gate.spaces_needed = 0 for connection in netlist.list: if (connection[0] + 1) == gate.label or ( connection[1] + 1) == gate.label: gate.spaces_needed += 1 def get_gates(self): """Return the own gates data. :rtype: array """ return self.gates class Netlist(object): """Netlist are tuples reperesenting the contecion between two gates.""" def __init__(self, file_nr, length): """All conections must be made to solve the case. :type number: interger :param number: id of the netlist """ # Open netlist and read with literal evaluation self.filename = "length90/netlists/netlists-"+length+"/"+file_nr+".txt" with open(self.filename) as f: self.list = f.read() self.list = literal_eval(self.list) self.connections = len(self.list) # Order this list by importance of connections self.sort_by_connection() def swap_back_one(self, target): """Switch the target item with item before it. :type targer: tuple :param number: the netlist combination that must be switched """ index = self.list.index(target) tmp = self.list[index - 1] self.list[index - 1] = self.list[index] self.list[index] = tmp def first_to_back(self): """Give back the first ellement with python pop.""" self.list.append(self.list.pop(0)) def sort_by_connection(self): """Rearrange self.list to a new array based connectins needed.""" gate_list = [] for connection in self.list: for gate in connection: gate_list.append(gate) counter_dict = dict(Counter(gate_list)) # Loop calculate the value of the tuple, make a # dict containing the values sorted_dict = {} for connection in self.list: value = counter_dict[connection[0]] + counter_dict[connection[1]] sorted_dict[connection] = value # Return the sorted array based on the items in revered order. self.list = sorted(sorted_dict, key=sorted_dict.__getitem__, reverse=True) class Path(object): """Path from A to B.""" def __init__(self, coordA, coordB, aLabel, aColor): """Initiate the path coordinates a label and the optional collor. :type coordA: interger :param coordA: first point on the board (list of Z, Y, X coordinates) :type coordB: interger :param coordB: second point on the board (list of Z, Y, X coordinates) :type aLabel: interger :param aLabel: the ID of this path :type aColor: hexodecimal value :param aColor: the color for plotting """ self.label = aLabel self.path = [] self.a = coordA self.b = coordB self.color = aColor def add_coordinate(self, coord): """Add a new coordinate to self.path. :type coord: tuple :param coord: a list of [Z, Y, X] """ self.path.append(coord) def undraw(self, board): """Remove paths from the board. :type board: Board(object) :param board: a threedimensional Numpy array """ # Add one to the needed connections for gate A and B board.gates_objects[self.a[0], self.a[1], self.a[2]].spaces_needed += 1 board.gates_objects[self.b[0], self.b[1], self.b[2]].spaces_needed += 1 # Loop through every coord of the path for coord in self.path: # Reset this coord on the board to 0 if board.board[coord[0], coord[1], coord[2]] != settings.SIGN_GATE: board.reset_coordinate(coord[0], coord[1], coord[2]) # Empty the path list self.path = [] def draw(self, algorithm, board): """Calculate route between two points. :type board: Board(object) :param board: a threedimensional Numpy array :type algorithm: method :param algorithm: algorithm to draw the path """ if algorithm == "DIJKSTRA": return self.draw_DIJKSTRA(board) if algorithm == "ASTAR": return self.draw_ASTAR(board) def draw_ASTAR(self, board): """Calculate route between two points with the A* algorithm. :type board: Board(object) :param board: a threedimensional Numpy array """ a_tpl = tuple(self.a) b_tpl = tuple(self.b) # Create data structures queue = QueuePriority() queue.push(a_tpl, 0) cost_archive = {} cost_archive[a_tpl] = 0 path_archive = {} path_archive[a_tpl] = None found = False # Keep searching till queue is empty or target is found while not queue.empty(): # Pop first coordinate from queue current = queue.pop() current_tpl = tuple(current) # Check if this is the target if current_tpl == b_tpl: found = True break # Create all neighbors of this coordinate for neighbor in board.get_neighbors(current): # Create a tuple neighbor = tuple(neighbor) # --------------- HEURISTICS ---------------- # Check if this coordinate on the board is empty if board.board[neighbor[0], neighbor[1], neighbor[2]] != 0: if neighbor != b_tpl: continue # Calculate distance to goal cost_neighbor = cost_archive[current_tpl] + 1 cost_neighbor += helpers.calculate_delta(neighbor, b_tpl) # Make it cheaper to go deeper cost_neighbor += ((board.depth - neighbor[0]) * 25) # Make expensive if passing a gate if neighbor[0] < 2: for next_neighbor in board.get_neighbors(neighbor): # If next_neighbor is a gate gate = board.gates_objects[next_neighbor[0], next_neighbor[1], next_neighbor[2]] if gate != None: # Make the cost higher if gate has more connections for i in range(gate.spaces_needed): cost_neighbor += settings.COST_PASSING_GATE # Check if this coordinate is new or has a lower cost than before if neighbor not in path_archive \ or (neighbor in cost_archive and cost_neighbor < cost_archive[neighbor]): # Calculate the cost and add it to the queue cost_archive[neighbor] = cost_neighbor prior = cost_neighbor queue.push(neighbor, prior) # Remember where this neighbor came from path_archive[neighbor] = current # -------------- / HEURISTICS --------------- # Backtracking the path if found: # Add destination to the path route self.add_coordinate(self.b) cursor = path_archive[b_tpl] while cursor != a_tpl: # Put the ID in the Numpy board board.board[cursor[0], cursor[1], cursor[2]] = self.label # Remember this coord for this path self.add_coordinate([cursor[0], cursor[1], cursor[2]]) cursor = path_archive[cursor] # Add A to the path self.add_coordinate(self.a) # Reduce the needed spaces for gate A and B board.gates_objects[self.a[0], self.a[1], self.a[2]].spaces_needed -= 1 board.gates_objects[self.b[0], self.b[1], self.b[2]].spaces_needed -= 1 return True else: return False def draw_DIJKSTRA(self, board): """Calculate route between two points with the Dijkstra algorithm. :type board: Board(object) :param board: a threedimensional Numpy array """ # Initiate the dimantions of the board boardDimensions = board.board.shape boardDepth = boardDimensions[0] boardHeight = boardDimensions[1] boardWidth = boardDimensions[2] a_tpl = tuple(self.a) b_tpl = tuple(self.b) # Initiate counters loops = 0 found = False # Initiate numpy data structures archive = np.zeros((boardDepth, boardHeight, boardWidth), dtype=int) # Add destination to the path route self.add_coordinate(self.b) queue = Queue() queue.push(self.a) # Algorithm core logic while not queue.empty() and found == False: # Track the distance loops += 1 # Pick first coordinate from the queue current = queue.pop() # current_tpl = tuple(current) # Create all neighbors of this coordinate for neighbor in board.get_neighbors(current): neighbor = tuple(neighbor) # Check if this is the target if neighbor == b_tpl: found = True break # --------------- HEURISTICS ---------------- # Check if this coord is already in the archive if archive[neighbor[0], neighbor[1], neighbor[2]] != 0: continue # Check if there are no obstacles on this coord if board.board[neighbor[0], neighbor[1], neighbor[2]] > 0: continue # Check surrounding tiles for gates that need space for neighbor_next in board.get_neighbors(neighbor): neighbor_next = tuple(neighbor_next) # Check if this gate needs space around it if board.gates_objects[neighbor_next[0], neighbor_next[1], neighbor_next[2]] != None: # Don't look at the own gates if not (neighbor_next == a_tpl) or (neighbor_next == b_tpl): # Get info from this gate gate = board.gates_objects[neighbor_next[0], neighbor_next[1], neighbor_next[2]] # See if the path may pass if gate.get_free_spaces(board, neighbor_next) == 0: continue # -------------- / HEURISTICS --------------- # Add the coord to the queue queue.push(list(neighbor)) # Save the iteration counter to this coordinate in the archive archive[neighbor[0], neighbor[1], neighbor[2]] = loops # Backtracking the shortest route if found: cursor = list(self.b) # Loop back the all the made steps for i in range(loops - 1, 0, -1): # Loop through all the neighbors of this tile for neighbor in board.get_neighbors(cursor): neighbor = tuple(neighbor) # Check if this cell is on the i'th position in the shortest path if archive[neighbor[0], neighbor[1], neighbor[2]] == i: # Put the ID in the Numpy board board.board[neighbor[0], neighbor[1], neighbor[2]] = self.label # Remember this coord for this path self.add_coordinate([neighbor[0], neighbor[1], neighbor[2]]) # Move the cursor cursor = list(neighbor) break # Add the starting point to the end of the path-list self.add_coordinate(self.a) # Add 1 to the made connections for gate A and B board.gates_objects[self.a[0], self.a[1], self.a[2]].spaces_needed -= 1 board.gates_objects[self.b[0], self.b[1], self.b[2]].spaces_needed -= 1 return True else: #if settings.SHOW_EACH_RESULT #print("Path " + str(self.label) + " ERROR. Could not be drawn.") return False def get_coords(self, axes): """Get coordinates of point with axes as input. :type axes: tuple :param number: tuple with value of x, y and z """ coords = [] for coord in self.path: if axes == 'z': coords.append(coord[0]) if axes == 'y': coords.append(coord[1]) if axes == 'x': coords.append(coord[2]) return coords class Solution(object): """Is a wraper class for all functions.""" def __init__(self): """Initiate the variables non needed as arguments.""" self.best_board = None self.best_netlist = None self.best_score = 0 self.best_result = 0 self.boards = 0 self.scores = [] self.results = [] def get_scores(self): """Get all scores in the scores list. :rtype: array """ return self.scores def plot_scores(self): """Plot a graph to show the scores over the different iterations.""" fig = plt.figure() ax = fig.gca() ax.set_xlabel("Iteration") ax.set_ylabel("Score") ax.plot(self.scores) plt.show() def plot_results(self): """Plot a graph to show the results over the different iterations.""" fig = plt.figure() ax = fig.gca() ax.set_xlabel("Iteration") ax.set_ylabel("Paths drawn (percent)") ax.plot(self.results) plt.show() def plot_best(self): """Plot the best result.""" self.best_board.plot() def run(self, gates, netlist): """Run the file used in __main.py. :type gates: Gates(object) :param gates: a instanse of the Gate class :type netlist: Netlist(object) :param netlist: a instanse of the Netlist class """ # Print inputted netlist if settings.SHOW_NETLIST: print("Netlist: " + CLR.GREEN + str(netlist.list) + CLR.DEFAULT) print("--------------------------------------------------------") # Set temporary counters no_path_improvements = 0 # Create a new board board = Board(settings.BOARD_WIDTH, settings.BOARD_HEIGHT, settings.BOARD_DEPTH) # Place gates and paths on this board board.set_gates(gates) board.set_paths(netlist) # Draw the paths board.draw_paths() while no_path_improvements <= settings.MAX_NO_IMPROVE: # Count this iteration self.boards += 1 # Get the results of this board result = board.get_result("average") score = board.get_score() # Save the scores and result of this iteration self.results.append(result) self.scores.append(score) # Show result of the board if settings.SHOW_EACH_RESULT: # TODO eventueel ook in __main__.py sys.stdout.flush() print("Board " + CLR.YELLOW + "#" + str(self.boards) + CLR.DEFAULT, end=": ") print("Paths drawn: " + CLR.YELLOW + str(result) + "%" + CLR.DEFAULT, end=" ") print("Score: " + CLR.YELLOW + str(score) + CLR.DEFAULT, end=" ") print("Value 'passing gate': " + CLR.YELLOW + str(settings.COST_PASSING_GATE) + CLR.DEFAULT) # Plot result of the board if settings.SHOW_EACH_PLOT: board.plot() # Create a copy of this board for next iteration board_new = copy.deepcopy(board) board_new.paths = [] board_new.paths_drawn = [] board_new.paths_broken = [] for path in board.paths: board_new.paths.append(copy.deepcopy(path)) for path in board.paths_drawn: board_new.paths_drawn.append(copy.deepcopy(path)) for path in board.paths_broken: board_new.paths_broken.append(copy.deepcopy(path)) # See if this board has better scores if self.best_score == 0 \ or result > self.best_result \ or (result == self.best_result and score < self.best_score): self.best_score = score self.best_result = result self.best_board = board else: # Count the no improvement on the score no_path_improvements += 1 # Delete this board for path in board.paths: del path del board # Fetch new board for next iteration board = board_new if len(board.paths_broken) > 0: # Try to repair the broken paths board.redraw_broken_path() else: # Make mutations on the paths board.shorten_every_path() board.redraw_random_path() # Print best result of this run TODO: In __main__.py if settings.SHOW_BEST_RESULT: print("") print("------------ BEST RESULT out of " + str(self.boards) + " boards ---------------") print("Paths drawn: " + CLR.GREEN + str(self.best_result) + "%" + CLR.DEFAULT) print("Score: " + CLR.GREEN + str(self.best_score) + CLR.DEFAULT) # Set adapted heuristics for next run settings.COST_PASSING_GATE += settings.STEP_COST_PASSING_GATE class Queue(object): """Dequeue, append and count elements in a simple queue.""" def __init__(self): """Initiate the class with elements of the queue.""" self.elements = collections.deque() def empty(self): """Empty the queue. :rtype: interger """ return len(self.elements) == 0 def pop(self): """Pop a queue item. :rtype: Collections(object) """ return self.elements.popleft() def push(self, x): """Push an element to the queue.""" self.elements.append(x) class QueuePriority(object): """Dequeue, append and count elements in a priority queue.""" def __init__(self): """Initiate the elements array.""" self.elements = [] def empty(self): """Empty the array. :rtype: interger """ return len(self.elements) == 0 def pop(self): """Pop elements from the queue. :rtype: tuple """ return heapq.heappop(self.elements)[1] def push(self, data, prior): """Push an element on to the queue.""" heapq.heappush(self.elements, (prior, data))
/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { // our app is within the app folder app: 'app', // angular bundles '@angular/core': 'npm:@angular/core/bundles/core.umd.js', '@angular/common': 'npm:@angular/common/bundles/common.umd.js', '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', '@angular/http': 'npm:@angular/http/bundles/http.umd.js', '@angular/router': 'npm:@angular/router/bundles/router.umd.js', '@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js', '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', '@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js', '@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js', // other libraries 'rxjs': 'npm:rxjs', 'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js' }, // packages tells the System loader how to load when no filename and/or no extension packages: { app: { main: './main.js', defaultExtension: 'js' }, rxjs: { defaultExtension: 'js' } } }); })(this);
//console.log("loaded"); //alert("loaded"); angular.module('stage',[]);
const debug = require('debug')('app:swagger') 'use strict'; // Register swagger var pack = require('../../package'), swaggerOptions = { apiVersion: pack.version, pathPrefixSize: 2, info: { 'title': `${process.env.APP_NAME} API Documentation`, 'description': `${process.env.APP_NAME} API documentation.`, } }; exports.register = function (server, options, next) { server.register({ register: require('hapi-swagger'), options: swaggerOptions }, function (err) { if (err) debug('hapi-swagger load error: ' + err) else debug('hapi-swagger interface loaded') }); next(); }; exports.register.attributes = { name: 'swagger-plugin' };
export function getColorAccessibilityProps(checked, color) { return { 'aria-pressed': checked, 'aria-label': 'Color Picker ' + color }; } //# sourceMappingURL=getColorAccessibilityProps.js.map
const INITIAL_STATE = [ { id: 0, description: 'Arrumar quarto', type: 'Pessoal', date: new Date('2021/03/29').getTime(), done: false, }, { id: 1, description: 'Terminar aplicativo', type: 'Programação', date: new Date('2021/04/16').getTime(), done: false, }, { id: 2, description: 'Fazer componente Tarefa', type: 'Programação', date: new Date('2021/03/27').getTime(), done: true, }, { id: 3, description: 'Estudar prova de Equações Diferenciais', type: 'Faculdade', date: new Date('2021/04/11').getTime(), done: false, }, ] function todoReducer(state = INITIAL_STATE, { type, payload }) { switch (type) { case 'RESET': { return INITIAL_STATE } case 'SYNC_TODOS': { return payload } default: return state } } export { todoReducer }
import React from 'react' import { node } from 'prop-types' import { Box } from '@welcome-ui/box' import { HEIGHT, WIDTH } from './utils' export function Panel({ children }) { return ( <Box display="grid" minHeight={HEIGHT} minWidth={WIDTH}> {children} </Box> ) } Panel.propTypes = { children: node.isRequired }
country = 'Canadag' # by converting the string entered to lowercase and comparing it to a string # that is all lowercase letters I make the comparison case-insensitive # If someone types in CANADA or Canada it will still be a match if country.lower() == 'canada': print('Hello eh') else: print('Hello')
'use strict'; var context = SP.ClientContext.get_current(); var user = context.get_web().get_currentUser(); // extends jquer for easier fetching url parameter $.extend({ getUrlVars: function () { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; }, getUrlVar: function (name) { return $.getUrlVars()[name]; } }); var hostWebUrl, appWebUrl, hostWebContext, destinationServerRelativeUrl, destinationFileName; // Define base object and namespace Type.registerNamespace("AjaxUpload"); AjaxUpload.Uploader = function () { var hostWebUrl, hostWebContext, appWebUrl; // Logging states var state = { ERROR: "error", WARNING: "warning", SUCCESS: "success" } // Read the Host Web Url and the App Web Url from query string var init = function () { var hostWebUrlFromQS = $.getUrlVar("SPHostUrl"); hostWebUrl = (hostWebUrlFromQS !== undefined) ? decodeURIComponent(hostWebUrlFromQS) : undefined; var appWebUrlFromQS = $.getUrlVar("SPAppWebUrl"); appWebUrl = (appWebUrlFromQS !== undefined) ? decodeURIComponent(appWebUrlFromQS) : undefined; }; // Message Logger var logMessage = function (logMessage, status) { var message = String.format("<div class='{0}'>{1}</div>", status, logMessage); $("#msgAjaxUpload").append(message); }; var clearMessages = function () { $("#msgAjaxUpload").text(""); }; var executeUpload = function (sourcePath, targetPath) { // initialise base variables base from query string init(); clearMessages(); hostWebContext = new SP.ClientContext(getRelativeUrlFromAbsolute(hostWebUrl)); var web = hostWebContext.get_web(); hostWebContext.load(web); hostWebContext.executeQueryAsync( // in case of success function () { logMessage("Host Web successfully loaded", state.SUCCESS); var sourceFile = appWebUrl + sourcePath; logMessage("Reading file from App Web <a href='" + sourceFile + "' target='_blank'>" + sourcePath + "</a><br /><br />", state.SUCCESS); logMessage("<img src='" + sourceFile + "'><br />", state.SUCCESS); // Read file from app web $.ajax({ url: sourceFile, type: "GET", cache: false }).done(function (contents) { var fileName = getFilenameFromUrl(targetPath); var folder = getPathFromUrl(targetPath); logMessage("Create file at<br> " + hostWebUrl + "/" + folder + fileName, state.SUCCESS); // Create new file var createInfo = new SP.FileCreationInformation(); // Convert ArrayBuffer to Base64 string createInfo.set_content(new SP.Base64EncodedByteArray()); for (var i = 0; i < contents.length; i++) { createInfo.get_content().append(contents.charCodeAt(i)); } // Overwrite if already exists createInfo.set_overwrite(true); // set target url createInfo.set_url(fileName); // retrieve file collection of folder var files = hostWebContext.get_web().getFolderByServerRelativeUrl(getRelativeUrlFromAbsolute(hostWebUrl) + folder).get_files(); // load file collection from host web hostWebContext.load(files); // add the new file files.add(createInfo); // upload file hostWebContext.executeQueryAsync(function () { var loadImage = hostWebUrl + "/" + folder + fileName; logMessage("File uploaded succeeded", state.SUCCESS); logMessage("Try to embed file from host web", state.SUCCESS); logMessage("<img src='" + loadImage + "'>", state.SUCCESS); logMessage("<a href='" + loadImage + "' target='_blank'>" + folder + fileName + "</a>", state.SUCCESS); logMessage("<b>File was successfully uploaded but corrupted due invalid reading</b><br>", state.SUCCESS); }, function (sender, args) { logMessage("File upload failed", state.ERROR); }); }).fail(function (jqXHR, textStatus) { logMessage(textStatus, state.ERROR); }); }, // in case of error function (sender, args) { logMessage(args.get_message(), state.ERROR); }) } var getRelativeUrlFromAbsolute = function (absoluteUrl) { absoluteUrl = absoluteUrl.replace('https://', ''); var parts = absoluteUrl.split('/'); var relativeUrl = '/'; for (var i = 1; i < parts.length; i++) { relativeUrl += parts[i] + '/'; } return relativeUrl; } var getFilenameFromUrl = function (url) { var filename = url.substring(url.lastIndexOf('/') + 1); return filename; } var getPathFromUrl = function (url) { var path = url.substring(1, url.lastIndexOf('/') + 1); return path; } var arrayBufferToBase64 = function (buffer) { var binary = ''; var bytes = new Uint8Array(buffer); var len = bytes.byteLength; for (var i = 0; i < len; i++) { binary += String.fromCharCode(bytes[i]); } return window.btoa(binary); } return { Upload: function (sourcePath, targetPath) { executeUpload(sourcePath, targetPath); } } }
from opentrons import types metadata = { 'protocolName': 'Testosaur', 'author': 'Opentrons <[email protected]>', 'description': 'A variant on "Dinosaur" for testing', 'source': 'Opentrons Repository', 'apiLevel': '2.3' } def run(ctx): ctx.home() tr = ctx.load_labware('opentrons_96_tiprack_300ul', 1) right = ctx.load_instrument('p300_single_gen2', types.Mount.RIGHT, [tr]) lw = ctx.load_labware('corning_96_wellplate_360ul_flat', 2) right.pick_up_tip() right.aspirate(10, lw.wells()[0].bottom()) right.dispense(10, lw.wells()[1].bottom()) right.drop_tip(tr.wells()[-1].top())
import { configure, setAddon, addDecorator } from '@storybook/react' //addDecorator(withInfo()) //import 'storybook-addon-specifications/register'; //import chaptersAddon from 'react-storybook-addon-chapters'; //import 'storybook-addon-jsx/register'; //setAddon(chaptersAddon) import { setDefaults } from '@storybook/addon-info' import chaptersAddon from 'react-storybook-addon-chapters' setAddon(chaptersAddon) // addon-info setDefaults({ inline: true, // Toggles display of header with component name and description styles: { infoBody: { boxShadow: null, border: null } } }) // automatically import all files ending in *.stories.js function loadComponents() { const components = require.context('../src', true, /.stories.js$/) components.keys().forEach(filename => components(filename)) } function loadStories() { const dist = require.context('../stories', true, /.stories.js$/) dist.keys().forEach(filename => dist(filename)) } configure(loadComponents, module) configure(loadStories, module)
let mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel application. By default, we are compiling the Sass | file for the application as well as bundling up all the JS files. | */ // mix.js('resources/assets/js/app.js', 'public/js') // .sass('resources/assets/sass/app.scss', 'public/css'); mix.options({ processCssUrls: false }); mix.sass('resources/assets/sass/styleadmin.scss', 'public/css'); mix.sass('resources/assets/sass/style404.scss', 'public/css'); mix.sass('resources/assets/sass/style.scss', 'public/css'); mix.sass('resources/assets/sass/userstyle.scss', 'public/css'); mix.scripts('resources/assets/js/all.js', 'public/js/all.js'); mix.js('resources/assets/js/dependency.js', 'public/js'); mix.babel('resources/assets/js/front.js', 'public/js/front.js');
from func.firebase_init import db from func.stuff import add_spaces from func.trading import get_current_price, get_multiple_prices, get_trading_buy_db from disnake.ext.commands import Param from disnake.ext import commands import disnake from typing import Literal class AvailableTokens(disnake.ui.View): def __init__(self): super().__init__() url = "https://github.com/redstone-finance/redstone-api/blob/main/docs/ALL_SUPPORTED_TOKENS.md" self.add_item(disnake.ui.Button(label="List of available tokens", url=url)) class Trading(commands.Cog): def __init__(self, client): """Trading simulator with real stocks.""" self.client = client @commands.slash_command(name="trade", description="Trading bruh") async def _trade( self, inter: disnake.MessageInteraction, operation: Literal["Buy", "Sell", "View"] = Param(..., desc="Are you buying, selling or just wanna view your portfolio?"), stock: str = Param(None, desc="Symbol for the stock you wish to trade (Required when buying or selling)"), amount: int = Param(None, desc="How many stocks do you wish to buy/sell (Required only when buying)") ): await inter.response.defer() if stock is not None: stock = stock.upper() stock = stock.replace('/', '-') user_money = db.child("users").child(inter.author.id).child("money").get().val() currently_owns = db.child("trading").child(inter.author.id).get().val() or None match operation: case 'Buy': if stock is None or amount is None: return await inter.edit_original_message(content=f"**All** parameters are **required** when buying!") if currently_owns is not None and stock in currently_owns: return await inter.edit_original_message(content=f"You already own shares of **{stock}**") current_price = get_current_price(stock) if current_price is None: return await inter.edit_original_message(content=f"Symbol `{stock}` either doesn't exist or I don't have access to it", view=AvailableTokens()) buying_cost = current_price * amount if buying_cost > user_money: return await inter.edit_original_message(content=f"You don't have enough money for this ({add_spaces(int(buying_cost))} > {add_spaces(user_money)})") db.child("trading").child(inter.author.id).update(get_trading_buy_db(stock, amount, current_price)) db.child("users").child(inter.author.id).update({"money": int(user_money - buying_cost)}) return await inter.edit_original_message(content=f"Successfully bought *{add_spaces(amount)}* shares of **{stock.replace('-', '/')}** for *{add_spaces(int(buying_cost))}* shekels") case 'Sell': if currently_owns is None: return await inter.edit_original_message(content="You don't own any stocks!") if stock is None: return await inter.edit_original_message(content="You have to specify which stock to sell!") if stock not in currently_owns: return await inter.edit_original_message(content="You cannot sell a stock that you don't own!") bought_at = currently_owns.get(stock).get("boughtAt") amount_bought = currently_owns.get(stock).get("amount") bought_cost = bought_at * amount_bought current_price = get_current_price(stock) selling_cost = current_price * amount_bought profit_loss = "loss" outcome_money = bought_cost - selling_cost if selling_cost >= bought_cost: profit_loss = "profit" outcome_money = selling_cost - bought_cost db.child("trading").child(inter.author.id).child(stock).remove() db.child("users").child(inter.author.id).update({"money": int(user_money + selling_cost)}) msg = f"Successfully sold *{amount_bought}* stocks of **{stock.replace('-', '/')}** for a {profit_loss} of `{add_spaces(int(outcome_money))}` shekels" return await inter.edit_original_message(content=msg) case "View": if currently_owns is None: return await inter.edit_original_message(content="You don't own any stocks!") msg = "__Your current stonks sir:__\n\n" currently_owns_prices = get_multiple_prices(currently_owns) total_profit = 0 for stonk in currently_owns: current_price = currently_owns_prices[stonk.replace('-', '/')] bought_price = currently_owns[stonk]['boughtAt'] amount_bought = currently_owns[stonk]['amount'] profit = (current_price*amount_bought)-(bought_price*amount_bought) total_profit += profit if current_price >= .01: current_price = round(current_price, 2) if bought_price >= .01: bought_price = round(bought_price, 2) msg += f"**{stonk.replace('-', '/')}** - " \ f"Current Price: `{current_price:,}` | " \ f"Bought at: `{bought_price:,}` | " \ f"Profit: `{int(profit):,}` " \ f"*({amount_bought:,} stock{'s' if amount_bought > 1 else ''})*\n" msg += f"\n*Your total profit is `{int(total_profit):,}` shekels*" return await inter.edit_original_message(content=msg.replace(',', ' ')) def setup(client): client.add_cog(Trading(client))
""" WSGI config for szekelydata project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "szekelydata.settings") application = get_wsgi_application()
import numpy as np import matplotlib.pyplot as plt from matplotlib import rcParams, cycler import matplotlib.cm as cm from mpl_toolkits.axes_grid1 import make_axes_locatable import datetime import glob2 import xarray as xr import pandas as pd import itertools import re import clean.clean_03 as southtrac from matplotlib import gridspec from scipy import stats import plotly.io as pio import plotly.express as px pio.renderers.default='browser' # def get_stats(group): # # return {'min': group.min(), 'max': group.max(), 'count': group.count(), 'mean': group.quantile(),'SD': group.std()} # return {'count': group.count(), # 'mean': group.mean(), # 'median': group.quantile(), # 'SD': group.std(), # 'p10': group.quantile(0.1), # 'p25': group.quantile(0.25), # 'p75': group.quantile(0.75), # 'p90': group.quantile(0.9)} groupby = 'LAT' vmin = -90#-90 vmax = 90#90 res = 5#5 def group(df, group='OCS', groupby=groupby, vmin=vmin, vmax=vmax, res=res): vrange = np.arange(vmin, vmax+res, res) output = df[group].groupby([pd.cut(df[groupby], vrange)]).describe().reset_index() #apply(get_stats) .unstack() output[groupby.casefold()] = output.apply(lambda x: x[groupby].left+res/2,axis=1) return output # amica df = southtrac.read(strat=0,LAT=[-90, 90], ALT=9) df_9oct = df[(df['flight']=='2019-10-09') | (df['flight']=='2019-10-09')] #SAL - OPH super high ocs_9oct = group(df_9oct) df_2nov = df[df['flight']=='2019-11-02'] #OPH - SAL super low ocs_2nov = group(df_2nov) def plot(df=None, ax=None, shift=0, **kwargs): if ax is None: ax = plt.gca() ax.errorbar(df[groupby.casefold()]+shift, df['mean'], yerr=df['std'], capsize=4, **kwargs ) return ax ############################################################################## fig, ax = plt.subplots() group_name='FAIRO_O3' # 9oct p1 = plot(df=group(df_9oct, group=group_name), ax=ax, shift=0.5, fmt='x', color='DarkBlue', ecolor='LightBlue', label=';;;') #2nov p2 = plot(df=group(df_2nov, group=group_name), shift=0.5, ax=ax, fmt='x', color='darkmagenta', ecolor='violet', label=f'2nov {group_name}') ax2 = ax.twinx() p3 = plot(df=ocs_9oct, ax=ax2, fmt='o', color='DarkBlue', ecolor='LightBlue', label='9oct OCS') #2nov p4 = plot(df=ocs_2nov, ax=ax2, fmt='o', color='darkmagenta', ecolor='violet', label='2nov OCS') fig.legend(loc='upper center', bbox_to_anchor=(0.5,1),ncol=4, columnspacing=0.5, frameon=True) # # added these three lines # lines = [p1, p2, p3, p4] # legends = [f'9oct {group_name}', # f'2nov {group_name}', # '9oct OCS', # '2nov OCS' # ] # ax.legend(lines, # legends, # loc= 'upper center') # plt.legend(loc='lower left', bbox_to_anchor= (0.0, 1.01), ncol=2, # borderaxespad=0, frameon=False) # ax=groups_sep.reset_index().plot(kind = "scatter", # x='lat', y='mean', # yerr = "SD", capsize=10,#,capthick=1, # legend = 'SEP', # title = "Average Avocado Prices", # ax=ax) # scatter(x='lat', y='mean', color='DarkBlue', label='SEP',s=80) # groups_oct.reset_index().plot.scatter(x='lat', y='mean', color='DarkGreen', label='OCT', s=80, # ax=ax) # means = pd.concat([groups_sep['mean'], groups_oct['mean'],groups_sep['mean']-groups_oct['mean']], # axis='columns') # means.columns =['sep','oct','dif'] # means.plot.scatter() # lat_res=5 # lat_range = np.arange(-90,90+lat_res,lat_res) # df_sep['AMICA_OCS'].groupby([pd.cut(df_sep.IRS_LAT, lat_range)]).plot.box()
import torch import torchio as tio from ...utils import TorchioTestCase class TestContour(TorchioTestCase): """Tests for `Contour`.""" def test_one_hot(self): image = self.sample_subject.label tio.Contour()(image) def test_multichannel(self): label_map = tio.LabelMap(tensor=torch.rand(2, 3, 3, 3) > 1) with self.assertRaises(RuntimeError): tio.Contour()(label_map)
from sklearn2sql_heroku.tests.classification import generic as class_gen class_gen.test_model("DecisionTreeClassifier" , "BreastCancer" , "mssql")
from .__init__ import * def primeFactorsFunc(minVal=1, maxVal=200): a = random.randint(minVal, maxVal) n = a i = 2 factors = [] while i * i <= n: if n % i: i += 1 else: n //= i factors.append(i) if n > 1: factors.append(n) problem = f"Find prime factors of {a}" solution = f"{factors}" return problem, solution prime_factors = Generator("Prime Factorisation", 27, "Prime Factors of a =", "[b, c, d, ...]", primeFactorsFunc)
#!/usr/bin/env python3 """ This is a script to convert GenBank flat files to GFF3 format with a specific focus on initially maintaining as much structural annotation as possible, then expanding into functional annotation support. This is not guaranteed to convert all features, but warnings will be printed wherever possible for features which aren't included. Currently supported: Structural features: gene, CDS, mRNA, tRNA, rRNA Annotations: primary identifiers, gene product name This is written to handle multi-entry GBK files Caveats: - Because the GBK flatfile format doesn't explicitly model parent/child features, this script links them using the expected format convention of shared /locus_tag entries for each feature of the gene graph (gene, mRNA, CDS) - It has only been tested with prokaryotic (non-spliced) genes Author: Joshua Orvis (jorvis AT gmail) """ import argparse import sys from collections import defaultdict from Bio import SeqIO from biocode import annotation, things, utils def main(): parser = argparse.ArgumentParser( description='Convert GenBank flat files to GFF3 format') ## output file to be written parser.add_argument('-i', '--input_file', type=str, required=True, help='Path to an input GBK file' ) parser.add_argument('-o', '--output_file', type=str, required=False, help='Path to an output GFF file to be created' ) parser.add_argument('--with_fasta', dest='fasta', action='store_true', help='Include the FASTA section with genomic sequence at end of file. (default)' ) parser.add_argument('--no_fasta', dest='fasta', action='store_false' ) parser.set_defaults(fasta=True) args = parser.parse_args() ## output will either be a file or STDOUT ofh = sys.stdout if args.output_file is not None: ofh = open(args.output_file, 'wt') ofh.write("##gff-version 3\n") assemblies = dict() current_assembly = None current_gene = None current_RNA = None rna_count_by_gene = defaultdict(int) exon_count_by_RNA = defaultdict(int) seqs_pending_writes = False features_skipped_count = 0 # each gb_record is a SeqRecord object for gb_record in SeqIO.parse(open(args.input_file, "r"), "genbank"): mol_id = gb_record.name if mol_id not in assemblies: assemblies[mol_id] = things.Assembly(id=mol_id) if len(str(gb_record.seq)) > 0: seqs_pending_writes = True assemblies[mol_id].residues = str(gb_record.seq) assemblies[mol_id].length = len(str(gb_record.seq)) current_assembly = assemblies[mol_id] # each feat is a SeqFeature object for feat in gb_record.features: #print(feat) fmin = int(feat.location.start) fmax = int(feat.location.end) if feat.location.strand == 1: strand = '+' elif feat.location.strand == -1: strand = '-' else: raise Exception("ERROR: unstranded feature encountered: {0}".format(feat)) #print("{0} located at {1}-{2} strand:{3}".format( locus_tag, fmin, fmax, strand ) ) if feat.type == 'source': continue if feat.type == 'gene': # print the previous gene (if there is one) if current_gene is not None: gene.print_as(fh=ofh, source='GenBank', format='gff3') locus_tag = feat.qualifiers['locus_tag'][0] gene = things.Gene(id=locus_tag, locus_tag=locus_tag) gene.locate_on( target=current_assembly, fmin=fmin, fmax=fmax, strand=strand ) current_gene = gene current_RNA = None elif feat.type == 'mRNA': locus_tag = feat.qualifiers['locus_tag'][0] rna_count_by_gene[locus_tag] += 1 feat_id = "{0}.mRNA.{1}".format( locus_tag, rna_count_by_gene[locus_tag] ) mRNA = things.mRNA(id=feat_id, parent=current_gene, locus_tag=locus_tag) mRNA.locate_on( target=current_assembly, fmin=fmin, fmax=fmax, strand=strand ) gene.add_mRNA(mRNA) current_RNA = mRNA if feat_id in exon_count_by_RNA: raise Exception( "ERROR: two different RNAs found with same ID: {0}".format(feat_id) ) else: exon_count_by_RNA[feat_id] = 0 elif feat.type == 'tRNA': locus_tag = feat.qualifiers['locus_tag'][0] rna_count_by_gene[locus_tag] += 1 feat_id = "{0}.tRNA.{1}".format(locus_tag, rna_count_by_gene[locus_tag]) if 'product' in feat.qualifiers: anticodon = feat.qualifiers['product'][0] else: anticodon = None tRNA = things.tRNA(id=feat_id, parent=current_gene, anticodon=anticodon) tRNA.locate_on(target=current_assembly, fmin=fmin, fmax=fmax, strand=strand) gene.add_tRNA(tRNA) current_RNA = tRNA if feat_id in exon_count_by_RNA: raise Exception( "ERROR: two different RNAs found with same ID: {0}".format(feat_id) ) else: exon_count_by_RNA[feat_id] = 0 elif feat.type == 'rRNA': locus_tag = feat.qualifiers['locus_tag'][0] rna_count_by_gene[locus_tag] += 1 feat_id = "{0}.rRNA.{1}".format(locus_tag, rna_count_by_gene[locus_tag]) if 'product' in feat.qualifiers: product = feat.qualifiers['product'][0] else: product = None annot = annotation.FunctionalAnnotation(product_name=product) rRNA = things.rRNA(id=feat_id, parent=current_gene, annotation=annot) rRNA.locate_on( target=current_assembly, fmin=fmin, fmax=fmax, strand=strand ) gene.add_rRNA(rRNA) current_RNA = rRNA if feat_id in exon_count_by_RNA: raise Exception( "ERROR: two different RNAs found with same ID: {0}".format(feat_id) ) else: exon_count_by_RNA[feat_id] = 0 elif feat.type == 'CDS': locus_tag = feat.qualifiers['locus_tag'][0] # If processing a prokaryotic GBK, we'll encounter CDS before mRNA, so we have to # manually make one if current_RNA is None: feat_id = "{0}.mRNA.{1}".format( locus_tag, rna_count_by_gene[locus_tag] ) mRNA = things.mRNA(id=feat_id, parent=current_gene) mRNA.locate_on( target=current_assembly, fmin=fmin, fmax=fmax, strand=strand ) gene.add_mRNA(mRNA) current_RNA = mRNA if 'product' in feat.qualifiers: product = feat.qualifiers['product'][0] else: product = None if 'gene' in feat.qualifiers: gene_symbol = feat.qualifiers['gene'][0] else: gene_symbol = None annot = annotation.FunctionalAnnotation(product_name=product, gene_symbol=gene_symbol) if 'db_xref' in feat.qualifiers: for dbxref in feat.qualifiers['db_xref']: annot.add_dbxref(dbxref) polypeptide_id = "{0}.polypeptide.{1}".format( locus_tag, rna_count_by_gene[locus_tag] ) polypeptide = things.Polypeptide(id=polypeptide_id, parent=mRNA, annotation=annot) mRNA.add_polypeptide(polypeptide) exon_count_by_RNA[current_RNA.id] += 1 cds_id = "{0}.CDS.{1}".format( current_RNA.id, exon_count_by_RNA[current_RNA.id] ) current_CDS_phase = 0 for loc in feat.location.parts: subfmin = int(loc.start) subfmax = int(loc.end) CDS = things.CDS(id=cds_id, parent=current_RNA) CDS.locate_on( target=current_assembly, fmin=subfmin, fmax=subfmax, strand=strand, phase=current_CDS_phase ) current_RNA.add_CDS(CDS) # calculate the starting phase for the next CDS feature (in case there is one) # 0 + 6 = 0 TTGCAT # 0 + 7 = 2 TTGCATG # 1 + 6 = 1 TTGCAT # 2 + 7 = 1 TTGCATG # general: 3 - ((length - previous phase) % 3) current_CDS_phase = 3 - (((subfmax - subfmin) - current_CDS_phase) % 3) if current_CDS_phase == 3: current_CDS_phase = 0 exon_id = "{0}.exon.{1}".format( current_RNA.id, exon_count_by_RNA[current_RNA.id] ) exon = things.Exon(id=exon_id, parent=current_RNA) exon.locate_on( target=current_assembly, fmin=subfmin, fmax=subfmax, strand=strand ) current_RNA.add_exon(exon) exon_count_by_RNA[current_RNA.id] += 1 else: print("WARNING: The following feature was skipped:\n{0}".format(feat)) features_skipped_count += 1 # don't forget to do the last gene, if there were any if current_gene is not None: gene.print_as(fh=ofh, source='GenBank', format='gff3') if args.fasta is True: if seqs_pending_writes is True: ofh.write("##FASTA\n") for assembly_id in assemblies: ofh.write(">{0}\n".format(assembly_id)) ofh.write("{0}\n".format(utils.wrapped_fasta(assemblies[assembly_id].residues))) if features_skipped_count > 0: print("Warning: {0} unsupported feature types were skipped".format(features_skipped_count)) if __name__ == '__main__': main()
const Mock = require('mockjs') // 获取 mock.Random 对象 const Random = Mock.Random // mock一组数据 const produceNewsData = function () { let articles = [] for (let i = 0; i < 100; i++) { let newArticleObject = { title: Random.csentence(5, 30), // Random.csentence( min, max ) thumbnail_pic_s: Random.dataImage('300x250', 'mock的图片'), // Random.dataImage( size, text ) 生成一段随机的 Base64 图片编码 author_name: Random.cname(), // Random.cname() 随机生成一个常见的中文姓名 date: Random.date() + ' ' + Random.time() // Random.date()指示生成的日期字符串的格式,默认为yyyy-MM-dd;Random.time() 返回一个随机的时间字符串 } articles.push(newArticleObject) } return { data: articles } } // 拦截ajax请求,配置mock的数据 Mock.mock('/api/articles', 'get', produceNewsData) const produceRecords = function () { let tableData = [ { 'date': '2020-03-27', 'doctor': '张三' }, { 'date': '2021-03-05', 'doctor': '李四' }, { 'date': '2021-03-29', 'doctor': '王五' } ] return { records: tableData } } Mock.mock(RegExp('/api/basic/records.*'), 'get', produceRecords) const produceRecordsDetail = function () { let images = [ { img: 'http://localhost:8080/SGP003.jpg', res: 'http://localhost:8080/SGP003_res.jpg', cam: 'http://localhost:8080/SGP003_cam.jpg', cls: '黏膜肌层' }, { img: 'http://localhost:8080/SGP003.jpg', res: 'http://localhost:8080/SGP003_res.jpg', cam: 'http://localhost:8080/SGP003_cam.jpg', cls: '黏膜肌层' }, { img: 'http://localhost:8080/SGP003.jpg', res: 'http://localhost:8080/SGP003_res.jpg', cam: 'http://localhost:8080/SGP003_cam.jpg', cls: '黏膜肌层' }, { img: 'http://localhost:8080/SGP003.jpg', res: 'http://localhost:8080/SGP003_res.jpg', cam: 'http://localhost:8080/SGP003_cam.jpg', cls: '黏膜肌层' }, ] return { detail: images } } Mock.mock(RegExp('/api/basic/record_detail.*'), 'get', produceRecordsDetail) const producePatient = function () { return { id: '20210508', name: '张三', age: 45, sex: '男' } } Mock.mock(RegExp('/api/basic/patient_info.*'), 'get', producePatient) const login = function (params) { let user = JSON.parse(params.body).user let password = JSON.parse(params.body).password let name = '张三' if (user === 'admin' && password === '111111') { return { code: 200, name: name } } } Mock.mock('/api/basic/login', 'post', login)
import * as React from "react"; import * as Constants from "~/common/constants"; import * as Actions from "~/common/actions"; import * as Events from "~/common/custom-events"; import { css } from "@emotion/react"; import { ButtonPrimary } from "~/components/system/components/Buttons"; const STYLES_MODAL = css` text-align: center; padding-bottom: 64px; box-sizing: border-box; max-width: 680px; width: 95vw; min-height: 630px; border-radius: 4px; background-color: ${Constants.system.white}; overflow: hidden; box-shadow: 0 0 60px 8px rgba(0, 0, 0, 0.03); `; const STYLES_BUTTON_SECONDARY = { backgroundColor: Constants.system.white, boxShadow: `0 0 0 1px ${Constants.system.blue} inset`, color: Constants.system.blue, marginRight: 16, width: 160, textDecoration: `none`, }; const STYLES_IMAGE = css` width: 100%; background-color: ${Constants.system.black}; `; const STYLES_TITLE = css` font-family: ${Constants.font.semiBold}; font-size: 32px; padding-top: 40px; margin-bottom: 16px; `; const STYLES_TEXT = css` font-family: ${Constants.font.text}; font-size: 18px; margin-bottom: 24px; padding: 0 64px; `; const STYLES_LINK = css` text-decoration: none; color: ${Constants.system.white}; :visited { color: ${Constants.system.white}; } `; export const announcements = []; export class OnboardingModal extends React.Component { state = { step: 0, slides: [], }; componentDidMount = () => { Actions.updateStatus({ onboarding: this.props.unseenAnnouncements, }); let slides = []; if (this.props.newAccount) { slides = this.onboardingCopy; } for (let feature of this.announcements) { if (this.props.unseenAnnouncements.includes(feature.title)) { slides.push(feature); } } if (!slides.length) { Events.dispatchCustomEvent({ name: "delete-modal", detail: {}, }); } this.setState({ slides }); }; announcements = [ // { // title: "New On Slate: Grid System 2.0", // text: // "We just introduced a completely new layout engine that gives you total control over the way you can organize and display your collections.", // image: ( // <img // src="https://slate.textile.io/ipfs/bafybeigb7pd2dh64ty7l2yhnzu5kjupgxbfzqzjjb2gtprexfxzkwx4nle" // alt="grid layout" // css={STYLES_IMAGE} // /> // ), // button: ( // <ButtonPrimary style={{ width: 160 }} onClick={() => this._handleClick(1)}> // Try it out // </ButtonPrimary> // ), // }, ]; onboardingCopy = [ { title: "Welcome to Slate", text: "Slate is a distributed file-sharing network designed for private and public storage. Drag and drop your files into the app to easily start uploading your books, images, and documents.", image: ( <img src="https://slate.textile.io/ipfs/bafybeih4yqlefcbvuuhuyddg5vyfcm7latyifexzynmnbep4dx5hapbbjq" alt="" css={STYLES_IMAGE} /> ), button: ( <ButtonPrimary style={{ width: 160 }} onClick={() => this._handleClick(1)}> Got it </ButtonPrimary> ), }, { title: "Upload from Anywhere", text: "Use the Slate Chrome extension to upload images and screenshots to your account from anywhere on the web.", image: ( <img src="https://slate.textile.io/ipfs/bafybeifchvk6cxi4yl3twlontxlpkff623pcz2lhukrlzwor5rioviqsea" alt="" css={STYLES_IMAGE} /> ), button: ( <React.Fragment> <a href="https://chrome.google.com/webstore/detail/slate/gloembacbehhbfbkcfjmloikeeaebnoc" target="_blank" style={{ textDecoration: `none` }} > <ButtonPrimary style={STYLES_BUTTON_SECONDARY}>Get extension</ButtonPrimary> </a> <ButtonPrimary style={{ width: 160 }} onClick={() => this._handleClick(1)}> Next </ButtonPrimary> </React.Fragment> ), }, { title: "Organize and share", text: "Organize your files into slates to organize research, create mood boards, and collect your thoughts to share with other people.", image: ( <img src="https://slate.textile.io/ipfs/bafybeiaiy3c72sdirjj24vvev7xpuvvqckwip3ot7l4u4iaxdlnbp4hqae" alt="" css={STYLES_IMAGE} /> ), button: ( <ButtonPrimary style={{ width: 160 }} onClick={() => this._handleClick(1)}> Start using Slate </ButtonPrimary> ), }, ]; _handleClick = (i) => { if (this.state.step + i >= this.state.slides.length) { Events.dispatchCustomEvent({ name: "delete-modal", detail: {}, }); } else { this.setState({ step: this.state.step + i }); } }; render() { if (!this.state.slides || !this.state.slides.length) { return null; } return ( <div> <div css={STYLES_MODAL}> <div> {this.state.slides[this.state.step].image} <div css={STYLES_TITLE}>{this.state.slides[this.state.step].title}</div> <div css={STYLES_TEXT}>{this.state.slides[this.state.step].text}</div> {this.state.slides[this.state.step].button} </div> </div> </div> ); } }
(function(global) { 'use strict'; var fabric = global.fabric || (global.fabric = { }), extend = fabric.util.object.extend, min = fabric.util.array.min, max = fabric.util.array.max, toFixed = fabric.util.toFixed, NUM_FRACTION_DIGITS = fabric.Object.NUM_FRACTION_DIGITS; if (fabric.Polyline) { fabric.warn('fabric.Polyline is already defined'); return; } var cacheProperties = fabric.Object.prototype.cacheProperties.concat(); cacheProperties.push('points'); /** * Polyline class * @class fabric.Polyline * @extends fabric.Object * @see {@link fabric.Polyline#initialize} for constructor definition */ fabric.Polyline = fabric.util.createClass(fabric.Object, /** @lends fabric.Polyline.prototype */ { /** * Type of an object * @type String * @default */ type: 'polyline', /** * Points array * @type Array * @default */ points: null, cacheProperties: cacheProperties, /** * Constructor * @param {Array} points Array of points (where each point is an object with x and y) * @param {Object} [options] Options object * @return {fabric.Polyline} thisArg * @example * var poly = new fabric.Polyline([ * { x: 10, y: 10 }, * { x: 50, y: 30 }, * { x: 40, y: 70 }, * { x: 60, y: 50 }, * { x: 100, y: 150 }, * { x: 40, y: 100 } * ], { * stroke: 'red', * left: 100, * top: 100 * }); */ initialize: function(points, options) { options = options || {}; this.points = points || []; this.callSuper('initialize', options); var calcDim = this._calcDimensions(); if (typeof options.left === 'undefined') { this.left = calcDim.left; } if (typeof options.top === 'undefined') { this.top = calcDim.top; } this.width = calcDim.width; this.height = calcDim.height; this.pathOffset = { x: calcDim.left + this.width / 2, y: calcDim.top + this.height / 2 }; }, /** * Calculate the polygon min and max point from points array, * returning an object with left, top, widht, height to measure the * polygon size * @return {Object} object.left X coordinate of the polygon leftmost point * @return {Object} object.top Y coordinate of the polygon topmost point * @return {Object} object.width distance between X coordinates of the polygon leftmost and rightmost point * @return {Object} object.height distance between Y coordinates of the polygon topmost and bottommost point * @private */ _calcDimensions: function() { var points = this.points, minX = min(points, 'x') || 0, minY = min(points, 'y') || 0, maxX = max(points, 'x') || 0, maxY = max(points, 'y') || 0, width = (maxX - minX), height = (maxY - minY); return { left: minX, top: minY, width: width, height: height }; }, /** * Returns object representation of an instance * @param {Array} [propertiesToInclude] Any properties that you might want to additionally include in the output * @return {Object} Object representation of an instance */ toObject: function(propertiesToInclude) { return extend(this.callSuper('toObject', propertiesToInclude), { points: this.points.concat() }); }, /* _TO_SVG_START_ */ /** * Returns svg representation of an instance * @param {Function} [reviver] Method for further parsing of svg representation. * @return {String} svg representation of an instance */ toSVG: function(reviver) { var points = [], diffX = this.pathOffset.x, diffY = this.pathOffset.y, markup = this._createBaseSVGMarkup(); for (var i = 0, len = this.points.length; i < len; i++) { points.push( toFixed(this.points[i].x - diffX, NUM_FRACTION_DIGITS), ',', toFixed(this.points[i].y - diffY, NUM_FRACTION_DIGITS), ' ' ); } markup.push( '<', this.type, ' ', this.getSvgId(), 'points="', points.join(''), '" style="', this.getSvgStyles(), '" transform="', this.getSvgTransform(), ' ', this.getSvgTransformMatrix(), '"/>\n' ); return reviver ? reviver(markup.join('')) : markup.join(''); }, /* _TO_SVG_END_ */ /** * @private * @param {CanvasRenderingContext2D} ctx Context to render on */ commonRender: function(ctx) { var point, len = this.points.length, x = this.pathOffset.x, y = this.pathOffset.y; if (!len || isNaN(this.points[len - 1].y)) { // do not draw if no points or odd points // NaN comes from parseFloat of a empty string in parser return false; } ctx.beginPath(); ctx.moveTo(this.points[0].x - x, this.points[0].y - y); for (var i = 0; i < len; i++) { point = this.points[i]; ctx.lineTo(point.x - x, point.y - y); } return true; }, /** * @private * @param {CanvasRenderingContext2D} ctx Context to render on */ _render: function(ctx) { if (!this.commonRender(ctx)) { return; } this._renderFill(ctx); this._renderStroke(ctx); }, /** * @private * @param {CanvasRenderingContext2D} ctx Context to render on */ _renderDashedStroke: function(ctx) { var p1, p2; ctx.beginPath(); for (var i = 0, len = this.points.length; i < len; i++) { p1 = this.points[i]; p2 = this.points[i + 1] || p1; fabric.util.drawDashedLine(ctx, p1.x, p1.y, p2.x, p2.y, this.strokeDashArray); } }, /** * Returns complexity of an instance * @return {Number} complexity of this instance */ complexity: function() { return this.get('points').length; } }); /* _FROM_SVG_START_ */ /** * List of attribute names to account for when parsing SVG element (used by {@link fabric.Polyline.fromElement}) * @static * @memberOf fabric.Polyline * @see: http://www.w3.org/TR/SVG/shapes.html#PolylineElement */ fabric.Polyline.ATTRIBUTE_NAMES = fabric.SHARED_ATTRIBUTES.concat(); /** * Returns fabric.Polyline instance from an SVG element * @static * @memberOf fabric.Polyline * @param {SVGElement} element Element to parser * @param {Function} callback callback function invoked after parsing * @param {Object} [options] Options object */ fabric.Polyline.fromElement = function(element, callback, options) { if (!element) { return callback(null); } options || (options = { }); var points = fabric.parsePointsAttribute(element.getAttribute('points')), parsedAttributes = fabric.parseAttributes(element, fabric.Polyline.ATTRIBUTE_NAMES); callback(new fabric.Polyline(points, fabric.util.object.extend(parsedAttributes, options))); }; /* _FROM_SVG_END_ */ /** * Returns fabric.Polyline instance from an object representation * @static * @memberOf fabric.Polyline * @param {Object} object Object to create an instance from * @param {Function} [callback] Callback to invoke when an fabric.Path instance is created */ fabric.Polyline.fromObject = function(object, callback) { return fabric.Object._fromObject('Polyline', object, callback, 'points'); }; })(typeof exports !== 'undefined' ? exports : this);
/** * # Auth settings * Copyright(c) 2016 Stefano Balietti * MIT Licensed * * http://www.nodegame.org * --- */ module.exports = { /** * ## enabled * * If TRUE, authorization files will be imported and checked */ enabled: false, // [true, false] Default: TRUE. /** * ## mode * * The mode for importing the authorization codes * * Available modes: * * - 'dummy': creates dummy ids and passwords in sequential order. * - 'auto': creates random 8-digit alphanumeric ids and passwords. * - 'local': reads the authorization codes from a file. Defaults: * codes.json, code.csv. A custom file can be specified * in settings.file (available formats: json and csv). * - 'remote': **Currently disabled** fetches the authorization codes * from a remote URI. Available protocol: DeSciL protocol. * - external': allows users to set their own ids upon connection. * Useful if a third-party service provides participants. * - 'custom': The 'customCb' property of the settings object * will be executed with settings and done callback * as parameters. * */ mode: 'dummy', /** * ## nCodes * * The number of codes to create * * Modes: 'dummy', 'auto' * Default: 100 */ nCodes: 3, /** * ## addPwd * * If TRUE, a password field is added to each code * * Modes: 'dummy', 'auto' * Default: FALSE */ // addPwd: true, /** * ## codesLength * * The length of generated codes * * Modes: 'auto' * Default: { id: 8, pwd: 8, AccessCode: 6, ExitCode: 6 } */ // codesLength: { id: 8, pwd: 8, AccessCode: 6, ExitCode: 6 }, /** * ## customCb * * The custom callback associated to mode 'custom' * * Modes: 'custom' */ // customCb: function(settings, done) { return [ ... ] }, /** * ## inFile * * The name of the codes file inside auth/ dir or a full path to it * * Available formats: .csv and .json. * * Modes: 'local' * Default: 'codes.json', 'codes.js', 'code.csv' (tried in sequence) */ inFile: 'codes.imported.csv', /** * ## dumpCodes * * If TRUE, all imported codes will be dumped to file `outFile` * * Modes: 'dummy', 'auto', 'local', 'remote', 'custom' * Default: TRUE */ // dumpCodes: false /** * ## outFile * * The name of the codes dump file inside auth/ dir or a full path to it * * Only used, if `dumpCodes` is TRUE. Available formats: .csv and .json. * * Modes: 'dummy', 'auto', 'local', 'remote', 'custom' * Default: 'codes.imported.csv' */ // outFile: 'my.imported.codes.csv', /** * ## claimId * * If TRUE, remote clients will be able to claim an id via GET request * * Default: FALSE */ // claimId: true, /** * ## claimIdValidateRequest * * Returns TRUE if a requester is authorized to claim an id * * Returns an error string describing the error otherwise. * * Default: undefined */ // claimIdValidateRequest: function(query, headers) { // // Check query and headers. // return true; //}, /** * ## claimIdPostProcess * * Manipulates the client object after the claim id process succeeded */ //claimIdPostProcess: function(code, query, headers) { // code.WorkerId = query.id; //}, /** * ## codes * * Path to the code generator file * * The file must export a function that takes current settings * (e.g. mode, etc.) and returns synchronously or asynchronously * an array of valid authorization codes. */ //codes: 'path/to/code/generator.js', // # Reserved words for future requirements settings. // page: 'login.htm' };
/*! DataTables Bootstrap 3 integration ©2011-2015 SpryMedia Ltd - datatables.net/license */ (function(b){"function"===typeof define&&define.amd?define(["static/vendor/datatables/js/jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a, d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return b(d,a,a.document)}:b(jQuery,window,document)})(function(b, a, d){var e=b.fn.dataTable;b.extend(!0,e.defaults,{dom:"<'ui grid'<'row'<'eight wide column'l><'right aligned eight wide column'f>><'row dt-table'<'sixteen wide column'tr>><'row'<'seven wide column'i><'right aligned nine wide column'p>>>", renderer:"semanticUI"});b.extend(e.ext.classes,{sWrapper:"dataTables_wrapper dt-semanticUI",sFilter:"dataTables_filter ui input",sProcessing:"dataTables_processing ui segment",sPageButton:"paginate_button item"});e.ext.renderer.pageButton.semanticUI=function(h,a,r,s,j,m){var n=new e.Api(h),t=h.oClasses,k=h.oLanguage.oPaginate,u=h.oLanguage.oAria.paginate||{},f,g,o=0,p=function(a,d){var e,i,l,c,q=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&n.page()!=a.data.action&&n.page(a.data.action).draw("page")}; e=0;for(i=d.length;e<i;e++)if(c=d[e],b.isArray(c))p(a,c);else{g=f="";switch(c){case "ellipsis":f="&#x2026;";g="disabled";break;case "first":f=k.sFirst;g=c+(0<j?"":" disabled");break;case "previous":f=k.sPrevious;g=c+(0<j?"":" disabled");break;case "next":f=k.sNext;g=c+(j<m-1?"":" disabled");break;case "last":f=k.sLast;g=c+(j<m-1?"":" disabled");break;default:f=c+1,g=j===c?"active":""}l=-1===g.indexOf("disabled")?"a":"div";f&&(l=b("<"+l+">",{"class":t.sPageButton+" "+g,id:0===r&&"string"===typeof c? h.sTableId+"_"+c:null,href:"#","aria-controls":h.sTableId,"aria-label":u[c],"data-dt-idx":o,tabindex:h.iTabIndex}).html(f).appendTo(a),h.oApi._fnBindAction(l,{action:c},q),o++)}},i;try{i=b(a).find(d.activeElement).data("dt-idx")}catch(v){}p(b(a).empty().html('<div class="ui pagination menu"/>').children(),s);i&&b(a).find("[data-dt-idx="+i+"]").focus()};b(d).on("init.dt",function(a,d){if("dt"===a.namespace&&b.fn.dropdown){var e=new b.fn.dataTable.Api(d);b("div.dataTables_length select",e.table().container()).dropdown()}}); return e});
import Vue from 'vue' import router from '@/router' import store from '@/store' /** * 获取uuid */ export function getUUID () { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { return (c === 'x' ? (Math.random() * 16 | 0) : ('r&0x3' | '0x8')).toString(16) }) } /** * 是否有权限 * @param {*} key */ export function isAuth (key) { return true; //return JSON.parse(sessionStorage.getItem('permissions') || '[]').indexOf(key) !== -1 || false } /** * 树形数据转换 * @param {*} data * @param {*} id * @param {*} pid */ export function treeDataTranslate (data, id = 'id', pid = 'parentId') { var res = [] var temp = {} for (var i = 0; i < data.length; i++) { temp[data[i][id]] = data[i] } for (var k = 0; k < data.length; k++) { if (temp[data[k][pid]] && data[k][id] !== data[k][pid]) { if (!temp[data[k][pid]]['children']) { temp[data[k][pid]]['children'] = [] } if (!temp[data[k][pid]]['_level']) { temp[data[k][pid]]['_level'] = 1 } data[k]['_level'] = temp[data[k][pid]]._level + 1 temp[data[k][pid]]['children'].push(data[k]) } else { res.push(data[k]) } } return res } /** * 清除登录信息 */ export function clearLoginInfo () { Vue.cookie.delete('token') store.commit('resetStore') router.options.isAddDynamicMenuRoutes = false }
const router = require("express").Router(); const recipeRoutes = require("./recipes"); const userRoutes = require("./user") router.use("/recipes", recipeRoutes); router.use("/users", userRoutes); module.exports = router;
export default class ToggleMenu { constructor(element) { let that = this this.element = element this.menu = document.getElementsByClassName('js-menu-toggle')[0] this.navItems = document.getElementsByClassName('js-nav-items')[0] this.burgerWrapper = element.getElementsByClassName('burger__wrapper')[0] this.burger = element.getElementsByClassName('burger')[0] this.burgerWrapper.addEventListener('click', function() { that.toggle() }) } close() { this.burgerWrapper.classList.remove('active') this.burger.classList.remove('active') this.element.classList.remove('active') this.burgerWrapper.setAttribute('aria-hidden', 'true') this.menu.setAttribute('aria-hidden', 'true') this.navItems.classList.remove('active') this.menu.style.opacity = 0 let menu = this.menu setTimeout( function() { menu.classList.remove('active') }, 250) } open() { this.burgerWrapper.classList.add('active', 'true') this.menu.style.opacity = 1 this.menu.classList.add('active') this.burger.classList.add('active') this.element.classList.add('active') this.burgerWrapper.setAttribute('aria-hidden', 'false') this.menu.setAttribute('aria-hidden', 'false') let navItems = this.navItems setTimeout( function() { navItems.classList.add('active') }, 150) } toggle() { if (this.burgerWrapper.classList.contains('active')) { this.close() } else if (!this.burgerWrapper.classList.contains('active')) { this.open() } else { this.close() } } }
""" Custom column/table names If your database column name is different than your model attribute, use the ``db_column`` parameter. Note that you'll use the field's name, not its column name, in API usage. If your database table name is different than your model name, use the ``db_table`` Meta attribute. This has no effect on the API used to query the database. If you need to use a table name for a many-to-many relationship that differs from the default generated name, use the ``db_table`` parameter on the ``ManyToManyField``. This has no effect on the API for querying the database. """ from django.db import models class Author(models.Model): Author_ID = models.AutoField(primary_key=True, db_column='Author ID') first_name = models.CharField(max_length=30, db_column='firstname') last_name = models.CharField(max_length=30, db_column='last') class Meta: db_table = 'my_author_table' ordering = ('last_name', 'first_name') def __str__(self): return '%s %s' % (self.first_name, self.last_name) class Article(models.Model): Article_ID = models.AutoField(primary_key=True, db_column='Article ID') headline = models.CharField(max_length=100) authors = models.ManyToManyField(Author, db_table='my_m2m_table') primary_author = models.ForeignKey( Author, models.SET_NULL, db_column='Author ID', related_name='primary_set', null=True, ) class Meta: ordering = ('headline',) def __str__(self): return self.headline
const path = require("path"); module.exports = env => { return { mode: env, entry: { main: path.resolve(__dirname, "../src/background/main.ts") }, output: { filename: "main.js", path: path.resolve(__dirname, "../dist"), devtoolModuleFilenameTemplate: "[absolute-resource-path]" }, devtool: "source-map", resolve: { modules: [path.resolve(__dirname, "../src"), "node_modules"], extensions: [".ts", ".js", ".json"] }, module: { rules: [ { test: /\.ts/, exclude: /node_modules/, loader: "ts-loader" } ] }, target: "electron-main" }; };
module.exports = function() { $('a[data-swal]').on('click', function(e) { e.preventDefault() var url = $(this).attr('href') var _token = $(this).data('swal-token') var body = '<strong class="text-red">' + $(this).data('swal-record') + '</strong>' swal({ cancelButtonText: 'Cancelar', closeOnConfirm: false, confirmButtonColor: '#DD4B39', confirmButtonText: 'Eliminar', html: true, showCancelButton: true, text: 'Está a punto de eliminar el siguiente registro: ' + body, title: '¡Atención!', type: 'warning' }, function(){ var $form = $('<form>', { action: url, method: 'POST' }) var $token = $('<input>', { type: 'hidden', name: '_token', value: _token }).appendTo($form) $form.appendTo('body').submit() }) }) }
from openff.bespokefit.optimizers.forcebalance.factories import ForceBalanceInputFactory from openff.bespokefit.optimizers.forcebalance.forcebalance import ForceBalanceOptimizer __all__ = ["ForceBalanceInputFactory", "ForceBalanceOptimizer"]
// flow-typed signature: 017910737b8e43acdefc38a395d6e944 // flow-typed version: <<STUB>>/babel-plugin-istanbul_v^4.0.0/flow_v0.76.0 /** * This is an autogenerated libdef stub for: * * 'babel-plugin-istanbul' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community by sending a pull request to: * https://github.com/flowtype/flow-typed */ declare module 'babel-plugin-istanbul' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module 'babel-plugin-istanbul/lib/index' { declare module.exports: any; } // Filename aliases declare module 'babel-plugin-istanbul/lib/index.js' { declare module.exports: $Exports<'babel-plugin-istanbul/lib/index'>; }
module.exports = { // purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'], darkMode: false, // or 'media' or 'class' theme: { extend: { colors: { githubTheme: { blue100: "#52A8F2", blue200:"#2561D9", blue300:"#26358C", black: "#1D2126", green: "#327330", yellow : "#FFD600" } } }, }, variants: { extend: {}, }, plugins: [], }
/* @echo header */ var // dictionary _locale = { fr: 'fr_FR', en: 'en_US' }, // default params _params = { app_id: '', status: true, cookie: true, xfbml: true, statusConnected: null, statusNotConnected: null, permissions: '' }, _userSession = null, _userDetails = null, _userLikes = null, _getUserDetails = function (callback) { $.ajax({ url: 'https://graph.facebook.com/' + _userSession.userID, dataType: 'json', data: 'accessToken=' + _userSession.accessToken + '&callback=?', success: function(data, textStatus, jqXHR) { _userDetails = data; if (callback) { callback(data); } }, error: function(jqXHR, textStatus, errorThrown) { throw kafe.error(new Error(errorThrown)); //Return public details instead?... } }); }, _handleResponse = function (response) { if (response.status == 'connected' && !!_params.init.statusConnected) { _userSession = response.authResponse; _getUserDetails(function(user) { _params.init.statusConnected(user); }); } else if (!!_params.init.statusNotConnected) { _userSession = null; _params.init.statusNotConnected(); } } ; // init Fb SDK $(function(){ if (!$('#fb-root').length) { $('body').append('<div id="fb-root"></div>'); (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.async = true; js.src = '//connect.facebook.net/' + _locale[kafe.env.lang] + '/all.js#xfbml=1'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); } }); /** * ### Version <!-- @echo VERSION --> * Extra methods for the Facebook API. * * @module <!-- @echo MODULE --> * @class <!-- @echo NAME_FULL --> */ var facebook = {}; /** * Set default facebook params. * * @method setParams * @param {Object} options Options * @param {String} [options.app_id] Application ID * @param {Boolean} [options.status=true] Fetch fresh status * @param {Boolean} [options.cookie=true] Enable cookie support * @param {Boolean} [options.xfbml=true] Parse XFBML tags * @param {String} [options.permissions] Comma separated list of Extended permissions * @param {Function} [options.statusConnected] Callback if user connected * @param {Function} [options.statusNotConnected] Callback if user is not connected */ facebook.setParams = function() { $.extend(_params, arguments[0]); }; /** * Get the default params with optional extra params. * * @method getParams * @param {Object} [options] Options * @return {Object} The default facebook params. */ facebook.getParams = function() { return $.extend({}, _params, arguments[0]); }; /** * Initialize the Facebook API. * * @method init * @param {Object} [options] Options */ facebook.init = function() { var p = facebook.getParams(arguments[0]); if (p.app_id) { global.fbAsyncInit = function() { // Starts a relation with the Facebook app. FB.init({ appId: p.app_id, status: p.status, // check login status cookie: p.cookie, // enable cookies to allow the server to access the session xfbml: p.xfbml // parse XFBML }); // Listen to status changes to apply layout changes accordingly. FB.Event.subscribe('auth.statusChange', _handleResponse); // Apply immediate layout changes depending of user login status. FB.getLoginStatus(_handleResponse); }; } else { throw kafe.error(new Error('Facebook requires an app_id to be initiated.')); } }; /** * Open the login dialog. * * @method login * @param {Object} [options] Options * @param {Function} [callback] Callback on success */ facebook.login = function(options,callback) { var p = facebook.getParams(options); FB.login(function(response) { if (response.authResponse) { if (callback) { callback(response); } } }, {scope: p.permissions}); }; /** * Logs the user out. * * @method logout * @param {Function} [callback] Callback */ facebook.logout = function(callback) { FB.logout(callback); }; /** * Get the session. * * @method getSession * @return {Object} Session object or null if not logged */ facebook.getSession = function() { return _userSession; }; /** * Get the user details. * * @method getUser * @return {Object} User details or null if not logged */ facebook.getUser = function() { return _userDetails; }; /** * Get if user likes an item. * * @method checkUserLike * @param {String} id A likable facebook item id (page, application, etc.) * @return {Boolean} If user likes the item */ facebook.checkUserLike = function(id) { $.ajax({ url: 'https://graph.facebook.com/' + _userSession.userID + '/likes', dataType: 'json', data: 'accessToken=' + _userSession.accessToken + '&callback=?', success: function(data, textStatus, jqXHR) { var _found = false; $.each(data.data, function(i, val) { if (val.id == id) { _found = true; return false; } }); return _found; }, error: function(jqXHR, textStatus, errorThrown) { throw kafe.error(new Error(errorThrown)); //Return public details instead?... } }); }; return facebook; /* @echo footer */
/* eslint-disable no-new, no-plusplus, object-curly-spacing, prefer-const, semi */ /* global IssuableContext */ /* global LabelsSelect */ //= require lib/utils/type_utility //= require jquery //= require bootstrap //= require gl_dropdown //= require select2 //= require jquery.nicescroll //= require api //= require create_label //= require issuable_context //= require users_select //= require labels_select (() => { let saveLabelCount = 0; describe('Issue dropdown sidebar', () => { preloadFixtures('static/issue_sidebar_label.html.raw'); beforeEach(() => { loadFixtures('static/issue_sidebar_label.html.raw'); new IssuableContext('{"id":1,"name":"Administrator","username":"root"}'); new LabelsSelect(); spyOn(jQuery, 'ajax').and.callFake((req) => { const d = $.Deferred(); let LABELS_DATA = [] if (req.url === '/root/test/labels.json') { for (let i = 0; i < 10; i++) { LABELS_DATA.push({id: i, title: `test ${i}`, color: '#5CB85C'}); } } else if (req.url === '/root/test/issues/2.json') { let tmp = [] for (let i = 0; i < saveLabelCount; i++) { tmp.push({id: i, title: `test ${i}`, color: '#5CB85C'}); } LABELS_DATA = {labels: tmp}; } d.resolve(LABELS_DATA); return d.promise(); }); }); it('changes collapsed tooltip when changing labels when less than 5', (done) => { saveLabelCount = 5; $('.edit-link').get(0).click(); setTimeout(() => { expect($('.dropdown-content a').length).toBe(10); $('.dropdown-content a').each(function (i) { if (i < saveLabelCount) { $(this).get(0).click(); } }); $('.edit-link').get(0).click(); setTimeout(() => { expect($('.sidebar-collapsed-icon').attr('data-original-title')).toBe('test 0, test 1, test 2, test 3, test 4'); done(); }, 0); }, 0); }); it('changes collapsed tooltip when changing labels when more than 5', (done) => { saveLabelCount = 6; $('.edit-link').get(0).click(); setTimeout(() => { expect($('.dropdown-content a').length).toBe(10); $('.dropdown-content a').each(function (i) { if (i < saveLabelCount) { $(this).get(0).click(); } }); $('.edit-link').get(0).click(); setTimeout(() => { expect($('.sidebar-collapsed-icon').attr('data-original-title')).toBe('test 0, test 1, test 2, test 3, test 4, and 1 more'); done(); }, 0); }, 0); }); }); })();
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('@angular/core'), require('@angular/common')) : typeof define === 'function' && define.amd ? define('ng9-odometer', ['exports', 'lodash', '@angular/core', '@angular/common'], factory) : (global = global || self, factory(global['ng9-odometer'] = {}, global.lodash, global.ng.core, global.ng.common)); }(this, (function (exports, lodash, core, common) { 'use strict'; var Ng9OdometerConfig = /** @class */ (function () { function Ng9OdometerConfig() { this.animation = 'slide'; this.format = '(,ddd)'; this.theme = 'default'; this.value = 0; this.duration = 2000; this.auto = true; } return Ng9OdometerConfig; }()); ///<reference path="odometer.d.ts" /> var _c0 = ["container"]; // HubSpot's Oodometer // https://github.com/HubSpot/odometer var Odometer = require('odometer'); var Ng9OdometerComponent = /** @class */ (function () { function Ng9OdometerComponent() { this.config = {}; this.observable = undefined; // Individual configuration attributes this.animation = undefined; this.format = undefined; this.theme = undefined; this.value = undefined; this.duration = undefined; this.auto = undefined; // Available themes this.themes = [ 'car', 'default', 'digital', 'minimal', 'plaza', 'slot-machine', 'train-station' ]; } // Start Odometer Ng9OdometerComponent.prototype.initOdometer = function () { if (!lodash.isUndefined(this.container) && typeof Odometer !== 'undefined') { this.odometer = new Odometer({ el: this.container.nativeElement, animation: this.config.animation, value: this.config.value, duration: this.config.duration, format: this.config.format, theme: this.config.theme, }); if (!lodash.isUndefined(this.number) && this.config.auto) { this.odometer.update(this.number); } } }; Ng9OdometerComponent.prototype.initConfig = function () { this.config = lodash.defaults(this.config, new Ng9OdometerConfig()); // Animation if (!lodash.isUndefined(this.animation)) { this.config.animation = this.animation; } // Format if (!lodash.isUndefined(this.format)) { this.config.format = this.format; } // Theme if (!lodash.isUndefined(this.theme)) { this.config.theme = !lodash.includes(this.themes, this.theme) ? 'default' : this.theme; } // Value if (!lodash.isUndefined(this.value)) { this.config.value = this.value; } // Duration if (!lodash.isUndefined(this.duration)) { this.config.duration = this.duration; } // Auto if (!lodash.isUndefined(this.auto)) { this.config.auto = this.auto; } // Validate theme. If not part of the // available themes array, use the default if (!lodash.includes(this.themes, this.config.theme)) { this.config.theme = 'default'; } }; // *************************************** // LIFECYCLES // *************************************** Ng9OdometerComponent.prototype.ngOnInit = function () { var _this = this; // Bind Observable if (!lodash.isUndefined(this.observable) && !this.config.auto) { this.subscription = this.observable.subscribe(function (trigger) { if (!lodash.isUndefined(trigger) && trigger) { _this.odometer.update(_this.number); } }); } // Apply defaults and // individual configurations this.initConfig(); }; Ng9OdometerComponent.prototype.ngOnDestroy = function () { if (!lodash.isUndefined(this.subscription)) { this.subscription.unsubscribe(); } }; Ng9OdometerComponent.prototype.ngOnChanges = function () { if (!lodash.isUndefined(this.number) && !lodash.isUndefined(this.odometer) && this.config.auto) { this.odometer.update(this.number); } }; Ng9OdometerComponent.prototype.ngAfterViewInit = function () { this.initOdometer(); }; Ng9OdometerComponent.ɵfac = function Ng9OdometerComponent_Factory(t) { return new (t || Ng9OdometerComponent)(); }; Ng9OdometerComponent.ɵcmp = core["ɵɵdefineComponent"]({ type: Ng9OdometerComponent, selectors: [["ng9-odometer"]], viewQuery: function Ng9OdometerComponent_Query(rf, ctx) { if (rf & 1) { core["ɵɵviewQuery"](_c0, true, core.ElementRef); } if (rf & 2) { var _t; core["ɵɵqueryRefresh"](_t = core["ɵɵloadQuery"]()) && (ctx.container = _t.first); } }, inputs: { number: "number", config: "config", observable: "observable", animation: "animation", format: "format", theme: "theme", value: "value", duration: "duration", auto: "auto" }, features: [core["ɵɵNgOnChangesFeature"]()], decls: 2, vars: 0, consts: [["container", ""]], template: function Ng9OdometerComponent_Template(rf, ctx) { if (rf & 1) { core["ɵɵelement"](0, "div", null, 0); } }, styles: ["@import url(//fonts.googleapis.com/css?family=Arimo);.odometer.odometer-auto-theme,.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-car,.odometer.odometer-theme-car .odometer-digit{display:inline-block;vertical-align:middle;position:relative}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer,.odometer.odometer-theme-car .odometer-digit .odometer-digit-spacer{display:inline-block;vertical-align:middle;visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-car .odometer-digit .odometer-digit-inner{text-align:left;display:block;position:absolute;top:0;right:0;bottom:0;overflow:hidden;left:.15em}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon,.odometer.odometer-theme-car .odometer-digit .odometer-ribbon{display:block}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner,.odometer.odometer-theme-car .odometer-digit .odometer-ribbon-inner{display:block;-webkit-backface-visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-value,.odometer.odometer-theme-car .odometer-digit .odometer-value{display:block;-webkit-transform:translateZ(0)}.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-car .odometer-digit .odometer-value.odometer-last-value{position:absolute}.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-car.odometer-animating-up .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s,-webkit-transform 2s}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-car.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-theme-car.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-car.odometer-animating-down.odometer-animating .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s,-webkit-transform 2s;-webkit-transform:translateY(0);transform:translateY(0)}.odometer.odometer-auto-theme,.odometer.odometer-theme-car{border-radius:.34em;font-family:Arimo,monospace;padding:.15em;background:#a7a6ab;color:#a7a6ab}.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-car .odometer-digit{box-shadow:inset 0 0 0 #000;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzMzMzMzMyIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjMzMzMzMzIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiMxMDEwMTAiLz48c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iIzMzMzMzMyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzMzMzMzMyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(#333),color-stop(40%,#333),color-stop(60%,#101010),color-stop(80%,#333),to(#333));background-image:linear-gradient(to bottom,#333 0,#333 40%,#101010 60%,#333 80%,#333 100%);padding:0 .15em}.odometer.odometer-auto-theme .odometer-digit:first-child,.odometer.odometer-theme-car .odometer-digit:first-child{border-radius:.2em 0 0 .2em}.odometer.odometer-auto-theme .odometer-digit:last-child,.odometer.odometer-theme-car .odometer-digit:last-child{border-radius:0 .2em .2em 0;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VlZTBkMyIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjZWVlMGQzIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiNiYmFhOWEiLz48c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iI2VlZTBkMyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2VlZTBkMyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(#eee0d3),color-stop(40%,#eee0d3),color-stop(60%,#bbaa9a),color-stop(80%,#eee0d3),to(#eee0d3));background-image:linear-gradient(to bottom,#eee0d3 0,#eee0d3 40%,#bbaa9a 60%,#eee0d3 80%,#eee0d3 100%);background-color:#eee0d3;color:#000}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-car.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-car.odometer-animating-up .odometer-ribbon-inner{-webkit-transition-timing-function:linear;transition-timing-function:linear}", ".odometer.odometer-auto-theme,.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-default,.odometer.odometer-theme-default .odometer-digit{display:inline-block;vertical-align:middle;position:relative}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer,.odometer.odometer-theme-default .odometer-digit .odometer-digit-spacer{display:inline-block;vertical-align:middle;visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-default .odometer-digit .odometer-digit-inner{text-align:left;display:block;position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon,.odometer.odometer-theme-default .odometer-digit .odometer-ribbon{display:block}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner,.odometer.odometer-theme-default .odometer-digit .odometer-ribbon-inner{display:block;-webkit-backface-visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-value,.odometer.odometer-theme-default .odometer-digit .odometer-value{display:block;-webkit-transform:translateZ(0)}.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-default .odometer-digit .odometer-value.odometer-last-value{position:absolute}.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-default.odometer-animating-up .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s!important;transition:transform 2s;transition:transform 2s,-webkit-transform 2s}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-default.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-theme-default.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-default.odometer-animating-down.odometer-animating .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s;-webkit-transform:translateY(0);transform:translateY(0)}.odometer.odometer-auto-theme,.odometer.odometer-theme-default{font-family:\"Helvetica Neue\",sans-serif;line-height:1.1em}.odometer.odometer-auto-theme .odometer-value,.odometer.odometer-theme-default .odometer-value{text-align:center}", "@import url(//fonts.googleapis.com/css?family=Wallpoet);.odometer.odometer-auto-theme,.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-digital,.odometer.odometer-theme-digital .odometer-digit{display:inline-block;vertical-align:middle;position:relative}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer,.odometer.odometer-theme-digital .odometer-digit .odometer-digit-spacer{display:inline-block;vertical-align:middle;visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-digital .odometer-digit .odometer-digit-inner{text-align:left;display:block;position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon,.odometer.odometer-theme-digital .odometer-digit .odometer-ribbon{display:block}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner,.odometer.odometer-theme-digital .odometer-digit .odometer-ribbon-inner{display:block;-webkit-backface-visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-value,.odometer.odometer-theme-digital .odometer-digit .odometer-value{display:block;-webkit-transform:translateZ(0)}.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-digital .odometer-digit .odometer-value.odometer-last-value{position:absolute}.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-digital.odometer-animating-up .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-digital.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-theme-digital.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-digital.odometer-animating-down.odometer-animating .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s;-webkit-transform:translateY(0);transform:translateY(0)}.odometer.odometer-auto-theme,.odometer.odometer-theme-digital{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzhiZjVhNSIgc3RvcC1vcGFjaXR5PSIwLjQiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiLz48L3JhZGlhbEdyYWRpZW50PjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA=);background-size:100%;background-image:radial-gradient(rgba(139,245,165,.4),#000);background-color:#000;font-family:Wallpoet,monospace;padding:0 .2em;line-height:1.1em;color:#8bf5a5}.odometer.odometer-auto-theme .odometer-digit+.odometer-digit,.odometer.odometer-theme-digital .odometer-digit+.odometer-digit{margin-left:.1em}", ".odometer.odometer-auto-theme,.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-minimal,.odometer.odometer-theme-minimal .odometer-digit{display:inline-block;vertical-align:middle;position:relative}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer,.odometer.odometer-theme-minimal .odometer-digit .odometer-digit-spacer{display:inline-block;vertical-align:middle;visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-minimal .odometer-digit .odometer-digit-inner{text-align:left;display:block;position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon,.odometer.odometer-theme-minimal .odometer-digit .odometer-ribbon{display:block}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner,.odometer.odometer-theme-minimal .odometer-digit .odometer-ribbon-inner{display:block;-webkit-backface-visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-value,.odometer.odometer-theme-minimal .odometer-digit .odometer-value{display:block;-webkit-transform:translateZ(0)}.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-minimal .odometer-digit .odometer-value.odometer-last-value{position:absolute}.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-minimal.odometer-animating-up .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-minimal.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-theme-minimal.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-minimal.odometer-animating-down.odometer-animating .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s;-webkit-transform:translateY(0);transform:translateY(0)}", ".odometer.odometer-auto-theme,.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-plaza,.odometer.odometer-theme-plaza .odometer-digit{display:inline-block;vertical-align:middle;position:relative}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer,.odometer.odometer-theme-plaza .odometer-digit .odometer-digit-spacer{display:inline-block;vertical-align:middle;visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-plaza .odometer-digit .odometer-digit-inner{text-align:left;display:block;position:absolute;top:0;right:0;bottom:0;overflow:hidden;left:.03em}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon,.odometer.odometer-theme-plaza .odometer-digit .odometer-ribbon{display:block}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner,.odometer.odometer-theme-plaza .odometer-digit .odometer-ribbon-inner{display:block;-webkit-backface-visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-value,.odometer.odometer-theme-plaza .odometer-digit .odometer-value{display:block;-webkit-transform:translateZ(0)}.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-plaza .odometer-digit .odometer-value.odometer-last-value{position:absolute}.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-plaza.odometer-animating-up .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-plaza.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-theme-plaza.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-plaza.odometer-animating-down.odometer-animating .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s;-webkit-transform:translateY(0);transform:translateY(0)}.odometer.odometer-auto-theme,.odometer.odometer-theme-plaza{border-radius:.15em;background-color:#f0f8ff;font-family:\"Helvetica Neue\",sans-serif;font-weight:100;padding:0 .12em;line-height:1.2em;font-size:1.2em;background-size:16px 16px}.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-plaza .odometer-digit{border-radius:.1em;padding:0 .03em;color:#648baf}", "@import url(//fonts.googleapis.com/css?family=Rye);.odometer.odometer-auto-theme,.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-slot-machine,.odometer.odometer-theme-slot-machine .odometer-digit{display:inline-block;vertical-align:middle;position:relative}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-digit-spacer{display:inline-block;vertical-align:middle;visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-digit-inner{display:block;position:absolute;top:0;bottom:0;overflow:hidden;padding-top:.08em}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-ribbon{display:block}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-ribbon-inner{display:block;-webkit-backface-visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-value,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-value{display:block;-webkit-transform:translateZ(0)}.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-value.odometer-last-value{position:absolute}.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-slot-machine.odometer-animating-up .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-slot-machine.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-theme-slot-machine.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-slot-machine.odometer-animating-down.odometer-animating .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s;-webkit-transform:translateY(0);transform:translateY(0)}.odometer.odometer-auto-theme,.odometer.odometer-theme-slot-machine{border-radius:.34em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmYwMCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmYTUwMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(#ff0),to(orange));background-image:linear-gradient(#ff0,orange);background-color:#fc0;font-family:Rye,monospace;padding:.15em;color:#f80000;line-height:1.35em;border:.03em solid #000;-webkit-text-stroke:.05em #000}.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-slot-machine .odometer-digit{box-shadow:inset 0 0 .1em rgba(0,0,0,.5),0 0 0 .03em #fff,0 0 0 .05em rgba(0,0,0,.2);border-radius:.2em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NjY2NjYyIvPjxzdG9wIG9mZnNldD0iMjAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIi8+PHN0b3Agb2Zmc2V0PSI4MCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNjY2NjY2MiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA=);background-size:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(#ccc),color-stop(20%,#fff),color-stop(80%,#fff),to(#ccc));background-image:linear-gradient(to bottom,#ccc 0,#fff 20%,#fff 80%,#ccc 100%);border:.03em solid #444;padding:.1em .15em 0}.odometer.odometer-auto-theme .odometer-digit:first-child,.odometer.odometer-theme-slot-machine .odometer-digit:first-child{box-shadow:inset .05em 0 .1em rgba(0,0,0,.5),0 0 0 .03em #fff,0 0 0 .05em rgba(0,0,0,.2)}.odometer.odometer-auto-theme .odometer-digit:last-child,.odometer.odometer-theme-slot-machine .odometer-digit:last-child{box-shadow:inset -.05em 0 .1em rgba(0,0,0,.5),0 0 0 .03em #fff,0 0 0 .05em rgba(0,0,0,.2)}.odometer.odometer-auto-theme .odometer-digit+.odometer-digit,.odometer.odometer-theme-slot-machine .odometer-digit+.odometer-digit{margin-left:.15em}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-slot-machine .odometer-digit .odometer-value.odometer-last-value{left:0;right:0;text-align:center}", "@import url(//fonts.googleapis.com/css?family=Economica);.odometer.odometer-auto-theme,.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-train-station,.odometer.odometer-theme-train-station .odometer-digit{display:inline-block;vertical-align:middle;position:relative}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-spacer,.odometer.odometer-theme-train-station .odometer-digit .odometer-digit-spacer{display:inline-block;vertical-align:middle;visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-digit-inner,.odometer.odometer-theme-train-station .odometer-digit .odometer-digit-inner{text-align:left;display:block;position:absolute;top:0;right:0;bottom:0;overflow:hidden;left:.15em}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon,.odometer.odometer-theme-train-station .odometer-digit .odometer-ribbon{display:block}.odometer.odometer-auto-theme .odometer-digit .odometer-ribbon-inner,.odometer.odometer-theme-train-station .odometer-digit .odometer-ribbon-inner{display:block;-webkit-backface-visibility:hidden}.odometer.odometer-auto-theme .odometer-digit .odometer-value,.odometer.odometer-theme-train-station .odometer-digit .odometer-value{display:block;-webkit-transform:translateZ(0)}.odometer.odometer-auto-theme .odometer-digit .odometer-value.odometer-last-value,.odometer.odometer-theme-train-station .odometer-digit .odometer-value.odometer-last-value{position:absolute}.odometer.odometer-auto-theme.odometer-animating-up .odometer-ribbon-inner,.odometer.odometer-theme-train-station.odometer-animating-up .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-auto-theme.odometer-animating-up.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-train-station.odometer-animating-down .odometer-ribbon-inner,.odometer.odometer-theme-train-station.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down.odometer-animating .odometer-ribbon-inner,.odometer.odometer-theme-train-station.odometer-animating-down.odometer-animating .odometer-ribbon-inner{-webkit-transition:-webkit-transform 2s;transition:transform 2s;transition:transform 2s,-webkit-transform 2s;-webkit-transform:translateY(0);transform:translateY(0)}.odometer.odometer-auto-theme,.odometer.odometer-theme-train-station{font-family:Economica,sans-serif}.odometer.odometer-auto-theme .odometer-digit,.odometer.odometer-theme-train-station .odometer-digit{display:inline-block;vertical-align:middle;border-radius:.1em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzExMTExMSIvPjxzdG9wIG9mZnNldD0iMzUlIiBzdG9wLWNvbG9yPSIjMTExMTExIi8+PHN0b3Agb2Zmc2V0PSI1NSUiIHN0b3AtY29sb3I9IiMzMzMzMzMiLz48c3RvcCBvZmZzZXQ9IjU1JSIgc3RvcC1jb2xvcj0iIzExMTExMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzExMTExMSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==);background-size:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(#111),color-stop(35%,#111),color-stop(55%,#333),color-stop(55%,#111),to(#111));background-image:linear-gradient(to bottom,#111 0,#111 35%,#333 55%,#111 55%,#111 100%);background-color:#222;padding:0 .15em;color:#fff}.odometer.odometer-auto-theme .odometer-digit+.odometer-digit,.odometer.odometer-theme-train-station .odometer-digit+.odometer-digit{margin-left:.1em}", ".npm-digit,.odometer,.odometer-digit-inner,.odometer-digit-spacer,.odometer-formatting-mark,.odometer-inside,.odometer-ribbon,.odometer-ribbon-inner,.odometer-value{color:inherit;font-size:inherit;font-family:inherit}"], encapsulation: 2 }); return Ng9OdometerComponent; }()); /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](Ng9OdometerComponent, [{ type: core.Component, args: [{ selector: 'ng9-odometer', encapsulation: core.ViewEncapsulation.None, styleUrls: [ 'themes/CAR_THEME.css', 'themes/DEFAULT_THEME.css', 'themes/DIGITAL_THEME.css', 'themes/MINIMAL_THEME.css', 'themes/PLAZA_THEME.css', 'themes/SLOT_MACHINE_THEME.css', 'themes/TRAIN_STATION_THEME.css', 'ng9-odometer.component.css' ], template: "<div #container></div>" }] }], null, { container: [{ type: core.ViewChild, args: ['container', { read: core.ElementRef }] }], number: [{ type: core.Input }], config: [{ type: core.Input }], observable: [{ type: core.Input }], animation: [{ type: core.Input }], format: [{ type: core.Input }], theme: [{ type: core.Input }], value: [{ type: core.Input }], duration: [{ type: core.Input }], auto: [{ type: core.Input }] }); })(); /** * Created by Jose Andres on 02.23.17 */ var Ng9OdometerModule = /** @class */ (function () { function Ng9OdometerModule() { } Ng9OdometerModule.forRoot = function () { return { ngModule: Ng9OdometerModule }; }; Ng9OdometerModule.ɵmod = core["ɵɵdefineNgModule"]({ type: Ng9OdometerModule }); Ng9OdometerModule.ɵinj = core["ɵɵdefineInjector"]({ factory: function Ng9OdometerModule_Factory(t) { return new (t || Ng9OdometerModule)(); }, imports: [[common.CommonModule]] }); return Ng9OdometerModule; }()); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && core["ɵɵsetNgModuleScope"](Ng9OdometerModule, { declarations: [Ng9OdometerComponent], imports: [common.CommonModule], exports: [Ng9OdometerComponent] }); })(); /*@__PURE__*/ (function () { core["ɵsetClassMetadata"](Ng9OdometerModule, [{ type: core.NgModule, args: [{ imports: [common.CommonModule], declarations: [Ng9OdometerComponent], exports: [Ng9OdometerComponent] }] }], null, null); })(); exports.Ng9OdometerComponent = Ng9OdometerComponent; exports.Ng9OdometerModule = Ng9OdometerModule; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=ng9-odometer.umd.js.map
export function initialize(application) { application.inject('route', 'segment', 'service:segment'); } export default { name: 'segment', initialize };
!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=t.length,i=J.type(t);return"function"===i||J.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t}function n(t,e,i){if(J.isFunction(e))return J.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return J.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(at.test(e))return J.filter(e,t,i);e=J.filter(e,t)}return J.grep(t,function(t){return Y.call(e,t)>=0!==i})}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function s(t){var e=dt[t]={};return J.each(t.match(pt)||[],function(t,i){e[i]=!0}),e}function o(){Q.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),J.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+Math.random()}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(bt,"-$1").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:yt.test(i)?J.parseJSON(i):i}catch(r){}_t.set(t,e,i)}else i=void 0;return i}function u(){return!0}function $(){return!1}function c(){try{return Q.activeElement}catch(t){}}function h(t,e){return J.nodeName(t,"table")&&J.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function f(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function p(t){var e=Ft.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function d(t,e){for(var i=0,n=t.length;n>i;i++)vt.set(t[i],"globalEval",!e||vt.get(e[i],"globalEval"))}function g(t,e){var i,n,r,s,o,a,l,u;if(1===e.nodeType){if(vt.hasData(t)&&(s=vt.access(t),o=vt.set(e,s),u=s.events)){delete o.handle,o.events={};for(r in u)for(i=0,n=u[r].length;n>i;i++)J.event.add(e,r,u[r][i])}_t.hasData(t)&&(a=_t.access(t),l=J.extend({},a),_t.set(e,l))}}function m(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&J.nodeName(t,e)?J.merge([t],i):i}function v(t,e){var i=e.nodeName.toLowerCase();"input"===i&&kt.test(t.type)?e.checked=t.checked:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}function _(e,i){var n,r=J(i.createElement(e)).appendTo(i.body),s=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(r[0]))?n.display:J.css(r[0],"display");return r.detach(),s}function y(t){var e=Q,i=qt[t];return i||(i=_(t,e),"none"!==i&&i||(It=(It||J("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=It[0].contentDocument,e.write(),e.close(),i=_(t,e),It.detach()),qt[t]=i),i}function b(t,e,i){var n,r,s,o,a=t.style;return i=i||Ht(t),i&&(o=i.getPropertyValue(e)||i[e]),i&&(""!==o||J.contains(t.ownerDocument,t)||(o=J.style(t,e)),$t.test(o)&&Bt.test(e)&&(n=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function x(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function w(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,r=Vt.length;r--;)if(e=Vt[r]+i,e in t)return e;return n}function T(t,e,i){var n=Wt.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function k(t,e,i,n,r){for(var s=i===(n?"border":"content")?4:"width"===e?1:0,o=0;4>s;s+=2)"margin"===i&&(o+=J.css(t,i+wt[s],!0,r)),n?("content"===i&&(o-=J.css(t,"padding"+wt[s],!0,r)),"margin"!==i&&(o-=J.css(t,"border"+wt[s]+"Width",!0,r))):(o+=J.css(t,"padding"+wt[s],!0,r),"padding"!==i&&(o+=J.css(t,"border"+wt[s]+"Width",!0,r)));return o}function C(t,e,i){var n=!0,r="width"===e?t.offsetWidth:t.offsetHeight,s=Ht(t),o="border-box"===J.css(t,"boxSizing",!1,s);if(0>=r||null==r){if(r=b(t,e,s),(0>r||null==r)&&(r=t.style[e]),$t.test(r))return r;n=o&&(Z.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+k(t,e,i||(o?"border":"content"),n,s)+"px"}function S(t,e){for(var i,n,r,s=[],o=0,a=t.length;a>o;o++)n=t[o],n.style&&(s[o]=vt.get(n,"olddisplay"),i=n.style.display,e?(s[o]||"none"!==i||(n.style.display=""),""===n.style.display&&Tt(n)&&(s[o]=vt.access(n,"olddisplay",y(n.nodeName)))):(r=Tt(n),"none"===i&&r||vt.set(n,"olddisplay",r?i:J.css(n,"display"))));for(o=0;a>o;o++)n=t[o],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?s[o]||"":"none"));return t}function P(t,e,i,n,r){return new P.prototype.init(t,e,i,n,r)}function A(){return setTimeout(function(){Zt=void 0}),Zt=J.now()}function E(t,e){var i,n=0,r={height:t};for(e=e?1:0;4>n;n+=2-e)i=wt[n],r["margin"+i]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function N(t,e,i){for(var n,r=(ie[e]||[]).concat(ie["*"]),s=0,o=r.length;o>s;s++)if(n=r[s].call(i,e,t))return n}function R(t,e,i){var n,r,s,o,a,l,u,c,h=this,f={},p=t.style,d=t.nodeType&&Tt(t),g=vt.get(t,"fxshow");i.queue||(a=J._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,J.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],u=J.css(t,"display"),c="none"===u?vt.get(t,"olddisplay")||y(t.nodeName):u,"inline"===c&&"none"===J.css(t,"float")&&(p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(n in e)if(r=e[n],Kt.exec(r)){if(delete e[n],s=s||"toggle"===r,r===(d?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;d=!0}f[n]=g&&g[n]||J.style(t,n)}else u=void 0;if(J.isEmptyObject(f))"inline"===("none"===u?y(t.nodeName):u)&&(p.display=u);else{g?"hidden"in g&&(d=g.hidden):g=vt.access(t,"fxshow",{}),s&&(g.hidden=!d),d?J(t).show():h.done(function(){J(t).hide()}),h.done(function(){var e;vt.remove(t,"fxshow");for(e in f)J.style(t,e,f[e])});for(n in f)o=N(d?g[n]:0,n,h),n in g||(g[n]=o.start,d&&(o.end=o.start,o.start="width"===n||"height"===n?1:0))}}function O(t,e){var i,n,r,s,o;for(i in t)if(n=J.camelCase(i),r=e[n],s=t[i],J.isArray(s)&&(r=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),o=J.cssHooks[n],o&&"expand"in o){s=o.expand(s),delete t[n];for(i in s)i in t||(t[i]=s[i],e[i]=r)}else e[n]=r}function D(t,e,i){var n,r,s=0,o=ee.length,a=J.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Zt||A(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,s=1-n,o=0,l=u.tweens.length;l>o;o++)u.tweens[o].run(s);return a.notifyWith(t,[u,s,i]),1>s&&l?i:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:J.extend({},e),opts:J.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Zt||A(),duration:i.duration,tweens:[],createTween:function(e,i){var n=J.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)u.tweens[i].run(1);return e?a.resolveWith(t,[u,e]):a.rejectWith(t,[u,e]),this}}),c=u.props;for(O(c,u.opts.specialEasing);o>s;s++)if(n=ee[s].call(u,t,c,u.opts))return n;return J.map(c,N,u),J.isFunction(u.opts.start)&&u.opts.start.call(t,u),J.fx.timer(J.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function L(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,s=e.toLowerCase().match(pt)||[];if(J.isFunction(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function M(t,e,i,n){function r(a){var l;return s[a]=!0,J.each(t[a]||[],function(t,a){var u=a(e,i,n);return"string"!=typeof u||o||s[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var s={},o=t===xe;return r(e.dataTypes[0])||!s["*"]&&r("*")}function F(t,e){var i,n,r=J.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&J.extend(!0,t,n),t}function z(t,e,i){for(var n,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}return s?(s!==l[0]&&l.unshift(s),i[s]):void 0}function j(t,e,i,n){var r,s,o,a,l,u={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=c.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(o=u[l+" "+s]||u["* "+s],!o)for(r in u)if(a=r.split(" "),a[1]===s&&(o=u[l+" "+a[0]]||u["* "+a[0]])){o===!0?o=u[r]:u[r]!==!0&&(s=a[0],c.unshift(a[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function I(t,e,i,n){var r;if(J.isArray(e))J.each(e,function(e,r){i||Ce.test(t)?n(t,r):I(t+"["+("object"==typeof r?e:"")+"]",r,i,n)});else if(i||"object"!==J.type(e))n(t,e);else for(r in e)I(t+"["+r+"]",e[r],i,n)}function q(t){return J.isWindow(t)?t:9===t.nodeType&&t.defaultView}var B=[],H=B.slice,X=B.concat,W=B.push,Y=B.indexOf,U={},G=U.toString,V=U.hasOwnProperty,Z={},Q=t.document,K="2.1.1",J=function(t,e){return new J.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,it=/-([\da-z])/gi,nt=function(t,e){return e.toUpperCase()};J.fn=J.prototype={jquery:K,constructor:J,selector:"",length:0,toArray:function(){return H.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:H.call(this)},pushStack:function(t){var e=J.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return J.each(this,t,e)},map:function(t){return this.pushStack(J.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(H.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:W,sort:B.sort,splice:B.splice},J.extend=J.fn.extend=function(){var t,e,i,n,r,s,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||J.isFunction(o)||(o={}),a===l&&(o=this,a--);l>a;a++)if(null!=(t=arguments[a]))for(e in t)i=o[e],n=t[e],o!==n&&(u&&n&&(J.isPlainObject(n)||(r=J.isArray(n)))?(r?(r=!1,s=i&&J.isArray(i)?i:[]):s=i&&J.isPlainObject(i)?i:{},o[e]=J.extend(u,s,n)):void 0!==n&&(o[e]=n));return o},J.extend({expando:"jQuery"+(K+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===J.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!J.isArray(t)&&t-parseFloat(t)>=0},isPlainObject:function(t){return"object"!==J.type(t)||t.nodeType||J.isWindow(t)?!1:t.constructor&&!V.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?U[G.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=J.trim(t),t&&(1===t.indexOf("use strict")?(e=Q.createElement("script"),e.text=t,Q.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,"ms-").replace(it,nt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r,s=0,o=t.length,a=i(t);if(n){if(a)for(;o>s&&(r=e.apply(t[s],n),r!==!1);s++);else for(s in t)if(r=e.apply(t[s],n),r===!1)break}else if(a)for(;o>s&&(r=e.call(t[s],s,t[s]),r!==!1);s++);else for(s in t)if(r=e.call(t[s],s,t[s]),r===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?J.merge(n,"string"==typeof t?[t]:t):W.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:Y.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;i>n;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n,r=[],s=0,o=t.length,a=!i;o>s;s++)n=!e(t[s],s),n!==a&&r.push(t[s]);return r},map:function(t,e,n){var r,s=0,o=t.length,a=i(t),l=[];if(a)for(;o>s;s++)r=e(t[s],s,n),null!=r&&l.push(r);else for(s in t)r=e(t[s],s,n),null!=r&&l.push(r);return X.apply([],l)},guid:1,proxy:function(t,e){var i,n,r;return"string"==typeof e&&(i=t[e],e=t,t=i),J.isFunction(t)?(n=H.call(arguments,2),r=function(){return t.apply(e||this,n.concat(H.call(arguments)))},r.guid=t.guid=t.guid||J.guid++,r):void 0},now:Date.now,support:Z}),J.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){U["[object "+e+"]"]=e.toLowerCase()});var rt=function(t){function e(t,e,i,n){var r,s,o,a,l,u,h,p,d,g;if((e?e.ownerDocument||e:q)!==O&&R(e),e=e||O,i=i||[],!t||"string"!=typeof t)return i;if(1!==(a=e.nodeType)&&9!==a)return[];if(L&&!n){if(r=_t.exec(t))if(o=r[1]){if(9===a){if(s=e.getElementById(o),!s||!s.parentNode)return i;if(s.id===o)return i.push(s),i}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(o))&&j(e,s)&&s.id===o)return i.push(s),i}else{if(r[2])return tt.apply(i,e.getElementsByTagName(t)),i;if((o=r[3])&&x.getElementsByClassName&&e.getElementsByClassName)return tt.apply(i,e.getElementsByClassName(o)),i}if(x.qsa&&(!M||!M.test(t))){if(p=h=I,d=e,g=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(u=C(t),(h=e.getAttribute("id"))?p=h.replace(bt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",l=u.length;l--;)u[l]=p+f(u[l]);d=yt.test(t)&&c(e.parentNode)||e,g=u.join(",")}if(g)try{return tt.apply(i,d.querySelectorAll(g)),i}catch(m){}finally{h||e.removeAttribute("id")}}}return P(t.replace(ut,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>w.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[I]=!0,t}function r(t){var e=O.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var i=t.split("|"),n=t.length;n--;)w.attrHandle[i[n]]=e}function o(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function u(t){return n(function(e){return e=+e,n(function(i,n){for(var r,s=t([],i.length,e),o=s.length;o--;)i[r=s[o]]&&(i[r]=!(n[r]=i[r]))})})}function c(t){return t&&typeof t.getElementsByTagName!==G&&t}function h(){}function f(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n}function p(t,e,i){var n=e.dir,r=i&&"parentNode"===n,s=H++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,s)}:function(e,i,o){var a,l,u=[B,s];if(o){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,o))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if(l=e[I]||(e[I]={}),(a=l[n])&&a[0]===B&&a[1]===s)return u[2]=a[2];if(l[n]=u,u[2]=t(e,i,o))return!0}}}function d(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function g(t,i,n){for(var r=0,s=i.length;s>r;r++)e(t,i[r],n);return n}function m(t,e,i,n,r){for(var s,o=[],a=0,l=t.length,u=null!=e;l>a;a++)(s=t[a])&&(!i||i(s,n,r))&&(o.push(s),u&&e.push(a));return o}function v(t,e,i,r,s,o){return r&&!r[I]&&(r=v(r)),s&&!s[I]&&(s=v(s,o)),n(function(n,o,a,l){var u,c,h,f=[],p=[],d=o.length,v=n||g(e||"*",a.nodeType?[a]:a,[]),_=!t||!n&&e?v:m(v,f,t,a,l),y=i?s||(n?t:d||r)?[]:o:_;if(i&&i(_,y,a,l),r)for(u=m(y,p),r(u,[],a,l),c=u.length;c--;)(h=u[c])&&(y[p[c]]=!(_[p[c]]=h));if(n){if(s||t){if(s){for(u=[],c=y.length;c--;)(h=y[c])&&u.push(_[c]=h);s(null,y=[],u,l)}for(c=y.length;c--;)(h=y[c])&&(u=s?it.call(n,h):f[c])>-1&&(n[u]=!(o[u]=h))}}else y=m(y===o?y.splice(d,y.length):y),s?s(null,o,y,l):tt.apply(o,y)})}function _(t){for(var e,i,n,r=t.length,s=w.relative[t[0].type],o=s||w.relative[" "],a=s?1:0,l=p(function(t){return t===e},o,!0),u=p(function(t){return it.call(e,t)>-1},o,!0),c=[function(t,i,n){return!s&&(n||i!==A)||((e=i).nodeType?l(t,i,n):u(t,i,n))}];r>a;a++)if(i=w.relative[t[a].type])c=[p(d(c),i)];else{if(i=w.filter[t[a].type].apply(null,t[a].matches),i[I]){for(n=++a;r>n&&!w.relative[t[n].type];n++);return v(a>1&&d(c),a>1&&f(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ut,"$1"),i,n>a&&_(t.slice(a,n)),r>n&&_(t=t.slice(n)),r>n&&f(t))}c.push(i)}return d(c)}function y(t,i){var r=i.length>0,s=t.length>0,o=function(n,o,a,l,u){var c,h,f,p=0,d="0",g=n&&[],v=[],_=A,y=n||s&&w.find.TAG("*",u),b=B+=null==_?1:Math.random()||.1,x=y.length;for(u&&(A=o!==O&&o);d!==x&&null!=(c=y[d]);d++){if(s&&c){for(h=0;f=t[h++];)if(f(c,o,a)){l.push(c);break}u&&(B=b)}r&&((c=!f&&c)&&p--,n&&g.push(c))}if(p+=d,r&&d!==p){for(h=0;f=i[h++];)f(g,v,o,a);if(n){if(p>0)for(;d--;)g[d]||v[d]||(v[d]=K.call(l));v=m(v)}tt.apply(l,v),u&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return u&&(B=b,A=_),g};return r?n(o):o}var b,x,w,T,k,C,S,P,A,E,N,R,O,D,L,M,F,z,j,I="sizzle"+-new Date,q=t.document,B=0,H=0,X=i(),W=i(),Y=i(),U=function(t,e){return t===e&&(N=!0),0},G="undefined",V=1<<31,Z={}.hasOwnProperty,Q=[],K=Q.pop,J=Q.push,tt=Q.push,et=Q.slice,it=Q.indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(this[e]===t)return e;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",rt="[\\x20\\t\\r\\n\\f]",st="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=st.replace("w","w#"),at="\\["+rt+"*("+st+")(?:"+rt+"*([*^$|!~]?=)"+rt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+rt+"*\\]",lt=":("+st+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",ut=new RegExp("^"+rt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+rt+"+$","g"),ct=new RegExp("^"+rt+"*,"+rt+"*"),ht=new RegExp("^"+rt+"*([>+~]|"+rt+")"+rt+"*"),ft=new RegExp("="+rt+"*([^\\]'\"]*?)"+rt+"*\\]","g"),pt=new RegExp(lt),dt=new RegExp("^"+ot+"$"),gt={ID:new RegExp("^#("+st+")"),CLASS:new RegExp("^\\.("+st+")"),TAG:new RegExp("^("+st.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+lt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+rt+"*(even|odd|(([+-]|)(\\d*)n|)"+rt+"*(?:([+-]|)"+rt+"*(\\d+)|))"+rt+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+rt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+rt+"*((?:-\\d)?\\d*)"+rt+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_t=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+rt+"?|("+rt+")|.)","ig"),wt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{tt.apply(Q=et.call(q.childNodes),q.childNodes),Q[q.childNodes.length].nodeType}catch(Tt){tt={apply:Q.length?function(t,e){J.apply(t,et.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}x=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},R=e.setDocument=function(t){var e,i=t?t.ownerDocument||t:q,n=i.defaultView;return i!==O&&9===i.nodeType&&i.documentElement?(O=i,D=i.documentElement,L=!k(i),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){R()},!1):n.attachEvent&&n.attachEvent("onunload",function(){R()})),x.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=r(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=$.test(i.getElementsByClassName)&&r(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),x.getById=r(function(t){return D.appendChild(t).id=I,!i.getElementsByName||!i.getElementsByName(I).length}),x.getById?(w.find.ID=function(t,e){if(typeof e.getElementById!==G&&L){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},w.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(xt,wt);return function(t){var i=typeof t.getAttributeNode!==G&&t.getAttributeNode("id");return i&&i.value===e}}),w.find.TAG=x.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==G?e.getElementsByTagName(t):void 0}:function(t,e){var i,n=[],r=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[r++];)1===i.nodeType&&n.push(i);return n}return s},w.find.CLASS=x.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==G&&L?e.getElementsByClassName(t):void 0},F=[],M=[],(x.qsa=$.test(i.querySelectorAll))&&(r(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&M.push("[*^$]="+rt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||M.push("\\["+rt+"*(?:value|"+nt+")"),t.querySelectorAll(":checked").length||M.push(":checked")}),r(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&M.push("name"+rt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),M.push(",.*:")})),(x.matchesSelector=$.test(z=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&r(function(t){x.disconnectedMatch=z.call(t,"div"),z.call(t,"[s!='']:x"),F.push("!=",lt)}),M=M.length&&new RegExp(M.join("|")),F=F.length&&new RegExp(F.join("|")),e=$.test(D.compareDocumentPosition),j=e||$.test(D.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},U=e?function(t,e){if(t===e)return N=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===q&&j(q,t)?-1:e===i||e.ownerDocument===q&&j(q,e)?1:E?it.call(E,t)-it.call(E,e):0:4&n?-1:1)}:function(t,e){if(t===e)return N=!0,0;var n,r=0,s=t.parentNode,a=e.parentNode,l=[t],u=[e];if(!s||!a)return t===i?-1:e===i?1:s?-1:a?1:E?it.call(E,t)-it.call(E,e):0;if(s===a)return o(t,e);for(n=t;n=n.parentNode;)l.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;l[r]===u[r];)r++;return r?o(l[r],u[r]):l[r]===q?-1:u[r]===q?1:0},i):O},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==O&&R(t),i=i.replace(ft,"='$1']"),!(!x.matchesSelector||!L||F&&F.test(i)||M&&M.test(i)))try{var n=z.call(t,i);if(n||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(r){}return e(i,O,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==O&&R(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==O&&R(t);var i=w.attrHandle[e.toLowerCase()],n=i&&Z.call(w.attrHandle,e.toLowerCase())?i(t,e,!L):void 0;return void 0!==n?n:x.attributes||!L?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(N=!x.detectDuplicates,E=!x.sortStable&&t.slice(0),t.sort(U),N){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return E=null,t},T=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=T(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=T(e);return i},w=e.selectors={cacheLength:50,createPseudo:n,match:gt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(xt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return gt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&pt.test(i)&&(e=C(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(xt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=X[t+" "];return e||(e=new RegExp("(^|"+rt+")"+t+"("+rt+"|$)"))&&X(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==G&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var s=e.attr(r,t);return null==s?"!="===i:i?(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&&0===s.indexOf(n):"*="===i?n&&s.indexOf(n)>-1:"$="===i?n&&s.slice(-n.length)===n:"~="===i?(" "+s+" ").indexOf(n)>-1:"|="===i?s===n||s.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(t,e,i,n,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,f,p,d,g=s!==o?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),_=!l&&!a;if(m){if(s){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&_){for(c=m[I]||(m[I]={}),u=c[t]||[],p=u[0]===B&&u[1],f=u[0]===B&&u[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(f=p=0)||d.pop();)if(1===h.nodeType&&++f&&h===e){c[t]=[B,p,f];break}}else if(_&&(u=(e[I]||(e[I]={}))[t])&&u[0]===B)f=u[1];else for(;(h=++p&&h&&h[g]||(f=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++f||(_&&((h[I]||(h[I]={}))[t]=[B,f]),h!==e)););return f-=r,f===n||f%n===0&&f/n>=0}}},PSEUDO:function(t,i){var r,s=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[I]?s(i):s.length>1?(r=[t,t,"",i],w.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=s(t,i),o=r.length;o--;)n=it.call(t,r[o]),t[n]=!(e[n]=r[o])}):function(t){return s(t,0,r)}):s}},pseudos:{not:n(function(t){var e=[],i=[],r=S(t.replace(ut,"$1"));return r[I]?n(function(t,e,i,n){for(var s,o=r(t,null,n,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,n,s){return e[0]=t,r(e,null,s,i),!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return function(e){return(e.textContent||e.innerText||T(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xt,wt).toLowerCase(),function(e){var i;do if(i=L?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===D},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return vt.test(t.nodeName)},input:function(t){return mt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[0>i?i+e:i]}),even:u(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:u(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:u(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:u(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n);return t})}},w.pseudos.nth=w.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})w.pseudos[b]=l(b);return h.prototype=w.filters=w.pseudos,w.setFilters=new h,C=e.tokenize=function(t,i){var n,r,s,o,a,l,u,c=W[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],u=w.preFilter;a;){(!n||(r=ct.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),n=!1,(r=ht.exec(a))&&(n=r.shift(),s.push({value:n,type:r[0].replace(ut," ")}),a=a.slice(n.length));for(o in w.filter)!(r=gt[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),s.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):W(t,l).slice(0)},S=e.compile=function(t,e){var i,n=[],r=[],s=Y[t+" "];if(!s){for(e||(e=C(t)),i=e.length;i--;)s=_(e[i]),s[I]?n.push(s):r.push(s);s=Y(t,y(r,n)),s.selector=t}return s},P=e.select=function(t,e,i,n){var r,s,o,a,l,u="function"==typeof t&&t,h=!n&&C(t=u.selector||t);if(i=i||[],1===h.length){if(s=h[0]=h[0].slice(0),s.length>2&&"ID"===(o=s[0]).type&&x.getById&&9===e.nodeType&&L&&w.relative[s[1].type]){if(e=(w.find.ID(o.matches[0].replace(xt,wt),e)||[])[0],!e)return i;u&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(r=gt.needsContext.test(t)?0:s.length;r--&&(o=s[r],!w.relative[a=o.type]);)if((l=w.find[a])&&(n=l(o.matches[0].replace(xt,wt),yt.test(s[0].type)&&c(e.parentNode)||e))){if(s.splice(r,1),t=n.length&&f(s),!t)return tt.apply(i,n),i;break}}return(u||S(t,h))(n,e,!L,i,yt.test(t)&&c(e.parentNode)||e),i},x.sortStable=I.split("").sort(U).join("")===I,x.detectDuplicates=!!N,R(),x.sortDetached=r(function(t){return 1&t.compareDocumentPosition(O.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||s(nt,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);J.find=rt,J.expr=rt.selectors,J.expr[":"]=J.expr.pseudos,J.unique=rt.uniqueSort,J.text=rt.getText,J.isXMLDoc=rt.isXML,J.contains=rt.contains;var st=J.expr.match.needsContext,ot=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^.[^:#\[\.,]*$/;J.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?J.find.matchesSelector(n,t)?[n]:[]:J.find.matches(t,J.grep(e,function(t){return 1===t.nodeType}))},J.fn.extend({find:function(t){var e,i=this.length,n=[],r=this;if("string"!=typeof t)return this.pushStack(J(t).filter(function(){ for(e=0;i>e;e++)if(J.contains(r[e],this))return!0}));for(e=0;i>e;e++)J.find(t,r[e],n);return n=this.pushStack(i>1?J.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&st.test(t)?J(t):t||[],!1).length}});var lt,ut=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=J.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ut.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof J?e[0]:e,J.merge(this,J.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Q,!0)),ot.test(i[1])&&J.isPlainObject(e))for(i in e)J.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=Q.getElementById(i[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=Q,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):J.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(J):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),J.makeArray(t,this))};ct.prototype=J.fn,lt=J(Q);var ht=/^(?:parents|prev(?:Until|All))/,ft={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&J(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),J.fn.extend({has:function(t){var e=J(t,this),i=e.length;return this.filter(function(){for(var t=0;i>t;t++)if(J.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,s=[],o=st.test(t)||"string"!=typeof t?J(t,e||this.context):0;r>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&J.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length>1?J.unique(s):s)},index:function(t){return t?"string"==typeof t?Y.call(J(t),this[0]):Y.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(J.unique(J.merge(this.get(),J(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),J.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return J.dir(t,"parentNode")},parentsUntil:function(t,e,i){return J.dir(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return J.dir(t,"nextSibling")},prevAll:function(t){return J.dir(t,"previousSibling")},nextUntil:function(t,e,i){return J.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return J.dir(t,"previousSibling",i)},siblings:function(t){return J.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return J.sibling(t.firstChild)},contents:function(t){return t.contentDocument||J.merge([],t.childNodes)}},function(t,e){J.fn[t]=function(i,n){var r=J.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=J.filter(n,r)),this.length>1&&(ft[t]||J.unique(r),ht.test(t)&&r.reverse()),this.pushStack(r)}});var pt=/\S+/g,dt={};J.Callbacks=function(t){t="string"==typeof t?dt[t]||s(t):J.extend({},t);var e,i,n,r,o,a,l=[],u=!t.once&&[],c=function(s){for(e=t.memory&&s,i=!0,a=r||0,r=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(s[0],s[1])===!1&&t.stopOnFalse){e=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):e?l=[]:h.disable())},h={add:function(){if(l){var i=l.length;!function s(e){J.each(e,function(e,i){var n=J.type(i);"function"===n?t.unique&&h.has(i)||l.push(i):i&&i.length&&"string"!==n&&s(i)})}(arguments),n?o=l.length:e&&(r=i,c(e))}return this},remove:function(){return l&&J.each(arguments,function(t,e){for(var i;(i=J.inArray(e,l,i))>-1;)l.splice(i,1),n&&(o>=i&&o--,a>=i&&a--)}),this},has:function(t){return t?J.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=e=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,e||h.disable(),this},locked:function(){return!u},fireWith:function(t,e){return!l||i&&!u||(e=e||[],e=[t,e.slice?e.slice():e],n?u.push(e):c(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h},J.extend({Deferred:function(t){var e=[["resolve","done",J.Callbacks("once memory"),"resolved"],["reject","fail",J.Callbacks("once memory"),"rejected"],["notify","progress",J.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return J.Deferred(function(i){J.each(e,function(e,s){var o=J.isFunction(t[e])&&t[e];r[s[1]](function(){var t=o&&o.apply(this,arguments);t&&J.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[s[0]+"With"](this===n?i.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?J.extend(t,n):n}},r={};return n.pipe=n.then,J.each(e,function(t,s){var o=s[2],a=s[3];n[s[1]]=o.add,a&&o.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?n:this,arguments),this},r[s[0]+"With"]=o.fireWith}),n.promise(r),t&&t.call(r,r),r},when:function(t){var e=0,i=H.call(arguments),n=i.length,r=1!==n||t&&J.isFunction(t.promise)?n:0,s=1===r?t:J.Deferred(),o=function(t,e,i){return function(n){e[t]=this,i[t]=arguments.length>1?H.call(arguments):n,i===a?s.notifyWith(e,i):--r||s.resolveWith(e,i)}},a,l,u;if(n>1)for(a=new Array(n),l=new Array(n),u=new Array(n);n>e;e++)i[e]&&J.isFunction(i[e].promise)?i[e].promise().done(o(e,u,i)).fail(s.reject).progress(o(e,l,a)):--r;return r||s.resolveWith(u,i),s.promise()}});var gt;J.fn.ready=function(t){return J.ready.promise().done(t),this},J.extend({isReady:!1,readyWait:1,holdReady:function(t){t?J.readyWait++:J.ready(!0)},ready:function(t){(t===!0?--J.readyWait:J.isReady)||(J.isReady=!0,t!==!0&&--J.readyWait>0||(gt.resolveWith(Q,[J]),J.fn.triggerHandler&&(J(Q).triggerHandler("ready"),J(Q).off("ready"))))}}),J.ready.promise=function(e){return gt||(gt=J.Deferred(),"complete"===Q.readyState?setTimeout(J.ready):(Q.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",o,!1))),gt.promise(e)},J.ready.promise();var mt=J.access=function(t,e,i,n,r,s,o){var a=0,l=t.length,u=null==i;if("object"===J.type(i)){r=!0;for(a in i)J.access(t,e,a,i[a],!0,s,o)}else if(void 0!==n&&(r=!0,J.isFunction(n)||(o=!0),u&&(o?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(J(t),i)})),e))for(;l>a;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return r?t:u?e.call(t):l?e(t[0],i):s};J.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=J.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=a.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,J.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,r=this.key(t),s=this.cache[r];if("string"==typeof e)s[e]=i;else if(J.isEmptyObject(s))J.extend(this.cache[r],e);else for(n in e)s[n]=e[n];return s},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,J.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,r,s=this.key(t),o=this.cache[s];if(void 0===e)this.cache[s]={};else{J.isArray(e)?n=e.concat(e.map(J.camelCase)):(r=J.camelCase(e),e in o?n=[e,r]:(n=r,n=n in o?[n]:n.match(pt)||[])),i=n.length;for(;i--;)delete o[n[i]]}},hasData:function(t){return!J.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new a,_t=new a,yt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;J.extend({hasData:function(t){return _t.hasData(t)||vt.hasData(t)},data:function(t,e,i){return _t.access(t,e,i)},removeData:function(t,e){_t.remove(t,e)},_data:function(t,e,i){return vt.access(t,e,i)},_removeData:function(t,e){vt.remove(t,e)}}),J.fn.extend({data:function(t,e){var i,n,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=_t.get(s),1===s.nodeType&&!vt.get(s,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&(n=o[i].name,0===n.indexOf("data-")&&(n=J.camelCase(n.slice(5)),l(s,n,r[n])));vt.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){_t.set(this,t)}):mt(this,function(e){var i,n=J.camelCase(t);if(s&&void 0===e){if(i=_t.get(s,t),void 0!==i)return i;if(i=_t.get(s,n),void 0!==i)return i;if(i=l(s,n,void 0),void 0!==i)return i}else this.each(function(){var i=_t.get(this,n);_t.set(this,n,e),-1!==t.indexOf("-")&&void 0!==i&&_t.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){_t.remove(this,t)})}}),J.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=vt.get(t,e),i&&(!n||J.isArray(i)?n=vt.access(t,e,J.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=J.queue(t,e),n=i.length,r=i.shift(),s=J._queueHooks(t,e),o=function(){J.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete s.stop,r.call(t,o,s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return vt.get(t,i)||vt.access(t,i,{empty:J.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",i])})})}}),J.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?J.queue(this[0],t):void 0===e?this:this.each(function(){var i=J.queue(this,t,e);J._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&J.dequeue(this,t)})},dequeue:function(t){return this.each(function(){J.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=J.Deferred(),s=this,o=this.length,a=function(){--n||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)i=vt.get(s[o],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=["Top","Right","Bottom","Left"],Tt=function(t,e){return t=e||t,"none"===J.css(t,"display")||!J.contains(t.ownerDocument,t)},kt=/^(?:checkbox|radio)$/i;!function(){var t=Q.createDocumentFragment(),e=t.appendChild(Q.createElement("div")),i=Q.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),Z.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",Z.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";Z.focusinBubbles="onfocusin"in t;var St=/^key/,Pt=/^(?:mouse|pointer|contextmenu)|click/,At=/^(?:focusinfocus|focusoutblur)$/,Et=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(t,e,i,n,r){var s,o,a,l,u,c,h,f,p,d,g,m=vt.get(t);if(m)for(i.handler&&(s=i,i=s.handler,r=s.selector),i.guid||(i.guid=J.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return typeof J!==Ct&&J.event.triggered!==e.type?J.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pt)||[""],u=e.length;u--;)a=Et.exec(e[u])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p&&(h=J.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=J.event.special[p]||{},c=J.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&J.expr.match.needsContext.test(r),namespace:d.join(".")},s),(f=l[p])||(f=l[p]=[],f.delegateCount=0,h.setup&&h.setup.call(t,n,d,o)!==!1||t.addEventListener&&t.addEventListener(p,o,!1)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),J.event.global[p]=!0)},remove:function(t,e,i,n,r){var s,o,a,l,u,c,h,f,p,d,g,m=vt.hasData(t)&&vt.get(t);if(m&&(l=m.events)){for(e=(e||"").match(pt)||[""],u=e.length;u--;)if(a=Et.exec(e[u])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p){for(h=J.event.special[p]||{},p=(n?h.delegateType:h.bindType)||p,f=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=f.length;s--;)c=f[s],!r&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(f.splice(s,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(t,c));o&&!f.length&&(h.teardown&&h.teardown.call(t,d,m.handle)!==!1||J.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)J.event.remove(t,p+e[u],i,n,!0);J.isEmptyObject(l)&&(delete m.handle,vt.remove(t,"events"))}},trigger:function(e,i,n,r){var s,o,a,l,u,c,h,f=[n||Q],p=V.call(e,"type")?e.type:e,d=V.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||Q,3!==n.nodeType&&8!==n.nodeType&&!At.test(p+J.event.triggered)&&(p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),u=p.indexOf(":")<0&&"on"+p,e=e[J.expando]?e:new J.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:J.makeArray(i,[e]),h=J.event.special[p]||{},r||!h.trigger||h.trigger.apply(n,i)!==!1)){if(!r&&!h.noBubble&&!J.isWindow(n)){for(l=h.delegateType||p,At.test(l+p)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||Q)&&f.push(a.defaultView||a.parentWindow||t)}for(s=0;(o=f[s++])&&!e.isPropagationStopped();)e.type=s>1?l:h.bindType||p,c=(vt.get(o,"events")||{})[e.type]&&vt.get(o,"handle"),c&&c.apply(o,i),c=u&&o[u],c&&c.apply&&J.acceptData(o)&&(e.result=c.apply(o,i),e.result===!1&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||h._default&&h._default.apply(f.pop(),i)!==!1||!J.acceptData(n)||u&&J.isFunction(n[p])&&!J.isWindow(n)&&(a=n[u],a&&(n[u]=null),J.event.triggered=p,n[p](),J.event.triggered=void 0,a&&(n[u]=a)),e.result}},dispatch:function(t){t=J.event.fix(t);var e,i,n,r,s,o=[],a=H.call(arguments),l=(vt.get(this,"events")||{})[t.type]||[],u=J.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(o=J.event.handlers.call(this,t,l),e=0;(r=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,i=0;(s=r.handlers[i++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(s.namespace))&&(t.handleObj=s,t.data=s.data,n=((J.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,s,o=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(n=[],i=0;a>i;i++)s=e[i],r=s.selector+" ",void 0===n[r]&&(n[r]=s.needsContext?J(r,this).index(l)>=0:J.find(r,this,null,[l]).length),n[r]&&n.push(s);n.length&&o.push({elem:l,handlers:n})}return a<e.length&&o.push({elem:this,handlers:e.slice(a)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,r,s=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||Q,n=i.documentElement,r=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),t.which||void 0===s||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[J.expando])return t;var e,i,n,r=t.type,s=t,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Pt.test(r)?this.mouseHooks:St.test(r)?this.keyHooks:{}),n=o.props?this.props.concat(o.props):this.props,t=new J.Event(s),e=n.length;e--;)i=n[e],t[i]=s[i];return t.target||(t.target=Q),3===t.target.nodeType&&(t.target=t.target.parentNode),o.filter?o.filter(t,s):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==c()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===c()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&J.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return J.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var r=J.extend(new J.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?J.event.trigger(r,null,e):J.event.dispatch.call(e,r),r.isDefaultPrevented()&&i.preventDefault()}},J.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)},J.Event=function(t,e){return this instanceof J.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?u:$):this.type=t,e&&J.extend(this,e),this.timeStamp=t&&t.timeStamp||J.now(),void(this[J.expando]=!0)):new J.Event(t,e)},J.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=u,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=u,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=u,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},J.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){J.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,s=t.handleObj;return(!r||r!==n&&!J.contains(n,r))&&(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),Z.focusinBubbles||J.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){J.event.simulate(e,t.target,J.event.fix(t),!0)};J.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=vt.access(n,e);r||n.addEventListener(t,i,!0),vt.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=vt.access(n,e)-1;r?vt.access(n,e,r):(n.removeEventListener(t,i,!0),vt.remove(n,e))}}}),J.fn.extend({on:function(t,e,i,n,r){var s,o;if("object"==typeof t){"string"!=typeof e&&(i=i||e,e=void 0);for(o in t)this.on(o,e,i,t[o],r);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=$;else if(!n)return this;return 1===r&&(s=n,n=function(t){return J().off(t),s.apply(this,arguments)},n.guid=s.guid||(s.guid=J.guid++)),this.each(function(){J.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,J(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(e===!1||"function"==typeof e)&&(i=e,e=void 0),i===!1&&(i=$),this.each(function(){J.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){J.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?J.event.trigger(t,e,i,!0):void 0}});var Nt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Rt=/<([\w:]+)/,Ot=/<|&#?\w+;/,Dt=/<(?:script|style|link)/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^$|\/(?:java|ecma)script/i,Ft=/^true\/(.*)/,zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,jt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};jt.optgroup=jt.option,jt.tbody=jt.tfoot=jt.colgroup=jt.caption=jt.thead,jt.th=jt.td,J.extend({clone:function(t,e,i){var n,r,s,o,a=t.cloneNode(!0),l=J.contains(t.ownerDocument,t);if(!(Z.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||J.isXMLDoc(t)))for(o=m(a),s=m(t),n=0,r=s.length;r>n;n++)v(s[n],o[n]);if(e)if(i)for(s=s||m(t),o=o||m(a),n=0,r=s.length;r>n;n++)g(s[n],o[n]);else g(t,a);return o=m(a,"script"),o.length>0&&d(o,!l&&m(t,"script")),a},buildFragment:function(t,e,i,n){for(var r,s,o,a,l,u,c=e.createDocumentFragment(),h=[],f=0,p=t.length;p>f;f++)if(r=t[f],r||0===r)if("object"===J.type(r))J.merge(h,r.nodeType?[r]:r);else if(Ot.test(r)){for(s=s||c.appendChild(e.createElement("div")),o=(Rt.exec(r)||["",""])[1].toLowerCase(),a=jt[o]||jt._default,s.innerHTML=a[1]+r.replace(Nt,"<$1></$2>")+a[2],u=a[0];u--;)s=s.lastChild;J.merge(h,s.childNodes),s=c.firstChild,s.textContent=""}else h.push(e.createTextNode(r));for(c.textContent="",f=0;r=h[f++];)if((!n||-1===J.inArray(r,n))&&(l=J.contains(r.ownerDocument,r),s=m(c.appendChild(r),"script"),l&&d(s),i))for(u=0;r=s[u++];)Mt.test(r.type||"")&&i.push(r);return c},cleanData:function(t){for(var e,i,n,r,s=J.event.special,o=0;void 0!==(i=t[o]);o++){if(J.acceptData(i)&&(r=i[vt.expando],r&&(e=vt.cache[r]))){if(e.events)for(n in e.events)s[n]?J.event.remove(i,n):J.removeEvent(i,n,e.handle);vt.cache[r]&&delete vt.cache[r]}delete _t.cache[i[_t.expando]]}}}),J.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?J.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=h(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?J.filter(t,this):this,r=0;null!=(i=n[r]);r++)e||1!==i.nodeType||J.cleanData(m(i)),i.parentNode&&(e&&J.contains(i.ownerDocument,i)&&d(m(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(J.cleanData(m(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return J.clone(this,t,e)})},html:function(t){return mt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Dt.test(t)&&!jt[(Rt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Nt,"<$1></$2>");try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(J.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,J.cleanData(m(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=X.apply([],t);var i,n,r,s,o,a,l=0,u=this.length,c=this,h=u-1,d=t[0],g=J.isFunction(d);if(g||u>1&&"string"==typeof d&&!Z.checkClone&&Lt.test(d))return this.each(function(i){var n=c.eq(i);g&&(t[0]=d.call(this,i,n.html())),n.domManip(t,e)});if(u&&(i=J.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(r=J.map(m(i,"script"),f),s=r.length;u>l;l++)o=i,l!==h&&(o=J.clone(o,!0,!0),s&&J.merge(r,m(o,"script"))),e.call(this[l],o,l);if(s)for(a=r[r.length-1].ownerDocument,J.map(r,p),l=0;s>l;l++)o=r[l],Mt.test(o.type||"")&&!vt.access(o,"globalEval")&&J.contains(a,o)&&(o.src?J._evalUrl&&J._evalUrl(o.src):J.globalEval(o.textContent.replace(zt,"")))}return this}}),J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){J.fn[t]=function(t){for(var i,n=[],r=J(t),s=r.length-1,o=0;s>=o;o++)i=o===s?this:this.clone(!0),J(r[o])[e](i),W.apply(n,i.get());return this.pushStack(n)}});var It,qt={},Bt=/^margin/,$t=new RegExp("^("+xt+")(?!px)[a-z%]+$","i"),Ht=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)};!function(){function e(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(s);var e=t.getComputedStyle(o,null);i="1%"!==e.top,n="4px"===e.width,r.removeChild(s)}var i,n,r=Q.documentElement,s=Q.createElement("div"),o=Q.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",Z.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",s.appendChild(o),t.getComputedStyle&&J.extend(Z,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,i=o.appendChild(Q.createElement("div"));return i.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",o.style.width="1px",r.appendChild(s),e=!parseFloat(t.getComputedStyle(i,null).marginRight),r.removeChild(s),e}}))}(),J.swap=function(t,e,i,n){var r,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];r=i.apply(t,n||[]);for(s in e)t.style[s]=o[s];return r};var Xt=/^(none|table(?!-c[ea]).+)/,Wt=new RegExp("^("+xt+")(.*)$","i"),Yt=new RegExp("^([+-])=("+xt+")","i"),Ut={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:"0",fontWeight:"400"},Vt=["Webkit","O","Moz","ms"];J.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=b(t,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=J.camelCase(e),l=t.style;return e=J.cssProps[a]||(J.cssProps[a]=w(l,a)),o=J.cssHooks[e]||J.cssHooks[a],void 0===i?o&&"get"in o&&void 0!==(r=o.get(t,!1,n))?r:l[e]:(s=typeof i,"string"===s&&(r=Yt.exec(i))&&(i=(r[1]+1)*r[2]+parseFloat(J.css(t,e)),s="number"),void(null!=i&&i===i&&("number"!==s||J.cssNumber[a]||(i+="px"),Z.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l[e]=i))))}},css:function(t,e,i,n){var r,s,o,a=J.camelCase(e);return e=J.cssProps[a]||(J.cssProps[a]=w(t.style,a)),o=J.cssHooks[e]||J.cssHooks[a],o&&"get"in o&&(r=o.get(t,!0,i)),void 0===r&&(r=b(t,e,n)),"normal"===r&&e in Gt&&(r=Gt[e]),""===i||i?(s=parseFloat(r),i===!0||J.isNumeric(s)?s||0:r):r}}),J.each(["height","width"],function(t,e){J.cssHooks[e]={get:function(t,i,n){return i?Xt.test(J.css(t,"display"))&&0===t.offsetWidth?J.swap(t,Ut,function(){return C(t,e,n)}):C(t,e,n):void 0},set:function(t,i,n){var r=n&&Ht(t);return T(t,i,n?k(t,e,n,"border-box"===J.css(t,"boxSizing",!1,r),r):0)}}}),J.cssHooks.marginRight=x(Z.reliableMarginRight,function(t,e){return e?J.swap(t,{display:"inline-block"},b,[t,"marginRight"]):void 0}),J.each({margin:"",padding:"",border:"Width"},function(t,e){J.cssHooks[t+e]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];4>n;n++)r[t+wt[n]+e]=s[n]||s[n-2]||s[0];return r}},Bt.test(t)||(J.cssHooks[t+e].set=T)}),J.fn.extend({css:function(t,e){return mt(this,function(t,e,i){var n,r,s={},o=0;if(J.isArray(e)){for(n=Ht(t),r=e.length;r>o;o++)s[e[o]]=J.css(t,e[o],!1,n);return s}return void 0!==i?J.style(t,e,i):J.css(t,e)},t,e,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Tt(this)?J(this).show():J(this).hide()})}}),J.Tween=P,P.prototype={constructor:P,init:function(t,e,i,n,r,s){this.elem=t,this.prop=i,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(J.cssNumber[i]?"":"px")},cur:function(){var t=P.propHooks[this.prop];return t&&t.get?t.get(this):P.propHooks._default.get(this)},run:function(t){var e,i=P.propHooks[this.prop];return this.pos=e=this.options.duration?J.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=J.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){J.fx.step[t.prop]?J.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[J.cssProps[t.prop]]||J.cssHooks[t.prop])?J.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},J.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},J.fx=P.prototype.init,J.fx.step={};var Zt,Qt,Kt=/^(?:toggle|show|hide)$/,Jt=new RegExp("^(?:([+-])=|)("+xt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[R],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),r=Jt.exec(e),s=r&&r[3]||(J.cssNumber[t]?"":"px"),o=(J.cssNumber[t]||"px"!==s&&+n)&&Jt.exec(J.css(i.elem,t)),a=1,l=20;if(o&&o[3]!==s){s=s||o[3],r=r||[],o=+n||1;do a=a||".5",o/=a,J.style(i.elem,t,o+s);while(a!==(a=i.cur()/n)&&1!==a&&--l)}return r&&(o=i.start=+o||+n||0,i.unit=s,i.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),i}]};J.Animation=J.extend(D,{tweener:function(t,e){J.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,r=t.length;r>n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),J.speed=function(t,e,i){var n=t&&"object"==typeof t?J.extend({},t):{complete:i||!i&&e||J.isFunction(t)&&t,duration:t,easing:i&&e||e&&!J.isFunction(e)&&e};return n.duration=J.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in J.fx.speeds?J.fx.speeds[n.duration]:J.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){J.isFunction(n.old)&&n.old.call(this),n.queue&&J.dequeue(this,n.queue)},n},J.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Tt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=J.isEmptyObject(t),s=J.speed(e,i,n),o=function(){var e=D(this,J.extend({},t),s);(r||vt.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",s=J.timers,o=vt.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&te.test(r)&&n(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(i),e=!1,s.splice(r,1));(e||!i)&&J.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=vt.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],s=J.timers,o=n?n.length:0;for(i.finish=!0,J.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;o>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this); delete i.finish})}}),J.each(["toggle","show","hide"],function(t,e){var i=J.fn[e];J.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(E(e,!0),t,n,r)}}),J.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){J.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),J.timers=[],J.fx.tick=function(){var t,e=0,i=J.timers;for(Zt=J.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||J.fx.stop(),Zt=void 0},J.fx.timer=function(t){J.timers.push(t),t()?J.fx.start():J.timers.pop()},J.fx.interval=13,J.fx.start=function(){Qt||(Qt=setInterval(J.fx.tick,J.fx.interval))},J.fx.stop=function(){clearInterval(Qt),Qt=null},J.fx.speeds={slow:600,fast:200,_default:400},J.fn.delay=function(t,e){return t=J.fx?J.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=Q.createElement("input"),e=Q.createElement("select"),i=e.appendChild(Q.createElement("option"));t.type="checkbox",Z.checkOn=""!==t.value,Z.optSelected=i.selected,e.disabled=!0,Z.optDisabled=!i.disabled,t=Q.createElement("input"),t.value="t",t.type="radio",Z.radioValue="t"===t.value}();var ne,re,se=J.expr.attrHandle;J.fn.extend({attr:function(t,e){return mt(this,J.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){J.removeAttr(this,t)})}}),J.extend({attr:function(t,e,i){var n,r,s=t.nodeType;return t&&3!==s&&8!==s&&2!==s?typeof t.getAttribute===Ct?J.prop(t,e,i):(1===s&&J.isXMLDoc(t)||(e=e.toLowerCase(),n=J.attrHooks[e]||(J.expr.match.bool.test(e)?re:ne)),void 0===i?n&&"get"in n&&null!==(r=n.get(t,e))?r:(r=J.find.attr(t,e),null==r?void 0:r):null!==i?n&&"set"in n&&void 0!==(r=n.set(t,i,e))?r:(t.setAttribute(e,i+""),i):void J.removeAttr(t,e)):void 0},removeAttr:function(t,e){var i,n,r=0,s=e&&e.match(pt);if(s&&1===t.nodeType)for(;i=s[r++];)n=J.propFix[i]||i,J.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!Z.radioValue&&"radio"===e&&J.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),re={set:function(t,e,i){return e===!1?J.removeAttr(t,i):t.setAttribute(i,i),i}},J.each(J.expr.match.bool.source.match(/\w+/g),function(t,e){var i=se[e]||J.find.attr;se[e]=function(t,e,n){var r,s;return n||(s=se[e],se[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,se[e]=s),r}});var oe=/^(?:input|select|textarea|button)$/i;J.fn.extend({prop:function(t,e){return mt(this,J.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[J.propFix[t]||t]})}}),J.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,r,s,o=t.nodeType;return t&&3!==o&&8!==o&&2!==o?(s=1!==o||!J.isXMLDoc(t),s&&(e=J.propFix[e]||e,r=J.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]):void 0},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||oe.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),Z.optSelected||(J.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),J.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){J.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;J.fn.extend({addClass:function(t){var e,i,n,r,s,o,a="string"==typeof t&&t,l=0,u=this.length;if(J.isFunction(t))return this.each(function(e){J(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(pt)||[];u>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):" ")){for(s=0;r=e[s++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=J.trim(n),i.className!==o&&(i.className=o)}return this},removeClass:function(t){var e,i,n,r,s,o,a=0===arguments.length||"string"==typeof t&&t,l=0,u=this.length;if(J.isFunction(t))return this.each(function(e){J(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(pt)||[];u>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):"")){for(s=0;r=e[s++];)for(;n.indexOf(" "+r+" ")>=0;)n=n.replace(" "+r+" "," ");o=t?J.trim(n):"",i.className!==o&&(i.className=o)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):this.each(J.isFunction(t)?function(i){J(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if("string"===i)for(var e,n=0,r=J(this),s=t.match(pt)||[];e=s[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(i===Ct||"boolean"===i)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(ae," ").indexOf(e)>=0)return!0;return!1}});var le=/\r/g;J.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=J.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(r=n?t.call(this,i,J(this).val()):t,null==r?r="":"number"==typeof r?r+="":J.isArray(r)&&(r=J.map(r,function(t){return null==t?"":t+""})),e=J.valHooks[this.type]||J.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=J.valHooks[r.type]||J.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(le,""):null==i?"":i)):void 0}}),J.extend({valHooks:{option:{get:function(t){var e=J.find.attr(t,"value");return null!=e?e:J.trim(J.text(t))}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,s="select-one"===t.type||0>r,o=s?null:[],a=s?r+1:n.length,l=0>r?a:s?r:0;a>l;l++)if(i=n[l],!(!i.selected&&l!==r||(Z.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&J.nodeName(i.parentNode,"optgroup"))){if(e=J(i).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var i,n,r=t.options,s=J.makeArray(e),o=r.length;o--;)n=r[o],(n.selected=J.inArray(n.value,s)>=0)&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),J.each(["radio","checkbox"],function(){J.valHooks[this]={set:function(t,e){return J.isArray(e)?t.checked=J.inArray(J(t).val(),e)>=0:void 0}},Z.checkOn||(J.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),J.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){J.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),J.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var ue=J.now(),ce=/\?/;J.parseJSON=function(t){return JSON.parse(t+"")},J.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,"text/xml")}catch(n){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&J.error("Invalid XML: "+t),e};var he,fe,pe=/#.*$/,de=/([?&])_=[^&]*/,ge=/^(.*?):[ \t]*([^\r\n]*)$/gm,me=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ve=/^(?:GET|HEAD)$/,_e=/^\/\//,ye=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,be={},xe={},we="*/".concat("*");try{fe=location.href}catch(Te){fe=Q.createElement("a"),fe.href="",fe=fe.href}he=ye.exec(fe.toLowerCase())||[],J.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fe,type:"GET",isLocal:me.test(he[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":we,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":J.parseJSON,"text xml":J.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?F(F(t,J.ajaxSettings),e):F(J.ajaxSettings,t)},ajaxPrefilter:L(be),ajaxTransport:L(xe),ajax:function(t,e){function i(t,e,i,o){var l,c,v,_,b,w=e;2!==y&&(y=2,a&&clearTimeout(a),n=void 0,s=o||"",x.readyState=t>0?4:0,l=t>=200&&300>t||304===t,i&&(_=z(h,x,i)),_=j(h,_,x,l),l?(h.ifModified&&(b=x.getResponseHeader("Last-Modified"),b&&(J.lastModified[r]=b),b=x.getResponseHeader("etag"),b&&(J.etag[r]=b)),204===t||"HEAD"===h.type?w="nocontent":304===t?w="notmodified":(w=_.state,c=_.data,v=_.error,l=!v)):(v=w,(t||!w)&&(w="error",0>t&&(t=0))),x.status=t,x.statusText=(e||w)+"",l?d.resolveWith(f,[c,w,x]):d.rejectWith(f,[x,w,v]),x.statusCode(m),m=void 0,u&&p.trigger(l?"ajaxSuccess":"ajaxError",[x,h,l?c:v]),g.fireWith(f,[x,w]),u&&(p.trigger("ajaxComplete",[x,h]),--J.active||J.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,s,o,a,l,u,c,h=J.ajaxSetup({},e),f=h.context||h,p=h.context&&(f.nodeType||f.jquery)?J(f):J.event,d=J.Deferred(),g=J.Callbacks("once memory"),m=h.statusCode||{},v={},_={},y=0,b="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!o)for(o={};e=ge.exec(s);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?s:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return y||(t=_[i]=_[i]||t,v[t]=e),this},overrideMimeType:function(t){return y||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>y)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||b;return n&&n.abort(e),i(0,e),this}};if(d.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,h.url=((t||h.url||fe)+"").replace(pe,"").replace(_e,he[1]+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=J.trim(h.dataType||"*").toLowerCase().match(pt)||[""],null==h.crossDomain&&(l=ye.exec(h.url.toLowerCase()),h.crossDomain=!(!l||l[1]===he[1]&&l[2]===he[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(he[3]||("http:"===he[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=J.param(h.data,h.traditional)),M(be,h,e,x),2===y)return x;u=h.global,u&&0===J.active++&&J.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ve.test(h.type),r=h.url,h.hasContent||(h.data&&(r=h.url+=(ce.test(r)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=de.test(r)?r.replace(de,"$1_="+ue++):r+(ce.test(r)?"&":"?")+"_="+ue++)),h.ifModified&&(J.lastModified[r]&&x.setRequestHeader("If-Modified-Since",J.lastModified[r]),J.etag[r]&&x.setRequestHeader("If-None-Match",J.etag[r])),(h.data&&h.hasContent&&h.contentType!==!1||e.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+we+"; q=0.01":""):h.accepts["*"]);for(c in h.headers)x.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(h.beforeSend.call(f,x,h)===!1||2===y))return x.abort();b="abort";for(c in{success:1,error:1,complete:1})x[c](h[c]);if(n=M(xe,h,e,x)){x.readyState=1,u&&p.trigger("ajaxSend",[x,h]),h.async&&h.timeout>0&&(a=setTimeout(function(){x.abort("timeout")},h.timeout));try{y=1,n.send(v,i)}catch(w){if(!(2>y))throw w;i(-1,w)}}else i(-1,"No Transport");return x},getJSON:function(t,e,i){return J.get(t,e,i,"json")},getScript:function(t,e){return J.get(t,void 0,e,"script")}}),J.each(["get","post"],function(t,e){J[e]=function(t,i,n,r){return J.isFunction(i)&&(r=r||n,n=i,i=void 0),J.ajax({url:t,type:e,dataType:r,data:i,success:n})}}),J.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){J.fn[e]=function(t){return this.on(e,t)}}),J._evalUrl=function(t){return J.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},J.fn.extend({wrapAll:function(t){var e;return J.isFunction(t)?this.each(function(e){J(this).wrapAll(t.call(this,e))}):(this[0]&&(e=J(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return this.each(J.isFunction(t)?function(e){J(this).wrapInner(t.call(this,e))}:function(){var e=J(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=J.isFunction(t);return this.each(function(i){J(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){J.nodeName(this,"body")||J(this).replaceWith(this.childNodes)}).end()}}),J.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},J.expr.filters.visible=function(t){return!J.expr.filters.hidden(t)};var ke=/%20/g,Ce=/\[\]$/,Se=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;J.param=function(t,e){var i,n=[],r=function(t,e){e=J.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=J.ajaxSettings&&J.ajaxSettings.traditional),J.isArray(t)||t.jquery&&!J.isPlainObject(t))J.each(t,function(){r(this.name,this.value)});else for(i in t)I(i,t[i],e,r);return n.join("&").replace(ke,"+")},J.fn.extend({serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=J.prop(this,"elements");return t?J.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!J(this).is(":disabled")&&Ae.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!kt.test(t))}).map(function(t,e){var i=J(this).val();return null==i?null:J.isArray(i)?J.map(i,function(t){return{name:e.name,value:t.replace(Se,"\r\n")}}):{name:e.name,value:i.replace(Se,"\r\n")}}).get()}}),J.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ee=0,Ne={},Re={0:200,1223:204},Oe=J.ajaxSettings.xhr();t.ActiveXObject&&J(t).on("unload",function(){for(var t in Ne)Ne[t]()}),Z.cors=!!Oe&&"withCredentials"in Oe,Z.ajax=Oe=!!Oe,J.ajaxTransport(function(t){var e;return Z.cors||Oe&&!t.crossDomain?{send:function(i,n){var r,s=t.xhr(),o=++Ee;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)s.setRequestHeader(r,i[r]);e=function(t){return function(){e&&(delete Ne[o],e=s.onload=s.onerror=null,"abort"===t?s.abort():"error"===t?n(s.status,s.statusText):n(Re[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:void 0,s.getAllResponseHeaders()))}},s.onload=e(),s.onerror=e("error"),e=Ne[o]=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(a){if(e)throw a}},abort:function(){e&&e()}}:void 0}),J.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return J.globalEval(t),t}}}),J.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),J.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=J("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),Q.head.appendChild(e[0])},abort:function(){i&&i()}}}});var De=[],Le=/(=)\?(?=&|$)|\?\?/;J.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=De.pop()||J.expando+"_"+ue++;return this[t]=!0,t}}),J.ajaxPrefilter("json jsonp",function(e,i,n){var r,s,o,a=e.jsonp!==!1&&(Le.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Le.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=J.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Le,"$1"+r):e.jsonp!==!1&&(e.url+=(ce.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||J.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=t[r],t[r]=function(){o=arguments},n.always(function(){t[r]=s,e[r]&&(e.jsonpCallback=i.jsonpCallback,De.push(r)),o&&J.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),J.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||Q;var n=ot.exec(t),r=!i&&[];return n?[e.createElement(n[1])]:(n=J.buildFragment([t],e,r),r&&r.length&&J(r).remove(),J.merge([],n.childNodes))};var Me=J.fn.load;J.fn.load=function(t,e,i){if("string"!=typeof t&&Me)return Me.apply(this,arguments);var n,r,s,o=this,a=t.indexOf(" ");return a>=0&&(n=J.trim(t.slice(a)),t=t.slice(0,a)),J.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&J.ajax({url:t,type:r,dataType:"html",data:e}).done(function(t){s=arguments,o.html(n?J("<div>").append(J.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){o.each(i,s||[t.responseText,e,t])}),this},J.expr.filters.animated=function(t){return J.grep(J.timers,function(e){return t===e.elem}).length};var Fe=t.document.documentElement;J.offset={setOffset:function(t,e,i){var n,r,s,o,a,l,u,c=J.css(t,"position"),h=J(t),f={};"static"===c&&(t.style.position="relative"),a=h.offset(),s=J.css(t,"top"),l=J.css(t,"left"),u=("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1,u?(n=h.position(),o=n.top,r=n.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),J.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(f.top=e.top-a.top+o),null!=e.left&&(f.left=e.left-a.left+r),"using"in e?e.using.call(t,f):h.css(f)}},J.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){J.offset.setOffset(this,t,e)});var e,i,n=this[0],r={top:0,left:0},s=n&&n.ownerDocument;return s?(e=s.documentElement,J.contains(e,n)?(typeof n.getBoundingClientRect!==Ct&&(r=n.getBoundingClientRect()),i=q(s),{top:r.top+i.pageYOffset-e.clientTop,left:r.left+i.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===J.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),J.nodeName(t[0],"html")||(n=t.offset()),n.top+=J.css(t[0],"borderTopWidth",!0),n.left+=J.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-J.css(i,"marginTop",!0),left:e.left-n.left-J.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Fe;t&&!J.nodeName(t,"html")&&"static"===J.css(t,"position");)t=t.offsetParent;return t||Fe})}}),J.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n="pageYOffset"===i;J.fn[e]=function(r){return mt(this,function(e,r,s){var o=q(e);return void 0===s?o?o[i]:e[r]:void(o?o.scrollTo(n?t.pageXOffset:s,n?s:t.pageYOffset):e[r]=s)},e,r,arguments.length,null)}}),J.each(["top","left"],function(t,e){J.cssHooks[e]=x(Z.pixelPosition,function(t,i){return i?(i=b(t,e),$t.test(i)?J(t).position()[e]+"px":i):void 0})}),J.each({Height:"height",Width:"width"},function(t,e){J.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){J.fn[n]=function(n,r){var s=arguments.length&&(i||"boolean"!=typeof n),o=i||(n===!0||r===!0?"margin":"border");return mt(this,function(e,i,n){var r;return J.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?J.css(e,i,o):J.style(e,i,n,o)},e,s?n:void 0,s,null)}})}),J.fn.size=function(){return this.length},J.fn.andSelf=J.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return J});var ze=t.jQuery,je=t.$;return J.noConflict=function(e){return t.$===J&&(t.$=je),e&&t.jQuery===J&&(t.jQuery=ze),J},typeof e===Ct&&(t.jQuery=t.$=J),J}),function(t){t.fn.visible=function(e,i,n){var r=t(this).eq(0),s=r.get(0),o=t(window),a=o.scrollTop(),l=a+o.height(),u=o.scrollLeft(),c=u+o.width(),h=r.offset().top,f=h+r.height(),p=r.offset().left,d=p+r.width(),g=e===!0?f:h,m=e===!0?h:f,v=e===!0?d:p,_=e===!0?p:d,y=i===!0?s.offsetWidth*s.offsetHeight:!0,n=n?n:"both";return"both"===n?!!y&&l>=m&&g>=a&&c>=_&&v>=u:"vertical"===n?!!y&&l>=m&&g>=a:"horizontal"===n?!!y&&c>=_&&v>=u:void 0}}(jQuery),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function($){var t=$.event.dispatch||$.event.handle,e=$.event.special,i="D"+ +new Date,n="D"+(+new Date+1);e.scrollstart={setup:function(n){var r,s=$.extend({latency:e.scrollstop.latency},n),o=function(e){var i=this,n=arguments;r?clearTimeout(r):(e.type="scrollstart",t.apply(i,n)),r=setTimeout(function(){r=null},s.latency)};$(this).bind("scroll",o).data(i,o)},teardown:function(){$(this).unbind("scroll",$(this).data(i))}},e.scrollstop={latency:250,setup:function(i){var r,s=$.extend({latency:e.scrollstop.latency},i),o=function(e){var i=this,n=arguments;r&&clearTimeout(r),r=setTimeout(function(){r=null,e.type="scrollstop",t.apply(i,n)},s.latency)};$(this).bind("scroll",o).data(n,o)},teardown:function(){$(this).unbind("scroll",$(this).data(n))}}}),!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.scrollReveal=e()}(this,function(){return window.scrollReveal=function(t){"use strict";function e(e){return s=this,s.elems={},s.serial=1,s.blocked=!1,s.config=n(s.defaults,e),s.isMobile()&&!s.config.mobile||!s.isSupported()?void s.destroy():(s.config.viewport===t.document.documentElement?(t.addEventListener("scroll",r,!1),t.addEventListener("resize",r,!1)):s.config.viewport.addEventListener("scroll",r,!1),void s.init(!0))}var i,n,r,s;return e.prototype={defaults:{enter:"bottom",move:"8px",over:"0.6s",wait:"0s",easing:"ease",scale:{direction:"up",power:"5%"},rotate:{x:0,y:0,z:0},opacity:0,mobile:!1,reset:!1,viewport:t.document.documentElement,delay:"once",vFactor:.6,complete:function(){}},init:function(t){var e,i,n;n=Array.prototype.slice.call(s.config.viewport.querySelectorAll("[data-sr]")),n.forEach(function(t){e=s.serial++,i=s.elems[e]={domEl:t},i.config=s.configFactory(i),i.styles=s.styleFactory(i),i.seen=!1,t.removeAttribute("data-sr"),t.setAttribute("style",i.styles.inline+i.styles.initial)}),s.scrolled=s.scrollY(),s.animate(t)},animate:function(t){function e(t){var e=s.elems[t];setTimeout(function(){e.domEl.setAttribute("style",e.styles.inline),e.config.complete(e.domEl),delete s.elems[t]},e.styles.duration)}var i,n,r;for(i in s.elems)s.elems.hasOwnProperty(i)&&(n=s.elems[i],r=s.isElemInViewport(n),r?("always"===s.config.delay||"onload"===s.config.delay&&t||"once"===s.config.delay&&!n.seen?n.domEl.setAttribute("style",n.styles.inline+n.styles.target+n.styles.transition):n.domEl.setAttribute("style",n.styles.inline+n.styles.target+n.styles.reset),n.seen=!0,n.config.reset||n.animating||(n.animating=!0,e(i))):!r&&n.config.reset&&n.domEl.setAttribute("style",n.styles.inline+n.styles.initial+n.styles.reset));s.blocked=!1},configFactory:function(t){var e={},i={},r=t.domEl.getAttribute("data-sr").split(/[, ]+/);return r.forEach(function(t,i){switch(t){case"enter":e.enter=r[i+1];break;case"wait":e.wait=r[i+1];break;case"move":e.move=r[i+1];break;case"ease":e.move=r[i+1],e.ease="ease";break;case"ease-in":if("up"==r[i+1]||"down"==r[i+1]){e.scale.direction=r[i+1],e.scale.power=r[i+2],e.easing="ease-in";break}e.move=r[i+1],e.easing="ease-in";break;case"ease-in-out":if("up"==r[i+1]||"down"==r[i+1]){e.scale.direction=r[i+1],e.scale.power=r[i+2],e.easing="ease-in-out";break}e.move=r[i+1],e.easing="ease-in-out";break;case"ease-out":if("up"==r[i+1]||"down"==r[i+1]){e.scale.direction=r[i+1],e.scale.power=r[i+2],e.easing="ease-out";break}e.move=r[i+1],e.easing="ease-out";break;case"hustle":if("up"==r[i+1]||"down"==r[i+1]){e.scale.direction=r[i+1],e.scale.power=r[i+2],e.easing="cubic-bezier( 0.6, 0.2, 0.1, 1 )";break}e.move=r[i+1],e.easing="cubic-bezier( 0.6, 0.2, 0.1, 1 )";break;case"over":e.over=r[i+1];break;case"flip":case"pitch":e.rotate=e.rotate||{},e.rotate.x=r[i+1];break;case"spin":case"yaw":e.rotate=e.rotate||{},e.rotate.y=r[i+1];break;case"roll":e.rotate=e.rotate||{},e.rotate.z=r[i+1];break;case"reset":e.reset="no"==r[i-1]?!1:!0;break;case"scale":if(e.scale={},"up"==r[i+1]||"down"==r[i+1]){e.scale.direction=r[i+1],e.scale.power=r[i+2];break}e.scale.power=r[i+1];break;case"vFactor":case"vF":e.vFactor=r[i+1];break;case"opacity":e.opacity=r[i+1];break;default:return}}),i=n(i,s.config),i=n(i,e),"top"===i.enter||"bottom"===i.enter?i.axis="Y":("left"===i.enter||"right"===i.enter)&&(i.axis="X"),("top"===i.enter||"left"===i.enter)&&(i.move="-"+i.move),i},styleFactory:function(t){function e(){0!==parseInt(a.move)&&(n+=" translate"+a.axis+"("+a.move+")",s+=" translate"+a.axis+"(0)"),0!==parseInt(a.scale.power)&&("up"===a.scale.direction?a.scale.value=1-.01*parseFloat(a.scale.power):"down"===a.scale.direction&&(a.scale.value=1+.01*parseFloat(a.scale.power)),n+=" scale("+a.scale.value+")",s+=" scale(1)"),a.rotate.x&&(n+=" rotateX("+a.rotate.x+")",s+=" rotateX(0)"),a.rotate.y&&(n+=" rotateY("+a.rotate.y+")",s+=" rotateY(0)"),a.rotate.z&&(n+=" rotateZ("+a.rotate.z+")",s+=" rotateZ(0)"),n+="; opacity: "+a.opacity+"; ",s+="; opacity: 1; "}var i,n,r,s,o,a=t.config,l=1e3*(parseFloat(a.over)+parseFloat(a.wait));return i=t.domEl.getAttribute("style")?t.domEl.getAttribute("style")+"; visibility: visible; ":"visibility: visible; ",o="-webkit-transition: -webkit-transform "+a.over+" "+a.easing+" "+a.wait+", opacity "+a.over+" "+a.easing+" "+a.wait+"; transition: transform "+a.over+" "+a.easing+" "+a.wait+", opacity "+a.over+" "+a.easing+" "+a.wait+"; -webkit-perspective: 1000;-webkit-backface-visibility: hidden;",r="-webkit-transition: -webkit-transform "+a.over+" "+a.easing+" 0s, opacity "+a.over+" "+a.easing+" 0s; transition: transform "+a.over+" "+a.easing+" 0s, opacity "+a.over+" "+a.easing+" 0s; -webkit-perspective: 1000; -webkit-backface-visibility: hidden; ",n="transform:",s="transform:",e(),n+="-webkit-transform:",s+="-webkit-transform:",e(),{transition:o,initial:n,target:s,reset:r,inline:i,duration:l}},getViewportH:function(){var e=s.config.viewport.clientHeight,i=t.innerHeight;return s.config.viewport===t.document.documentElement&&i>e?i:e},scrollY:function(){return s.config.viewport===t.document.documentElement?t.pageYOffset:s.config.viewport.scrollTop+s.config.viewport.offsetTop},getOffset:function(t){var e=0,i=0;do isNaN(t.offsetTop)||(e+=t.offsetTop),isNaN(t.offsetLeft)||(i+=t.offsetLeft);while(t=t.offsetParent);return{top:e,left:i}},isElemInViewport:function(e){function i(){var t=o+r*l,e=a-r*l,i=s.scrolled+s.getViewportH(),n=s.scrolled;return i>t&&e>n}function n(){var i=e.domEl,n=i.currentStyle||t.getComputedStyle(i,null);return"fixed"===n.position}var r=e.domEl.offsetHeight,o=s.getOffset(e.domEl).top,a=o+r,l=e.config.vFactor||0;return i()||n()},isMobile:function(){var e=navigator.userAgent||navigator.vendor||t.opera;return/(ipad|playbook|silk|android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))?!0:!1},isSupported:function(){for(var t=document.createElement("sensor"),e="Webkit,Moz,O,".split(","),i=("transition "+e.join("transition,")).split(","),n=0;n<i.length;n++)if(""===!t.style[i[n]])return!1;return!0},destroy:function(){var t=s.config.viewport,e=Array.prototype.slice.call(t.querySelectorAll("[data-sr]"));e.forEach(function(t){t.removeAttribute("data-sr")})}},r=function(){s.blocked||(s.blocked=!0,s.scrolled=s.scrollY(),i(function(){s.animate()}))},n=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},i=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)}}(),e}(window),scrollReveal});var hljs=new function(){function t(t){return t.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function e(t){return t.nodeName.toLowerCase()}function i(t,e){var i=t&&t.exec(e);return i&&0==i.index}function n(t){return Array.prototype.map.call(t.childNodes,function(t){return 3==t.nodeType?_.useBR?t.nodeValue.replace(/\n/g,""):t.nodeValue:"br"==e(t)?"\n":n(t)}).join("")}function r(t){var e=(t.className+" "+(t.parentNode?t.parentNode.className:"")).split(/\s+/);return e=e.map(function(t){return t.replace(/^language-/,"")}),e.filter(function(t){return v(t)||"no-highlight"==t})[0]}function s(t,e){var i={};for(var n in t)i[n]=t[n];if(e)for(var n in e)i[n]=e[n];return i}function o(t){var i=[];return function n(t,r){for(var s=t.firstChild;s;s=s.nextSibling)3==s.nodeType?r+=s.nodeValue.length:"br"==e(s)?r+=1:1==s.nodeType&&(i.push({event:"start",offset:r,node:s}),r=n(s,r),i.push({event:"stop",offset:r,node:s}));return r}(t,0),i}function a(i,n,r){function s(){return i.length&&n.length?i[0].offset!=n[0].offset?i[0].offset<n[0].offset?i:n:"start"==n[0].event?i:n:i.length?i:n}function o(i){function n(e){return" "+e.nodeName+'="'+t(e.value)+'"'}c+="<"+e(i)+Array.prototype.map.call(i.attributes,n).join("")+">"}function a(t){c+="</"+e(t)+">"}function l(t){("start"==t.event?o:a)(t.node)}for(var u=0,c="",h=[];i.length||n.length;){var f=s();if(c+=t(r.substr(u,f[0].offset-u)),u=f[0].offset,f==i){h.reverse().forEach(a);do l(f.splice(0,1)[0]),f=s();while(f==i&&f.length&&f[0].offset==u);h.reverse().forEach(o)}else"start"==f[0].event?h.push(f[0].node):h.pop(),l(f.splice(0,1)[0])}return c+t(r.substr(u))}function l(t){function e(t){return t&&t.source||t}function i(i,n){return RegExp(e(i),"m"+(t.cI?"i":"")+(n?"g":""))}function n(r,o){function a(e,i){t.cI&&(i=i.toLowerCase()),i.split(" ").forEach(function(t){var i=t.split("|");l[i[0]]=[e,i[1]?Number(i[1]):1]})}if(!r.compiled){if(r.compiled=!0,r.k=r.k||r.bK,r.k){var l={};"string"==typeof r.k?a("keyword",r.k):Object.keys(r.k).forEach(function(t){a(t,r.k[t])}),r.k=l; }r.lR=i(r.l||/\b[A-Za-z0-9_]+\b/,!0),o&&(r.bK&&(r.b=r.bK.split(" ").join("|")),r.b||(r.b=/\B|\b/),r.bR=i(r.b),r.e||r.eW||(r.e=/\B|\b/),r.e&&(r.eR=i(r.e)),r.tE=e(r.e)||"",r.eW&&o.tE&&(r.tE+=(r.e?"|":"")+o.tE)),r.i&&(r.iR=i(r.i)),void 0===r.r&&(r.r=1),r.c||(r.c=[]);var u=[];r.c.forEach(function(t){t.v?t.v.forEach(function(e){u.push(s(t,e))}):u.push("self"==t?r:t)}),r.c=u,r.c.forEach(function(t){n(t,r)}),r.starts&&n(r.starts,o);var c=r.c.map(function(t){return t.bK?"\\.?\\b("+t.b+")\\b\\.?":t.b}).concat([r.tE]).concat([r.i]).map(e).filter(Boolean);r.t=c.length?i(c.join("|"),!0):{exec:function(t){return null}},r.continuation={}}}n(t)}function u(e,n,r,s){function o(t,e){for(var n=0;n<e.c.length;n++)if(i(e.c[n].bR,t))return e.c[n]}function a(t,e){return i(t.eR,e)?t:t.eW?a(t.parent,e):void 0}function h(t,e){return!r&&i(e.iR,t)}function f(t,e){var i=w.cI?e[0].toLowerCase():e[0];return t.k.hasOwnProperty(i)&&t.k[i]}function p(t,e,i,n){var r=n?"":_.classPrefix,s='<span class="'+r,o=i?"":"</span>";return s+=t+'">',s+e+o}function d(){var e=t(S);if(!T.k)return e;var i="",n=0;T.lR.lastIndex=0;for(var r=T.lR.exec(e);r;){i+=e.substr(n,r.index-n);var s=f(T,r);s?(P+=s[1],i+=p(s[0],r[0])):i+=r[0],n=T.lR.lastIndex,r=T.lR.exec(e)}return i+e.substr(n)}function g(){if(T.sL&&!y[T.sL])return t(S);var e=T.sL?u(T.sL,S,!0,T.continuation.top):c(S);return T.r>0&&(P+=e.r),"continuous"==T.subLanguageMode&&(T.continuation.top=e.top),p(e.language,e.value,!1,!0)}function m(){return void 0!==T.sL?g():d()}function b(e,i){var n=e.cN?p(e.cN,"",!0):"";e.rB?(k+=n,S=""):e.eB?(k+=t(i)+n,S=""):(k+=n,S=i),T=Object.create(e,{parent:{value:T}})}function x(e,i){if(S+=e,void 0===i)return k+=m(),0;var n=o(i,T);if(n)return k+=m(),b(n,i),n.rB?0:i.length;var r=a(T,i);if(r){var s=T;s.rE||s.eE||(S+=i),k+=m();do T.cN&&(k+="</span>"),P+=T.r,T=T.parent;while(T!=r.parent);return s.eE&&(k+=t(i)),S="",r.starts&&b(r.starts,""),s.rE?0:i.length}if(h(i,T))throw new Error('Illegal lexeme "'+i+'" for mode "'+(T.cN||"<unnamed>")+'"');return S+=i,i.length||1}var w=v(e);if(!w)throw new Error('Unknown language: "'+e+'"');l(w);for(var T=s||w,k="",C=T;C!=w;C=C.parent)C.cN&&(k=p(C.cN,k,!0));var S="",P=0;try{for(var A,E,N=0;;){if(T.t.lastIndex=N,A=T.t.exec(n),!A)break;E=x(n.substr(N,A.index-N),A[0]),N=A.index+E}x(n.substr(N));for(var C=T;C.parent;C=C.parent)C.cN&&(k+="</span>");return{r:P,value:k,language:e,top:T}}catch(R){if(-1!=R.message.indexOf("Illegal"))return{r:0,value:t(n)};throw R}}function c(e,i){i=i||_.languages||Object.keys(y);var n={r:0,value:t(e)},r=n;return i.forEach(function(t){if(v(t)){var i=u(t,e,!1);i.language=t,i.r>r.r&&(r=i),i.r>n.r&&(r=n,n=i)}}),r.language&&(n.second_best=r),n}function h(t){return _.tabReplace&&(t=t.replace(/^((<[^>]+>|\t)+)/gm,function(t,e,i,n){return e.replace(/\t/g,_.tabReplace)})),_.useBR&&(t=t.replace(/\n/g,"<br>")),t}function f(t){var e=n(t),i=r(t);if("no-highlight"!=i){var s=i?u(i,e,!0):c(e),l=o(t);if(l.length){var f=document.createElementNS("http://www.w3.org/1999/xhtml","pre");f.innerHTML=s.value,s.value=a(l,o(f),e)}s.value=h(s.value),t.innerHTML=s.value,t.className+=" hljs "+(!i&&s.language||""),t.result={language:s.language,re:s.r},s.second_best&&(t.second_best={language:s.second_best.language,re:s.second_best.r})}}function p(t){_=s(_,t)}function d(){if(!d.called){d.called=!0;var t=document.querySelectorAll("pre code");Array.prototype.forEach.call(t,f)}}function g(){addEventListener("DOMContentLoaded",d,!1),addEventListener("load",d,!1)}function m(t,e){var i=y[t]=e(this);i.aliases&&i.aliases.forEach(function(e){b[e]=t})}function v(t){return y[t]||y[b[t]]}var _={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},y={},b={};this.highlight=u,this.highlightAuto=c,this.fixMarkup=h,this.highlightBlock=f,this.configure=p,this.initHighlighting=d,this.initHighlightingOnLoad=g,this.registerLanguage=m,this.getLanguage=v,this.inherit=s,this.IR="[a-zA-Z][a-zA-Z0-9_]*",this.UIR="[a-zA-Z_][a-zA-Z0-9_]*",this.NR="\\b\\d+(\\.\\d+)?",this.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",this.BNR="\\b(0b[01]+)",this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",this.BE={b:"\\\\[\\s\\S]",r:0},this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE]},this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE]},this.CLCM={cN:"comment",b:"//",e:"$"},this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"},this.HCM={cN:"comment",b:"#",e:"$"},this.NM={cN:"number",b:this.NR,r:0},this.CNM={cN:"number",b:this.CNR,r:0},this.BNM={cN:"number",b:this.BNR,r:0},this.REGEXP_MODE={cN:"regexp",b:/\//,e:/\/[gim]*/,i:/\n/,c:[this.BE,{b:/\[/,e:/\]/,r:0,c:[this.BE]}]},this.TM={cN:"title",b:this.IR,r:0},this.UTM={cN:"title",b:this.UIR,r:0}};hljs.registerLanguage("javascript",function(t){return{aliases:["js"],k:{keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require"},c:[{cN:"pi",b:/^\s*('|")use strict('|")/,r:10},t.ASM,t.QSM,t.CLCM,t.CBLCLM,t.CNM,{b:"("+t.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[t.CLCM,t.CBLCLM,t.REGEXP_MODE,{b:/</,e:/>;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,c:[t.inherit(t.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[t.CLCM,t.CBLCLM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+t.IR,r:0}]}}),hljs.registerLanguage("css",function(t){var e="[a-zA-Z-][a-zA-Z0-9_-]*",i={cN:"function",b:e+"\\(",e:"\\)",c:["self",t.NM,t.ASM,t.QSM]};return{cI:!0,i:"[=/|']",c:[t.CBLCLM,{cN:"id",b:"\\#[A-Za-z0-9_-]+"},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"pseudo",b:":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[i,t.ASM,t.QSM,t.NM]}]},{cN:"tag",b:e,r:0},{cN:"rules",b:"{",e:"}",i:"[^\\s]",r:0,c:[t.CBLCLM,{cN:"rule",b:"[^\\s]",rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{cN:"value",eW:!0,eE:!0,c:[i,t.NM,t.QSM,t.ASM,t.CBLCLM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]}]}]}}),hljs.registerLanguage("xml",function(t){var e="[A-Za-z0-9\\._:-]+",i={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php",subLanguageMode:"continuous"},n={eW:!0,i:/</,r:0,c:[i,{cN:"attribute",b:e,r:0},{b:"=",r:0,c:[{cN:"value",v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s\/>]+/}]}]}]};return{aliases:["html"],cI:!0,c:[{cN:"doctype",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"<!--",e:"-->",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{title:"style"},c:[n],starts:{e:"</style>",rE:!0,sL:"css"}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{title:"script"},c:[n],starts:{e:"</script>",rE:!0,sL:"javascript"}},{b:"<%",e:"%>",sL:"vbscript"},i,{cN:"pi",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"title",b:"[^ /><]+",r:0},n]}]}}),hljs.registerLanguage("json",function(t){var e={literal:"true false null"},i=[t.QSM,t.CNM],n={cN:"value",e:",",eW:!0,eE:!0,c:i,k:e},r={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[t.BE],i:"\\n",starts:n}],i:"\\S"},s={b:"\\[",e:"\\]",c:[t.inherit(n,{cN:null})],i:"\\S"};return i.splice(i.length,0,r,s),{c:i,k:e,i:"\\S"}});/*! * VERSION: 1.15.1 * DATE: 2015-01-20 * UPDATES AND DOCS AT: http://greensock.com * * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin * * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. * This work is subject to the terms at http://greensock.com/standard-license or for * Club GreenSock members, the software agreement that was issued with your membership. * * @author: Jack Doyle, [email protected] **/ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},r=function(t,e,n){i.call(this,t,e,n),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=r.prototype.render},s=1e-10,o=i._internals,a=o.isSelector,l=o.isArray,u=r.prototype=i.to({},.1,{}),c=[];r.version="1.15.1",u.constructor=r,u.kill()._gc=!1,r.killTweensOf=r.killDelayedCallsTo=i.killTweensOf,r.getTweensOf=i.getTweensOf,r.lagSmoothing=i.lagSmoothing,r.ticker=i.ticker,r.render=i.render,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(t,e){var n,r=this.ratio,s=this.vars.immediateRender||t.immediateRender;e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(n in t)this.vars[n]=t[n];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var o=this._time;this.render(0,!0,!1),this._initted=!1,this.render(o,!0,!1)}else if(this._time>0||s){this._initted=!1,this._init();for(var a,l=1/(1-r),u=this._firstPT;u;)a=u.s+u.c,u.c*=l,u.s=a-u.c,u=u._next}return this},u.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,r,a,l,u,h,f,p,d=this._dirty?this.totalDuration():this._totalDuration,g=this._time,m=this._totalTime,v=this._cycle,_=this._duration,y=this._rawPrevTime;if(t>=d?(this._totalTime=d,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=_,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,r="onComplete"),0===_&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>y||y===s)&&y!==t&&(i=!0,y>s&&(r="onReverseComplete")),this._rawPrevTime=p=!e||t||y===t?t:s)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==m||0===_&&y>0&&y!==s)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===_&&(this._initted||!this.vars.lazy||i)&&(y>=0&&(i=!0),this._rawPrevTime=p=!e||t||y===t?t:s)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=_+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=_-this._time),this._time>_?this._time=_:0>this._time&&(this._time=0)),this._easeType?(u=this._time/_,h=this._easeType,f=this._easePower,(1===h||3===h&&u>=.5)&&(u=1-u),3===h&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),this.ratio=1===h?1-u:2===h?u:.5>this._time/_?u/2:1-u/2):this.ratio=this._ease.getRatio(this._time/_)),g===this._time&&!i&&v===this._cycle)return void(m!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c)));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=g,this._totalTime=m,this._rawPrevTime=y,this._cycle=v,o.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/_):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==g&&t>=0&&(this._active=!0),0===m&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===_)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c))),a=this._firstPT;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==m||n)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c)),this._cycle!==v&&(e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||c)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||c),0===_&&this._rawPrevTime===s&&p!==s&&(this._rawPrevTime=0))},r.to=function(t,e,i){return new r(t,e,i)},r.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(t,e,i)},r.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new r(t,e,n)},r.staggerTo=r.allTo=function(t,e,s,o,u,h,f){o=o||0;var p,d,g,m,v=s.delay||0,_=[],y=function(){s.onComplete&&s.onComplete.apply(s.onCompleteScope||this,arguments),u.apply(f||this,h||c)};for(l(t)||("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=n(t))),t=t||[],0>o&&(t=n(t),t.reverse(),o*=-1),p=t.length-1,g=0;p>=g;g++){d={};for(m in s)d[m]=s[m];d.delay=v,g===p&&u&&(d.onComplete=y),_[g]=new r(t[g],e,d),v+=o}return _},r.staggerFrom=r.allFrom=function(t,e,i,n,s,o,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,r.staggerTo(t,e,i,n,s,o,a)},r.staggerFromTo=r.allFromTo=function(t,e,i,n,s,o,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,r.staggerTo(t,e,n,s,o,a,l)},r.delayedCall=function(t,e,i,n,s){return new r(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:n,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:n,immediateRender:!1,useFrames:s,overwrite:0})},r.set=function(t,e){return new r(t,0,e)},r.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var h=function(t,e){for(var n=[],r=0,s=t._first;s;)s instanceof i?n[r++]=s:(e&&(n[r++]=s),n=n.concat(h(s,e)),r=n.length),s=s._next;return n},f=r.getAllTweens=function(e){return h(t._rootTimeline,e).concat(h(t._rootFramesTimeline,e))};r.killAll=function(t,i,n,r){null==i&&(i=!0),null==n&&(n=!0);var s,o,a,l=f(0!=r),u=l.length,c=i&&n&&r;for(a=0;u>a;a++)o=l[a],(c||o instanceof e||(s=o.target===o.vars.onComplete)&&n||i&&!s)&&(t?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},r.killChildTweensOf=function(t,e){if(null!=t){var s,u,c,h,f,p=o.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=n(t)),l(t))for(h=t.length;--h>-1;)r.killChildTweensOf(t[h],e);else{s=[];for(c in p)for(u=p[c].target.parentNode;u;)u===t&&(s=s.concat(p[c].tweens)),u=u.parentNode;for(f=s.length,h=0;f>h;h++)e&&s[h].totalTime(s[h].totalDuration()),s[h]._enabled(!1,!1)}}};var p=function(t,i,n,r){i=i!==!1,n=n!==!1,r=r!==!1;for(var s,o,a=f(r),l=i&&n&&r,u=a.length;--u>-1;)o=a[u],(l||o instanceof e||(s=o.target===o.vars.onComplete)&&n||i&&!s)&&o.paused(t)};return r.pauseAll=function(t,e,i){p(!0,t,e,i)},r.resumeAll=function(t,e,i){p(!1,t,e,i)},r.globalTimeScale=function(e){var n=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||s,n._startTime=r-(r-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,r=i.ticker.frame,n._startTime=r-(r-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},u.progress=function(t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},u.totalProgress=function(t){return arguments.length?this.totalTime(this.totalDuration()*t,!1):this._totalTime/this.totalDuration()},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},u.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,o=n._internals={},a=s.isSelector,l=s.isArray,u=s.lazyTweens,c=s.lazyRender,h=[],f=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},d=o.pauseCallback=function(t,e,i,n){var r=t._timeline,s=r._totalTime;!e&&this._forcingPlayhead||r._rawPrevTime===t._startTime||(r.pause(t._startTime),e&&e.apply(n||r,i||h),this._forcingPlayhead&&r.seek(s))},g=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},m=n.prototype=new e;return n.version="1.15.1",m.constructor=n,m.kill()._gc=m._forcingPlayhead=!1,m.to=function(t,e,n,r){var s=n.repeat&&f.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},m.from=function(t,e,n,r){return this.add((n.repeat&&f.TweenMax||i).from(t,e,n),r)},m.fromTo=function(t,e,n,r,s){var o=r.repeat&&f.TweenMax||i;return e?this.add(o.fromTo(t,e,n,r),s):this.set(t,r,s)},m.staggerTo=function(t,e,r,s,o,l,u,c){var h,f=new n({onComplete:l,onCompleteParams:u,onCompleteScope:c,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=g(t)),s=s||0,0>s&&(t=g(t),t.reverse(),s*=-1),h=0;t.length>h;h++)r.startAt&&(r.startAt=p(r.startAt)),f.to(t[h],e,p(r),h*s);return this.add(f,o)},m.staggerFrom=function(t,e,i,n,r,s,o,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,o,a)},m.staggerFromTo=function(t,e,i,n,r,s,o,a,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,o,a,l)},m.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},m.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,o=new n(t),a=o._timeline;for(null==e&&(e=!0),a._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=a._time,r=a._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||o.add(r,r._startTime-r._delay),r=s;return a.add(o,0),o},m.add=function(r,s,o,a){var u,c,h,f,p,d;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(o=o||"normal",a=a||0,u=s,c=r.length,h=0;c>h;h++)l(f=r[h])&&(f=new n({tweens:f})),this.add(f,u),"string"!=typeof f&&"function"!=typeof f&&("sequence"===o?u=f._startTime+f.totalDuration()/f._timeScale:"start"===o&&(f._startTime-=f.delay())),u+=a;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(p=this,d=p.rawTime()>r._startTime;p._timeline;)d&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&l(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},m.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,n,r){var s=i.delayedCall(0,d,["{self}",e,n,r],this);return s.data="isPause",this.add(s,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(s=e.indexOf("="),-1===s)return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,o,a,l,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,d=this._startTime,g=this._timeScale,m=this._paused;if(t>=f?(this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4):1e-7>t?(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(a="onReverseComplete",s=this._reversed),0>t?(this._active=!1,this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t):(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(l=!0))):this._totalTime=this._time=this._rawPrevTime=t,this._time!==p&&this._first||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||h)),this._time>=p)for(n=this._first;n&&(o=n._next,!this._paused||m);)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=o;else for(n=this._last;n&&(o=n._prev,!this._paused||m);)(n._active||p>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=o;this._onUpdate&&(e||(u.length&&c(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||h))),a&&(this._gc||(d===this._startTime||g!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(u.length&&c(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this.vars[a].apply(this.vars[a+"Scope"]||this,this.vars[a+"Params"]||h)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],o=this._first,a=0;o;)r>o._startTime||(o instanceof i?e!==!1&&(s[a++]=o):(n!==!1&&(s[a++]=o),t!==!1&&(s=s.concat(o.getChildren(!0,e,n)),a=s.length))),o=o._next;return s},m.getTweensOf=function(t,e){var n,r,s=this._gc,o=[],a=0;for(s&&this._enabled(!0,!0),n=i.getTweensOf(t),r=n.length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(o[a++]=n[r]);return s&&this._enabled(!1,!0),o},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,0>r._startTime&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},r=1e-10,s=[],o=e._internals,a=o.lazyTweens,l=o.lazyRender,u=new i(null,null,1,0),c=n.prototype=new t;return c.constructor=n,c.kill()._gc=!1,n.version="1.15.1",c.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},c.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},c.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},c.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},c.tweenTo=function(t,i){i=i||{};var n,r,o,a={ease:u,useFrames:this.usesFrames(),immediateRender:!1};for(r in i)a[r]=i[r];return a.time=this._parseTimeOrLabel(t),n=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,o=new e(this,n,a),a.onStart=function(){o.target.paused(!0),o.vars.time!==o.target.time()&&n===o.duration()&&o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale),i.onStart&&i.onStart.apply(i.onStartScope||o,i.onStartParams||s)},o},c.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],onCompleteScope:this},i.immediateRender=i.immediateRender!==!1;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},c.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,o,u,c,h,f,p=this._dirty?this.totalDuration():this._totalDuration,d=this._duration,g=this._time,m=this._totalTime,v=this._startTime,_=this._timeScale,y=this._rawPrevTime,b=this._paused,x=this._cycle;if(t>=p?(this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(o=!0,c="onComplete",0===this._duration&&(0===t||0>y||y===r)&&y!==t&&this._first&&(h=!0,y>r&&(c="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=d,t=d+1e-4)):1e-7>t?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==g||0===d&&y!==r&&(y>0||0>t&&y>=0)&&!this._locked)&&(c="onReverseComplete",o=this._reversed),0>t?(this._active=!1,y>=0&&this._first&&(h=!0),this._rawPrevTime=t):(this._rawPrevTime=d||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(h=!0))):(0===d&&0>y&&(h=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(f=d+this._repeatDelay,this._cycle=this._totalTime/f>>0,0!==this._cycle&&this._cycle===this._totalTime/f&&this._cycle--,this._time=this._totalTime-this._cycle*f,this._yoyo&&0!==(1&this._cycle)&&(this._time=d-this._time),this._time>d?(this._time=d,t=d+1e-4):0>this._time?this._time=t=0:t=this._time))),this._cycle!==x&&!this._locked){var w=this._yoyo&&0!==(1&x),T=w===(this._yoyo&&0!==(1&this._cycle)),k=this._totalTime,C=this._cycle,S=this._rawPrevTime,P=this._time;if(this._totalTime=x*d,x>this._cycle?w=!w:this._totalTime+=d,this._time=g,this._rawPrevTime=0===d?y-1e-4:y,this._cycle=x,this._locked=!0,g=w?0:d,this.render(g,e,0===d),e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||s),T&&(g=w?d+1e-4:-1e-4,this.render(g,!0,!1)),this._locked=!1,this._paused&&!b)return;this._time=P,this._totalTime=k,this._cycle=C,this._rawPrevTime=S}if(!(this._time!==g&&this._first||i||h))return void(m!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==m&&t>0&&(this._active=!0),0===m&&this.vars.onStart&&0!==this._totalTime&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s)),this._time>=g)for(n=this._first;n&&(u=n._next,!this._paused||b);)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=u;else for(n=this._last;n&&(u=n._prev,!this._paused||b);)(n._active||g>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=u;this._onUpdate&&(e||(a.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s))),c&&(this._locked||this._gc||(v===this._startTime||_!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(o&&(a.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[c]&&this.vars[c].apply(this.vars[c+"Scope"]||this,this.vars[c+"Params"]||s)))},c.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,s=[],o=this.getChildren(t,e,i),a=0,l=o.length;for(n=0;l>n;n++)r=o[n],r.isActive()&&(s[a++]=r);return s},c.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;n>e;e++)if(i[e].time>t)return i[e].name;return null},c.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(t>e[i].time)return e[i].name;return null},c.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},c.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},c.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},c.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},c.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},c.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},c.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},c.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},c.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n},!0),function(){var t=180/Math.PI,e=[],i=[],n=[],r={},s=_gsScope._gsDefine.globals,o=function(t,e,i,n){this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},a=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,n){var r={a:t},s={},o={},a={c:n},l=(t+e)/2,u=(e+i)/2,c=(i+n)/2,h=(l+u)/2,f=(u+c)/2,p=(f-h)/8;return r.b=l+(t-l)/4,s.b=h+p,r.c=s.a=(r.b+s.b)/2,s.c=o.a=(h+f)/2,o.b=f-p,a.b=c+(n-c)/4,o.c=a.a=(o.b+a.b)/2,[r,s,o,a]},u=function(t,r,s,o,a){var u,c,h,f,p,d,g,m,v,_,y,b,x,w=t.length-1,T=0,k=t[0].a;for(u=0;w>u;u++)p=t[T],c=p.a,h=p.d,f=t[T+1].d,a?(y=e[u],b=i[u],x=.25*(b+y)*r/(o?.5:n[u]||.5),d=h-(h-c)*(o?.5*r:0!==y?x/y:0),g=h+(f-h)*(o?.5*r:0!==b?x/b:0),m=h-(d+((g-d)*(3*y/(y+b)+.5)/4||0))):(d=h-.5*(h-c)*r,g=h+.5*(f-h)*r,m=h-(d+g)/2),d+=m,g+=m,p.c=v=d,p.b=0!==u?k:k=p.a+.6*(p.c-p.a),p.da=h-c,p.ca=v-c,p.ba=k-c,s?(_=l(c,k,v,h),t.splice(T,1,_[0],_[1],_[2],_[3]),T+=4):T++,k=g;p=t[T],p.b=k,p.c=k+.4*(p.d-k),p.da=p.d-p.a,p.ca=p.c-p.a,p.ba=k-p.a,s&&(_=l(p.a,k,p.c,p.d),t.splice(T,1,_[0],_[1],_[2],_[3]))},c=function(t,n,r,s){var a,l,u,c,h,f,p=[];if(s)for(t=[s].concat(t),l=t.length;--l>-1;)"string"==typeof(f=t[l][n])&&"="===f.charAt(1)&&(t[l][n]=s[n]+Number(f.charAt(0)+f.substr(2)));if(a=t.length-2,0>a)return p[0]=new o(t[0][n],0,0,t[-1>a?0:1][n]),p;for(l=0;a>l;l++)u=t[l][n],c=t[l+1][n],p[l]=new o(u,0,0,c),r&&(h=t[l+2][n],e[l]=(e[l]||0)+(c-u)*(c-u),i[l]=(i[l]||0)+(h-c)*(h-c));return p[l]=new o(t[l][n],0,0,t[l+1][n]),p},h=function(t,s,o,l,h,f){var p,d,g,m,v,_,y,b,x={},w=[],T=f||t[0];h="string"==typeof h?","+h+",":a,null==s&&(s=1);for(d in t[0])w.push(d);if(t.length>1){for(b=t[t.length-1],y=!0,p=w.length;--p>-1;)if(d=w[p],Math.abs(T[d]-b[d])>.05){y=!1;break}y&&(t=t.concat(),f&&t.unshift(f),t.push(t[1]),f=t[t.length-3])}for(e.length=i.length=n.length=0,p=w.length;--p>-1;)d=w[p],r[d]=-1!==h.indexOf(","+d+","),x[d]=c(t,d,r[d],f);for(p=e.length;--p>-1;)e[p]=Math.sqrt(e[p]),i[p]=Math.sqrt(i[p]);if(!l){for(p=w.length;--p>-1;)if(r[d])for(g=x[w[p]],_=g.length-1,m=0;_>m;m++)v=g[m+1].da/i[m]+g[m].da/e[m],n[m]=(n[m]||0)+v*v;for(p=n.length;--p>-1;)n[p]=Math.sqrt(n[p])}for(p=w.length,m=o?4:1;--p>-1;)d=w[p],g=x[d],u(g,s,o,l,r[d]),y&&(g.splice(0,m),g.splice(g.length-m,m));return x},f=function(t,e,i){e=e||"soft";var n,r,s,a,l,u,c,h,f,p,d,g={},m="cubic"===e?3:2,v="soft"===e,_=[];if(v&&i&&(t=[i].concat(t)),null==t||m+1>t.length)throw"invalid Bezier data";for(f in t[0])_.push(f);for(u=_.length;--u>-1;){for(f=_[u],g[f]=l=[],p=0,h=t.length,c=0;h>c;c++)n=null==i?t[c][f]:"string"==typeof(d=t[c][f])&&"="===d.charAt(1)?i[f]+Number(d.charAt(0)+d.substr(2)):Number(d),v&&c>1&&h-1>c&&(l[p++]=(n+l[p-2])/2),l[p++]=n;for(h=p-m+1,p=0,c=0;h>c;c+=m)n=l[c],r=l[c+1],s=l[c+2],a=2===m?0:l[c+3],l[p++]=d=3===m?new o(n,r,s,a):new o(n,(2*r+n)/3,(2*r+s)/3,s);l.length=p}return g},p=function(t,e,i){for(var n,r,s,o,a,l,u,c,h,f,p,d=1/i,g=t.length;--g>-1;)for(f=t[g],s=f.a,o=f.d-s,a=f.c-s,l=f.b-s,n=r=0,c=1;i>=c;c++)u=d*c,h=1-u,n=r-(r=(u*u*o+3*h*(u*a+h*l))*u),p=g*i+c-1,e[p]=(e[p]||0)+n*n},d=function(t,e){e=e>>0||6;var i,n,r,s,o=[],a=[],l=0,u=0,c=e-1,h=[],f=[];for(i in t)p(t[i],o,e);for(r=o.length,n=0;r>n;n++)l+=Math.sqrt(o[n]),s=n%e,f[s]=l,s===c&&(u+=l,s=n/e>>0,h[s]=f,a[s]=u,l=0,f=[]);return{length:u,lengths:a,segments:h}},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.4",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._round={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,s,o,a,l=e.values||[],u={},c=l[0],p=e.autoRotate||i.vars.orientToBezier;this._autoRotate=p?p instanceof Array?p:[["x","y","rotation",p===!0?0:Number(p)||0]]:null;for(n in c)this._props.push(n);for(s=this._props.length;--s>-1;)n=this._props[s],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],u[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),a||u[n]!==l[0][n]&&(a=u);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?h(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):f(l,e.type,u),this._segCount=this._beziers[n].length,this._timeRes){var g=d(this._beziers,this._timeRes);this._length=g.length,this._lengths=g.lengths,this._segments=g.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(p=this._autoRotate)for(this._initialRotations=[],p[0]instanceof Array||(this._autoRotate=p=[p]),s=p.length;--s>-1;){for(o=0;3>o;o++)n=p[s][o],this._func[n]="function"==typeof t[n]?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]:!1;n=p[s][2],this._initialRotations[s]=this._func[n]?this._func[n].call(this._target):this._target[n]}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,s,o,a,l,u,c,h,f=this._segCount,p=this._func,d=this._target,g=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,h=this._curSeg,e*=this._length,r=this._li,e>this._l2&&f-1>r){for(u=f-1;u>r&&e>=(this._l2=c[++r]););this._l1=c[r-1],this._li=r,this._curSeg=h=this._segments[r],this._s2=h[this._s1=this._si=0]}else if(this._l1>e&&r>0){for(;r>0&&(this._l1=c[--r])>=e;);0===r&&this._l1>e?this._l1=0:r++,this._l2=c[r],this._li=r,this._curSeg=h=this._segments[r], this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&h.length-1>r){for(u=h.length-1;u>r&&e>=(this._s2=h[++r]););this._s1=h[r-1],this._si=r}else if(this._s1>e&&r>0){for(;r>0&&(this._s1=h[--r])>=e;);0===r&&this._s1>e?this._s1=0:r++,this._s2=h[r],this._si=r}a=(r+(e-this._s1)/(this._s2-this._s1))*this._prec}else i=0>e?0:e>=1?f-1:f*e>>0,a=(e-i*(1/f))*f;for(n=1-a,r=this._props.length;--r>-1;)s=this._props[r],o=this._beziers[s][i],l=(a*a*o.da+3*n*(a*o.ca+n*o.ba))*a+o.a,this._round[s]&&(l=Math.round(l)),p[s]?d[s](l):d[s]=l;if(this._autoRotate){var m,v,_,y,b,x,w,T=this._autoRotate;for(r=T.length;--r>-1;)s=T[r][2],x=T[r][3]||0,w=T[r][4]===!0?1:t,o=this._beziers[T[r][0]],m=this._beziers[T[r][1]],o&&m&&(o=o[i],m=m[i],v=o.a+(o.b-o.a)*a,y=o.b+(o.c-o.b)*a,v+=(y-v)*a,y+=(o.c+(o.d-o.c)*a-y)*a,_=m.a+(m.b-m.a)*a,b=m.b+(m.c-m.b)*a,_+=(b-_)*a,b+=(m.c+(m.d-m.c)*a-b)*a,l=g?Math.atan2(b-_,y-v)*w+x:this._initialRotations[r],p[s]?d[s](l):d[s]=l)}}}),m=g.prototype;g.bezierThrough=h,g.cubicToQuadratic=l,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new o(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,o,a,l){e instanceof Array&&(e={values:e}),l=new g;var u,c,h,f=e.values,p=f.length-1,d=[],m={};if(0>p)return a;for(u=0;p>=u;u++)h=i(t,f[u],o,a,l,p!==u),d[u]=h.end;for(c in e)m[c]=e[c];return m.values=d,a=new r(t,"bezier",0,0,h.pt,2),a.data=h,a.plugin=l,a.setRatio=n,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(u=m.autoRotate===!0?0:Number(m.autoRotate),m.autoRotate=null!=h.end.left?[["left","top","rotation",u,!1]]:null!=h.end.x?[["x","y","rotation",u,!1]]:!1),m.autoRotate&&(o._transform||o._enableTransforms(!1),h.autoRotate=o._target._gsTransform),l._onInitTween(h.proxy,m,o._tween),a}})}},m._roundProps=function(t,e){for(var i=this._overwriteProps,n=i.length;--n>-1;)(t[i[n]]||t.bezier||t.bezierThrough)&&(this._round[i[n]]=e)},m._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,r,s,o=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},u=o.prototype=new t("css");u.constructor=o,o.version="1.15.1",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",u="px",o.suffixMap={top:u,right:u,bottom:u,left:u,width:u,height:u,fontSize:u,padding:u,margin:u,perspective:u,lineHeight:""};var c,h,f,p,d,g,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,v=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,_=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,b=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,T=/alpha\(opacity *=.+?\)/i,k=/^(rgb|hsl)/,C=/([A-Z])/g,S=/-([a-z])/gi,P=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,A=function(t,e){return e.toUpperCase()},E=/(?:Left|Right|Width)/i,N=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,R=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,O=/,(?=[^\)]*(?:\(|$))/gi,D=Math.PI/180,L=180/Math.PI,M={},F=document,z=function(t){return F.createElementNS?F.createElementNS("http://www.w3.org/1999/xhtml",t):F.createElement(t)},j=z("div"),I=z("img"),q=o._internals={_specialProps:l},B=navigator.userAgent,H=function(){var t=B.indexOf("Android"),e=z("a");return f=-1!==B.indexOf("Safari")&&-1===B.indexOf("Chrome")&&(-1===t||Number(B.substr(t+8,1))>3),d=f&&6>Number(B.substr(B.indexOf("Version/")+8,1)),p=-1!==B.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(B)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(B))&&(g=parseFloat(RegExp.$1)),e?(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity)):!1}(),X=function(t){return x.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(t){window.console&&console.log(t)},Y="",U="",G=function(t,e){e=e||j;var i,n,r=e.style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?(U=3===n?"ms":i[n],Y="-"+U.toLowerCase()+"-",U+t):null},V=F.defaultView?F.defaultView.getComputedStyle:function(){},Z=o.getStyle=function(t,e,i,n,r){var s;return H||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||V(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(C,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):X(t)},$=q.convertToPixels=function(t,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var a,l,u,c=E.test(i),h=t,f=j.style,p=0>n;if(p&&(n=-n),"%"===r&&-1!==i.indexOf("border"))a=n/100*(c?t.clientWidth:t.clientHeight);else{if(f.cssText="border:0 solid red;position:"+Z(t,"position")+";line-height:0;","%"!==r&&h.appendChild)f[c?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(h=t.parentNode||F.body,l=h._gsCache,u=e.ticker.frame,l&&c&&l.time===u)return l.width*n/100;f[c?"width":"height"]=n+r}h.appendChild(j),a=parseFloat(j[c?"offsetWidth":"offsetHeight"]),h.removeChild(j),c&&"%"===r&&o.cacheWidths!==!1&&(l=h._gsCache=h._gsCache||{},l.time=u,l.width=100*(a/n)),0!==a||s||(a=$(t,i,n,r,!0))}return p?-a:a},Q=q.calculateOffset=function(t,e,i){if("absolute"!==Z(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=Z(t,"margin"+n,i);return t["offset"+n]-($(t,e,parseFloat(r),r.replace(b,""))||0)},K=function(t,e){var i,n,r={};if(e=e||V(t,null))for(i in e)(-1===i.indexOf("Transform")||wt===i)&&(r[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===r[i]&&(r[i.replace(S,A)]=e[i]);return H||(r.opacity=X(t)),n=Ot(t,e,!1),r.rotation=n.rotation,r.skewX=n.skewX,r.scaleX=n.scaleX,r.scaleY=n.scaleY,r.x=n.x,r.y=n.y,Ct&&(r.z=n.z,r.rotationX=n.rotationX,r.rotationY=n.rotationY,r.scaleZ=n.scaleZ),r.filters&&delete r.filters,r},J=function(t,e,i,n,r){var s,o,a,l={},u=t.style;for(o in i)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(s=i[o])||r&&r[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[o]||""===e[o].replace(y,"")?s:0:Q(t,o),void 0!==u[o]&&(a=new pt(u,o,u[o],a)));if(n)for(o in n)"className"!==o&&(l[o]=n[o]);return{difs:l,firstMPT:a}},tt={width:["Left","Right"],height:["Top","Bottom"]},et=["marginLeft","marginRight","marginTop","marginBottom"],it=function(t,e,i){var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=tt[e],s=r.length;for(i=i||V(t,null);--s>-1;)n-=parseFloat(Z(t,"padding"+r[s],i,!0))||0,n-=parseFloat(Z(t,"border"+r[s]+"Width",i,!0))||0;return n},nt=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==r?r="center"===n?"50%":"0":"center"===r&&(r="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(n.replace(y,"")),e.oy=parseFloat(r.replace(y,""))),n+" "+r+(i.length>2?" "+i[2]:"")},rt=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},st=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},ot=function(t,e,i,n){var r,s,o,a,l,u=1e-6;return null==t?a=e:"number"==typeof t?a=t:(r=360,s=t.split("_"),l="="===t.charAt(1),o=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:L)-(l?0:e),s.length&&(n&&(n[i]=e+o),-1!==t.indexOf("short")&&(o%=r,o!==o%(r/2)&&(o=0>o?o+r:o-r)),-1!==t.indexOf("_cw")&&0>o?o=(o+9999999999*r)%r-(0|o/r)*r:-1!==t.indexOf("ccw")&&o>0&&(o=(o-9999999999*r)%r-(0|o/r)*r)),a=e+o),u>a&&a>-u&&(a=0),a},at={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},lt=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},ut=o.parseColor=function(t){var e,i,n,r,s,o;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),at[t]?at[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),n=t.charAt(3),t="#"+e+e+i+i+n+n),t=parseInt(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(m),r=Number(t[0])%360/360,s=Number(t[1])/100,o=Number(t[2])/100,i=.5>=o?o*(s+1):o+s-o*s,e=2*o-i,t.length>3&&(t[3]=Number(t[3])),t[0]=lt(r+1/3,e,i),t[1]=lt(r,e,i),t[2]=lt(r-1/3,e,i),t):(t=t.match(m)||at.transparent,t[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):at.black},ct="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(u in at)ct+="|"+u+"\\b";ct=RegExp(ct+")","gi");var ht=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(ct)||[""])[0]:"",o=t.split(s).join("").match(_)||[],a=t.substr(0,t.indexOf(o[0])),l=")"===t.charAt(t.length-1)?")":"",u=-1!==t.indexOf(" ")?" ":",",c=o.length,h=c>0?o[0].replace(m,""):"";return c?r=e?function(t){var e,f,p,d;if("number"==typeof t)t+=h;else if(n&&O.test(t)){for(d=t.replace(O,"|").split("|"),p=0;d.length>p;p++)d[p]=r(d[p]);return d.join(",")}if(e=(t.match(ct)||[s])[0],f=t.split(e).join("").match(_)||[],p=f.length,c>p--)for(;c>++p;)f[p]=i?f[0|(p-1)/2]:o[p];return a+f.join(u)+u+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,f;if("number"==typeof t)t+=h;else if(n&&O.test(t)){for(s=t.replace(O,"|").split("|"),f=0;s.length>f;f++)s[f]=r(s[f]);return s.join(",")}if(e=t.match(_)||[],f=e.length,c>f--)for(;c>++f;)e[f]=i?e[0|(f-1)/2]:o[f];return a+e.join(u)+l}:function(t){return t}},ft=function(t){return t=t.split(","),function(e,i,n,r,s,o,a){var l,u=(i+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=u[l]=u[l]||u[(l-1)/2>>0];return r.parse(e,a,s,o)}},pt=(q._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s=this.data,o=s.proxy,a=s.firstMPT,l=1e-6;a;)e=o[a.v],a.r?e=Math.round(e):l>e&&e>-l&&(e=0),a.t[a.p]=e,a=a._next;if(s.autoRotate&&(s.autoRotate.rotation=o.rotation),1===t)for(a=s.firstMPT;a;){if(i=a.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;i.l>n;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.e=r}}else i.e=i.s+i.xs0;a=a._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),dt=(q._parseToProxy=function(t,e,i,n,r,s){var o,a,l,u,c,h=n,f={},p={},d=i._transform,g=M;for(i._transform=null,M=e,n=c=i.parse(t,e,n,r),M=g,s&&(i._transform=d,h&&(h._prev=null,h._prev&&(h._prev._next=null)));n&&n!==h;){if(1>=n.type&&(a=n.p,p[a]=n.s+n.c,f[a]=n.s,s||(u=new pt(n,"s",a,u,n.r),n.c=0),1===n.type))for(o=n.l;--o>0;)l="xn"+o,a=n.p+"_"+l,p[a]=n.data[l],f[a]=n[l],s||(u=new pt(n,l,a,u,n.rxp[l]));n=n._next}return{proxy:f,end:p,firstMPT:u,pt:c}},q.CSSPropTween=function(t,e,n,r,o,a,l,u,c,h,f){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof dt||s.push(this.n),this.r=u,this.type=a||0,c&&(this.pr=c,i=!0),this.b=void 0===h?n:h,this.e=void 0===f?n+r:f,o&&(this._next=o,o._prev=this)}),gt=o.parseComplex=function(t,e,i,n,r,s,o,a,l,u){i=i||s||"",o=new dt(t,e,0,0,o,u?2:1,null,!1,a,i,n),n+="";var h,f,p,d,g,_,y,b,x,w,T,C,S=i.split(", ").join(",").split(" "),P=n.split(", ").join(",").split(" "),A=S.length,E=c!==!1;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(S=S.join(" ").replace(O,", ").split(" "),P=P.join(" ").replace(O,", ").split(" "),A=S.length),A!==P.length&&(S=(s||"").split(" "),A=S.length),o.plugin=l,o.setRatio=u,h=0;A>h;h++)if(d=S[h],g=P[h],b=parseFloat(d),b||0===b)o.appendXtra("",b,rt(g,b),g.replace(v,""),E&&-1!==g.indexOf("px"),!0);else if(r&&("#"===d.charAt(0)||at[d]||k.test(d)))C=","===g.charAt(g.length-1)?"),":")",d=ut(d),g=ut(g),x=d.length+g.length>6,x&&!H&&0===g[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(P[h]).join("transparent")):(H||(x=!1),o.appendXtra(x?"rgba(":"rgb(",d[0],g[0]-d[0],",",!0,!0).appendXtra("",d[1],g[1]-d[1],",",!0).appendXtra("",d[2],g[2]-d[2],x?",":C,!0),x&&(d=4>d.length?1:d[3],o.appendXtra("",d,(4>g.length?1:g[3])-d,C,!1)));else if(_=d.match(m)){if(y=g.match(v),!y||y.length!==_.length)return o;for(p=0,f=0;_.length>f;f++)T=_[f],w=d.indexOf(T,p),o.appendXtra(d.substr(p,w-p),Number(T),rt(y[f],T),"",E&&"px"===d.substr(w+T.length,2),0===f),p=w+T.length;o["xs"+o.l]+=d.substr(p)}else o["xs"+o.l]+=o.l?" "+d:d;if(-1!==n.indexOf("=")&&o.data){for(C=o.xs0+o.data.s,h=1;o.l>h;h++)C+=o["xs"+h]+o.data["xn"+h];o.e=C+o["xs"+h]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},mt=9;for(u=dt.prototype,u.l=u.pr=0;--mt>0;)u["xn"+mt]=0,u["xs"+mt]="";u.xs0="",u._next=u._prev=u.xfirst=u.data=u.plugin=u.setRatio=u.rxp=null,u.appendXtra=function(t,e,i,n,r,s){var o=this,a=o.l;return o["xs"+a]+=s&&a?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=n||"",a>0?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=r,o["xn"+a]=e,o.plugin||(o.xfirst=new dt(o,"xn"+a,e,i,o.xfirst||o,0,o.n,r,o.pr),o.xfirst.xs0=0),o):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=r,o)):(o["xs"+a]+=e+(n||""),o)};var vt=function(t,e){e=e||{},this.p=e.prefix?G(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||ht(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},_t=q._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r,s=t.split(","),o=e.defaultValue;for(i=i||[o],n=0;s.length>n;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||o,r=new vt(s[n],e)},yt=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";_t(t,{parser:function(t,i,n,r,s,o,u){var c=a.com.greensock.plugins[e];return c?(c._cssRegister(),l[n].parse(t,i,n,r,s,o,u)):(W("Error: "+e+" js file not loaded."),s)}})}};u=vt.prototype,u.parseComplex=function(t,e,i,n,r,s){var o,a,l,u,c,h,f=this.keyword;if(this.multi&&(O.test(i)||O.test(e)?(a=e.replace(O,"|").split("|"),l=i.replace(O,"|").split("|")):f&&(a=[e],l=[i])),l){for(u=l.length>a.length?l.length:a.length,o=0;u>o;o++)e=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,f&&(c=e.indexOf(f),h=i.indexOf(f),c!==h&&(i=-1===h?l:a,i[o]+=" "+f));e=a.join(", "),i=l.join(", ")}return gt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},u.parse=function(t,e,i,n,s,o){return this.parseComplex(t.style,this.format(Z(t,this.p,r,!1,this.dflt)),this.format(e),s,o)},o.registerSpecialProp=function(t,e,i){_t(t,{parser:function(t,n,r,s,o,a){var l=new dt(t,r,0,0,o,2,r,!1,i);return l.plugin=a,l.setRatio=e(t,n,s._tween,r),l},priority:i})};var bt,xt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),wt=G("transform"),Tt=Y+"transform",kt=G("transformOrigin"),Ct=null!==G("perspective"),St=q.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=o.defaultForce3D!==!1&&Ct?o.defaultForce3D||"auto":!1},Pt=window.SVGElement,At=function(t,e,i){var n,r=F.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},Et=document.documentElement,Nt=function(){var t,e,i,n=g||/Android/i.test(B)&&!window.chrome;return F.createElementNS&&!n&&(t=At("svg",Et),e=At("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[kt]="50% 50%",e.style[wt]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(p&&Ct),Et.removeChild(t)),n}(),Rt=function(t,e,i){var n=t.getBBox();e=nt(e).split(" "),i.xOrigin=(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*n.width:parseFloat(e[0]))+n.x,i.yOrigin=(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*n.height:parseFloat(e[1]))+n.y},Ot=q.getTransform=function(t,e,i,n){if(t._gsTransform&&i&&!n)return t._gsTransform;var s,a,l,u,c,h,f,p,d,g,m=i?t._gsTransform||new St:new St,v=0>m.scaleX,_=2e-5,y=1e5,b=Ct?parseFloat(Z(t,kt,e,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,x=parseFloat(o.defaultTransformPerspective)||0;if(wt?a=Z(t,Tt,e,!0):t.currentStyle&&(a=t.currentStyle.filter.match(N),a=a&&4===a.length?[a[0].substr(4),Number(a[2].substr(4)),Number(a[1].substr(4)),a[3].substr(4),m.x||0,m.y||0].join(","):""),s=!a||"none"===a||"matrix(1, 0, 0, 1, 0, 0)"===a,m.svg=!!(Pt&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM)),m.svg&&(Rt(t,Z(t,kt,r,!1,"50% 50%")+"",m),bt=o.useSVGTransformAttr||Nt,l=t.getAttribute("transform"),s&&l&&-1!==l.indexOf("matrix")&&(a=l,s=0)),!s){for(l=(a||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],u=l.length;--u>-1;)c=Number(l[u]),l[u]=(h=c-(c|=0))?(0|h*y+(0>h?-.5:.5))/y+c:c;if(16===l.length){var w,T,k,C,S,P=l[0],A=l[1],E=l[2],R=l[3],O=l[4],D=l[5],M=l[6],F=l[7],z=l[8],j=l[9],I=l[10],q=l[12],B=l[13],H=l[14],X=l[11],W=Math.atan2(M,I);m.zOrigin&&(H=-m.zOrigin,q=z*H-l[12],B=j*H-l[13],H=I*H+m.zOrigin-l[14]),m.rotationX=W*L,W&&(C=Math.cos(-W),S=Math.sin(-W),w=O*C+z*S,T=D*C+j*S,k=M*C+I*S,z=O*-S+z*C,j=D*-S+j*C,I=M*-S+I*C,X=F*-S+X*C,O=w,D=T,M=k),W=Math.atan2(z,I),m.rotationY=W*L,W&&(C=Math.cos(-W),S=Math.sin(-W),w=P*C-z*S,T=A*C-j*S,k=E*C-I*S,j=A*S+j*C,I=E*S+I*C,X=R*S+X*C,P=w,A=T,E=k),W=Math.atan2(A,P),m.rotation=W*L,W&&(C=Math.cos(-W),S=Math.sin(-W),P=P*C+O*S,T=A*C+D*S,D=A*-S+D*C,M=E*-S+M*C,A=T),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY+=180),m.scaleX=(0|Math.sqrt(P*P+A*A)*y+.5)/y,m.scaleY=(0|Math.sqrt(D*D+j*j)*y+.5)/y,m.scaleZ=(0|Math.sqrt(M*M+I*I)*y+.5)/y,m.skewX=0,m.perspective=X?1/(0>X?-X:X):0,m.x=q,m.y=B,m.z=H}else if(!(Ct&&!n&&l.length&&m.x===l[4]&&m.y===l[5]&&(m.rotationX||m.rotationY)||void 0!==m.x&&"none"===Z(t,"display",e))){var Y=l.length>=6,U=Y?l[0]:1,G=l[1]||0,V=l[2]||0,$=Y?l[3]:1;m.x=l[4]||0,m.y=l[5]||0,f=Math.sqrt(U*U+G*G),p=Math.sqrt($*$+V*V),d=U||G?Math.atan2(G,U)*L:m.rotation||0,g=V||$?Math.atan2(V,$)*L+d:m.skewX||0,Math.abs(g)>90&&270>Math.abs(g)&&(v?(f*=-1,g+=0>=d?180:-180,d+=0>=d?180:-180):(p*=-1,g+=0>=g?180:-180)),m.scaleX=f,m.scaleY=p,m.rotation=d,m.skewX=g,Ct&&(m.rotationX=m.rotationY=m.z=0,m.perspective=x,m.scaleZ=1)}m.zOrigin=b;for(u in m)_>m[u]&&m[u]>-_&&(m[u]=0)}return i&&(t._gsTransform=m),m},Dt=function(t){var e,i,n=this.data,r=-n.rotation*D,s=r+n.skewX*D,o=1e5,a=(0|Math.cos(r)*n.scaleX*o)/o,l=(0|Math.sin(r)*n.scaleX*o)/o,u=(0|Math.sin(s)*-n.scaleY*o)/o,c=(0|Math.cos(s)*n.scaleY*o)/o,h=this.t.style,f=this.t.currentStyle;if(f){i=l,l=-u,u=-i,e=f.filter,h.filter="";var p,d,m=this.t.offsetWidth,v=this.t.offsetHeight,_="absolute"!==f.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+u+", M22="+c,w=n.x+m*n.xPercent/100,T=n.y+v*n.yPercent/100;if(null!=n.ox&&(p=(n.oxp?.01*m*n.ox:n.ox)-m/2,d=(n.oyp?.01*v*n.oy:n.oy)-v/2,w+=p-(p*a+d*l),T+=d-(p*u+d*c)),_?(p=m/2,d=v/2,y+=", Dx="+(p-(p*a+d*l)+w)+", Dy="+(d-(p*u+d*c)+T)+")"):y+=", sizingMethod='auto expand')",h.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(R,y):y+" "+e,(0===t||1===t)&&1===a&&0===l&&0===u&&1===c&&(_&&-1===y.indexOf("Dx=0, Dy=0")||x.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&h.removeAttribute("filter")),!_){var k,C,S,P=8>g?1:-1;for(p=n.ieOffsetX||0,d=n.ieOffsetY||0,n.ieOffsetX=Math.round((m-((0>a?-a:a)*m+(0>l?-l:l)*v))/2+w),n.ieOffsetY=Math.round((v-((0>c?-c:c)*v+(0>u?-u:u)*m))/2+T),mt=0;4>mt;mt++)C=et[mt],k=f[C],i=-1!==k.indexOf("px")?parseFloat(k):$(this.t,C,parseFloat(k),k.replace(b,""))||0,S=i!==n[C]?2>mt?-n.ieOffsetX:-n.ieOffsetY:2>mt?p-n.ieOffsetX:d-n.ieOffsetY,h[C]=(n[C]=Math.round(i-S*(0===mt||2===mt?1:P)))+"px"}}},Lt=q.set3DTransformRatio=function(t){var e,i,n,r,s,o,a,l,u,c,h,f,d,g,m,v,_,y,b,x,w,T=this.data,k=this.t.style,C=T.rotation*D,S=T.scaleX,P=T.scaleY,A=T.scaleZ,E=T.x,N=T.y,R=T.z,O=T.perspective;if(!(1!==t&&0!==t&&T.force3D||T.force3D===!0||T.rotationY||T.rotationX||1!==A||O||R))return void Mt.call(this,t);if(p&&(g=1e-4,g>S&&S>-g&&(S=A=2e-5),g>P&&P>-g&&(P=A=2e-5),!O||T.z||T.rotationX||T.rotationY||(O=0)),C||T.skewX)m=e=Math.cos(C),v=r=Math.sin(C),T.skewX&&(C-=T.skewX*D,m=Math.cos(C),v=Math.sin(C),"simple"===T.skewType&&(_=Math.tan(T.skewX*D),_=Math.sqrt(1+_*_),m*=_,v*=_)),i=-v,s=m;else{if(!(T.rotationY||T.rotationX||1!==A||O||T.svg))return void(k[wt]=(T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) translate3d(":"translate3d(")+E+"px,"+N+"px,"+R+"px)"+(1!==S||1!==P?" scale("+S+","+P+")":""));e=s=1,i=r=0}u=1,n=o=a=l=c=h=0,f=O?-1/O:0,d=T.zOrigin,g=1e-6,x=",",w="0",C=T.rotationY*D,C&&(m=Math.cos(C),v=Math.sin(C),a=-v,c=f*-v,n=e*v,o=r*v,u=m,f*=m,e*=m,r*=m),C=T.rotationX*D,C&&(m=Math.cos(C),v=Math.sin(C),_=i*m+n*v,y=s*m+o*v,l=u*v,h=f*v,n=i*-v+n*m,o=s*-v+o*m,u*=m,f*=m,i=_,s=y),1!==A&&(n*=A,o*=A,u*=A,f*=A),1!==P&&(i*=P,s*=P,l*=P,h*=P),1!==S&&(e*=S,r*=S,a*=S,c*=S),(d||T.svg)&&(d&&(E+=n*-d,N+=o*-d,R+=u*-d+d),T.svg&&(E+=T.xOrigin-(T.xOrigin*e+T.yOrigin*i),N+=T.yOrigin-(T.xOrigin*r+T.yOrigin*s)),g>E&&E>-g&&(E=w),g>N&&N>-g&&(N=w),g>R&&R>-g&&(R=0)),b=T.xPercent||T.yPercent?"translate("+T.xPercent+"%,"+T.yPercent+"%) matrix3d(":"matrix3d(",b+=(g>e&&e>-g?w:e)+x+(g>r&&r>-g?w:r)+x+(g>a&&a>-g?w:a),b+=x+(g>c&&c>-g?w:c)+x+(g>i&&i>-g?w:i)+x+(g>s&&s>-g?w:s),T.rotationX||T.rotationY?(b+=x+(g>l&&l>-g?w:l)+x+(g>h&&h>-g?w:h)+x+(g>n&&n>-g?w:n),b+=x+(g>o&&o>-g?w:o)+x+(g>u&&u>-g?w:u)+x+(g>f&&f>-g?w:f)+x):b+=",0,0,0,0,1,0,",b+=E+x+N+x+R+x+(O?1+-R/O:1)+")",k[wt]=b},Mt=q.set2DTransformRatio=function(t){var e,i,n,r,s,o,a,l,u,c,h,f=this.data,p=this.t,d=p.style,g=f.x,m=f.y;return!(f.rotationX||f.rotationY||f.z||f.force3D===!0||"auto"===f.force3D&&1!==t&&0!==t)||f.svg&&bt||!Ct?(r=f.scaleX,s=f.scaleY,void(f.rotation||f.skewX||f.svg?(e=f.rotation*D,i=e-f.skewX*D,n=1e5,o=Math.cos(e)*r,a=Math.sin(e)*r,l=Math.sin(i)*-s,u=Math.cos(i)*s,f.svg&&(g+=f.xOrigin-(f.xOrigin*o+f.yOrigin*l),m+=f.yOrigin-(f.xOrigin*a+f.yOrigin*u),h=1e-6,h>g&&g>-h&&(g=0),h>m&&m>-h&&(m=0)),c=(0|o*n)/n+","+(0|a*n)/n+","+(0|l*n)/n+","+(0|u*n)/n+","+g+","+m+")",f.svg&&bt?p.setAttribute("transform","matrix("+c):d[wt]=(f.xPercent||f.yPercent?"translate("+f.xPercent+"%,"+f.yPercent+"%) matrix(":"matrix(")+c):d[wt]=(f.xPercent||f.yPercent?"translate("+f.xPercent+"%,"+f.yPercent+"%) matrix(":"matrix(")+r+",0,0,"+s+","+g+","+m+")")):(this.setRatio=Lt,void Lt.call(this,t))};u=St.prototype,u.x=u.y=u.z=u.skewX=u.skewY=u.rotation=u.rotationX=u.rotationY=u.zOrigin=u.xPercent=u.yPercent=0,u.scaleX=u.scaleY=u.scaleZ=1,_t("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,n,s,a,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var u,c,h,f,p,d,g,m=n._transform=Ot(t,r,!0,l.parseTransform),v=t.style,_=1e-6,y=xt.length,b=l,x={};if("string"==typeof b.transform&&wt)h=j.style,h[wt]=b.transform,h.display="block",h.position="absolute",F.body.appendChild(j),u=Ot(j,null,!1),F.body.removeChild(j);else if("object"==typeof b){if(u={scaleX:st(null!=b.scaleX?b.scaleX:b.scale,m.scaleX),scaleY:st(null!=b.scaleY?b.scaleY:b.scale,m.scaleY),scaleZ:st(b.scaleZ,m.scaleZ),x:st(b.x,m.x),y:st(b.y,m.y),z:st(b.z,m.z),xPercent:st(b.xPercent,m.xPercent),yPercent:st(b.yPercent,m.yPercent),perspective:st(b.transformPerspective,m.perspective)},g=b.directionalRotation,null!=g)if("object"==typeof g)for(h in g)b[h]=g[h];else b.rotation=g;"string"==typeof b.x&&-1!==b.x.indexOf("%")&&(u.x=0,u.xPercent=st(b.x,m.xPercent)),"string"==typeof b.y&&-1!==b.y.indexOf("%")&&(u.y=0,u.yPercent=st(b.y,m.yPercent)),u.rotation=ot("rotation"in b?b.rotation:"shortRotation"in b?b.shortRotation+"_short":"rotationZ"in b?b.rotationZ:m.rotation,m.rotation,"rotation",x),Ct&&(u.rotationX=ot("rotationX"in b?b.rotationX:"shortRotationX"in b?b.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",x),u.rotationY=ot("rotationY"in b?b.rotationY:"shortRotationY"in b?b.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",x)),u.skewX=null==b.skewX?m.skewX:ot(b.skewX,m.skewX),u.skewY=null==b.skewY?m.skewY:ot(b.skewY,m.skewY),(c=u.skewY-m.skewY)&&(u.skewX+=c,u.rotation+=c)}for(Ct&&null!=b.force3D&&(m.force3D=b.force3D,d=!0),m.skewType=b.skewType||m.skewType||o.defaultSkewType,p=m.force3D||m.z||m.rotationX||m.rotationY||u.z||u.rotationX||u.rotationY||u.perspective,p||null==b.scale||(u.scaleZ=1);--y>-1;)i=xt[y],f=u[i]-m[i],(f>_||-_>f||null!=b[i]||null!=M[i])&&(d=!0,s=new dt(m,i,m[i],f,s),i in x&&(s.e=x[i]),s.xs0=0,s.plugin=a,n._overwriteProps.push(s.n));return f=b.transformOrigin,f&&m.svg&&(Rt(t,nt(f),u),s=new dt(m,"xOrigin",m.xOrigin,u.xOrigin-m.xOrigin,s,-1,"transformOrigin"),s.b=m.xOrigin,s.e=s.xs0=u.xOrigin,s=new dt(m,"yOrigin",m.yOrigin,u.yOrigin-m.yOrigin,s,-1,"transformOrigin"),s.b=m.yOrigin,s.e=s.xs0=u.yOrigin,f="0px 0px"),(f||Ct&&p&&m.zOrigin)&&(wt?(d=!0,i=kt,f=(f||Z(t,i,r,!1,"50% 50%"))+"",s=new dt(v,i,0,0,s,-1,"transformOrigin"),s.b=v[i],s.plugin=a,Ct?(h=m.zOrigin,f=f.split(" "),m.zOrigin=(f.length>2&&(0===h||"0px"!==f[2])?parseFloat(f[2]):h)||0,s.xs0=s.e=f[0]+" "+(f[1]||"50%")+" 0px",s=new dt(m,"zOrigin",0,0,s,-1,s.n),s.b=h,s.xs0=s.e=m.zOrigin):s.xs0=s.e=f):nt(f+"",m)),d&&(n._transformType=m.svg&&bt||!p&&3!==this._transformType?2:3),s},prefix:!0}),_t("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),_t("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,o){e=this.format(e);var a,l,u,c,h,f,p,d,g,m,v,_,y,b,x,w,T=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],k=t.style;for(g=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),a=e.split(" "),l=0;T.length>l;l++)this.p.indexOf("border")&&(T[l]=G(T[l])),h=c=Z(t,T[l],r,!1,"0px"),-1!==h.indexOf(" ")&&(c=h.split(" "),h=c[0],c=c[1]),f=u=a[l],p=parseFloat(h),_=h.substr((p+"").length),y="="===f.charAt(1),y?(d=parseInt(f.charAt(0)+"1",10),f=f.substr(2),d*=parseFloat(f),v=f.substr((d+"").length-(0>d?1:0))||""):(d=parseFloat(f),v=f.substr((d+"").length)),""===v&&(v=n[i]||_),v!==_&&(b=$(t,"borderLeft",p,_),x=$(t,"borderTop",p,_),"%"===v?(h=100*(b/g)+"%",c=100*(x/m)+"%"):"em"===v?(w=$(t,"borderLeft",1,"em"),h=b/w+"em",c=x/w+"em"):(h=b+"px",c=x+"px"),y&&(f=parseFloat(h)+d+v,u=parseFloat(c)+d+v)),o=gt(k,T[l],h+" "+c,f+" "+u,!1,"0px",o);return o},prefix:!0,formatter:ht("0px 0px 0px 0px",!1,!0)}),_t("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,o){var a,l,u,c,h,f,p="background-position",d=r||V(t,null),m=this.format((d?g?d.getPropertyValue(p+"-x")+" "+d.getPropertyValue(p+"-y"):d.getPropertyValue(p):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(-1!==m.indexOf("%")!=(-1!==v.indexOf("%"))&&(f=Z(t,"backgroundImage").replace(P,""),f&&"none"!==f)){for(a=m.split(" "),l=v.split(" "),I.setAttribute("src",f),u=2;--u>-1;)m=a[u],c=-1!==m.indexOf("%"),c!==(-1!==l[u].indexOf("%"))&&(h=0===u?t.offsetWidth-I.width:t.offsetHeight-I.height,a[u]=c?parseFloat(m)/100*h+"px":100*(parseFloat(m)/h)+"%");m=a.join(" ")}return this.parseComplex(t.style,m,v,s,o)},formatter:nt}),_t("backgroundSize",{defaultValue:"0 0",formatter:nt}),_t("perspective",{defaultValue:"0px",prefix:!0}),_t("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),_t("transformStyle",{prefix:!0}),_t("backfaceVisibility",{prefix:!0}),_t("userSelect",{prefix:!0}),_t("margin",{parser:ft("marginTop,marginRight,marginBottom,marginLeft")}),_t("padding",{parser:ft("paddingTop,paddingRight,paddingBottom,paddingLeft")}),_t("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,o){var a,l,u;return 9>g?(l=t.currentStyle,u=8>g?" ":",",a="rect("+l.clipTop+u+l.clipRight+u+l.clipBottom+u+l.clipLeft+")",e=this.format(e).split(",").join(u)):(a=this.format(Z(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,s,o)}}),_t("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),_t("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),_t("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,o){return this.parseComplex(t.style,this.format(Z(t,"borderTopWidth",r,!1,"0px")+" "+Z(t,"borderTopStyle",r,!1,"solid")+" "+Z(t,"borderTopColor",r,!1,"#000")),this.format(e),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ct)||["#000"])[0]}}),_t("borderWidth",{parser:ft("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),_t("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r){var s=t.style,o="cssFloat"in s?"cssFloat":"styleFloat";return new dt(s,o,0,0,r,-1,i,!1,0,s[o],e)}});var Ft=function(t){var e,i=this.t,n=i.filter||Z(this.data,"filter")||"",r=0|this.s+this.c*t;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!Z(this.data,"filter")):(i.filter=n.replace(T,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(x,"opacity="+r))};_t("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,o){var a=parseFloat(Z(t,"opacity",r,!1,"1")),l=t.style,u="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),u&&1===a&&"hidden"===Z(t,"visibility",r)&&0!==e&&(a=0),H?s=new dt(l,"opacity",a,e-a,s):(s=new dt(l,"opacity",100*a,100*(e-a),s),s.xn1=u?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=o,s.setRatio=Ft),u&&(s=new dt(l,"visibility",0,0,s,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var zt=function(t,e){e&&(t.removeProperty?("ms"===e.substr(0,2)&&(e="M"+e.substr(1)),t.removeProperty(e.replace(C,"-$1").toLowerCase())):t.removeAttribute(e))},jt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:zt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};_t("className",{parser:function(t,e,n,s,o,a,l){var u,c,h,f,p,d=t.getAttribute("class")||"",g=t.style.cssText;if(o=s._classNamePT=new dt(t,n,0,0,o,2),o.setRatio=jt,o.pr=-11,i=!0,o.b=d,c=K(t,r),h=t._gsClassPT){for(f={},p=h.data;p;)f[p.p]=1,p=p._next;h.setRatio(1)}return t._gsClassPT=o,o.e="="!==e.charAt(1)?e:d.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),s._tween._duration&&(t.setAttribute("class",o.e),u=J(t,c,K(t),l,f),t.setAttribute("class",d),o.data=u.firstMPT,t.style.cssText=g,o=o.xfirst=s.parse(t,u.difs,o,a)),o}});var It=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s=this.t.style,o=l.transform.parse;if("all"===this.e)s.cssText="",r=!0;else for(e=this.e.split(" ").join("").split(","),n=e.length;--n>-1;)i=e[n],l[i]&&(l[i].parse===o?r=!0:i="transformOrigin"===i?kt:l[i].p),zt(s,i);r&&(zt(s,wt),this.t._gsTransform&&delete this.t._gsTransform)}};for(_t("clearProps",{parser:function(t,e,n,r,s){return s=new dt(t,n,0,0,s,2),s.setRatio=It,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),u="bezier,throwProps,physicsProps,physics2D".split(","), mt=u.length;mt--;)yt(u[mt]);u=o.prototype,u._firstPT=u._lastParsedTransform=u._transform=null,u._onInitTween=function(t,e,a){if(!t.nodeType)return!1;this._target=t,this._tween=a,this._vars=e,c=e.autoRound,i=!1,n=e.suffixMap||o.suffixMap,r=V(t,""),s=this._overwriteProps;var l,u,p,g,m,v,_,y,b,x=t.style;if(h&&""===x.zIndex&&(l=Z(t,"zIndex",r),("auto"===l||""===l)&&this._addLazySet(x,"zIndex",0)),"string"==typeof e&&(g=x.cssText,l=K(t,r),x.cssText=g+";"+e,l=J(t,l,K(t)).difs,!H&&w.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,x.cssText=g),this._firstPT=u=this.parse(t,e,null),this._transformType){for(b=3===this._transformType,wt?f&&(h=!0,""===x.zIndex&&(_=Z(t,"zIndex",r),("auto"===_||""===_)&&this._addLazySet(x,"zIndex",0)),d&&this._addLazySet(x,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(b?"visible":"hidden"))):x.zoom=1,p=u;p&&p._next;)p=p._next;y=new dt(t,"transform",0,0,null,2),this._linkCSSP(y,null,p),y.setRatio=b&&Ct?Lt:wt?Mt:Dt,y.data=this._transform||Ot(t,r,!0),s.pop()}if(i){for(;u;){for(v=u._next,p=g;p&&p.pr>u.pr;)p=p._next;(u._prev=p?p._prev:m)?u._prev._next=u:g=u,(u._next=p)?p._prev=u:m=u,u=v}this._firstPT=g}return!0},u.parse=function(t,e,i,s){var o,a,u,h,f,p,d,g,m,v,_=t.style;for(o in e)p=e[o],a=l[o],a?i=a.parse(t,p,o,this,i,s,e):(f=Z(t,o,r)+"",m="string"==typeof p,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||m&&k.test(p)?(m||(p=ut(p),p=(p.length>3?"rgba(":"rgb(")+p.join(",")+")"),i=gt(_,o,f,p,!0,"transparent",i,0,s)):!m||-1===p.indexOf(" ")&&-1===p.indexOf(",")?(u=parseFloat(f),d=u||0===u?f.substr((u+"").length):"",(""===f||"auto"===f)&&("width"===o||"height"===o?(u=it(t,o,r),d="px"):"left"===o||"top"===o?(u=Q(t,o,r),d="px"):(u="opacity"!==o?0:1,d="")),v=m&&"="===p.charAt(1),v?(h=parseInt(p.charAt(0)+"1",10),p=p.substr(2),h*=parseFloat(p),g=p.replace(b,"")):(h=parseFloat(p),g=m?p.replace(b,""):""),""===g&&(g=o in n?n[o]:d),p=h||0===h?(v?h+u:h)+g:e[o],d!==g&&""!==g&&(h||0===h)&&u&&(u=$(t,o,u,d),"%"===g?(u/=$(t,o,100,"%")/100,e.strictUnits!==!0&&(f=u+"%")):"em"===g?u/=$(t,o,1,"em"):"px"!==g&&(h=$(t,o,h,g),g="px"),v&&(h||0===h)&&(p=h+u+g)),v&&(h+=u),!u&&0!==u||!h&&0!==h?void 0!==_[o]&&(p||"NaN"!=p+""&&null!=p)?(i=new dt(_,o,h||u||0,0,i,-1,o,!1,0,f,p),i.xs0="none"!==p||"display"!==o&&-1===o.indexOf("Style")?p:f):W("invalid "+o+" tween value: "+e[o]):(i=new dt(_,o,u,h-u,i,0,o,c!==!1&&("px"===g||"zIndex"===o),0,f,p),i.xs0=g)):i=gt(_,o,f,p,!0,null,i,0,s)),s&&i&&!i.plugin&&(i.plugin=s);return i},u.setRatio=function(t){var e,i,n,r=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):s>e&&e>-s&&(e=0),r.type)if(1===r.type)if(n=r.l,2===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;r.l>n;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;)2!==r.type?r.t[r.p]=r.e:r.setRatio(t),r=r._next},u._enableTransforms=function(t){this._transform=this._transform||Ot(this._target,r,!0),this._transformType=this._transform.svg&&bt||!t&&3!==this._transformType?2:3};var qt=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};u._addLazySet=function(t,e,i){var n=this._firstPT=new dt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=qt,n.data=this},u._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},u._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){s={};for(n in e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}return e.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),t.prototype._kill.call(this,s)};var Bt=function(t,e,i){var n,r,s,o;if(t.slice)for(r=t.length;--r>-1;)Bt(t[r],e,i);else for(n=t.childNodes,r=n.length;--r>-1;)s=n[r],o=s.type,s.style&&(e.push(K(s)),i&&i.push(s)),1!==o&&9!==o&&11!==o||!s.childNodes.length||Bt(s,e,i)};return o.cascadeTo=function(t,i,n){var r,s,o,a=e.to(t,i,n),l=[a],u=[],c=[],h=[],f=e._internals.reservedProps;for(t=a._targets||a.target,Bt(t,u,h),a.render(i,!0),Bt(t,c),a.render(0,!0),a._enabled(!0),r=h.length;--r>-1;)if(s=J(h[r],u[r],c[r]),s.firstMPT){s=s.difs;for(o in n)f[o]&&(s[o]=n[o]);l.push(e.to(h[r],i,s))}return l},t.activate([o]),o},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=t.prototype;e._onInitAllProps=function(){for(var t,e,i,n=this._tween,r=n.vars.roundProps instanceof Array?n.vars.roundProps:n.vars.roundProps.split(","),s=r.length,o={},a=n._propLookup.roundProps;--s>-1;)o[r[s]]=1;for(s=r.length;--s>-1;)for(t=r[s],e=n._firstPT;e;)i=e._next,e.pg?e.t._roundProps(o,!0):e.n===t&&(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:n._firstPT===e&&(n._firstPT=i),e._next=e._prev=null,n._propLookup[t]=a),e=i;return!1},e._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,!0),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.3.3",init:function(t,e){var i,n,r;if("function"!=typeof t.setAttribute)return!1;this._target=t,this._proxy={},this._start={},this._end={};for(i in e)this._start[i]=this._proxy[i]=n=t.getAttribute(i),r=this._addTween(this._proxy,i,parseFloat(n),e[i],i),this._end[i]=r?r.s+r.c:e[i],this._overwriteProps.push(i);return!0},set:function(t){this._super.setRatio.call(this,t);for(var e,i=this._overwriteProps,n=i.length,r=1===t?this._end:t?this._proxy:this._start;--n>-1;)e=i[n],this._target.setAttribute(e,r[e]+"")}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(t,e){"object"!=typeof e&&(e={rotation:e}),this.finals={};var i,n,r,s,o,a,l=e.useRadians===!0?2*Math.PI:360,u=1e-6;for(i in e)"useRadians"!==i&&(a=(e[i]+"").split("_"),n=a[0],r=parseFloat("function"!=typeof t[i]?t[i]:t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]()),s=this.finals[i]="string"==typeof n&&"="===n.charAt(1)?r+parseInt(n.charAt(0)+"1",10)*Number(n.substr(2)):Number(n)||0,o=s-r,a.length&&(n=a.join("_"),-1!==n.indexOf("short")&&(o%=l,o!==o%(l/2)&&(o=0>o?o+l:o-l)),-1!==n.indexOf("_cw")&&0>o?o=(o+9999999999*l)%l-(0|o/l)*l:-1!==n.indexOf("ccw")&&o>0&&(o=(o-9999999999*l)%l-(0|o/l)*l)),(o>u||-u>o)&&(this._addTween(t,i,r,r+o,i),this._overwriteProps.push(i)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,n,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,o=2*Math.PI,a=Math.PI/2,l=s._class,u=function(e,i){var n=l("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},c=t.register||function(){},h=function(t,e,i,n){var r=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return c(r,t),r},f=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var n=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},d=h("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),g=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),m=g.prototype=new t;return m.constructor=g,m.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},g.ease=new g(.7,.7),m.config=g.config=function(t,e,i){return new g(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),m=e.prototype=new t,m.constructor=e,m.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,n,r,s,o,a,l=e.taper||"none",u=[],c=0,h=0|(e.points||20),p=h,d=e.randomize!==!1,g=e.clamp===!0,m=e.template instanceof t?e.template:null,v="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=d?Math.random():1/h*p,n=m?m.getRatio(i):i,"none"===l?r=v:"out"===l?(s=1-i,r=s*s*v):"in"===l?r=i*i*v:.5>i?(s=2*i,r=.5*s*s*v):(s=2*(1-i),r=.5*s*s*v),d?n+=Math.random()*r-.5*r:p%2?n+=.5*r:n-=.5*r,g&&(n>1?n=1:0>n&&(n=0)),u[c++]={x:i,y:n};for(u.sort(function(t,e){return t.x-e.x}),a=new f(1,1,null),p=h;--p>-1;)o=u[p],a=new f(o.x,o.y,a);this._prev=new f(0,0,0!==a.t?a:a.next)},!0),m=i.prototype=new t,m.constructor=i,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},m.config=function(t){return new i(t)},i.ease=new i,h("Bounce",u("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),u("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),u("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),h("Circ",u("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),u("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),u("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),n=function(e,i,n){var r=l("easing."+e,function(t,e){this._p1=t||1,this._p2=e||n,this._p3=this._p2/o*(Math.asin(1/this._p1)||0)},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t,e){return new r(t,e)},r},h("Elastic",n("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*o/this._p2)+1},.3),n("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*o/this._p2))},.3),n("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*o/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*o/this._p2)+1},.45)),h("Expo",u("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),u("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),u("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),h("Sine",u("SineOut",function(t){return Math.sin(t*a)}),u("SineIn",function(t){return-Math.cos(t*a)+1}),u("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),c(r.SlowMo,"SlowMo","ease,"),c(i,"RoughEase","ease,"),c(e,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var n,r,s,o,a,l=function(t){var e,n=t.split("."),r=i;for(e=0;n.length>e;e++)r[n[e]]=r=r[n[e]]||{};return r},u=l("com.greensock"),c=1e-10,h=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},f=function(){},p=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),d={},g=function(n,r,s,o){this.sc=d[n]?d[n].sc:[],d[n]=this,this.gsClass=null,this.func=s;var a=[];this.check=function(u){for(var c,h,f,p,m=r.length,v=m;--m>-1;)(c=d[r[m]]||new g(r[m],[])).gsClass?(a[m]=c.gsClass,v--):u&&c.sc.push(this);if(0===v&&s)for(h=("com.greensock."+n).split("."),f=h.pop(),p=l(h.join("."))[f]=this.gsClass=s.apply(s,a),o&&(i[f]=p,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return p}):n===e&&"undefined"!=typeof module&&module.exports&&(module.exports=p)),m=0;this.sc.length>m;m++)this.sc[m].check()},this.check(!0)},m=t._gsDefine=function(t,e,i,n){return new g(t,e,i,n)},v=u._class=function(t,e,i){return e=e||function(){},m(t,[],function(){return e},i),e};m.globals=i;var _=[0,0,1,1],y=[],b=v("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?_.concat(e):_},!0),x=b.map={},w=b.register=function(t,e,i,n){for(var r,s,o,a,l=e.split(","),c=l.length,h=(i||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(s=l[c],r=n?v("easing."+s,null,!0):u.easing[s]||{},o=h.length;--o>-1;)a=h[o],x[s+"."+a]=x[a+s]=r[a]=t.getRatio?t:t[a]||new t};for(s=b.prototype,s._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},n=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=n.length;--r>-1;)s=n[r]+",Power"+r,w(new b(null,null,1,r),s,"easeOut",!0),w(new b(null,null,2,r),s,"easeIn"+(0===r?",easeNone":"")),w(new b(null,null,3,r),s,"easeInOut");x.linear=u.easing.Linear.easeIn,x.swing=u.easing.Quad.easeInOut;var T=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});s=T.prototype,s.addEventListener=function(t,e,i,n,r){r=r||0;var s,l,u=this._listeners[t],c=0;for(null==u&&(this._listeners[t]=u=[]),l=u.length;--l>-1;)s=u[l],s.c===e&&s.s===i?u.splice(l,1):0===c&&r>s.pr&&(c=l+1);u.splice(c,0,{c:e,s:i,up:n,pr:r}),this!==o||a||o.wake()},s.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},s.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)n=r[e],n&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var k=t.requestAnimationFrame,C=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},P=S();for(n=["ms","moz","webkit","o"],r=n.length;--r>-1&&!k;)k=t[n[r]+"RequestAnimationFrame"],C=t[n[r]+"CancelAnimationFrame"]||t[n[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,n,r,s,l,u=this,h=S(),p=e!==!1&&k,d=500,g=33,m="tick",v=function(t){var e,o,a=S()-P;a>d&&(h+=a-g),P+=a,u.time=(P-h)/1e3,e=u.time-l,(!i||e>0||t===!0)&&(u.frame++,l+=e+(e>=s?.004:s-e),o=!0),t!==!0&&(r=n(v)),o&&u.dispatchEvent(m)};T.call(u),u.time=u.frame=0,u.tick=function(){v(!0)},u.lagSmoothing=function(t,e){d=t||1/c,g=Math.min(e,d,0)},u.sleep=function(){null!=r&&(p&&C?C(r):clearTimeout(r),n=f,r=null,u===o&&(a=!1))},u.wake=function(){null!==r?u.sleep():u.frame>10&&(P=S()-d+5),n=0===i?f:p&&k?k:function(t){return setTimeout(t,0|1e3*(l-u.time)+1)},u===o&&(a=!0),v(2)},u.fps=function(t){return arguments.length?(i=t,s=1/(i||60),l=this.time+s,void u.wake()):i},u.useRAF=function(t){return arguments.length?(u.sleep(),p=t,void u.fps(i)):p},u.fps(t),setTimeout(function(){p&&(!r||5>u.frame)&&u.useRAF(!1)},1500)}),s=u.Ticker.prototype=new u.events.EventDispatcher,s.constructor=u.Ticker;var A=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,X){a||o.wake();var i=this.vars.useFrames?H:X;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=A.ticker=new u.Ticker,s=A.prototype,s._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;var E=function(){a&&S()-P>2e3&&o.wake(),setTimeout(E,2e3)};E(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},s.render=function(){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},s.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},s._enabled=function(t,e){return a||o.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},s._kill=function(){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},s.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=p(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,i){if(a||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),L.length&&W())}return this},s.progress=s.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},s.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||c,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},s.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},s.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){a||t||o.wake();var e=this._timeline,i=e.rawTime(),n=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==n&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var N=v("core.SimpleTimeline",function(t){A.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});s=N.prototype=new A,s.constructor=N,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e){var i,n;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(n=t._startTime;i&&i._startTime>n;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},s._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},s.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},s.rawTime=function(){return a||o.wake(),this._totalTime};var R=v("TweenLite",function(e,i,n){if(A.call(this,i,n),this.render=R.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:R.selector(e)||e;var r,s,o,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?B[R.defaultOverwrite]:"number"==typeof l?l>>0:B[l],(a||e instanceof Array||e.push&&p(e))&&"number"!=typeof e[0])for(this._targets=o=h(e),this._propLookup=[],this._siblings=[],r=0;o.length>r;r++)s=o[r],s?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(r--,1),this._targets=o=o.concat(h(s))):(this._siblings[r]=Y(s,this,!1),1===l&&this._siblings[r].length>1&&G(s,this,null,1,this._siblings[r])):(s=o[r--]=R.selector(s),"string"==typeof s&&o.splice(r+1,1)):o.splice(r--,1);else this._propLookup={},this._siblings=Y(e,this,!1),1===l&&this._siblings.length>1&&G(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-c,this.render(-this._delay))},!0),O=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},D=function(t,e){var i,n={};for(i in t)q[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n};s=R.prototype=new A,s.constructor=R,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,R.version="1.15.1",R.defaultEase=s._ease=new b(null,null,1,1),R.defaultOverwrite="auto",R.ticker=o,R.autoSleep=!0,R.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},R.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(R.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var L=[],M={},F=R._internals={isArray:p,isSelector:O,lazyTweens:L},z=R._plugins={},j=F.tweenLookup={},I=0,q=F.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},B={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},H=A._rootFramesTimeline=new N,X=A._rootTimeline=new N,W=F.lazyRender=function(){var t,e=L.length;for(M={};--e>-1;)t=L[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);L.length=0};X._startTime=o.time,H._startTime=o.frame,X._active=H._active=!0,setTimeout(W,1),A._updateRoot=R.render=function(){var t,e,i;if(L.length&&W(),X.render((o.time-X._startTime)*X._timeScale,!1,!1),H.render((o.frame-H._startTime)*H._timeScale,!1,!1),L.length&&W(),!(o.frame%120)){for(i in j){for(e=j[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete j[i]}if(i=X._first,(!i||i._paused)&&R.autoSleep&&!H._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",A._updateRoot);var Y=function(t,e,i){var n,r,s=t._gsTweenID;if(j[s||(t._gsTweenID=s="t"+I++)]||(j[s]={target:t,tweens:[]}),e&&(n=j[s].tweens,n[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return j[s].tweens},U=function(t,e,i,n){var r,s,o=t.vars.onOverwrite;return o&&(r=o(t,e,i,n)),o=R.onOverwrite,o&&(s=o(t,e,i,n)),r!==!1&&s!==!1},G=function(t,e,i,n,r){var s,o,a,l;if(1===n||n>=4){for(l=r.length,s=0;l>s;s++)if((a=r[s])!==e)a._gc||U(a,e)&&a._enabled(!1,!1)&&(o=!0);else if(5===n)break;return o}var u,h=e._startTime+c,f=[],p=0,d=0===e._duration;for(s=r.length;--s>-1;)(a=r[s])===e||a._gc||a._paused||(a._timeline!==e._timeline?(u=u||V(e,0,d),0===V(a,u,d)&&(f[p++]=a)):h>=a._startTime&&a._startTime+a.totalDuration()/a._timeScale>h&&((d||!a._initted)&&2e-10>=h-a._startTime||(f[p++]=a)));for(s=p;--s>-1;)if(a=f[s],2===n&&a._kill(i,t,e)&&(o=!0),2!==n||!a._firstPT&&a._initted){if(2!==n&&!U(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},V=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return s/=r,s>e?s-e:i&&s===e||!t._initted&&2*c>s-e?c:(s+=t.totalDuration()/t._timeScale/r)>e+c?0:s-e-c};s._init=function(){var t,e,i,n,r,s=this.vars,o=this._overwrittenProps,a=this._duration,l=!!s.immediateRender,u=s.ease;if(s.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(n in s.startAt)r[n]=s.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&s.lazy!==!1,r.startAt=r.delay=null,this._startAt=R.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(s.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),i={};for(n in s)q[n]&&"autoCSS"!==n||(i[n]=s[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&s.lazy!==!1,i.immediateRender=l,this._startAt=R.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof b?u:"function"==typeof u?new b(u,s.easeParams):x[u]||R.defaultEase:R.defaultEase,s.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o);if(e&&R._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,i,n,r){var s,o,a,l,u,c;if(null==e)return!1;M[e._gsTweenID]&&W(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&this.vars.autoCSS!==!1&&D(this.vars,e);for(s in this.vars){if(c=this.vars[s],q[s])c&&(c instanceof Array||c.push&&p(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[s]=c=this._swapSelfInParams(c,this));else if(z[s]&&(l=new z[s])._onInitTween(e,this.vars[s],this)){for(this._firstPT=u={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:s,pg:!0,pr:l._priority},o=l._overwriteProps.length;--o>-1;)i[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[s]=u={_next:this._firstPT,t:e,p:s,f:"function"==typeof e[s],n:s,pg:!1,pr:0},u.s=u.f?e[s.indexOf("set")||"function"!=typeof e["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(e[s]),u.c="string"==typeof c&&"="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*Number(c.substr(2)):Number(c)-u.s||0;u&&u._next&&(u._next._prev=u)}return r&&this._kill(r,e)?this._initProps(e,i,n,r):this._overwrite>1&&this._firstPT&&n.length>1&&G(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(M[e._gsTweenID]=!0),a)},s.render=function(t,e,i){var n,r,s,o,a=this._time,l=this._duration,u=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>u||u===c&&"isPause"!==this.data)&&u!==t&&(i=!0,u>c&&(r="onReverseComplete")),this._rawPrevTime=o=!e||t||u===t?t:c);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&u>0&&u!==c)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(u>=0&&(u!==c||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!e||t||u===t?t:c)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var h=t/l,f=this._easeType,p=this._easePower;(1===f||3===f&&h>=.5)&&(h=1-h),3===f&&(h*=2),1===p?h*=h:2===p?h*=h*h:3===p?h*=h*h*h:4===p&&(h*=h*h*h*h),this.ratio=1===f?1-h:2===f?h:.5>t/l?h/2:1-h/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=u,L.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||y))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==a||n)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||y)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1), this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||y),0===l&&this._rawPrevTime===c&&o!==c&&(this._rawPrevTime=0))}},s._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:R.selector(e)||e;var n,r,s,o,a,l,u,c,h;if((p(e)||O(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n])&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){a=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(u=t||a,c=t!==r&&"all"!==r&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(R.onOverwrite||this.vars.onOverwrite)){for(s in u)a[s]&&(h||(h=[]),h.push(s));if(!U(this,i,e,h))return!1}for(s in u)(o=a[s])&&(o.pg&&o.t._kill(u)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),c&&(r[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&R._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],A.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-c,this.render(-this._delay)),this},s._enabled=function(t,e){if(a||o.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Y(n[i],this,!0);else this._siblings=Y(this.target,this,!0)}return A.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?R._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},R.to=function(t,e,i){return new R(t,e,i)},R.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new R(t,e,i)},R.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new R(t,e,n)},R.delayedCall=function(t,e,i,n,r){return new R(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:n,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:n,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},R.set=function(t,e){return new R(t,0,e)},R.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:R.selector(t)||t;var i,n,r,s;if((p(t)||O(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(R.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else for(n=Y(t).concat(),i=n.length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n},R.killTweensOf=R.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=R.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var Z=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=Z.prototype},!0);if(s=Z.prototype,Z.version="1.10.1",Z.API=2,s._firstPT=null,s._addTween=function(t,e,i,n,r,s){var o,a;return null!=n&&(o="number"==typeof n||"="!==n.charAt(1)?Number(n)-i:parseInt(n.charAt(0)+"1",10)*Number(n.substr(2)))?(this._firstPT=a={_next:this._firstPT,t:t,p:e,s:i,c:o,f:"function"==typeof t[e],n:r||e,r:s},a._next&&(a._next._prev=a),a):void 0},s.setRatio=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):n>e&&e>-n&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},s._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},s._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},R._onPluginEvent=function(t,e){var i,n,r,s,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:s)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:s=a,a=o}a=e._firstPT=r}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},Z.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===Z.API&&(z[(new t[e])._propName]=t[e]);return!0},m.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},o=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){Z.call(this,i,n),this._overwriteProps=r||[]},t.global===!0),a=o.prototype=new Z(i);a.constructor=o,o.API=t.API;for(e in s)"function"==typeof t[e]&&(a[s[e]]=t[e]);return o.version=t.version,Z.activate([o]),o},n=t._gsQueue){for(r=0;n.length>r;r++)n[r]();for(s in d)d[s].func||t.console.log("GSAP encountered missing dependency: com.greensock."+s)}a=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");/*! * VERSION: 1.7.4 * DATE: 2014-07-17 * UPDATES AND DOCS AT: http://www.greensock.com * * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. * This work is subject to the terms at http://greensock.com/standard-license or for * Club GreenSock members, the software agreement that was issued with your membership. * * @author: Jack Doyle, [email protected] **/ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=document.documentElement,e=window,i=function(i,n){var r="x"===n?"Width":"Height",s="scroll"+r,o="client"+r,a=document.body;return i===e||i===t||i===a?Math.max(t[s],a[s])-(e["inner"+r]||Math.max(t[o],a[o])):i[s]-i["offset"+r]},n=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,version:"1.7.4",init:function(t,n,r){return this._wdw=t===e,this._target=t,this._tween=r,"object"!=typeof n&&(n={y:n}),this.vars=n,this._autoKill=n.autoKill!==!1,this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=n.x?(this._addTween(this,"x",this.x,"max"===n.x?i(t,"x"):n.x,"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=n.y?(this._addTween(this,"y",this.y,"max"===n.y?i(t,"y"):n.y,"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var n=this._wdw||!this.skipX?this.getX():this.xPrev,r=this._wdw||!this.skipY?this.getY():this.yPrev,s=r-this.yPrev,o=n-this.xPrev;this._autoKill&&(!this.skipX&&(o>7||-7>o)&&i(this._target,"x")>n&&(this.skipX=!0),!this.skipY&&(s>7||-7>s)&&i(this._target,"y")>r&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[]))),this._wdw?e.scrollTo(this.skipX?n:this.x,this.skipY?r:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),r=n.prototype;n.max=i,r.getX=function(){return this._wdw?null!=e.pageXOffset?e.pageXOffset:null!=t.scrollLeft?t.scrollLeft:document.body.scrollLeft:this._target.scrollLeft},r.getY=function(){return this._wdw?null!=e.pageYOffset?e.pageYOffset:null!=t.scrollTop?t.scrollTop:document.body.scrollTop:this._target.scrollTop},r._kill=function(t){return t.scrollTo_x&&(this.skipX=!0),t.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,t)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ScrollMagic=e()}(this,function(){"use strict";var t=function(){};t.version="2.0.5",window.addEventListener("mousewheel",function(){});var e="data-scrollmagic-pin-spacer";t.Controller=function(n){var s,o,a="ScrollMagic.Controller",l="FORWARD",u="REVERSE",c="PAUSED",h=i.defaults,f=this,p=r.extend({},h,n),d=[],g=!1,m=0,v=c,_=!0,y=0,b=!0,x=function(){for(var t in p)h.hasOwnProperty(t)||delete p[t];if(p.container=r.get.elements(p.container)[0],!p.container)throw a+" init failed.";_=p.container===window||p.container===document.body||!document.body.contains(p.container),_&&(p.container=window),y=k(),p.container.addEventListener("resize",A),p.container.addEventListener("scroll",A),p.refreshInterval=parseInt(p.refreshInterval)||h.refreshInterval,w()},w=function(){p.refreshInterval>0&&(o=window.setTimeout(E,p.refreshInterval))},T=function(){return p.vertical?r.get.scrollTop(p.container):r.get.scrollLeft(p.container)},k=function(){return p.vertical?r.get.height(p.container):r.get.width(p.container)},C=this._setScrollPos=function(t){p.vertical?_?window.scrollTo(r.get.scrollLeft(),t):p.container.scrollTop=t:_?window.scrollTo(t,r.get.scrollTop()):p.container.scrollLeft=t},S=function(){if(b&&g){var t=r.type.Array(g)?g:d.slice(0);g=!1;var e=m;m=f.scrollPos();var i=m-e;0!==i&&(v=i>0?l:u),v===u&&t.reverse(),t.forEach(function(t){t.update(!0)})}},P=function(){s=r.rAF(S)},A=function(t){"resize"==t.type&&(y=k(),v=c),g!==!0&&(g=!0,P())},E=function(){if(!_&&y!=k()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){t=document.createEvent("Event"),t.initEvent("resize",!1,!1)}p.container.dispatchEvent(t)}d.forEach(function(t){t.refresh()}),w()};this._options=p;var N=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort(function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1}),e};return this.addScene=function(e){if(r.type.Array(e))e.forEach(function(t){f.addScene(t)});else if(e instanceof t.Scene)if(e.controller()!==f)e.addTo(f);else if(d.indexOf(e)<0){d.push(e),d=N(d),e.on("shift.controller_sort",function(){d=N(d)});for(var i in p.globalSceneOptions)e[i]&&e[i].call(e,p.globalSceneOptions[i])}return f},this.removeScene=function(t){if(r.type.Array(t))t.forEach(function(t){f.removeScene(t)});else{var e=d.indexOf(t);e>-1&&(t.off("shift.controller_sort"),d.splice(e,1),t.remove())}return f},this.updateScene=function(e,i){return r.type.Array(e)?e.forEach(function(t){f.updateScene(t,i)}):i?e.update(!0):g!==!0&&e instanceof t.Scene&&(g=g||[],-1==g.indexOf(e)&&g.push(e),g=N(g),P()),f},this.update=function(t){return A({type:"resize"}),t&&S(),f},this.scrollTo=function(i,n){if(r.type.Number(i))C.call(p.container,i,n);else if(i instanceof t.Scene)i.controller()===f&&f.scrollTo(i.scrollOffset(),n);else if(r.type.Function(i))C=i;else{var s=r.get.elements(i)[0];if(s){for(;s.parentNode.hasAttribute(e);)s=s.parentNode;var o=p.vertical?"top":"left",a=r.get.offset(p.container),l=r.get.offset(s);_||(a[o]-=f.scrollPos()),f.scrollTo(l[o]-a[o],n)}}return f},this.scrollPos=function(t){return arguments.length?(r.type.Function(t)&&(T=t),f):T.call(f)},this.info=function(t){var e={size:y,vertical:p.vertical,scrollPos:m,scrollDirection:v,container:p.container,isDocument:_};return arguments.length?void 0!==e[t]?e[t]:void 0:e},this.loglevel=function(){return f},this.enabled=function(t){return arguments.length?(b!=t&&(b=!!t,f.updateScene(d,!0)),f):b},this.destroy=function(t){window.clearTimeout(o);for(var e=d.length;e--;)d[e].destroy(t);return p.container.removeEventListener("resize",A),p.container.removeEventListener("scroll",A),r.cAF(s),null},x(),f};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){i.defaults[t]=e},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(i){var s,o,a="BEFORE",l="DURING",u="AFTER",c=n.defaults,h=this,f=r.extend({},c,i),p=a,d=0,g={start:0,end:0},m=0,v=!0,_=function(){for(var t in f)c.hasOwnProperty(t)||delete f[t];for(var e in c)P(e);C()},y={};this.on=function(t,e){return r.type.Function(e)&&(t=t.trim().split(" "),t.forEach(function(t){var i=t.split("."),n=i[0],r=i[1];"*"!=n&&(y[n]||(y[n]=[]),y[n].push({namespace:r||"",callback:e}))})),h},this.off=function(t,e){return t?(t=t.trim().split(" "),t.forEach(function(t){var i=t.split("."),n=i[0],r=i[1]||"",s="*"===n?Object.keys(y):[n];s.forEach(function(t){for(var i=y[t]||[],n=i.length;n--;){var s=i[n];!s||r!==s.namespace&&"*"!==r||e&&e!=s.callback||i.splice(n,1)}i.length||delete y[t]})}),h):h},this.trigger=function(e,i){if(e){var n=e.trim().split("."),r=n[0],s=n[1],o=y[r];o&&o.forEach(function(e){s&&s!==e.namespace||e.callback.call(h,new t.Event(r,e.namespace,h,i))})}return h},h.on("change.internal",function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?w():"reverse"===t.what&&h.update())}).on("shift.internal",function(){b(),h.update()}),this.addTo=function(e){return e instanceof t.Controller&&o!=e&&(o&&o.removeScene(h),o=e,C(),x(!0),w(!0),b(),o.info("container").addEventListener("resize",T),e.addScene(h),h.trigger("add",{controller:o}),h.update()),h},this.enabled=function(t){return arguments.length?(v!=t&&(v=!!t,h.update(!0)),h):v},this.remove=function(){if(o){o.info("container").removeEventListener("resize",T);var t=o;o=void 0,t.removeScene(h),h.trigger("remove")}return h},this.destroy=function(t){return h.trigger("destroy",{reset:t}),h.remove(),h.off("*.*"),null},this.update=function(t){if(o)if(t)if(o.enabled()&&v){var e,i=o.info("scrollPos");e=f.duration>0?(i-g.start)/(g.end-g.start):i>=g.start?1:0,h.trigger("update",{startPos:g.start,endPos:g.end,scrollPos:i}),h.progress(e)}else A&&p===l&&N(!0);else o.updateScene(h,!1);return h},this.refresh=function(){return x(),w(),h},this.progress=function(t){if(arguments.length){var e=!1,i=p,n=o?o.info("scrollDirection"):"PAUSED",r=f.reverse||t>=d;if(0===f.duration?(e=d!=t,d=1>t&&r?0:1,p=0===d?a:l):0>t&&p!==a&&r?(d=0,p=a,e=!0):t>=0&&1>t&&r?(d=t,p=l,e=!0):t>=1&&p!==u?(d=1,p=u,e=!0):p!==l||r||N(),e){var s={progress:d,state:p,scrollDirection:n},c=p!=i,g=function(t){h.trigger(t,s)};c&&i!==l&&(g("enter"),g(i===a?"start":"end")),g("progress"),c&&p!==l&&(g(p===a?"start":"end"),g("leave"))}return h}return d};var b=function(){g={start:m+f.offset},o&&f.triggerElement&&(g.start-=o.info("size")*f.triggerHook),g.end=g.start+f.duration},x=function(t){if(s){var e="duration";S(e,s.call(h))&&!t&&(h.trigger("change",{what:e,newval:f[e]}),h.trigger("shift",{reason:e}))}},w=function(t){var i=0,n=f.triggerElement;if(o&&n){for(var s=o.info(),a=r.get.offset(s.container),l=s.vertical?"top":"left";n.parentNode.hasAttribute(e);)n=n.parentNode;var u=r.get.offset(n);s.isDocument||(a[l]-=o.scrollPos()),i=u[l]-a[l]}var c=i!=m;m=i,c&&!t&&h.trigger("shift",{reason:"triggerElementPosition"})},T=function(){f.triggerHook>0&&h.trigger("shift",{reason:"containerResize"})},k=r.extend(n.validate,{duration:function(t){if(r.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return o?o.info("size")*e:0}}if(r.type.Function(t)){s=t;try{t=parseFloat(s())}catch(i){t=-1}}if(t=parseFloat(t),!r.type.Number(t)||0>t)throw s?(s=void 0,0):0;return t}}),C=function(t){t=arguments.length?[t]:Object.keys(k),t.forEach(function(t){var e;if(k[t])try{e=k[t](f[t])}catch(i){e=c[t]}finally{f[t]=e}})},S=function(t,e){var i=!1,n=f[t];return f[t]!=e&&(f[t]=e,C(t),i=n!=f[t]),i},P=function(t){h[t]||(h[t]=function(e){return arguments.length?("duration"===t&&(s=void 0),S(t,e)&&(h.trigger("change",{what:t,newval:f[t]}),n.shifts.indexOf(t)>-1&&h.trigger("shift",{reason:t})),h):f[t]})};this.controller=function(){return o},this.state=function(){return p},this.scrollOffset=function(){return g.start},this.triggerPosition=function(){var t=f.offset;return o&&(t+=f.triggerElement?m:o.info("size")*h.triggerHook()),t};var A,E;h.on("shift.internal",function(t){var e="duration"===t.reason;(p===u&&e||p===l&&0===f.duration)&&N(),e&&R()}).on("progress.internal",function(){N()}).on("add.internal",function(){R()}).on("destroy.internal",function(t){h.removePin(t.reset)});var N=function(t){if(A&&o){var e=o.info(),i=E.spacer.firstChild;if(t||p!==l){var n={position:E.inFlow?"relative":"absolute",top:0,left:0},s=r.css(i,"position")!=n.position;E.pushFollowers?f.duration>0&&(p===u&&0===parseFloat(r.css(E.spacer,"padding-top"))?s=!0:p===a&&0===parseFloat(r.css(E.spacer,"padding-bottom"))&&(s=!0)):n[e.vertical?"top":"left"]=f.duration*d,r.css(i,n),s&&R()}else{"fixed"!=r.css(i,"position")&&(r.css(i,{position:"fixed"}),R());var c=r.get.offset(E.spacer,!0),h=f.reverse||0===f.duration?e.scrollPos-g.start:Math.round(d*f.duration*10)/10;c[e.vertical?"top":"left"]+=h,r.css(E.spacer.firstChild,{top:c.top,left:c.left})}}},R=function(){if(A&&o&&E.inFlow){var t=p===l,e=o.info("vertical"),i=E.spacer.firstChild,n=r.isMarginCollapseType(r.css(E.spacer,"display")),s={};E.relSize.width||E.relSize.autoFullWidth?t?r.css(A,{width:r.get.width(E.spacer)}):r.css(A,{width:"100%"}):(s["min-width"]=r.get.width(e?A:i,!0,!0),s.width=t?s["min-width"]:"auto"),E.relSize.height?t?r.css(A,{height:r.get.height(E.spacer)-(E.pushFollowers?f.duration:0)}):r.css(A,{height:"100%"}):(s["min-height"]=r.get.height(e?i:A,!0,!n),s.height=t?s["min-height"]:"auto"),E.pushFollowers&&(s["padding"+(e?"Top":"Left")]=f.duration*d,s["padding"+(e?"Bottom":"Right")]=f.duration*(1-d)),r.css(E.spacer,s)}},O=function(){o&&A&&p===l&&!o.info("isDocument")&&N()},D=function(){o&&A&&p===l&&((E.relSize.width||E.relSize.autoFullWidth)&&r.get.width(window)!=r.get.width(E.spacer.parentNode)||E.relSize.height&&r.get.height(window)!=r.get.height(E.spacer.parentNode))&&R()},L=function(t){o&&A&&p===l&&!o.info("isDocument")&&(t.preventDefault(),o._setScrollPos(o.info("scrollPos")-((t.wheelDelta||t[o.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,i){var n={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"};if(i=r.extend({},n,i),t=r.get.elements(t)[0],!t)return h;if("fixed"===r.css(t,"position"))return h;if(A){if(A===t)return h;h.removePin()}A=t;var s=A.parentNode.style.display,o=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];A.parentNode.style.display="none";var a="absolute"!=r.css(A,"position"),l=r.css(A,o.concat(["display"])),u=r.css(A,["width","height"]);A.parentNode.style.display=s,!a&&i.pushFollowers&&(i.pushFollowers=!1);var c=A.parentNode.insertBefore(document.createElement("div"),A),f=r.extend(l,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||r.extend(f,r.css(A,["width","height"])),r.css(c,f),c.setAttribute(e,""),r.addClass(c,i.spacerClass),E={spacer:c,relSize:{width:"%"===u.width.slice(-1),height:"%"===u.height.slice(-1),autoFullWidth:"auto"===u.width&&a&&r.isMarginCollapseType(l.display)},pushFollowers:i.pushFollowers,inFlow:a},!A.___origStyle){A.___origStyle={};var p=A.style,d=o.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]);d.forEach(function(t){A.___origStyle[t]=p[t]||""})}return E.relSize.width&&r.css(c,{width:u.width}),E.relSize.height&&r.css(c,{height:u.height}),c.appendChild(A),r.css(A,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(E.relSize.width||E.relSize.autoFullWidth)&&r.css(A,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",O),window.addEventListener("resize",O),window.addEventListener("resize",D),A.addEventListener("mousewheel",L),A.addEventListener("DOMMouseScroll",L),N(),h},this.removePin=function(t){if(A){if(p===l&&N(!0),t||!o){var i=E.spacer.firstChild;if(i.hasAttribute(e)){var n=E.spacer.style,s=["margin","marginLeft","marginRight","marginTop","marginBottom"];margins={},s.forEach(function(t){margins[t]=n[t]||""}),r.css(i,margins)}E.spacer.parentNode.insertBefore(i,E.spacer),E.spacer.parentNode.removeChild(E.spacer),A.parentNode.hasAttribute(e)||(r.css(A,A.___origStyle),delete A.___origStyle)}window.removeEventListener("scroll",O),window.removeEventListener("resize",O),window.removeEventListener("resize",D),A.removeEventListener("mousewheel",L),A.removeEventListener("DOMMouseScroll",L),A=void 0}return h};var M,F=[];return h.on("destroy.internal",function(t){h.removeClassToggle(t.reset)}),this.setClassToggle=function(t,e){var i=r.get.elements(t);return 0!==i.length&&r.type.String(e)?(F.length>0&&h.removeClassToggle(),M=e,F=i,h.on("enter.internal_class leave.internal_class",function(t){var e="enter"===t.type?r.addClass:r.removeClass;F.forEach(function(t){e(t,M)})}),h):h},this.removeClassToggle=function(t){return t&&F.forEach(function(t){r.removeClass(t,M)}),h.off("start.internal_class end.internal_class"),M=void 0,F=[],h},_(),h};var n={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!r.type.Number(t))throw 0;return t},triggerElement:function(t){if(t=t||void 0){var e=r.get.elements(t)[0];if(!e)throw 0;t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(r.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw 0;t=e[t]}return t},reverse:function(t){return!!t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(t,e,i,r){t in n.defaults||(n.defaults[t]=e,n.validate[t]=i,r&&n.shifts.push(t))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=r.extend({},this),e.apply(this,arguments)||this},r.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,n){n=n||{};for(var r in n)this[r]=n[r];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var r=t._util=function(t){var e,i={},n=function(t){return parseFloat(t)||0},r=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},s=function(e,i,s,o){if(i=i===document?t:i,i===t)o=!1;else if(!h.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var a=(s?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(s&&o){var l=r(i);a+="Height"===e?n(l.marginTop)+n(l.marginBottom):n(l.marginLeft)+n(l.marginRight)}return a},o=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})};i.extend=function(t){for(t=t||{},e=1;e<arguments.length;e++)if(arguments[e])for(var i in arguments[e])arguments[e].hasOwnProperty(i)&&(t[i]=arguments[e][i]);return t},i.isMarginCollapseType=function(t){return["block","flex","list-item","table","-webkit-box"].indexOf(t)>-1};var a=0,l=["ms","moz","webkit","o"],u=t.requestAnimationFrame,c=t.cancelAnimationFrame;for(e=0;!u&&e<l.length;++e)u=t[l[e]+"RequestAnimationFrame"],c=t[l[e]+"CancelAnimationFrame"]||t[l[e]+"CancelRequestAnimationFrame"];u||(u=function(e){var i=(new Date).getTime(),n=Math.max(0,16-(i-a)),r=t.setTimeout(function(){e(i+n)},n);return a=i+n,r}),c||(c=function(e){t.clearTimeout(e)}),i.rAF=u.bind(t),i.cAF=c.bind(t);var h=i.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};h.String=function(t){return"string"===h(t)},h.Function=function(t){return"function"===h(t)},h.Array=function(t){return Array.isArray(t)},h.Number=function(t){return!h.Array(t)&&t-parseFloat(t)+1>=0},h.DomElement=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var f=i.get={};return f.elements=function(e){var i=[];if(h.String(e))try{e=document.querySelectorAll(e)}catch(n){return i}if("nodelist"===h(e)||h.Array(e))for(var r=0,s=i.length=e.length;s>r;r++){var o=e[r];i[r]=h.DomElement(o)?o:f.elements(o)}else(h.DomElement(e)||e===document||e===t)&&(i=[e]);return i},f.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:t.pageYOffset||0},f.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:t.pageXOffset||0},f.width=function(t,e,i){return s("width",t,e,i)},f.height=function(t,e,i){return s("height",t,e,i)},f.offset=function(t,e){var i={top:0,left:0};if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect();i.top=n.top,i.left=n.left,e||(i.top+=f.scrollTop(),i.left+=f.scrollLeft())}return i},i.addClass=function(t,e){e&&(t.classList?t.classList.add(e):t.className+=" "+e)},i.removeClass=function(t,e){e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},i.css=function(t,e){if(h.String(e))return r(t)[o(e)];if(h.Array(e)){var i={},n=r(t);return e.forEach(function(t){i[t]=n[o(t)]}),i}for(var s in e){var a=e[s];a==parseFloat(a)&&(a+="px"),t.style[o(s)]=a}},i}(window||{});return t}),!function(t,e){"function"==typeof define&&define.amd?define(["ScrollMagic","jquery"],e):"object"==typeof exports?e(require("scrollmagic"),require("jquery")):e(t.ScrollMagic,t.jQuery)}(this,function(t,e){"use strict";t._util.get.elements=function(t){return e(t).toArray()},t._util.addClass=function(t,i){e(t).addClass(i)},t._util.removeClass=function(t,i){e(t).removeClass(i)},e.ScrollMagic=t}),!function(t,e){"function"==typeof define&&define.amd?define(["ScrollMagic","TweenMax","TimelineMax"],e):"object"==typeof exports?(require("gsap"),e(require("scrollmagic"),TweenMax,TimelineMax)):e(t.ScrollMagic||t.jQuery&&t.jQuery.ScrollMagic,t.TweenMax||t.TweenLite,t.TimelineMax||t.TimelineLite)}(this,function(t,e,i){"use strict";t.Scene.addOption("tweenChanges",!1,function(t){return!!t}),t.Scene.extend(function(){var t,n=this;n.on("progress.plugin_gsap",function(){r()}),n.on("destroy.plugin_gsap",function(t){n.removeTween(t.reset)});var r=function(){if(t){var e=n.progress(),i=n.state();t.repeat&&-1===t.repeat()?"DURING"===i&&t.paused()?t.play():"DURING"===i||t.paused()||t.pause():e!=t.progress()&&(0===n.duration()?e>0?t.play():t.reverse():n.tweenChanges()&&t.tweenTo?t.tweenTo(e*t.duration()):t.progress(e).pause())}};n.setTween=function(s,o,a){var l;arguments.length>1&&(arguments.length<3&&(a=o,o=1),s=e.to(s,o,a));try{l=i?new i({smoothChildTiming:!0}).add(s):s,l.pause()}catch(u){return n}return t&&n.removeTween(),t=l,s.repeat&&-1===s.repeat()&&(t.repeat(-1),t.yoyo(s.yoyo())),r(),n},n.removeTween=function(e){return t&&(e&&t.progress(0).pause(),t.kill(),t=void 0),n}})}),!function(t,e){"function"==typeof define&&define.amd?define(["ScrollMagic"],e):e("object"==typeof exports?require("scrollmagic"):t.ScrollMagic||t.jQuery&&t.jQuery.ScrollMagic)}(this,function(t){"use strict";var e="0.85em",i="9999",n=15,r=t._util,s=0;t.Scene.extend(function(){var t,e=this;e.addIndicators=function(i){if(!t){var n={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};i=r.extend({},n,i),s++,t=new o(e,i),e.on("add.plugin_addIndicators",t.add),e.on("remove.plugin_addIndicators",t.remove),e.on("destroy.plugin_addIndicators",e.removeIndicators),e.controller()&&t.add()}return e},e.removeIndicators=function(){return t&&(t.remove(),this.off("*.plugin_addIndicators"),t=void 0),e}}),t.Controller.addOption("addIndicators",!1),t.Controller.extend(function(){var e=this,i=e.info(),s=i.container,o=i.isDocument,a=i.vertical,l={groups:[]};this._indicators=l;var u=function(){l.updateBoundsPositions()},c=function(){l.updateTriggerGroupPositions()};return s.addEventListener("resize",c),o||(window.addEventListener("resize",c),window.addEventListener("scroll",c)),s.addEventListener("resize",u),s.addEventListener("scroll",u),this._indicators.updateBoundsPositions=function(t){for(var e,i,o,u=t?[r.extend({},t.triggerGroup,{members:[t]})]:l.groups,c=u.length,h={},f=a?"left":"top",p=a?"width":"height",d=a?r.get.scrollLeft(s)+r.get.width(s)-n:r.get.scrollTop(s)+r.get.height(s)-n;c--;)for(o=u[c],e=o.members.length,i=r.get[p](o.element.firstChild);e--;)h[f]=d-i,r.css(o.members[e].bounds,h)},this._indicators.updateTriggerGroupPositions=function(t){for(var i,u,c,h,f,p=t?[t]:l.groups,d=p.length,g=o?document.body:s,m=o?{top:0,left:0}:r.get.offset(g,!0),v=a?r.get.width(s)-n:r.get.height(s)-n,_=a?"width":"height",y=a?"Y":"X";d--;)i=p[d],u=i.element,c=i.triggerHook*e.info("size"),h=r.get[_](u.firstChild.firstChild),f=c>h?"translate"+y+"(-100%)":"",r.css(u,{top:m.top+(a?c:v-i.members[0].options.indent),left:m.left+(a?v-i.members[0].options.indent:c)}),r.css(u.firstChild.firstChild,{"-ms-transform":f,"-webkit-transform":f,transform:f})},this._indicators.updateTriggerGroupLabel=function(t){var e="trigger"+(t.members.length>1?"":" "+t.members[0].options.name),i=t.element.firstChild.firstChild,n=i.textContent!==e;n&&(i.textContent=e,a&&l.updateBoundsPositions())},this.addScene=function(i){this._options.addIndicators&&i instanceof t.Scene&&i.controller()===e&&i.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){s.removeEventListener("resize",c),o||(window.removeEventListener("resize",c),window.removeEventListener("scroll",c)),s.removeEventListener("resize",u),s.removeEventListener("scroll",u),this.$super.destroy.apply(this,arguments)},e});var o=function(t,e){var i,n,o=this,l=a.bounds(),u=a.start(e.colorStart),c=a.end(e.colorEnd),h=e.parent&&r.get.elements(e.parent)[0];e.name=e.name||s,u.firstChild.textContent+=" "+e.name,c.textContent+=" "+e.name,l.appendChild(u),l.appendChild(c),o.options=e,o.bounds=l,o.triggerGroup=void 0,this.add=function(){n=t.controller(),i=n.info("vertical");var e=n.info("isDocument");h||(h=e?document.body:n.info("container")),e||"static"!==r.css(h,"position")||r.css(h,{position:"relative"}),t.on("change.plugin_addIndicators",p),t.on("shift.plugin_addIndicators",f),y(),m(),setTimeout(function(){n._indicators.updateBoundsPositions(o)},0)},this.remove=function(){if(o.triggerGroup){if(t.off("change.plugin_addIndicators",p),t.off("shift.plugin_addIndicators",f),o.triggerGroup.members.length>1){var e=o.triggerGroup;e.members.splice(e.members.indexOf(o),1),n._indicators.updateTriggerGroupLabel(e),n._indicators.updateTriggerGroupPositions(e),o.triggerGroup=void 0}else _();g()}};var f=function(){m()},p=function(t){"triggerHook"===t.what&&y()},d=function(){var t=n.info("vertical");r.css(u.firstChild,{"border-bottom-width":t?1:0,"border-right-width":t?0:1,bottom:t?-1:e.indent,right:t?e.indent:-1,padding:t?"0 8px":"2px 4px"}),r.css(c,{"border-top-width":t?1:0,"border-left-width":t?0:1,top:t?"100%":"",right:t?e.indent:"",bottom:t?"":e.indent,left:t?"":"100%",padding:t?"0 8px":"2px 4px"}),h.appendChild(l)},g=function(){l.parentNode.removeChild(l)},m=function(){l.parentNode!==h&&d();var e={};e[i?"top":"left"]=t.triggerPosition(),e[i?"height":"width"]=t.duration(),r.css(l,e),r.css(c,{display:t.duration()>0?"":"none"})},v=function(){var s=a.trigger(e.colorTrigger),l={};l[i?"right":"bottom"]=0,l[i?"border-top-width":"border-left-width"]=1,r.css(s.firstChild,l),r.css(s.firstChild.firstChild,{padding:i?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(s);var u={triggerHook:t.triggerHook(),element:s,members:[o]};n._indicators.groups.push(u),o.triggerGroup=u,n._indicators.updateTriggerGroupLabel(u),n._indicators.updateTriggerGroupPositions(u)},_=function(){n._indicators.groups.splice(n._indicators.groups.indexOf(o.triggerGroup),1),o.triggerGroup.element.parentNode.removeChild(o.triggerGroup.element),o.triggerGroup=void 0},y=function(){var e=t.triggerHook(),i=1e-4;if(!(o.triggerGroup&&Math.abs(o.triggerGroup.triggerHook-e)<i)){for(var r,s=n._indicators.groups,a=s.length;a--;)if(r=s[a],Math.abs(r.triggerHook-e)<i)return o.triggerGroup&&(1===o.triggerGroup.members.length?_():(o.triggerGroup.members.splice(o.triggerGroup.members.indexOf(o),1),n._indicators.updateTriggerGroupLabel(o.triggerGroup),n._indicators.updateTriggerGroupPositions(o.triggerGroup))),r.members.push(o),o.triggerGroup=r,void n._indicators.updateTriggerGroupLabel(r);if(o.triggerGroup){if(1===o.triggerGroup.members.length)return o.triggerGroup.triggerHook=e,void n._indicators.updateTriggerGroupPositions(o.triggerGroup);o.triggerGroup.members.splice(o.triggerGroup.members.indexOf(o),1),n._indicators.updateTriggerGroupLabel(o.triggerGroup),n._indicators.updateTriggerGroupPositions(o.triggerGroup),o.triggerGroup=void 0}v()}}},a={start:function(t){var e=document.createElement("div");e.textContent="start",r.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t});var i=document.createElement("div");return r.css(i,{position:"absolute",overflow:"visible",width:0,height:0}),i.appendChild(e),i},end:function(t){var e=document.createElement("div");return e.textContent="end",r.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),e},bounds:function(){var t=document.createElement("div");return r.css(t,{position:"absolute",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":e}),t.style.zIndex=i,t},trigger:function(t){var n=document.createElement("div");n.textContent="trigger",r.css(n,{position:"relative"});var s=document.createElement("div");r.css(s,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),s.appendChild(n);var o=document.createElement("div");return r.css(o,{position:"fixed",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":e}),o.style.zIndex=i,o.appendChild(s),o}}}),$(function(){$frontHeader=$("body.home .header"),$logoWrap=$("body.home .header .dotslashlogo"),$logoLink=$("body .dotslashlogo a"),$d=$("body .dotslashlogo #logodot_text #d"),$o=$("body .dotslashlogo #logodot_text #o_full"),$o_left=$("body .dotslashlogo #logodot_text #o_left"),$o_right=$("body .dotslashlogo #logodot_text #o_right"),$t=$("body .dotslashlogo #logodot_text #t"),$slash=$("body .dotslashlogo #logoslash_line #slash"),$slash_rect=$("body .dotslashlogo #logoslash_line #slash_rect"),$headerText=$("body.home .header h1, body.home .header h3"),$strokeColor="#1D1D1F",$fillColor="#1D1D1F",$strokeColorInv="#fff",$fillColorInv="#fff",$navHoverColor="#2098d1"}),$(function(){logoIn=function(){$logoWrap.removeClass("inv"),TweenMax.to($d,.1,{x:9,ease:Power1.easeIn}),TweenMax.to($o_left,.1,{x:5,ease:Power1.easeIn}),TweenMax.to($o_right,.1,{x:-3,ease:Power1.easeIn}),TweenMax.to($t,.1,{x:-9,ease:Power1.easeIn}),TweenMax.to($slash,.1,{x:1,rotation:-43,transformOrigin:"50% 50%",ease:Power1.easeOut}),TweenMax.to($o_left,.1,{rotation:-43,transformOrigin:"15.15 15.05",ease:Power1.easeOut}),TweenMax.to($o_right,.1,{rotation:-43,transformOrigin:"9.05 9.75",ease:Power1.easeOut})},logoOut=function(){TweenMax.to($slash,.1,{x:0,rotation:0,transformOrigin:"50% 50%",ease:Back.easeOut}),TweenMax.to([$d,$o_left,$o_right,$t],.1,{x:0,ease:Back.easeOut}),TweenMax.to([$o_left,$o_right],.1,{rotation:0,ease:Back.easeOut}),TweenMax.set($o,{display:"none"}),TweenMax.set([$o_left,$o_right],{autoAlpha:1})},$logoLink.hover(logoIn,logoOut)}),$(function(){"use strict";var t=".autosticky",e="sticky-hidden",i="sticky-shrink",n=50,r=500,s=$(t);if(!s.length)return!0;var o=$(window),a=0,l=0,u=0,c=0,h=$(document),f=0,p=function(t,e){var i,n;return function(){var r=this,s=arguments,o=+new Date;i&&i+t>o?(clearTimeout(n),n=setTimeout(function(){i=o,e.apply(r,s)},t)):(i=o,e.apply(r,s))}};o.on("scroll",p(r,function(){f=h.height(),a=o.height(),l=o.scrollTop(),c=u-l,s.toggleClass(i,l>n),0>=l?s.removeClass(e):c>0&&l>0?s.addClass(e):0>c&&(l+a>=f&&s.hasClass(e)||s.addClass(e)),u=l}))}),$(function(){var t={enter:"bottom",move:"25px",scale:{direction:"up",power:"0"},over:"0.6s",wait:"0s",easing:"ease",reset:!1,delay:"once",vFactor:.1};window.sr=new scrollReveal(t)}),$(function(){$("body").hasClass("dark")&&$(window).on("scrollstop",function(){$("header.header").visible(!0)?($("body").removeClass("light-override"),$("body .header .dotslashlogo").addClass("inv")):($("body").addClass("light-override"),$("body .header .dotslashlogo").removeClass("inv"))})}); //# sourceMappingURL=./scripts.min.js.map
# Copyright 2011 OpenStack Foundation # # 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. """The rescue mode extension.""" from oslo_config import cfg from oslo_utils import uuidutils from webob import exc from nova.api.openstack import common from nova.api.openstack.compute.schemas import rescue from nova.api.openstack import extensions from nova.api.openstack import wsgi from nova.api import validation from nova import compute from nova import exception from nova.i18n import _ from nova import utils ALIAS = "os-rescue" CONF = cfg.CONF CONF.import_opt('enable_instance_password', 'nova.api.openstack.compute.legacy_v2.servers') authorize = extensions.os_compute_authorizer(ALIAS) class RescueController(wsgi.Controller): def __init__(self, *args, **kwargs): super(RescueController, self).__init__(*args, **kwargs) self.compute_api = compute.API(skip_policy_check=True) def _rescue_image_validation(self, image_ref): image_uuid = image_ref.split('/').pop() if not uuidutils.is_uuid_like(image_uuid): msg = _("Invalid rescue_image_ref provided.") raise exc.HTTPBadRequest(explanation=msg) return image_uuid # TODO(cyeoh): Should be responding here with 202 Accept # because rescue is an async call, but keep to 200 # for backwards compatibility reasons. @extensions.expected_errors((400, 404, 409, 501)) @wsgi.action('rescue') @validation.schema(rescue.rescue) def _rescue(self, req, id, body): """Rescue an instance.""" context = req.environ["nova.context"] authorize(context) if body['rescue'] and 'adminPass' in body['rescue']: password = body['rescue']['adminPass'] else: password = utils.generate_password() instance = common.get_instance(self.compute_api, context, id) rescue_image_ref = None if body['rescue'] and 'rescue_image_ref' in body['rescue']: rescue_image_ref = self._rescue_image_validation( body['rescue']['rescue_image_ref']) try: self.compute_api.rescue(context, instance, rescue_password=password, rescue_image_ref=rescue_image_ref) except exception.InstanceUnknownCell as e: raise exc.HTTPNotFound(explanation=e.format_message()) except exception.InstanceIsLocked as e: raise exc.HTTPConflict(explanation=e.format_message()) except exception.InstanceInvalidState as state_error: common.raise_http_conflict_for_instance_invalid_state(state_error, 'rescue', id) except exception.InvalidVolume as volume_error: raise exc.HTTPConflict(explanation=volume_error.format_message()) except exception.InstanceNotRescuable as non_rescuable: raise exc.HTTPBadRequest( explanation=non_rescuable.format_message()) if CONF.enable_instance_password: return {'adminPass': password} else: return {} @wsgi.response(202) @extensions.expected_errors((404, 409, 501)) @wsgi.action('unrescue') def _unrescue(self, req, id, body): """Unrescue an instance.""" context = req.environ["nova.context"] authorize(context) instance = common.get_instance(self.compute_api, context, id) try: self.compute_api.unrescue(context, instance) except exception.InstanceUnknownCell as e: raise exc.HTTPNotFound(explanation=e.format_message()) except exception.InstanceIsLocked as e: raise exc.HTTPConflict(explanation=e.format_message()) except exception.InstanceInvalidState as state_error: common.raise_http_conflict_for_instance_invalid_state(state_error, 'unrescue', id) class Rescue(extensions.V21APIExtensionBase): """Instance rescue mode.""" name = "Rescue" alias = ALIAS version = 1 def get_resources(self): return [] def get_controller_extensions(self): controller = RescueController() extension = extensions.ControllerExtension(self, 'servers', controller) return [extension]
import React, { Component, } from 'react'; import { EuiHeaderSectionItemButton, EuiPopover, EuiButton, EuiAvatar, EuiSelectable, EuiPopoverTitle, EuiPopoverFooter, } from '../../../../src/components'; import { Fragment } from 'react-is'; export default class extends Component { constructor(props) { super(props); this.spaces = [ { label: 'Sales team', prepend: <EuiAvatar type="space" name="Sales Team" size="s" />, checked: 'on' }, { label: 'Engineering', prepend: <EuiAvatar type="space" name="Engineering" size="s" />, }, { label: 'Security', prepend: <EuiAvatar type="space" name="Security" size="s" />, }, { label: 'Default', prepend: <EuiAvatar type="space" name="Default" size="s" />, }, ]; this.additionalSpaces = [ { label: 'Sales team 2', prepend: <EuiAvatar type="space" name="Sales Team 2" size="s" />, }, { label: 'Engineering 2', prepend: <EuiAvatar type="space" name="Engineering 2" size="s" />, }, { label: 'Security 2', prepend: <EuiAvatar type="space" name="Security 2" size="s" />, }, { label: 'Default 2', prepend: <EuiAvatar type="space" name="Default 2" size="s" />, }, ]; this.state = { spaces: this.spaces, selectedSpace: this.spaces.filter(option => option.checked)[0], isOpen: false, }; } isListExtended = () => { return this.state.spaces.length > 4 ? true : false; } onMenuButtonClick = () => { this.setState({ isOpen: !this.state.isOpen, }); }; closePopover = () => { this.setState({ isOpen: false, }); }; onChange = options => { this.setState({ spaces: options, selectedSpace: options.filter(option => option.checked)[0], isOpen: false, }); }; addMoreSpaces = () => { this.setState({ spaces: this.spaces.concat(this.additionalSpaces), }); } render() { const { selectedSpace, isOpen, spaces } = this.state; const button = ( <EuiHeaderSectionItemButton aria-controls="headerSpacesMenuList" aria-expanded={isOpen} aria-haspopup="true" aria-label="Apps menu" onClick={this.onMenuButtonClick} > {selectedSpace.prepend} </EuiHeaderSectionItemButton> ); return ( <EuiPopover id="headerSpacesMenu" ownFocus button={button} isOpen={isOpen} anchorPosition="downLeft" closePopover={this.closePopover} panelPaddingSize="none" > <EuiSelectable searchable={this.isListExtended()} searchProps={{ placeholder: 'Find a space', compressed: true, }} options={spaces} singleSelection="always" style={{ width: 300 }} onChange={this.onChange} listProps={{ rowHeight: 40, showIcons: false, }} > {(list, search) => ( <Fragment> <EuiPopoverTitle>{search || 'Your spaces'}</EuiPopoverTitle> {list} <EuiPopoverFooter> <EuiButton size="s" fullWidth onClick={this.addMoreSpaces} disabled={this.isListExtended()}> Add more spaces </EuiButton> </EuiPopoverFooter> </Fragment> )} </EuiSelectable> </EuiPopover> ); } }
import selectedCamera from '../../src/reducers/select-camera-reducer'; describe('selectedCamera reducer', () => { it('should return the initial state', () => { expect(selectedCamera(undefined, {})).to.eql('ALL') }); it('should return correct state when ', () => { expect(selectedCamera('ALL', { type: 'SELECT_CAMERA', camera: 'RHAZ' })).to.eql('RHAZ') }); });
from . poly_spline import PolySpline from . bezier_spline import BezierSpline def connectSplines(splines): if len(splines) == 0: return BezierSpline() if len(splines) == 1: return splines[0].copy() if allPolySplines(splines): return joinPolySplines(splines) else: return joinInBezierSpline(splines) def joinPolySplines(splines): newSpline = PolySpline() for spline in splines: newSpline.points.extend(spline.points) newSpline.radii.extend(spline.radii) return newSpline def joinInBezierSpline(splines): newSpline = BezierSpline() for spline in splines: newSpline.points.extend(spline.points) newSpline.radii.extend(spline.radii) newSpline.tilts.extend(spline.tilts) if isinstance(spline, PolySpline): newSpline.leftHandles.extend(spline.points) newSpline.rightHandles.extend(spline.points) elif isinstance(spline, BezierSpline): newSpline.leftHandles.extend(spline.leftHandles) newSpline.rightHandles.extend(spline.rightHandles) return newSpline def allPolySplines(splines): return all(isinstance(spline, PolySpline) for spline in splines)
const path = require('path') const server = require(path.resolve('./server.js')) const request = require('supertest').agent(server.listen()) const { test } = require('ava') const moment = require('moment') const admin = { id: 1, email: '[email protected]', firstName: 'Alpha', lastName: 'Beta', password: '!1A2b3C4d!', roles: '[1, 2]', username: 'admin' } const user = { id: 2, email: '[email protected]', firstName: 'Gamma', lastName: 'Delta', password: '!1A2b3C4d!', roles: '[2]', username: 'user' } const dummy = { id: 3, email: '[email protected]', firstName: 'Epsilon', lastName: 'Zeta', password: '!1A2b3C4d!', roles: '[2]', username: 'dummy' } test.serial('Login admin', async t => { const res = await request .post('/api/v1/login') .send({ password: admin.password, username: admin.username }) t.is(res.status, 200) }) test.serial('Get by id', async t => { let res = await request .get('/api/v1/users?limit=5&offset=0&column=created&direction=desc&search={}') const userId = res.body.rows[0].id res = await request .get(`/api/v1/users/${userId}`) t.is(res.status, 200) }) test.serial('Get all', async t => { const res = await request .get('/api/v1/users?limit=5&offset=0&column=created&direction=desc&search={}') t.is(res.status, 200) t.is(res.body.totalCount, 2) }) test.serial('Create', async t => { const res = await request .post('/api/v1/users/') .send({ email: dummy.email, firstName: dummy.firstName, lastName: dummy.lastName, password: dummy.password, roles: dummy.roles, username: dummy.username }) t.is(res.status, 201) }) test.serial('Create should not allow weak password', async t => { const password = '1234567890' const res = await request .post('/api/v1/users/') .send({ email: dummy.email, firstName: dummy.firstName, lastName: dummy.lastName, password: password, roles: dummy.roles, username: dummy.username }) t.is(res.status, 422) }) test.serial('Create should not allow duplicate email', async t => { const res = await request .post('/api/v1/users/') .send({ email: user.email.toUpperCase(), firstName: dummy.firstName, lastName: dummy.lastName, password: dummy.password, roles: dummy.roles, username: dummy.username }) t.is(res.status, 500) }) test.serial('Create should not allow duplicate username', async t => { const res = await request .post('/api/v1/users/') .send({ email: dummy.email, firstName: dummy.firstName, lastName: dummy.lastName, password: dummy.password, roles: dummy.roles, username: user.username }) t.is(res.status, 500) }) test.serial('Search term only', async t => { const search = JSON.stringify( { term: 'user' } ) const res = await request .get(`/api/v1/users?limit=5&offset=0&column=created&direction=desc&search=${search}`) t.is(res.status, 200) t.is(res.body.rows.length, 1) t.is(res.body.rows[0].username, user.username) }) test.serial('Search start date only', async t => { const date = moment().add(-1, 'second').format('YYYY-MM-DDTHH:mm:ss.SSS') const search = JSON.stringify( { startDate: date } ) const res = await request .get(`/api/v1/users/?limit=5&offset=0&column=created&direction=desc&search=${search}`) t.is(res.status, 200) t.is(res.body.totalCount, 1) }) test.serial('Search end date only', async t => { let endDate const users = await request .get('/api/v1/users?limit=5&offset=0&column=created&direction=asc&search={}') if (users.body.rows.length) { const firstUserCreated = users.body.rows[0].created endDate = moment(firstUserCreated).add(1, 'millisecond').format('YYYY-MM-DDTHH:mm:ss.SSS') } const search = JSON.stringify( { endDate: endDate } ) const res = await request .get(`/api/v1/users/?limit=5&offset=0&column=created&direction=desc&search=${search}`) t.is(res.status, 200) t.is(res.body.totalCount, 1) }) test.serial('Update', async t => { let res = await request .get('/api/v1/users?limit=5&offset=0&column=created&direction=desc&search={}') const userId = res.body.rows[0].id res = await request .post(`/api/v1/users/profile/${userId}`) .send({ email: dummy.email, firstName: user.firstName, lastName: user.lastName, roles: user.roles, username: dummy.username }) t.is(res.status, 200) t.is(parseInt(res.body.id), userId) }) test.serial('Update password', async t => { const res = await request .post(`/api/v1/users/password/${user.id}`) .send({ password: dummy.password }) t.is(res.status, 204) }) test.serial('Check user by email', async t => { const res = await request .get(`/api/v1/users/email/${admin.email}`) t.is(res.status, 200) t.is(res.body.email, admin.email) }) test.serial('Check user by username', async t => { const res = await request .get(`/api/v1/users/username/${admin.username}`) t.is(res.status, 200) t.is(res.body.username, admin.username) }) test.serial('Login user', async t => { const res = await request .post('/api/v1/login') .send({ password: dummy.password, username: dummy.username }) t.is(res.status, 200) }) test.serial('Get by id should not allow unauthorized access', async t => { const res = await request .get(`/api/v1/users/${admin.id}`) t.is(res.status, 401) }) test.serial('Update should not allow unauthorized access', async t => { const res = await request .post(`/api/v1/users/profile/${admin.id}`) .send({ email: dummy.email, firstName: dummy.firstName, lastName: dummy.lastName, roles: user.roles, username: dummy.username }) t.is(res.status, 401) }) test.serial('Update password should not allow unauthorized access', async t => { const res = await request .post(`/api/v1/users/password/${admin.id}`) .send({ password: dummy.password }) t.is(res.status, 401) }) test.serial('Login admin', async t => { const res = await request .post('/api/v1/login') .send({ password: admin.password, username: admin.username }) t.is(res.status, 200) }) test.serial('Delete', async t => { let res = await request .get('/api/v1/users?limit=5&offset=0&column=id&direction=desc&search={}') const userId = res.body.rows[0].id res = await request .del(`/api/v1/users/${userId}`) t.is(res.status, 200) t.is(res.body[0].id, userId) }) test.serial('Delete id not found', async t => { const res = await request .del(`/api/v1/users/${dummy.id}`) t.is(res.status, 204) }) test.serial('Logout user', async t => { const res = await request .post('/api/v1/logout') t.is(res.status, 204) }) test.serial('Get by id should not allow unauthenticated access', async t => { const res = await request .get(`/api/v1/users/${admin.id}`) t.is(res.status, 401) })
module.exports = function (app) { app.get('/', function (req, res) { res.send('hello world!'); }); app.get('/admin', function (req, res) { res.send('admin page!'); }); }
import React from 'react'; function Login() { return ( <> <div id="sidebar-wrapper"> <div className="border-end bg-white"> <div className="sidebar-heading border-bottom bg-light"> <h1>Login </h1> </div> <div className="list-group list-group-flush"> </div> </div> </div> </> ); }; export default Login;
/* * DateJS Culture String File * Country Code: fi-FI * Name: Finnish (Finland) * Format: "key" : "value" * Key is the en-US term, Value is the Key in the current language. */ Date.CultureStrings = Date.CultureStrings || {}; Date.CultureStrings["fi-FI"] = { "name": "fi-FI", "englishName": "Finnish (Finland)", "nativeName": "suomi (Suomi)", "Sunday": "sunnuntai", "Monday": "maanantai", "Tuesday": "tiistai", "Wednesday": "keskiviikko", "Thursday": "torstai", "Friday": "perjantai", "Saturday": "lauantai", "Sun": "su", "Mon": "ma", "Tue": "ti", "Wed": "ke", "Thu": "to", "Fri": "pe", "Sat": "la", "Su": "su", "Mo": "ma", "Tu": "ti", "We": "ke", "Th": "to", "Fr": "pe", "Sa": "la", "S_Sun_Initial": "s", "M_Mon_Initial": "m", "T_Tue_Initial": "t", "W_Wed_Initial": "k", "T_Thu_Initial": "t", "F_Fri_Initial": "p", "S_Sat_Initial": "l", "January": "tammikuu", "February": "helmikuu", "March": "maaliskuu", "April": "huhtikuu", "May": "toukokuu", "June": "kesäkuu", "July": "heinäkuu", "August": "elokuu", "September": "syyskuu", "October": "lokakuu", "November": "marraskuu", "December": "joulukuu", "Jan_Abbr": "tammi", "Feb_Abbr": "helmi", "Mar_Abbr": "maalis", "Apr_Abbr": "huhti", "May_Abbr": "touko", "Jun_Abbr": "kesä", "Jul_Abbr": "heinä", "Aug_Abbr": "elo", "Sep_Abbr": "syys", "Oct_Abbr": "loka", "Nov_Abbr": "marras", "Dec_Abbr": "joulu", "AM": "", "PM": "", "firstDayOfWeek": 1, "twoDigitYearMax": 2029, "mdy": "dmy", "M/d/yyyy": "d.M.yyyy", "dddd, MMMM dd, yyyy": "d. MMMM'ta 'yyyy", "h:mm tt": "H:mm", "h:mm:ss tt": "H:mm:ss", "dddd, MMMM dd, yyyy h:mm:ss tt": "d. MMMM'ta 'yyyy H:mm:ss", "yyyy-MM-ddTHH:mm:ss": "yyyy-MM-ddTHH:mm:ss", "yyyy-MM-dd HH:mm:ssZ": "yyyy-MM-dd HH:mm:ssZ", "ddd, dd MMM yyyy HH:mm:ss": "ddd, dd MMM yyyy HH:mm:ss", "MMMM dd": "d. MMMM'ta'", "MMMM, yyyy": "MMMM yyyy", "/jan(uary)?/": "tammi(kuu)?", "/feb(ruary)?/": "helmi(kuu)?", "/mar(ch)?/": "maalis(kuu)?", "/apr(il)?/": "huhti(kuu)?", "/may/": "touko(kuu)?", "/jun(e)?/": "kesä(kuu)?", "/jul(y)?/": "heinä(kuu)?", "/aug(ust)?/": "elo(kuu)?", "/sep(t(ember)?)?/": "syys(kuu)?", "/oct(ober)?/": "loka(kuu)?", "/nov(ember)?/": "marras(kuu)?", "/dec(ember)?/": "joulu(kuu)?", "/^su(n(day)?)?/": "^sunnuntai", "/^mo(n(day)?)?/": "^maanantai", "/^tu(e(s(day)?)?)?/": "^tiistai", "/^we(d(nesday)?)?/": "^keskiviikko", "/^th(u(r(s(day)?)?)?)?/": "^torstai", "/^fr(i(day)?)?/": "^perjantai", "/^sa(t(urday)?)?/": "^lauantai", "/^next/": "^next", "/^last|past|prev(ious)?/": "^last|past|prev(ious)?", "/^(\\+|aft(er)?|from|hence)/": "^(\\+|aft(er)?|from|hence)", "/^(\\-|bef(ore)?|ago)/": "^(\\-|bef(ore)?|ago)", "/^yes(terday)?/": "^yes(terday)?", "/^t(od(ay)?)?/": "^t(od(ay)?)?", "/^tom(orrow)?/": "^tom(orrow)?", "/^n(ow)?/": "^n(ow)?", "/^ms|milli(second)?s?/": "^ms|milli(second)?s?", "/^sec(ond)?s?/": "^sec(ond)?s?", "/^mn|min(ute)?s?/": "^mn|min(ute)?s?", "/^h(our)?s?/": "^h(our)?s?", "/^w(eek)?s?/": "^w(eek)?s?", "/^m(onth)?s?/": "^m(onth)?s?", "/^d(ay)?s?/": "^d(ay)?s?", "/^y(ear)?s?/": "^y(ear)?s?", "/^(a|p)/": "^(a|p)", "/^(a\\.?m?\\.?|p\\.?m?\\.?)/": "^(a\\.?m?\\.?|p\\.?m?\\.?)", "/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)/": "^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)", "/^\\s*(st|nd|rd|th)/": "^\\s*(st|nd|rd|th)", "/^\\s*(\\:|a(?!u|p)|p)/": "^\\s*(\\:|a(?!u|p)|p)", "LINT": "LINT", "TOT": "TOT", "CHAST": "CHAST", "NZST": "NZST", "NFT": "NFT", "SBT": "SBT", "AEST": "AEST", "ACST": "ACST", "JST": "JST", "CWST": "CWST", "CT": "CT", "ICT": "ICT", "MMT": "MMT", "BIOT": "BST", "NPT": "NPT", "IST": "IST", "PKT": "PKT", "AFT": "AFT", "MSK": "MSK", "IRST": "IRST", "FET": "FET", "EET": "EET", "CET": "CET", "UTC": "UTC", "GMT": "GMT", "CVT": "CVT", "GST": "GST", "BRT": "BRT", "NST": "NST", "AST": "AST", "EST": "EST", "CST": "CST", "MST": "MST", "PST": "PST", "AKST": "AKST", "MIT": "MIT", "HST": "HST", "SST": "SST", "BIT": "BIT", "CHADT": "CHADT", "NZDT": "NZDT", "AEDT": "AEDT", "ACDT": "ACDT", "AZST": "AZST", "IRDT": "IRDT", "EEST": "EEST", "CEST": "CEST", "BST": "BST", "PMDT": "PMDT", "ADT": "ADT", "NDT": "NDT", "EDT": "EDT", "CDT": "CDT", "MDT": "MDT", "PDT": "PDT", "AKDT": "AKDT", "HADT": "HADT" }; Date.CultureStrings.lang = "fi-FI";
import os import unittest from recipe_scrapers.delish import Delish class TestDelishScraper(unittest.TestCase): def setUp(self): #tests are run from tests.py with open(os.path.join( os.getcwd(), 'recipe_scrapers', 'tests', 'test_data', 'delish.testhtml' )) as file_opened: self.harvester_class = Delish(file_opened, test=True) def test_host(self): self.assertEqual( self.harvester_class.host(), 'delish.com' ) def test_title(self): self.assertEqual( self.harvester_class.title(), 'Pumpkin Cheesecake Roll' ) def test_total_time(self): self.assertEqual( self.harvester_class.total_time(), 60 ) def test_yields(self): self.assertEqual( self.harvester_class.yields(), '8 serving(s)' ) def test_image(self): self.assertEqual( self.harvester_class.image(), 'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/delish-190814-pumpkin-roll-0029-portrait-pf-1567187757.jpg?crop=1.00xw:0.667xh;0,0.0545xh&resize=768:*' ) def test_ingredients(self): self.assertEqual( self.harvester_class.ingredients(), [ 'Cooking spray', '1 c. granulated sugar', '3/4 c. all-purpose flour', '1/2 tsp. kosher salt', '1 tsp. baking soda', '1/2 tsp. pumpkin spice', '3 large eggs', '2/3 c. pumpkin puree', 'Powdered sugar, for rolling', '12 oz. cream cheese, softened', '1 tbsp. melted butter', '1 tsp. pure vanilla extract', '1 1/4 c. powdered sugar', '1/2 tsp. kosher salt' ] ) def test_instructions(self): self.assertEqual( self.harvester_class.instructions(), 'Preheat oven to 350°. Line a 15” x 10” jelly roll pan with parchment and grease with cooking spray. In a large bowl, combine sugar, flour, salt, baking soda, pumpkin spice, eggs, and pumpkin puree until just combined. Spread into prepared pan and bake until a toothpick inserted in center of cake comes out clean, 15 minutes.\nMeanwhile, lay out a large kitchen towel on your counter (try to use one with little to no texture) and dust with powdered sugar. When cake is done baking, flip onto kitchen towel and gently peel off parchment paper.\nStarting at a short end, gently but tightly roll cake into a log. Let cool completely.\nMeanwhile, make filling: In a large bowl, combine cream cheese, melted butter, vanilla, powdered sugar, and salt. Using a hand mixer, whip until smooth.\nWhen cake is cooled, gently unroll (it’s ok if it remains slightly curled) and spread with cream cheese filling. Roll back up and dust with more powdered sugar. Slice and serve.' )
import React from 'react'; import { Section, Container } from '@components/global'; import FaqItem from '@common/FaqItem'; import ExternalLink from '@common/ExternalLink'; const FAQS = [ { title: 'what is COVID-19 and what are the symptoms to look out for?', content: () => ( <> Coronavirus disease (COVID-19) is an infectious disease caused by a new virus. According to the Ministry of Health, the symptoms of COVID-19 infection are similar to that of regular pneumonia. Typical symptoms include fever, cough and shortness of breath. </> ), }, { title: 'what is the latest travel advice?', content: () => ( <> From 18 March 2020 0000 hours to 14 April 2020, 2359 hours, all Malaysians are prohibited from leaving the country. Those who return from overseas will have to go through health checks and go on a 14-day self-quarantine. Foreign visitors, including tourists, will also not be allowed to enter Malaysia during this period. This is subjected to extension. </> ), }, { title: 'how is JobSearch managing technology?', content: () => ( <> We continue to assess and test our technology infrastructure, and are confident that we will maintain service levels as they are. Our senior leadership team will closely monitor the situation in all client accounts. This ensures that our teams remain agile and can be a significant resource in providing guidance on facilitating work from home arrangements, video interviewing services, virtual recruiting platforms, etc. to keep your business moving ahead during this disruption. </> ), }, ]; const Faq = () => ( <Section id="faq" accent> <Container> <h1 style={{ marginBottom: '3rem' }}>Frequently Asked Questions</h1> <div> {FAQS.map(({ title, content }) => ( <span key={title}> <FaqItem title={title}> {content()} </FaqItem> </span> ))} </div> </Container> </Section> ); export default Faq;
import gulp from 'gulp'; import runSequence from 'run-sequence'; import httpProxy from 'http-proxy-middleware'; import browserSync from 'browser-sync'; import {dirs, files, proxy} from '../gulpfile-config'; import {prepareAssetsSass} from './prepare'; import {test, jslint, testUnit} from './test'; const browserSyncServer = browserSync.create(); export const dev = 'dev'; export const watch = 'watch'; export const serve = 'serve'; gulp.task(dev, callback => runSequence( test, watch, serve, callback) ); gulp.task(watch, () => { gulp.watch(files.js, [jslint, testUnit]); gulp.watch(files.sass, [prepareAssetsSass]); }); gulp.task(serve, callback => { let options = { port: 8000, ui: { port: 8001 }, server: { baseDir: dirs.src }, files: [ files.html, files.css, files.js ] }; if (proxy.context !== '') { let middleware = httpProxy(proxy.context, proxy.options); options.server.middleware = [middleware]; } browserSyncServer.init( options, callback); });
// Copyright 2021 The casbin Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import React from "react"; import {Button, Card, Col, Input, Row, Select, Switch} from 'antd'; import * as UserBackend from "./backend/UserBackend"; import * as OrganizationBackend from "./backend/OrganizationBackend"; import * as Setting from "./Setting"; import {LinkOutlined} from "@ant-design/icons"; import i18next from "i18next"; import CropperDiv from "./CropperDiv.js"; import * as ApplicationBackend from "./backend/ApplicationBackend"; import PasswordModal from "./PasswordModal"; import ResetModal from "./ResetModal"; import AffiliationSelect from "./common/AffiliationSelect"; import OAuthWidget from "./common/OAuthWidget"; import {Controlled as CodeMirror} from 'react-codemirror2' import "codemirror/lib/codemirror.css" require('codemirror/theme/material-darker.css'); require("codemirror/mode/javascript/javascript"); const { Option } = Select; class UserEditPage extends React.Component { constructor(props) { super(props); this.state = { classes: props, organizationName: props.organizationName !== undefined ? props.organizationName : props.match.params.organizationName, userName: props.userName !== undefined ? props.userName : props.match.params.userName, user: null, application: null, organizations: [], }; } UNSAFE_componentWillMount() { this.getUser(); this.getOrganizations(); this.getDefaultApplication(); } getUser() { UserBackend.getUser(this.state.organizationName, this.state.userName) .then((user) => { this.setState({ user: user, }); }); } getOrganizations() { OrganizationBackend.getOrganizations("admin") .then((res) => { this.setState({ organizations: (res.msg === undefined) ? res : [], }); }); } getDefaultApplication() { ApplicationBackend.getDefaultApplication("admin") .then((application) => { this.setState({ application: application, }); }); } parseUserField(key, value) { // if ([].includes(key)) { // value = Setting.myParseInt(value); // } return value; } updateUserField(key, value) { value = this.parseUserField(key, value); let user = this.state.user; user[key] = value; this.setState({ user: user, }); } unlinked() { this.getUser(); } isSelfOrAdmin() { return (this.state.user.id === this.props.account?.id) || Setting.isAdminUser(this.props.account); } renderUser() { return ( <Card size="small" title={ <div> {i18next.t("user:Edit User")}&nbsp;&nbsp;&nbsp;&nbsp; <Button type="primary" onClick={this.submitUserEdit.bind(this)}>{i18next.t("general:Save")}</Button> </div> } style={{marginLeft: '5px'}} type="inner"> <Row style={{marginTop: '10px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Organization")}: </Col> <Col span={22} > <Select virtual={false} style={{width: '100%'}} disabled={!Setting.isAdminUser(this.props.account)} value={this.state.user.owner} onChange={(value => {this.updateUserField('owner', value);})}> { this.state.organizations.map((organization, index) => <Option key={index} value={organization.name}>{organization.name}</Option>) } </Select> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> ID: </Col> <Col span={22} > <Input value={this.state.user.id} disabled={true} /> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Name")}: </Col> <Col span={22} > <Input value={this.state.user.name} disabled={true} onChange={e => { this.updateUserField('name', e.target.value); }} /> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Display name")}: </Col> <Col span={22} > <Input value={this.state.user.displayName} onChange={e => { this.updateUserField('displayName', e.target.value); }} /> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Avatar")}: </Col> <Col span={22} > <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:URL")}: </Col> <Col span={22} > <Input prefix={<LinkOutlined/>} value={this.state.user.avatar} onChange={e => { this.updateUserField('avatar', e.target.value); }} /> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Preview")}: </Col> <Col span={22} > <a target="_blank" rel="noreferrer" href={this.state.user.avatar}> <img src={this.state.user.avatar} alt={this.state.user.avatar} height={90} style={{marginBottom: '20px'}}/> </a> </Col> </Row> <Row style={{marginTop: '20px'}}> <CropperDiv buttonText={`${i18next.t("user:Upload a photo")}...`} title={i18next.t("user:Upload a photo")} targetFunction={UserBackend.uploadAvatar} /> </Row> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:User type")}: </Col> <Col span={22} > <Select virtual={false} style={{width: '100%'}} value={this.state.user.type} onChange={(value => {this.updateUserField('type', value);})}> { ['normal-user'] .map((item, index) => <Option key={index} value={item}>{item}</Option>) } </Select> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Password")}: </Col> <Col span={22} > <PasswordModal user={this.state.user} /> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Email")}: </Col> <Col style={{paddingRight: '20px'}} span={11} > <Input value={this.state.user.email} disabled /> </Col> <Col span={11} > { this.state.user.id === this.props.account?.id ? (<ResetModal org={this.state.application?.organizationObj} buttonText={i18next.t("user:Reset Email...")} destType={"email"} coolDownTime={60}/>) : null} </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("general:Phone")}: </Col> <Col style={{paddingRight: '20px'}} span={11} > <Input value={this.state.user.phone} addonBefore={`+${this.state.application?.organizationObj.phonePrefix}`} disabled /> </Col> <Col span={11} > { this.state.user.id === this.props.account?.id ? (<ResetModal org={this.state.application?.organizationObj} buttonText={i18next.t("user:Reset Phone...")} destType={"phone"} coolDownTime={60}/>) : null} </Col> </Row> { (this.state.application === null || this.state.user === null) ? null : ( <AffiliationSelect labelSpan={2} application={this.state.application} user={this.state.user} onUpdateUserField={(key, value) => { return this.updateUserField(key, value)}} /> ) } <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("user:Tag")}: </Col> <Col span={22} > <Input value={this.state.user.tag} onChange={e => { this.updateUserField('tag', e.target.value); }} /> </Col> </Row> { !this.isSelfOrAdmin() ? null : ( <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("user:Third-party logins")}: </Col> <Col span={22} > <div style={{marginBottom: 20}}> { (this.state.application === null || this.state.user === null) ? null : ( this.state.application?.providers.filter(providerItem => Setting.isProviderVisible(providerItem)).map((providerItem, index) => <OAuthWidget key={providerItem.name} labelSpan={3} user={this.state.user} application={this.state.application} providerItem={providerItem} onUnlinked={() => { return this.unlinked()}} />) ) } </div> </Col> </Row> ) } { !Setting.isAdminUser(this.props.account) ? null : ( <React.Fragment> {/*<Row style={{marginTop: '20px'}} >*/} {/* <Col style={{marginTop: '5px'}} span={2}>*/} {/* {i18next.t("user:Properties")}:*/} {/* </Col>*/} {/* <Col span={22} >*/} {/* <CodeMirror*/} {/* value={JSON.stringify(this.state.user.properties, null, 4)}*/} {/* options={{mode: 'javascript', theme: "material-darker"}}*/} {/* />*/} {/* </Col>*/} {/*</Row>*/} <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("user:Is admin")}: </Col> <Col span={1} > <Switch checked={this.state.user.isAdmin} onChange={checked => { this.updateUserField('isAdmin', checked); }} /> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("user:Is global admin")}: </Col> <Col span={1} > <Switch checked={this.state.user.isGlobalAdmin} onChange={checked => { this.updateUserField('isGlobalAdmin', checked); }} /> </Col> </Row> <Row style={{marginTop: '20px'}} > <Col style={{marginTop: '5px'}} span={2}> {i18next.t("user:Is forbidden")}: </Col> <Col span={1} > <Switch checked={this.state.user.isForbidden} onChange={checked => { this.updateUserField('isForbidden', checked); }} /> </Col> </Row> </React.Fragment> ) } </Card> ) } submitUserEdit() { let user = Setting.deepCopy(this.state.user); UserBackend.updateUser(this.state.organizationName, this.state.userName, user) .then((res) => { if (res.msg === "") { Setting.showMessage("success", `Successfully saved`); this.setState({ organizationName: this.state.user.owner, userName: this.state.user.name, }); if (this.props.history !== undefined) { this.props.history.push(`/users/${this.state.user.owner}/${this.state.user.name}`); } } else { Setting.showMessage("error", res.msg); this.updateUserField('owner', this.state.organizationName); this.updateUserField('name', this.state.userName); } }) .catch(error => { Setting.showMessage("error", `Failed to connect to server: ${error}`); }); } render() { return ( <div> <Row style={{width: "100%"}}> <Col span={1}> </Col> <Col span={22}> { this.state.user !== null ? this.renderUser() : null } </Col> <Col span={1}> </Col> </Row> <Row style={{margin: 10}}> <Col span={2}> </Col> <Col span={18}> <Button type="primary" size="large" onClick={this.submitUserEdit.bind(this)}>{i18next.t("general:Save")}</Button> </Col> </Row> </div> ); } } export default UserEditPage;
const express = require('express'); const router = express.Router(); router.get('/', async (req, res) => { }); router.post('/', async (req, res) => { }); module.exports = router;
import datetime import functools from collections import namedtuple from base64 import urlsafe_b64encode, urlsafe_b64decode from validr import T, validator, SchemaError, Invalid, Compiler, builtin_validators from django.core.validators import URLValidator from django.core.exceptions import ValidationError from django.utils import timezone from django.utils.dateparse import parse_datetime from .helper import coerce_url from .cursor import Cursor from .detail import detail_validator from . import unionid @validator(accept=(str, object), output=(str, object)) def cursor_validator(compiler, keys=None, output_object=False, base64=False): """Cursor: k1:v1,k2:v2""" if keys: try: keys = set(keys.strip().replace(',', ' ').split()) except (TypeError, ValueError): raise SchemaError('invalid cursor keys') def validate(value): try: if not isinstance(value, Cursor): if base64: value = urlsafe_b64decode(value.encode('ascii')).decode('utf-8') value = Cursor.from_string(value, keys) else: value._check_missing_keys(keys) except (UnicodeEncodeError, UnicodeDecodeError, ValueError) as ex: raise Invalid(str(ex)) from None if output_object: return value value = str(value) if base64: value = urlsafe_b64encode(value.encode('utf-8')).decode() return value return validate @validator(accept=str, output=str) def url_validator(compiler, scheme='http https', default_schema=None, maxlen=1024, relaxed=False): """ Args: default_schema: 接受没有scheme的url并尝试修正 relaxed: accept not strict url """ if relaxed: return Compiler().compile(T.url.maxlen(maxlen).scheme(scheme)) schemes = set(scheme.replace(',', ' ').split(' ')) if default_schema and default_schema not in schemes: raise SchemaError('invalid default_schema {}'.format(default_schema)) _django_validate_url = URLValidator(schemes=schemes) def validate(value): if default_schema: value = coerce_url(value, default_schema=default_schema) try: _django_validate_url(value) except ValidationError: # TODO: access ValidationError.messages will cause error when # django/i18n not setup, maybe use validators package instead # raise Invalid(','.join(ex.messages).rstrip('.')) raise Invalid('invalid or incorrect url format') if len(value) > maxlen: raise Invalid(f'url length must <= {maxlen}') return value return validate @validator(accept=(str, object), output=(str, object)) def datetime_validator(compiler, format='%Y-%m-%dT%H:%M:%S.%fZ', output_object=False): def validate(value): try: if not isinstance(value, datetime.datetime): value = parse_datetime(value) if value is None: raise Invalid('not well formatted datetime') if not timezone.is_aware(value): value = timezone.make_aware(value, timezone=timezone.utc) # https://bugs.python.org/issue13305 if value.year < 1000: raise Invalid('not support datetime before year 1000') if value.year > 2999: raise Invalid('not support datetime after year 2999') if output_object: return value else: return value.strftime(format) except Invalid: raise except Exception as ex: raise Invalid('invalid datetime') from ex return validate FeedUnionId = namedtuple('FeedUnionId', 'user_id, feed_id') StoryUnionId = namedtuple('StoryUnionId', 'user_id, feed_id, offset') def create_unionid_validator(tuple_class): @validator(accept=(str, object), output=(str, object)) def unionid_validator(compiler, output_object=False): def validate(value): try: if isinstance(value, str): value = unionid.decode(value) if output_object: return tuple_class(*value) else: return unionid.encode(*value) except (unionid.UnionIdError, TypeError, ValueError) as ex: raise Invalid('invalid unionid, {}'.format(str(ex))) from ex return validate return unionid_validator def str_validator(compiler, schema): """ >>> from validr import T >>> f = compiler.compile(T.str.maxlen(10).truncated.strip) >>> f(" 123456789 x") '123456789' """ schema = schema.copy() truncated = schema.params.pop('truncated', False) strip = schema.params.pop('strip', False) lstrip = schema.params.pop('lstrip', False) rstrip = schema.params.pop('rstrip', False) maxlen = int(schema.params.get('maxlen', 1024 * 1024)) origin_validate = builtin_validators['str'](compiler, schema) @functools.wraps(origin_validate) def validate(value): if isinstance(value, int): value = str(value) if truncated and isinstance(value, str) and len(value) > maxlen: value = value[:maxlen] value = origin_validate(value) if value: if strip: value = value.strip() else: if lstrip: value = value.lstrip() if rstrip: value = value.rstrip() return value return validate @validator(accept=bytes, output=bytes) def bytes_validator(compiler, maxlen=None): def validate(value): if not isinstance(value, bytes): raise Invalid('invalid bytes type') if maxlen is not None: if len(value) > maxlen: raise Invalid('value must <= {}'.format(maxlen)) return value return validate VALIDATORS = { 'cursor': cursor_validator, 'url': url_validator, 'datetime': datetime_validator, 'feed_unionid': create_unionid_validator(FeedUnionId), 'story_unionid': create_unionid_validator(StoryUnionId), 'detail': detail_validator, 'str': str_validator, 'bytes': bytes_validator, } compiler = Compiler(validators=VALIDATORS) # warming up django url validator compiler.compile(T.url)('https://example.com/')
(function (app) { 'use strict'; app.registerModule('logicjumps', ['core', 'ui.router', 'core.routes']); }(ApplicationConfiguration));
import styled from 'styled-components'; import { containerMixin, flexCenterMixin } from '../../../global-styles/mixins'; export const Container = styled.div` ${containerMixin}; ${flexCenterMixin}; flex-direction: column; `; export const Form = styled.form` ${flexCenterMixin}; flex-direction: column; `;
import GameLogic from '../utils/GameLogic'; import ScoreLogic from '../utils/ScoreLogic'; import { GameStatus } from '../utils/enums'; import routes from '../utils/routes'; import { getTokenAndBestScore, sendBestScore } from '../utils/apiCalls'; import { setBestScore, setCurrentScore, setPlayerSelection, setAccessToken, setIsAuthenticated, setOpponentSelection, setRoundResult, setUserName, setErrorMessage } from './actions'; export const processRound = playerSelection => { return (dispatch, getState) => { dispatch(setPlayerSelection(playerSelection)); dispatch(setOpponentSelection(GameLogic.drawOpponentSelection())); dispatch( setRoundResult( GameLogic.calculateRoundResult( getState().round.playerSelection, getState().round.opponentSelection ) ) ); dispatch( setCurrentScore( ScoreLogic.calculateCurrentScore( getState().score.current, getState().round.result ) ) ); if ( ScoreLogic.isNewBestScore(getState().score.current, getState().score.best) ) { dispatch(setBestScore(getState().score.current)); if (getState().user.isAuthenticated) { sendBestScore(getState().score.best, getState().user.accessToken).then( null, () => dispatch(setErrorMessage('Connection to server failed')) ); } } }; }; export const resetGame = () => { return dispatch => { dispatch(setPlayerSelection(null)); dispatch(setOpponentSelection(null)); dispatch(setRoundResult(GameStatus.Init)); dispatch(setCurrentScore(0)); }; }; export const responseGoogleSuccess = (response, history) => { return dispatch => { const userName = response.profileObj.givenName; getTokenAndBestScore(response.accessToken) .then(res => { if (res.token) { history.push(routes.home); dispatch(setIsAuthenticated(true)); dispatch(setAccessToken(res.token)); dispatch(setBestScore(res.bestScore)); userName && dispatch(setUserName(userName)); } }) .catch(() => dispatch(setErrorMessage('Connection to server failed'))); }; }; export const responseGoogleFailure = response => { return dispatch => { dispatch(setErrorMessage(response.error)); }; }; export const logout = history => { return dispatch => { history.push(routes.home); dispatch(setIsAuthenticated(false)); dispatch(setAccessToken('')); dispatch(setBestScore(0)); }; };
# Copyright 2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import pytest import logging from src.libs.verification_libs \ import validate_response_code from src.libs.pre_processing_libs \ import ResultStatus from src.libs.avalon_test_base import AvalonBase from conftest import env logger = logging.getLogger(__name__) @pytest.mark.usefixtures("setup_teardown") class TestClass(): test_obj = AvalonBase() pytestmark = pytest.mark.setup_teardown_data( test_obj, "WorkerSetStatus") @pytest.mark.listener @pytest.mark.sdk @pytest.mark.proxy def test_worker_set_status_success(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) @pytest.mark.listener def test_worker_set_status_unknown_parameter(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) self.test_obj.teardown(env['worker_setstatus_input_file']) @pytest.mark.listener def test_worker_set_status_invalid_parameter(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) self.test_obj.teardown(env['worker_setstatus_input_file']) @pytest.mark.listener def test_worker_set_status_params_status_0(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) self.test_obj.teardown(env['worker_setstatus_input_file']) @pytest.mark.listener @pytest.mark.sdk @pytest.mark.proxy def test_worker_set_status_params_status_2(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) self.test_obj.teardown(env['worker_setstatus_input_file']) @pytest.mark.listener @pytest.mark.sdk @pytest.mark.proxy def test_worker_set_status_params_status_3(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) self.test_obj.teardown(env['worker_setstatus_input_file']) @pytest.mark.listener @pytest.mark.sdk @pytest.mark.proxy def test_worker_set_status_params_status_4(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) self.test_obj.teardown(env['worker_setstatus_input_file']) @pytest.mark.listener def test_worker_set_status_params_status_5(self): result_response = self.test_obj.run_test( env['worker_setstatus_input_file']) assert ( validate_response_code( result_response, env['expected_error_code']) is ResultStatus.SUCCESS.value) self.test_obj.teardown(env['worker_setstatus_input_file'])
function deleteItem(itemId) { $.get("/admin/equipment/delete", { id: itemId }); $("#row-" + itemId).remove(); $("#hr-" + itemId).remove(); }
/** * Extend the basic ItemSheet with some very simple modifications * @extends {ItemSheet} */ export class CairnItemSheet extends ItemSheet { /** @override */ static get defaultOptions () { return mergeObject(super.defaultOptions, { classes: ["cairn", "sheet", "item"], width: 500, height: 440 }); } /** @override */ get template () { const path = "systems/cairn/templates/item"; return `${path}/item-sheet.html`; } /* -------------------------------------------- */ /** @override */ getData () { return super.getData(); } /* -------------------------------------------- */ /** @override */ setPosition (options = {}) { const position = super.setPosition(options); const sheetBody = this.element.find(".sheet-body"); const bodyHeight = position.height - 192; sheetBody.css("height", bodyHeight); return position; } /* -------------------------------------------- */ /** @override */ activateListeners (html) { super.activateListeners(html); // Everything below here is only needed if the sheet is editable if (!this.options.editable) return; // Roll handlers, click handlers, etc. would go here. } }
var util = require("util"); var i = 4; // while i < 10 do util.print(i); i++; // end util.print(i);
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime"); var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { d: "M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm8.29-4.71L19 17v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.9 0 1.34-1.08.71-1.71zM13 16h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v2z" }), 'NotificationImportantRounded'); exports.default = _default;
/* Tabulator v4.7.2 (c) Oliver Folkerd */ var Print=function(t){this.table=t,this.element=!1,this.manualBlock=!1};Print.prototype.initialize=function(){window.addEventListener("beforeprint",this.replaceTable.bind(this)),window.addEventListener("afterprint",this.cleanup.bind(this))},Print.prototype.replaceTable=function(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.genereateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))},Print.prototype.cleanup=function(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")},Print.prototype.printFullscreen=function(t,e,i){var n,l,o=window.scrollX,a=window.scrollY,s=document.createElement("div"),r=document.createElement("div"),p=this.table.modules.export.genereateTable(void 0!==i?i:this.table.options.printConfig,void 0!==e?e:this.table.options.printStyled,t,"print");this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(s.classList.add("tabulator-print-header"),n="function"==typeof this.table.options.printHeader?this.table.options.printHeader.call(this.table):this.table.options.printHeader,"string"==typeof n?s.innerHTML=n:s.appendChild(n),this.element.appendChild(s)),this.element.appendChild(p),this.table.options.printFooter&&(r.classList.add("tabulator-print-footer"),l="function"==typeof this.table.options.printFooter?this.table.options.printFooter.call(this.table):this.table.options.printFooter,"string"==typeof l?r.innerHTML=l:r.appendChild(l),this.element.appendChild(r)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,p),window.print(),this.cleanup(),window.scrollTo(o,a),this.manualBlock=!1},Tabulator.prototype.registerModule("print",Print);
'use strict' const jwt = require('jwt-simple') const moment = require('moment') const config = require('../config') function createToken (user) { const payload = { sub: user._id, iat: moment().unix(), exp: moment().add(14, 'days').unix() } return jwt.encode(payload, config.SECRET_TOKEN) } function decodeToken (token) { const decoded = new Promise((resolve, reject) => { try { const payload = jwt.decode(token, config.SECRET_TOKEN) if (payload.exp < moment().unix()) { reject({ status: 401, message: 'token has expired' }) } resolve(payload.sub) } catch (err) { reject({ status: 500, message: 'invalid token' }) } }) return decoded } module.exports = { createToken, decodeToken }
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/reto-redbus/",t(t.s=55)}([function(e,t,n){"use strict";e.exports=n(62)},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){e.exports=n(89)()},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;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(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(l[c]=n[c]);if(o){s=o(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(63)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(83),i=n(84),a=n(85),s=n(31);n(30);n.d(t,"createStore",function(){return r.b}),n.d(t,"combineReducers",function(){return o.a}),n.d(t,"bindActionCreators",function(){return i.a}),n.d(t,"applyMiddleware",function(){return a.a}),n.d(t,"compose",function(){return s.a})},function(e,t,n){"use strict";t.__esModule=!0;var r=(t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e},t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)});t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=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}},t.createPath=function(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(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"f",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return u});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},o=function(e){return"/"===e.charAt(0)?e.substr(1):e},i=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},a=function(e,t){return i(e,t)?e.substr(t.length):e},s=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},l=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}},u=function(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(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.connect=t.Provider=void 0;var o=n(121),i=r(o),a=n(122),s=r(a);t.Provider=i.default,t.connect=s.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.slidesOnRight=t.slidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=void 0;var o=n(0),i=r(o),a=n(5),s=r(a),l=t.getOnDemandLazySlides=function(e){for(var t=[],n=u(e),r=c(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},u=(t.getRequiredLazySlides=function(e){for(var t=[],n=u(e),r=c(e),o=n;o<r;o++)t.push(o);return t},t.lazyStartIndex=function(e){return e.currentSlide-p(e)}),c=t.lazyEndIndex=function(e){return e.currentSlide+f(e)},p=t.slidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},f=t.slidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},d=t.getWidth=function(e){return e&&e.offsetWidth||0},h=t.getHeight=function(e){return e&&e.offsetHeight||0};t.getSwipeDirection=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),o=Math.round(180*r/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1?t=!1:(e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1)),t},t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t=i.default.Children.count(e.children),n=Math.ceil(d(s.default.findDOMNode(e.listRef))),r=Math.ceil(d(s.default.findDOMNode(e.trackRef))),o=void 0;if(e.vertical)o=n;else{var a=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(a*=n/100),o=Math.ceil((n-a)/e.slidesToShow)}var u=h(s.default.findDOMNode(e.listRef).querySelector('[data-index="0"]')),c=u*e.slidesToShow,p=e.currentSlide||e.initialSlide;e.rtl&&!e.currentSlide&&(p=t-1-e.initialSlide);var f=e.lazyLoadedList||[],y=l({currentSlide:p,lazyLoadedList:f},e);return f.concat(y),{slideCount:t,slideWidth:o,listWidth:n,trackWidth:r,currentSlide:p,slideHeight:u,listHeight:c,lazyLoadedList:f}}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var r=n(33),o=n(34),i=n(8),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(e,t,n,o){var s=void 0;"string"===typeof e?(s=Object(i.d)(e),s.state=t):(s=a({},e),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(s.key=n),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.default)(s.pathname,o.pathname)):s.pathname=o.pathname:s.pathname||(s.pathname="/"),s},l=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(o.default)(e.state,t.state)}},function(e,t){},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(33),a=r(i),s=n(34),l=r(s),u=n(7);t.createLocation=function(e,t,n,r){var i=void 0;"string"===typeof e?(i=(0,u.parsePath)(e),i.state=t):(i=o({},e),void 0===i.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(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,l.default)(e.state,t.state)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(){var e=null,t=function(t){return(0,o.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.default=i},function(e,t,n){"use strict";var r=n(20);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),l=n(3),u=n.n(l),c=n(0),p=n.n(c),f=n(2),d=n.n(f),h=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},y=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=i=o(this,e.call.apply(e,[this].concat(l))),i.state={match:i.computeMatch(i.props.history.location.pathname)},a=n,o(i,a)}return i(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;u()(null==n||1===p.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){s()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);y.propTypes={history:d.a.object.isRequired,children:d.a.node},y.contextTypes={router:d.a.object},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,n){"use strict";var r=n(98),o=n.n(r),i={},a=0,s=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var s=[],l=o()(e,s,t),u={re:l,keys:s};return a<1e4&&(r[e]=u,a++),u},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"===typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,l=n.strict,u=void 0!==l&&l,c=n.sensitive,p=void 0!==c&&c,f=s(o,{end:a,strict:u,sensitive:p}),d=f.re,h=f.keys,y=d.exec(e);if(!y)return null;var m=y[0],g=y.slice(1),v=e===m;return a&&!v?null:{path:o,url:"/"===o&&""===m?"/":m,isExact:v,params:h.reduce(function(e,t,n){return e[t.name]=g[n],e},{})}};t.a=l},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=function(){var e=null,t=function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=void 0;var o=n(5),i=r(o),a=n(4),s=r(a),l=n(24),u=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing",e)},c=t.getTrackCSS=function(e){u(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t,n,r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=(0,l.getTotalSlides)(e)*e.slideWidth;var o={opacity:1,WebkitTransform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",transform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",transition:"",WebkitTransition:"",msTransform:e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)"};return e.fade&&(o={opacity:1}),t&&(0,s.default)(o,{width:t}),n&&(0,s.default)(o,{height:n}),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o};t.getTrackAnimateCSS=function(e){u(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=c(e);return t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase,t},t.getTrackLeft=function(e){if(e.unslick)return 0;u(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,a=e.infinite,s=e.centerMode,c=e.slideCount,p=e.slidesToShow,f=e.slidesToScroll,d=e.slideWidth,h=e.listWidth,y=e.variableWidth,m=e.slideHeight,g=e.fade,v=e.vertical,b=0,w=0;if(g||1===e.slideCount)return 0;var E=0;if(a?(E=-(0,l.getPreClones)(e),c%f!==0&&r+f>c&&(E=-(r>c?p-(r-c):c%f)),s&&(E+=parseInt(p/2))):(c%f!==0&&r+f>c&&(E=p-c%f),s&&(E=parseInt(p/2))),b=E*d,w=E*m,t=v?r*m*-1+w:r*d*-1+b,!0===y){var C;i.default.findDOMNode(o).children[c-1];if(C=r+(0,l.getPreClones)(e),n=i.default.findDOMNode(o).childNodes[C],t=n?-1*n.offsetLeft:0,!0===s){C=a?r+(0,l.getPreClones)(e):r,n=i.default.findDOMNode(o).children[C],t=0;for(var S=0;S<C;S++)t-=i.default.findDOMNode(o).children[S].offsetWidth;t-=parseInt(e.centerPadding),t+=(h-n.offsetWidth)/2}}return t}},function(e,t,n){"use strict";function r(e){var t=e.currentSlide,n=e.targetSlide,r=e.slidesToShow,a=e.centerMode,s=e.rtl;return n>t?n>t+o(r,a,s)?"left":"right":n<t-i(r,a,s)?"right":"left"}function o(e,t,n){if(t){var r=(e-1)/2+1;return n&&e%2===0&&(r+=1),r}return n?0:e-1}function i(e,t,n){if(t){var r=(e-1)/2+1;return n||e%2!==0||(r+=1),r}return n?e-1:0}t.__esModule=!0,t.siblingDirection=r,t.slidesOnRight=o,t.slidesOnLeft=i;var a=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},s=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount};t.getTotalSlides=function(e){return 1===e.slideCount?1:a(e)+e.slideCount+s(e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0),a=r(i),s=n(5),l=r(s),u=n(23),c=n(4),p=r(c),f=n(10),d={update:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=l.default.findDOMNode(this.list),o=a.default.Children.count(e.children),i=(0,f.getWidth)(r),s=(0,f.getWidth)(l.default.findDOMNode(this.track));if(e.vertical)t=Math.ceil((0,f.getWidth)(r));else{var c=e.centerMode&&2*parseInt(e.centerPadding);"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil(((0,f.getWidth)(r)-c)/e.slidesToShow)}var d=(0,f.getHeight)(r.querySelector('[data-index="0"]')),h=d*e.slidesToShow;e.autoplay?this.autoPlay(e.autoplay):this.pause();var y=(0,f.getOnDemandLazySlides)({},this.props,this.state);y.length>0&&this.props.onLazyLoad&&this.props.onLazyLoad(y);var m=this.state.lazyLoadedList;this.setState({slideCount:o,slideWidth:t,listWidth:i,trackWidth:s,slideHeight:d,listHeight:h,lazyLoadedList:m.concat(y)},function(){t||n<2&&this.update(this.props,n+1);var r=(0,u.getTrackLeft)((0,p.default)({slideIndex:this.state.currentSlide,trackRef:this.track},e,this.state)),o=(0,u.getTrackCSS)((0,p.default)({left:r},e,this.state));this.setState({trackStyle:o})})},adaptHeight:function(){if(this.props.adaptiveHeight){var e='[data-index="'+this.state.currentSlide+'"]';if(this.list){var t=l.default.findDOMNode(this.list),n=t.querySelector(e)||{};t.style.height=(n.offsetHeight||0)+"px"}}},slideHandler:function(e){var t,n,r,o,i,a=this;if(!this.props.waitForAnimate||!this.state.animating){if(this.props.fade){if(n=this.state.currentSlide,!1===this.props.infinite&&(e<0||e>=this.state.slideCount))return;return t=e<0?e+this.state.slideCount:e>=this.state.slideCount?e-this.state.slideCount:e,this.props.lazyLoad&&this.state.lazyLoadedList.indexOf(t)<0&&(this.setState(function(e,n){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),this.props.onLazyLoad&&this.props.onLazyLoad([t])),i=function(){a.setState({animating:!1}),a.props.afterChange&&a.props.afterChange(t),delete a.animationEndCallback},this.setState({animating:!0,currentSlide:t},function(){a.props.asNavFor&&a.props.asNavFor.innerSlider.state.currentSlide!==a.state.currentSlide&&a.props.asNavFor.innerSlider.slideHandler(e),a.animationEndCallback=setTimeout(i,a.props.speed)}),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,t),void this.autoPlay()}if(t=e,t<0?n=!1===this.props.infinite?0:this.state.slideCount%this.props.slidesToScroll!==0?this.state.slideCount-this.state.slideCount%this.props.slidesToScroll:this.state.slideCount+t:this.props.centerMode&&t>=this.state.slideCount?!1===this.props.infinite?(t=this.state.slideCount-1,n=this.state.slideCount-1):(t=this.state.slideCount,n=0):n=t>=this.state.slideCount?!1===this.props.infinite?this.state.slideCount-this.props.slidesToShow:this.state.slideCount%this.props.slidesToScroll!==0?0:t-this.state.slideCount:this.state.currentSlide+this.slidesToShow<this.state.slideCount&&t+this.props.slidesToShow>=this.state.slideCount?!1===this.props.infinite?this.state.slideCount-this.props.slidesToShow:(this.state.slideCount-t)%this.props.slidesToScroll!==0?this.state.slideCount-this.props.slidesToShow:t:t,r=(0,u.getTrackLeft)((0,p.default)({slideIndex:t,trackRef:this.track},this.props,this.state)),o=(0,u.getTrackLeft)((0,p.default)({slideIndex:n,trackRef:this.track},this.props,this.state)),!1===this.props.infinite&&(r===o&&(t=n),r=o),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,n),this.props.lazyLoad){var s=(0,f.getOnDemandLazySlides)((0,p.default)({},this.props,this.state,{currentSlide:t}));s.length>0&&(this.setState(function(e,t){return{lazyLoadedList:e.lazyLoadedList.concat(s)}}),this.props.onLazyLoad&&this.props.onLazyLoad(s))}if(!1===this.props.useCSS)this.setState({currentSlide:n,trackStyle:(0,u.getTrackCSS)((0,p.default)({left:o},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(n)});else{var l={animating:!1,currentSlide:n,trackStyle:(0,u.getTrackCSS)((0,p.default)({left:o},this.props,this.state)),swipeLeft:null};i=function(){a.setState(l,function(){a.props.afterChange&&a.props.afterChange(n),delete a.animationEndCallback})},this.setState({animating:!0,currentSlide:n,trackStyle:(0,u.getTrackAnimateCSS)((0,p.default)({left:r},this.props,this.state))},function(){a.props.asNavFor&&a.props.asNavFor.innerSlider.state.currentSlide!==a.state.currentSlide&&a.props.asNavFor.innerSlider.slideHandler(e),a.animationEndCallback=setTimeout(i,a.props.speed)})}this.autoPlay()}},play:function(){var e;if(this.props.rtl)e=this.state.currentSlide-this.props.slidesToScroll;else{if(!(0,f.canGoNext)(o({},this.props,this.state)))return!1;e=this.state.currentSlide+this.props.slidesToScroll}this.slideHandler(e)},autoPlay:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.autoplayTimer&&clearTimeout(this.autoplayTimer),(e||this.props.autoplay)&&(this.autoplayTimer=setTimeout(this.play,this.props.autoplaySpeed))},pause:function(){this.autoplayTimer&&(clearTimeout(this.autoplayTimer),this.autoplayTimer=null)}};t.default=d},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return g=e,v}}function i(e,t){try{return e(t)}catch(e){return g=e,v}}function a(e,t,n){try{e(t,n)}catch(e){return g=e,v}}function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&y(e,this)}function l(e,t,n){return new e.constructor(function(o,i){var a=new s(r);a.then(o,i),u(e,new h(t,n,a))})}function u(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);c(e,t)}function c(e,t){m(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?p(t.promise,e._18):f(t.promise,e._18));var r=i(n,e._18);r===v?f(t.promise,g):p(t.promise,r)})}function p(e,t){if(t===e)return f(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=o(t);if(n===v)return f(e,g);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void d(e);if("function"===typeof n)return void y(n.bind(t),e)}e._83=1,e._18=t,d(e)}function f(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),d(e)}function d(e){if(1===e._75&&(u(e,e._38),e._38=null),2===e._75){for(var t=0;t<e._38.length;t++)u(e,e._38[t]);e._38=null}}function h(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function y(e,t){var n=!1,r=a(e,function(e){n||(n=!0,p(t,e))},function(e){n||(n=!0,f(t,e))});n||r!==v||(n=!0,f(t,g))}var m=n(58),g=null,v={};e.exports=s,s._47=null,s._71=null,s._44=r,s.prototype.then=function(e,t){if(this.constructor!==s)return l(this,e,t);var n=new s(r);return u(this,new h(e,t,n)),n}},function(e,t,n){"use strict";function r(e,t,n){function s(){g===m&&(g=m.slice())}function l(){return y}function u(e){if("function"!==typeof e)throw new Error("Expected listener to be a function.");var t=!0;return s(),g.push(e),function(){if(t){t=!1,s();var n=g.indexOf(e);g.splice(n,1)}}}function c(e){if(!Object(o.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,y=h(y,e)}finally{v=!1}for(var t=m=g,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!==typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,c({type:a.INIT})}function f(){var e,t=u;return e={subscribe:function(e){function n(){e.next&&e.next(l())}if("object"!==typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[i.a]=function(){return this},e}var d;if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(e,t)}if("function"!==typeof e)throw new Error("Expected the reducer to be a function.");var h=e,y=t,m=[],g=m,v=!1;return c({type:a.INIT}),d={dispatch:c,subscribe:u,getState:l,replaceReducer:p},d[i.a]=f,d}n.d(t,"a",function(){return a}),t.b=r;var o=n(28),i=n(80),a={INIT:"@@redux/INIT"}},function(e,t,n){"use strict";function r(e){if(!Object(a.a)(e)||Object(o.a)(e)!=s)return!1;var t=Object(i.a)(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var o=n(72),i=n(77),a=n(79),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,n){"use strict";var r=n(73),o=r.a.Symbol;t.a=o},function(e,t,n){"use strict"},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}t.a=r},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,l){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,l],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};e.exports=r},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),l=a||s;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var u=void 0;if(i.length){var c=i[i.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=i.length;f>=0;f--){var d=i[f];"."===d?o(i,f):".."===d?(o(i,f),p++):p&&(o(i,f),p--)}if(!l)for(;p--;p)i.unshift("..");!l||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});var n="undefined"===typeof e?"undefined":o(e);if(n!==("undefined"===typeof t?"undefined":o(t)))return!1;if("object"===n){var i=e.valueOf(),a=t.valueOf();if(i!==e||a!==t)return r(i,a);var s=Object.keys(e),l=Object.keys(t);return s.length===l.length&&s.every(function(n){return r(e[n],t[n])})}return!1}Object.defineProperty(t,"__esModule",{value:!0});var o="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};t.default=r},function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"===typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=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)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(0),l=n.n(s),u=n(2),c=n.n(u),p=n(3),f=n.n(p),d=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},h=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},y=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!h(e)){e.preventDefault();var t=r.context.router.history,n=r.props,o=n.replace,i=n.to;o?t.replace(i):t.push(i)}},a=n,i(r,a)}return a(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,o=r(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>");var i=this.context.router.history.createHref("string"===typeof t?{pathname:t}:t);return l.a.createElement("a",d({},o,{onClick:this.handleClick,href:i,ref:n}))},t}(l.a.Component);y.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},y.defaultProps={replace:!1},y.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired},t.a=y},function(e,t,n){"use strict";var r=n(38);t.a=r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),l=n(3),u=n.n(l),c=n(0),p=n.n(c),f=n(2),d=n.n(f),h=n(21),y=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},m=function(e){return 0===p.a.Children.count(e)},g=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=i=o(this,e.call.apply(e,[this].concat(l))),i.state={match:i.computeMatch(i.props,i.context.router)},a=n,o(i,a)}return i(t,e),t.prototype.getChildContext=function(){return{router:y({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,o=e.path,i=e.strict,a=e.exact,s=e.sensitive;if(n)return n;u()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,c=(r||l.location).pathname;return o?Object(h.a)(c,{path:o,strict:i,exact:a,sensitive:s}):l.match},t.prototype.componentWillMount=function(){s()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),s()(!(this.props.component&&this.props.children&&!m(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),s()(!(this.props.render&&this.props.children&&!m(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){s()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),s()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,s=i.route,l=i.staticContext,u=this.props.location||s.location,c={match:e,location:u,history:a,staticContext:l};return r?e?p.a.createElement(r,c):null:o?e?o(c):null:n?"function"===typeof n?n(c):m(n)?null:p.a.Children.only(n):null},t}(p.a.Component);g.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},g.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},g.childContextTypes={router:d.a.object.isRequired},t.a=g},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"g",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"d",function(){return c});var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},i=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},a=function(e,t){return t(window.confirm(e))},s=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)},l=function(){return-1===window.navigator.userAgent.indexOf("Trident")},u=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},c=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(117),a=(n.n(i),n(118)),s=(n.n(a),n(14)),l=(n.n(s),function(){return o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row info-compra"},o.a.createElement("div",{className:"col-4 col-md-4 text-center info codigo align-self-center"},o.a.createElement("p",null,"C\xf3digo de pago ",o.a.createElement("br",null)," ",o.a.createElement("strong",null,"9125682"))),o.a.createElement("div",{className:"col-3 col-md-4 text-center info total align-self-center"},o.a.createElement("p",null,o.a.createElement("strong",null,"Total"),o.a.createElement("br",null),"S/.140.00")),o.a.createElement("div",{className:"col-5 col-md-4 text-center info fecha row d-flex justify-content-center"},o.a.createElement("div",{className:" col-3 col-md-4 align-self-center"},o.a.createElement("span",{className:"icon-alarmclock"})),o.a.createElement("div",{className:"col-9 col-md-8 align-self-center expire"},o.a.createElement("p",null,"Tu orden expirar\xe1 : ",o.a.createElement("br",null),o.a.createElement("strong",null,"23 Feb - 01:12 p.m."))))))});t.a=l},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default.shape({subscribe:o.default.func.isRequired,dispatch:o.default.func.isRequired,getState:o.default.func.isRequired})},function(e,t,n){"use strict";function r(e){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.__esModule=!0,t.default=r},function(e,t,n){var r=n(127),o=r.Symbol;e.exports=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(137),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i={className:"",accessibility:!0,adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,pauseOnHover:!0,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)}};t.default=i},function(e,t){function n(e,t){var n=0,r=e.length;for(n;n<r&&!1!==t(e[n],n);n++);}function r(e){return"[object Array]"===Object.prototype.toString.apply(e)}function o(e){return"function"===typeof e}e.exports={isFunction:o,isArray:r,each:n}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r=function(e){return{type:"ITEM_SELECT",payload:e}},o=function(e){return{type:"ITEM_SELECT_CASH",payload:e}}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(157),a=(n.n(i),n(14)),s=(n.n(a),n(49)),l=n.n(s),u=function(){return o.a.createElement("div",{className:"container footer"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12 col-md-4 space row d-flex justify-content-center "},o.a.createElement("div",{className:"col-6 text-right align-self-center"},o.a.createElement("span",null,"Instrucciones v\xeda ")),o.a.createElement("div",{className:"col-6 text-left"},o.a.createElement("a",{target:"_blank",href:"https://drive.google.com/open?id=0BxjZ1Oi4hxZRbWRtdmRMdm1obnBIZVBoV2FDNU51VzgzeEpj"},o.a.createElement("i",{className:"icon-printer"})))),o.a.createElement("div",{className:"col-6 col-md-4 space align-self-center text-center"},o.a.createElement("span",null,"Ayuda: ",o.a.createElement("a",{href:"mailto:[email protected]",className:"email"},o.a.createElement("span",null,"[email protected]")))),o.a.createElement("div",{className:"col-6 col-md-4 space row d-flex justify-content-center "},o.a.createElement("div",{className:"col-6 text-right align-self-center"},o.a.createElement("span",null,"Pago v\xeda")),o.a.createElement("div",{className:"col-6 align-self-center"},o.a.createElement("a",{href:""},o.a.createElement("img",{className:"img-fluid",src:l.a,alt:"logo"}))))))};t.a=u},function(e,t){e.exports="data:image/png;base64,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"},function(e,t,n){e.exports=n.p+"static/media/bcp.9714800d.png"},function(e,t){e.exports="data:image/png;base64,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"},function(e,t,n){e.exports=n.p+"static/media/interbank2.5c887f61.jpg"},function(e,t){e.exports="data:image/gif;base64,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"},function(e,t){e.exports="data:image/png;base64,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"},function(e,t,n){n(56),e.exports=n(61)},function(e,t,n){"use strict";"undefined"===typeof Promise&&(n(57).enable(),window.Promise=n(59)),n(60),Object.assign=n(4)},function(e,t,n){"use strict";function r(){u=!1,s._47=null,s._71=null}function o(e){function t(t){(e.allRejections||a(p[t].error,e.whitelist||l))&&(p[t].displayId=c++,e.onUnhandled?(p[t].logged=!0,e.onUnhandled(p[t].displayId,p[t].error)):(p[t].logged=!0,i(p[t].displayId,p[t].error)))}function n(t){p[t].logged&&(e.onHandled?e.onHandled(p[t].displayId,p[t].error):p[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+p[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+p[t].displayId+".")))}e=e||{},u&&r(),u=!0;var o=0,c=0,p={};s._47=function(e){2===e._83&&p[e._56]&&(p[e._56].logged?n(e._56):clearTimeout(p[e._56].timeout),delete p[e._56])},s._71=function(e,n){0===e._75&&(e._56=o++,p[e._56]={displayId:null,error:n,timeout:setTimeout(t.bind(null,e._56),a(n,l)?100:2e3),logged:!1})}}function i(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn(" "+e)})}function a(e,t){return t.some(function(t){return e instanceof t})}var s=n(26),l=[ReferenceError,TypeError,RangeError],u=!1;t.disable=r,t.enable=o},function(e,t,n){"use strict";(function(t){function n(e){a.length||(i(),s=!0),a[a.length]=e}function r(){for(;l<a.length;){var e=l;if(l+=1,a[e].call(),l>u){for(var t=0,n=a.length-l;t<n;t++)a[t]=a[t+l];a.length-=l,l=0}}a.length=0,l=0,s=!1}function o(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var i,a=[],s=!1,l=0,u=1024,c="undefined"!==typeof t?t:self,p=c.MutationObserver||c.WebKitMutationObserver;i="function"===typeof p?function(e){var t=1,n=new p(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):o(r),n.requestFlush=i,n.makeRequestCallFromTimer=o}).call(t,n(11))},function(e,t,n){"use strict";function r(e){var t=new o(o._44);return t._83=1,t._18=e,t}var o=n(26);e.exports=o;var i=r(!0),a=r(!1),s=r(null),l=r(void 0),u=r(0),c=r("");o.resolve=function(e){if(e instanceof o)return e;if(null===e)return s;if(void 0===e)return l;if(!0===e)return i;if(!1===e)return a;if(0===e)return u;if(""===e)return c;if("object"===typeof e||"function"===typeof e)try{var t=e.then;if("function"===typeof t)return new o(t.bind(e))}catch(e){return new o(function(t,n){n(e)})}return r(e)},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,n){function r(a,s){if(s&&("object"===typeof s||"function"===typeof s)){if(s instanceof o&&s.then===o.prototype.then){for(;3===s._83;)s=s._18;return 1===s._83?r(a,s._18):(2===s._83&&n(s._18),void s.then(function(e){r(a,e)},n))}var l=s.then;if("function"===typeof l){return void new o(l.bind(s)).then(function(e){r(a,e)},n)}}t[a]=s,0===--i&&e(t)}if(0===t.length)return e([]);for(var i=t.length,a=0;a<t.length;a++)r(a,t[a])})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){e.forEach(function(e){o.resolve(e).then(t,n)})})},o.prototype.catch=function(e){return this.then(null,e)}},function(e,t){!function(e){"use strict";function t(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!==typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return g.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader,n=a(t);return t.readAsArrayBuffer(e),n}function l(e){var t=new FileReader,n=a(t);return t.readAsText(e),n}function u(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"===typeof e)this._bodyText=e;else if(g.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(g.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(g.arrayBuffer&&g.blob&&b(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!g.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!w(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(u(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(e){var t=e.toUpperCase();return E.indexOf(t)>-1?t:e}function d(e,t){t=t||{};var n=t.body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function y(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function m(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},w=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},g.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},p.call(d.prototype),p.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];m.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=d,e.Response=m,e.fetch=function(e,t){return new Promise(function(n,r){var o=new d(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:y(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new m(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&g.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n.n(r),i=n(5),a=n.n(i),s=n(6),l=n(86),u=n(169),c=(n.n(u),n(170)),p=n(9),f=(n.n(p),Object(s.applyMiddleware)()(s.createStore));a.a.render(o.a.createElement(p.Provider,{store:f(c.a)},o.a.createElement(l.a,null)),document.getElementById("root"))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||P}function i(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||P}function a(){}function s(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||P}function l(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)M.call(t,r)&&!j.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:C,type:e,key:i,ref:a,props:o,_owner:R.current}}function u(e){return"object"===typeof e&&null!==e&&e.$$typeof===C}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function p(e,t,n,r){if(L.length){var o=L.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 f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function d(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case C:case S:case x:case k:a=!0}}if(a)return n(o,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var l=t+h(i,s);a+=d(i,l,n,o)}else if(null===e||"undefined"===typeof e?l=null:(l=T&&e[T]||e["@@iterator"],l="function"===typeof l?l:null),"function"===typeof l)for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=t+h(i,s++),a+=d(i,l,n,o);else"object"===i&&(n=""+e,r("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function h(e,t){return"object"===typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function y(e,t){e.func.call(e.context,t,e.count++)}function m(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?g(e,r,n,w.thatReturnsArgument):null!=e&&(u(e)&&(t=o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n,e={$$typeof:C,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function g(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),t=p(t,i,r,o),null==e||d(e,"",m,t),f(t)}var v=n(4),b=n(16),w=n(12),E="function"===typeof Symbol&&Symbol.for,C=E?Symbol.for("react.element"):60103,S=E?Symbol.for("react.call"):60104,x=E?Symbol.for("react.return"):60105,k=E?Symbol.for("react.portal"):60106,O=E?Symbol.for("react.fragment"):60107,T="function"===typeof Symbol&&Symbol.iterator,P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};o.prototype.isReactComponent={},o.prototype.setState=function(e,t){"object"!==typeof e&&"function"!==typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},o.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},a.prototype=o.prototype;var A=i.prototype=new a;A.constructor=i,v(A,o.prototype),A.isPureReactComponent=!0;var I=s.prototype=new a;I.constructor=s,v(I,o.prototype),I.unstable_isAsyncReactComponent=!0,I.render=function(){return this.props.children};var R={current:null},M=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0},N=/\/+/g,L=[],D={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return g(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=p(null,null,t,n),null==e||d(e,"",y,t),f(t)},count:function(e){return null==e?0:d(e,"",w.thatReturnsNull,null)},toArray:function(e){var t=[];return g(e,t,null,w.thatReturnsArgument),t},only:function(e){return u(e)||r("143"),e}},Component:o,PureComponent:i,unstable_AsyncComponent:s,Fragment:O,createElement:l,cloneElement:function(e,t,n){var r=v({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=R.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)M.call(t,l)&&!j.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:C,type:e.type,key:o,ref:i,props:r,_owner:a}},createFactory:function(e){var t=l.bind(null,e);return t.type=e,t},isValidElement:u,version:"16.2.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:R,assign:v}},F=Object.freeze({default:D}),H=F&&D||F;e.exports=H.default?H.default:H},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."),t.name="Invariant Violation",t.framesToPop=1,t}function o(e,t){return(e&t)===t}function i(e,t){if(An.hasOwnProperty(e)||2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))return!1;if(null===t)return!0;switch(typeof t){case"boolean":return An.hasOwnProperty(e)?e=!0:(t=a(e))?e=t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:(e=e.toLowerCase().slice(0,5),e="data-"===e||"aria-"===e),e;case"undefined":case"number":case"string":case"object":return!0;default:return!1}}function a(e){return Rn.hasOwnProperty(e)?Rn[e]:null}function s(e){return e[1].toUpperCase()}function l(e,t,n,r,o,i,a,s,l){Gn._hasCaughtError=!1,Gn._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){Gn._caughtError=e,Gn._hasCaughtError=!0}}function u(){if(Gn._hasRethrowError){var e=Gn._rethrowError;throw Gn._rethrowError=null,Gn._hasRethrowError=!1,e}}function c(){if(qn)for(var e in Kn){var t=Kn[e],n=qn.indexOf(e);if(-1<n||r("96",e),!Qn[n]){t.extractEvents||r("97",e),Qn[n]=t,n=t.eventTypes;for(var o in n){var i=void 0,a=n[o],s=t,l=o;Vn.hasOwnProperty(l)&&r("99",l),Vn[l]=a;var u=a.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&p(u[i],s,l);i=!0}else a.registrationName?(p(a.registrationName,s,l),i=!0):i=!1;i||r("98",o,e)}}}}function p(e,t,n){Xn[e]&&r("100",e),Xn[e]=t,_n[e]=t.eventTypes[n].dependencies}function f(e){qn&&r("101"),qn=Array.prototype.slice.call(e),c()}function d(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];Kn.hasOwnProperty(t)&&Kn[t]===o||(Kn[t]&&r("102",t),Kn[t]=o,n=!0)}n&&c()}function h(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=er(r),Gn.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function y(e,t){return null==t&&r("30"),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 m(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function g(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)h(e,t,n[o],r[o]);else n&&h(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function v(e){return g(e,!0)}function b(e){return g(e,!1)}function w(e,t){var n=e.stateNode;if(!n)return null;var o=Jn(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}return e?null:(n&&"function"!==typeof n&&r("231",t,typeof n),n)}function E(e,t,n,r){for(var o,i=0;i<Qn.length;i++){var a=Qn[i];a&&(a=a.extractEvents(e,t,n,r))&&(o=y(o,a))}return o}function C(e){e&&(tr=y(tr,e))}function S(e){var t=tr;tr=null,t&&(e?m(t,v):m(t,b),tr&&r("95"),Gn.rethrowCaughtError())}function x(e){if(e[ir])return e[ir];for(var t=[];!e[ir];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=void 0,r=e[ir];if(5===r.tag||6===r.tag)return r;for(;e&&(r=e[ir]);e=t.pop())n=r;return n}function k(e){if(5===e.tag||6===e.tag)return e.stateNode;r("33")}function O(e){return e[ar]||null}function T(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function P(e,t,n){for(var r=[];e;)r.push(e),e=T(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function A(e,t,n){(t=w(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=y(n._dispatchListeners,t),n._dispatchInstances=y(n._dispatchInstances,e))}function I(e){e&&e.dispatchConfig.phasedRegistrationNames&&P(e._targetInst,A,e)}function R(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?T(t):null,P(t,A,e)}}function M(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=w(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=y(n._dispatchListeners,t),n._dispatchInstances=y(n._dispatchInstances,e))}function j(e){e&&e.dispatchConfig.registrationName&&M(e._targetInst,null,e)}function N(e){m(e,I)}function L(e,t,n,r){if(n&&r)e:{for(var o=n,i=r,a=0,s=o;s;s=T(s))a++;s=0;for(var l=i;l;l=T(l))s++;for(;0<a-s;)o=T(o),a--;for(;0<s-a;)i=T(i),s--;for(;a--;){if(o===i||o===i.alternate)break e;o=T(o),i=T(i)}o=null}else o=null;for(i=o,o=[];n&&n!==i&&(null===(a=n.alternate)||a!==i);)o.push(n),n=T(n);for(n=[];r&&r!==i&&(null===(a=r.alternate)||a!==i);)n.push(r),r=T(r);for(r=0;r<o.length;r++)M(o[r],"bubbled",e);for(e=n.length;0<e--;)M(n[e],"captured",t)}function D(){return!ur&&wn.canUseDOM&&(ur="textContent"in document.documentElement?"textContent":"innerText"),ur}function F(){if(cr._fallbackText)return cr._fallbackText;var e,t,n=cr._startText,r=n.length,o=H(),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 cr._fallbackText=o.slice(e,1<t?1-t:void 0),cr._fallbackText}function H(){return"value"in cr._root?cr._root.value:cr._root[D()]}function U(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var o in e)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)?Cn.thatReturnsTrue:Cn.thatReturnsFalse,this.isPropagationStopped=Cn.thatReturnsFalse,this}function B(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 z(e){e instanceof this||r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function W(e){e.eventPool=[],e.getPooled=B,e.release=z}function Y(e,t,n,r){return U.call(this,e,t,n,r)}function G(e,t,n,r){return U.call(this,e,t,n,r)}function q(e,t){switch(e){case"topKeyUp":return-1!==dr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function K(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function Q(e,t){switch(e){case"topCompositionEnd":return K(t);case"topKeyPress":return 32!==t.which?null:(Sr=!0,Er);case"topTextInput":return e=t.data,e===Er&&Sr?null:e;default:return null}}function V(e,t){if(xr)return"topCompositionEnd"===e||!hr&&q(e,t)?(e=F(),cr._root=null,cr._startText=null,cr._fallbackText=null,xr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":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"topCompositionEnd":return wr?null:t.data;default:return null}}function X(e){if(e=$n(e)){Or&&"function"===typeof Or.restoreControlledState||r("194");var t=Jn(e.stateNode);Or.restoreControlledState(e.stateNode,e.type,t)}}function _(e){Tr?Pr?Pr.push(e):Pr=[e]:Tr=e}function Z(){if(Tr){var e=Tr,t=Pr;if(Pr=Tr=null,X(e),t)for(e=0;e<t.length;e++)X(t[e])}}function J(e,t){return e(t)}function $(e,t){if(Rr)return J(e,t);Rr=!0;try{return J(e,t)}finally{Rr=!1,Z()}}function ee(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mr[e.type]:"textarea"===t}function te(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ne(e,t){if(!wn.canUseDOM||t&&!("addEventListener"in document))return!1;t="on"+e;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n="function"===typeof n[t]),!n&&vr&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function re(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function oe(e){var t=re(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"===typeof n.get&&"function"===typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}function ie(e){e._valueTracker||(e._valueTracker=oe(e))}function ae(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=re(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function se(e,t,n){return e=U.getPooled(jr.change,e,t,n),e.type="change",_(n),N(e),e}function le(e){C(e),S(!1)}function ue(e){if(ae(k(e)))return e}function ce(e,t){if("topChange"===e)return t}function pe(){Nr&&(Nr.detachEvent("onpropertychange",fe),Lr=Nr=null)}function fe(e){"value"===e.propertyName&&ue(Lr)&&(e=se(Lr,e,te(e)),$(le,e))}function de(e,t,n){"topFocus"===e?(pe(),Nr=t,Lr=n,Nr.attachEvent("onpropertychange",fe)):"topBlur"===e&&pe()}function he(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return ue(Lr)}function ye(e,t){if("topClick"===e)return ue(t)}function me(e,t){if("topInput"===e||"topChange"===e)return ue(t)}function ge(e,t,n,r){return U.call(this,e,t,n,r)}function ve(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Hr[e])&&!!t[e]}function be(){return ve}function we(e,t,n,r){return U.call(this,e,t,n,r)}function Ee(e){return e=e.type,"string"===typeof e?e:"function"===typeof e?e.displayName||e.name:null}function Ce(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function Se(e){return!!(e=e._reactInternalFiber)&&2===Ce(e)}function xe(e){2!==Ce(e)&&r("188")}function ke(e){var t=e.alternate;if(!t)return t=Ce(e),3===t&&r("188"),1===t?null:e;for(var n=e,o=t;;){var i=n.return,a=i?i.alternate:null;if(!i||!a)break;if(i.child===a.child){for(var s=i.child;s;){if(s===n)return xe(i),e;if(s===o)return xe(i),t;s=s.sibling}r("188")}if(n.return!==o.return)n=i,o=a;else{s=!1;for(var l=i.child;l;){if(l===n){s=!0,n=i,o=a;break}if(l===o){s=!0,o=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,o=i;break}if(l===o){s=!0,o=a,n=i;break}l=l.sibling}s||r("189")}}n.alternate!==o&&r("190")}return 3!==n.tag&&r("188"),n.stateNode.current===n?e:t}function Oe(e){if(!(e=ke(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 Te(e){if(!(e=ke(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)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 Pe(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=x(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],Gr(e.topLevelType,t,e.nativeEvent,te(e.nativeEvent))}function Ae(e){Yr=!!e}function Ie(e,t,n){return n?Sn.listen(n,t,Me.bind(null,e)):null}function Re(e,t,n){return n?Sn.capture(n,t,Me.bind(null,e)):null}function Me(e,t){if(Yr){var n=te(t);if(n=x(n),null===n||"number"!==typeof n.tag||2===Ce(n)||(n=null),Wr.length){var r=Wr.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{$(Pe,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Wr.length&&Wr.push(e)}}}function je(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function Ne(e){if(Qr[e])return Qr[e];if(!Kr[e])return e;var t,n=Kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Vr)return Qr[e]=n[t];return""}function Le(e){return Object.prototype.hasOwnProperty.call(e,Jr)||(e[Jr]=Zr++,_r[e[Jr]]={}),_r[e[Jr]]}function De(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fe(e,t){var n=De(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=De(n)}}function He(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function Ue(e,t){if(oo||null==to||to!==xn())return null;var n=to;return"selectionStart"in n&&He(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ro&&kn(ro,n)?null:(ro=n,e=U.getPooled(eo.select,no,e,t),e.type="select",e.target=to,N(e),e)}function Be(e,t,n,r){return U.call(this,e,t,n,r)}function ze(e,t,n,r){return U.call(this,e,t,n,r)}function We(e,t,n,r){return U.call(this,e,t,n,r)}function Ye(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function Ge(e,t,n,r){return U.call(this,e,t,n,r)}function qe(e,t,n,r){return U.call(this,e,t,n,r)}function Ke(e,t,n,r){return U.call(this,e,t,n,r)}function Qe(e,t,n,r){return U.call(this,e,t,n,r)}function Ve(e,t,n,r){return U.call(this,e,t,n,r)}function Xe(e){0>fo||(e.current=po[fo],po[fo]=null,fo--)}function _e(e,t){fo++,po[fo]=e.current,e.current=t}function Ze(e){return $e(e)?mo:ho.current}function Je(e,t){var n=e.type.contextTypes;if(!n)return Pn;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,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){$e(e)&&(Xe(yo,e),Xe(ho,e))}function tt(e,t,n){null!=ho.cursor&&r("168"),_e(ho,t,e),_e(yo,n,e)}function nt(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var i in n)i in o||r("108",Ee(e)||"Unknown",i);return En({},t,n)}function rt(e){if(!$e(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Pn,mo=ho.current,_e(ho,t,e),_e(yo,yo.current,e),!0}function ot(e,t){var n=e.stateNode;if(n||r("169"),t){var o=nt(e,mo);n.__reactInternalMemoizedMergedChildContext=o,Xe(yo,e),Xe(ho,e),_e(ho,o,e)}else Xe(yo,e);_e(yo,t,e)}function it(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function at(e,t,n){var r=e.alternate;return null===r?(r=new it(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function st(e,t,n){var o=void 0,i=e.type,a=e.key;return"function"===typeof i?(o=i.prototype&&i.prototype.isReactComponent?new it(2,a,t):new it(0,a,t),o.type=i,o.pendingProps=e.props):"string"===typeof i?(o=new it(5,a,t),o.type=i,o.pendingProps=e.props):"object"===typeof i&&null!==i&&"number"===typeof i.tag?(o=i,o.pendingProps=e.props):r("130",null==i?i:typeof i,""),o.expirationTime=n,o}function lt(e,t,n,r){return t=new it(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function ut(e,t,n){return t=new it(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new it(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function pt(e,t,n){return e=new it(9,null,t),e.expirationTime=n,e}function ft(e,t,n){return t=new it(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dt(e){return function(t){try{return e(t)}catch(e){}}}function ht(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);go=dt(function(e){return t.onCommitFiberRoot(n,e)}),vo=dt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function yt(e){"function"===typeof go&&go(e)}function mt(e){"function"===typeof vo&&vo(e)}function gt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function vt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=gt(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=gt(null)):e=null,e=e!==r?e:null,null===e?vt(r,t):null===r.last||null===e.last?(vt(r,t),vt(e,t)):(vt(r,t),e.last=t)}function wt(e,t,n,r){return e=e.partialState,"function"===typeof e?e.call(t,n,r):e}function Et(e,t,n,r,o,i){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,s=n.first,l=!1;null!==s;){var u=s.expirationTime;if(u>i){var c=n.expirationTime;(0===c||c>u)&&(n.expirationTime=u),l||(l=!0,n.baseState=e)}else l||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(e=wt(s,r,e,o),a=!0):(u=wt(s,r,e,o))&&(e=a?En({},e,u):En(e,u),a=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(u=n.callbackList,null===u&&(u=n.callbackList=[]),u.push(s));s=s.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),l||(n.baseState=e),e}function Ct(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;e<n.length;e++){var o=n[e],i=o.callback;o.callback=null,"function"!==typeof i&&r("191",i),i.call(t)}}function St(e,t,n,o){function i(e,t){t.updater=a,e.stateNode=t,t._reactInternalFiber=e}var a={isMounted:Se,enqueueSetState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var i=t(n);bt(n,{expirationTime:i,partialState:r,callback:o,isReplace:!1,isForced:!1,nextCallback:null,next:null}),e(n,i)},enqueueReplaceState:function(n,r,o){n=n._reactInternalFiber,o=void 0===o?null:o;var i=t(n);bt(n,{expirationTime:i,partialState:r,callback:o,isReplace:!0,isForced:!1,nextCallback:null,next:null}),e(n,i)},enqueueForceUpdate:function(n,r){n=n._reactInternalFiber,r=void 0===r?null:r;var o=t(n);bt(n,{expirationTime:o,partialState:null,callback:r,isReplace:!1,isForced:!0,nextCallback:null,next:null}),e(n,o)}};return{adoptClassInstance:i,constructClassInstance:function(e,t){var n=e.type,r=Ze(e),o=2===e.tag&&null!=e.type.contextTypes,a=o?Je(e,r):Pn;return t=new n(t,a),i(e,t),o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t},mountClassInstance:function(e,t){var n=e.alternate,o=e.stateNode,i=o.state||null,s=e.pendingProps;s||r("158");var l=Ze(e);o.props=s,o.state=e.memoizedState=i,o.refs=Pn,o.context=Je(e,l),null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=1),"function"===typeof o.componentWillMount&&(i=o.state,o.componentWillMount(),i!==o.state&&a.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(o.state=Et(n,e,i,o,s,t))),"function"===typeof o.componentDidMount&&(e.effectTag|=4)},updateClassInstance:function(e,t,i){var s=t.stateNode;s.props=t.memoizedProps,s.state=t.memoizedState;var l=t.memoizedProps,u=t.pendingProps;u||null==(u=l)&&r("159");var c=s.context,p=Ze(t);if(p=Je(t,p),"function"!==typeof s.componentWillReceiveProps||l===u&&c===p||(c=s.state,s.componentWillReceiveProps(u,p),s.state!==c&&a.enqueueReplaceState(s,s.state,null)),c=t.memoizedState,i=null!==t.updateQueue?Et(e,t,t.updateQueue,s,u,i):c,!(l!==u||c!==i||yo.current||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!==typeof s.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),!1;var f=u;if(null===l||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)f=!0;else{var d=t.stateNode,h=t.type;f="function"===typeof d.shouldComponentUpdate?d.shouldComponentUpdate(f,i,p):!h.prototype||!h.prototype.isPureReactComponent||(!kn(l,f)||!kn(c,i))}return f?("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(u,i,p),"function"===typeof s.componentDidUpdate&&(t.effectTag|=4)):("function"!==typeof s.componentDidUpdate||l===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),n(t,u),o(t,i)),s.props=u,s.state=i,s.context=p,f}}}function xt(e){return null===e||"undefined"===typeof e?null:(e=ko&&e[ko]||e["@@iterator"],"function"===typeof e?e:null)}function kt(e,t){var n=t.ref;if(null!==n&&"function"!==typeof n){if(t._owner){t=t._owner;var o=void 0;t&&(2!==t.tag&&r("110"),o=t.stateNode),o||r("147",n);var i=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===i?e.ref:(e=function(e){var t=o.refs===Pn?o.refs={}:o.refs;null===e?delete t[i]:t[i]=e},e._stringRef=i,e)}"string"!==typeof n&&r("148"),t._owner||r("149",n)}return n}function Ot(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Tt(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 o(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 i(e,t,n){return e=at(e,t,n),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?(t=ut(n,e.internalContextTag,r),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function u(e,t,n,r){return null!==t&&t.type===n.type?(r=i(t,n.props,r),r.ref=kt(t,n),r.return=e,r):(r=st(n,e.internalContextTag,r),r.ref=kt(t,n),r.return=e,r)}function c(e,t,n,r){return null===t||7!==t.tag?(t=ct(n,e.internalContextTag,r),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function p(e,t,n,r){return null===t||9!==t.tag?(t=pt(n,e.internalContextTag,r),t.type=n.value,t.return=e,t):(t=i(t,null,r),t.type=n.value,t.return=e,t)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ft(n,e.internalContextTag,r),t.return=e,t):(t=i(t,n.children||[],r),t.return=e,t)}function d(e,t,n,r,o){return null===t||10!==t.tag?(t=lt(n,e.internalContextTag,r,o),t.return=e,t):(t=i(t,n,r),t.return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return t=ut(""+t,e.internalContextTag,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case wo:return t.type===xo?(t=lt(t.props.children,e.internalContextTag,n,t.key),t.return=e,t):(n=st(t,e.internalContextTag,n),n.ref=kt(null,t),n.return=e,n);case Eo:return t=ct(t,e.internalContextTag,n),t.return=e,t;case Co:return n=pt(t,e.internalContextTag,n),n.type=t.value,n.return=e,n;case So:return t=ft(t,e.internalContextTag,n),t.return=e,t}if(Oo(t)||xt(t))return t=lt(t,e.internalContextTag,n,null),t.return=e,t;Ot(e,t)}return null}function y(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case wo:return n.key===o?n.type===xo?d(e,t,n.props.children,r,o):u(e,t,n,r):null;case Eo:return n.key===o?c(e,t,n,r):null;case Co:return null===o?p(e,t,n,r):null;case So:return n.key===o?f(e,t,n,r):null}if(Oo(n)||xt(n))return null!==o?null:d(e,t,n,r,null);Ot(e,n)}return null}function m(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,l(t,e,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case wo:return e=e.get(null===r.key?n:r.key)||null,r.type===xo?d(t,e,r.props.children,o,r.key):u(t,e,r,o);case Eo:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,o);case Co:return e=e.get(n)||null,p(t,e,r,o);case So:return e=e.get(null===r.key?n:r.key)||null,f(t,e,r,o)}if(Oo(r)||xt(r))return e=e.get(n)||null,d(t,e,r,o,null);Ot(t,r)}return null}function g(r,i,s,l){for(var u=null,c=null,p=i,f=i=0,d=null;null!==p&&f<s.length;f++){p.index>f?(d=p,p=null):d=p.sibling;var g=y(r,p,s[f],l);if(null===g){null===p&&(p=d);break}e&&p&&null===g.alternate&&t(r,p),i=a(g,i,f),null===c?u=g:c.sibling=g,c=g,p=d}if(f===s.length)return n(r,p),u;if(null===p){for(;f<s.length;f++)(p=h(r,s[f],l))&&(i=a(p,i,f),null===c?u=p:c.sibling=p,c=p);return u}for(p=o(r,p);f<s.length;f++)(d=m(p,r,f,s[f],l))&&(e&&null!==d.alternate&&p.delete(null===d.key?f:d.key),i=a(d,i,f),null===c?u=d:c.sibling=d,c=d);return e&&p.forEach(function(e){return t(r,e)}),u}function v(i,s,l,u){var c=xt(l);"function"!==typeof c&&r("150"),null==(l=c.call(l))&&r("151");for(var p=c=null,f=s,d=s=0,g=null,v=l.next();null!==f&&!v.done;d++,v=l.next()){f.index>d?(g=f,f=null):g=f.sibling;var b=y(i,f,v.value,u);if(null===b){f||(f=g);break}e&&f&&null===b.alternate&&t(i,f),s=a(b,s,d),null===p?c=b:p.sibling=b,p=b,f=g}if(v.done)return n(i,f),c;if(null===f){for(;!v.done;d++,v=l.next())null!==(v=h(i,v.value,u))&&(s=a(v,s,d),null===p?c=v:p.sibling=v,p=v);return c}for(f=o(i,f);!v.done;d++,v=l.next())null!==(v=m(f,i,d,v.value,u))&&(e&&null!==v.alternate&&f.delete(null===v.key?d:v.key),s=a(v,s,d),null===p?c=v:p.sibling=v,p=v);return e&&f.forEach(function(e){return t(i,e)}),c}return function(e,o,a,l){"object"===typeof a&&null!==a&&a.type===xo&&null===a.key&&(a=a.props.children);var u="object"===typeof a&&null!==a;if(u)switch(a.$$typeof){case wo:e:{var c=a.key;for(u=o;null!==u;){if(u.key===c){if(10===u.tag?a.type===xo:u.type===a.type){n(e,u.sibling),o=i(u,a.type===xo?a.props.children:a.props,l),o.ref=kt(u,a),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===xo?(o=lt(a.props.children,e.internalContextTag,l,a.key),o.return=e,e=o):(l=st(a,e.internalContextTag,l),l.ref=kt(o,a),l.return=e,e=l)}return s(e);case Eo:e:{for(u=a.key;null!==o;){if(o.key===u){if(7===o.tag){n(e,o.sibling),o=i(o,a,l),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=ct(a,e.internalContextTag,l),o.return=e,e=o}return s(e);case Co:e:{if(null!==o){if(9===o.tag){n(e,o.sibling),o=i(o,null,l),o.type=a.value,o.return=e,e=o;break e}n(e,o)}o=pt(a,e.internalContextTag,l),o.type=a.value,o.return=e,e=o}return s(e);case So:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],l),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=ft(a,e.internalContextTag,l),o.return=e,e=o}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,l)):(n(e,o),o=ut(a,e.internalContextTag,l)),o.return=e,e=o,s(e);if(Oo(a))return g(e,o,a,l);if(xt(a))return v(e,o,a,l);if(u&&Ot(e,a),"undefined"===typeof a)switch(e.tag){case 2:case 1:l=e.type,r("152",l.displayName||l.name||"Component")}return n(e,o)}}function Pt(e,t,n,o,i){function a(e,t,n){var r=t.expirationTime;t.child=null===e?Po(t,null,n,r):To(t,e.child,n,r)}function s(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function l(e,t,n,r){if(s(e,t),!n)return r&&ot(t,!1),c(e,t);n=t.stateNode,zr.current=t;var o=n.render();return t.effectTag|=1,a(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ot(t,!0),t.child}function u(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),m(e,t.containerInfo)}function c(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=at(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=at(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function p(e,t){switch(t.tag){case 3:u(t);break;case 2:rt(t);break;case 4:m(t,t.stateNode.containerInfo)}return null}var f=e.shouldSetTextContent,d=e.useSyncScheduling,h=e.shouldDeprioritizeSubtree,y=t.pushHostContext,m=t.pushHostContainer,g=n.enterHydrationState,v=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;e=St(o,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var w=e.adoptClassInstance,E=e.constructClassInstance,C=e.mountClassInstance,S=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return p(e,t);switch(t.tag){case 0:null!==e&&r("155");var o=t.type,i=t.pendingProps,x=Ze(t);return x=Je(t,x),o=o(i,x),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render?(t.tag=2,i=rt(t),w(t,o),C(t,n),t=l(e,t,!0,i)):(t.tag=1,a(e,t,o),t.memoizedProps=i,t=t.child),t;case 1:e:{if(i=t.type,n=t.pendingProps,o=t.memoizedProps,yo.current)null===n&&(n=o);else if(null===n||o===n){t=c(e,t);break e}o=Ze(t),o=Je(t,o),i=i(n,o),t.effectTag|=1,a(e,t,i),t.memoizedProps=n,t=t.child}return t;case 2:return i=rt(t),o=void 0,null===e?t.stateNode?r("153"):(E(t,t.pendingProps),C(t,n),o=!0):o=S(e,t,n),l(e,t,o,i);case 3:return u(t),i=t.updateQueue,null!==i?(o=t.memoizedState,i=Et(e,t,i,null,null,n),o===i?(v(),t=c(e,t)):(o=i.element,x=t.stateNode,(null===e||null===e.child)&&x.hydrate&&g(t)?(t.effectTag|=2,t.child=Po(t,null,o,n)):(v(),a(e,t,o)),t.memoizedState=i,t=t.child)):(v(),t=c(e,t)),t;case 5:y(t),null===e&&b(t),i=t.type;var k=t.memoizedProps;return o=t.pendingProps,null===o&&null===(o=k)&&r("154"),x=null!==e?e.memoizedProps:null,yo.current||null!==o&&k!==o?(k=o.children,f(i,o)?k=null:x&&f(i,x)&&(t.effectTag|=16),s(e,t),2147483647!==n&&!d&&h(i,o)?(t.expirationTime=2147483647,t=null):(a(e,t,k),t.memoizedProps=o,t=t.child)):t=c(e,t),t;case 6:return null===e&&b(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return i=t.pendingProps,yo.current?null===i&&null===(i=e&&e.memoizedProps)&&r("154"):null!==i&&t.memoizedProps!==i||(i=t.memoizedProps),o=i.children,t.stateNode=null===e?Po(t,t.stateNode,o,n):To(t,t.stateNode,o,n),t.memoizedProps=i,t.stateNode;case 9:return null;case 4:e:{if(m(t,t.stateNode.containerInfo),i=t.pendingProps,yo.current)null===i&&null==(i=e&&e.memoizedProps)&&r("154");else if(null===i||t.memoizedProps===i){t=c(e,t);break e}null===e?t.child=To(t,null,i,n):a(e,t,i),t.memoizedProps=i,t=t.child}return t;case 10:e:{if(n=t.pendingProps,yo.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=c(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:u(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?p(e,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?Po(t,null,null,n):To(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function At(e,t,n){function o(e){e.effectTag|=4}var i=e.createInstance,a=e.createTextInstance,s=e.appendInitialChild,l=e.finalizeInitialChildren,u=e.prepareUpdate,c=e.persistence,p=t.getRootHostContainer,f=t.popHostContext,d=t.getHostContext,h=t.popHostContainer,y=n.prepareToHydrateHostInstance,m=n.prepareToHydrateHostTextInstance,g=n.popHydrationState,v=void 0,b=void 0,w=void 0;return e.mutation?(v=function(){},b=function(e,t,n){(t.updateQueue=n)&&o(t)},w=function(e,t,n,r){n!==r&&o(t)}):r(c?"235":"236"),{completeWork:function(e,t,n){var c=t.pendingProps;switch(null===c?c=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),Xe(yo,t),Xe(ho,t),c=t.stateNode,c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),null!==e&&null!==e.child||(g(t),t.effectTag&=-3),v(t),null;case 5:f(t),n=p();var E=t.type;if(null!==e&&null!=t.stateNode){var C=e.memoizedProps,S=t.stateNode,x=d();S=u(S,E,C,c,n,x),b(e,t,S,E,C,c,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!c)return null===t.stateNode&&r("166"),null;if(e=d(),g(t))y(t,n,e)&&o(t);else{e=i(E,c,n,e,t);e:for(C=t.child;null!==C;){if(5===C.tag||6===C.tag)s(e,C.stateNode);else if(4!==C.tag&&null!==C.child){C.child.return=C,C=C.child;continue}if(C===t)break;for(;null===C.sibling;){if(null===C.return||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}l(e,E,c,n)&&o(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)w(e,t,e.memoizedProps,c);else{if("string"!==typeof c)return null===t.stateNode&&r("166"),null;e=p(),n=d(),g(t)?m(t)&&o(t):t.stateNode=a(c,e,n,t)}return null;case 7:(c=t.memoizedProps)||r("165"),t.tag=8,E=[];e:for((C=t.stateNode)&&(C.return=t);null!==C;){if(5===C.tag||6===C.tag||4===C.tag)r("247");else if(9===C.tag)E.push(C.type);else if(null!==C.child){C.child.return=C,C=C.child;continue}for(;null===C.sibling;){if(null===C.return||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}return C=c.handler,c=C(c.props,E),t.child=To(t,null!==e?e.child:null,c,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),v(t),null;case 0:r("167");default:r("156")}}}}function It(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){switch("function"===typeof mt&&mt(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"===typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:i(e.stateNode);break;case 4:u&&s(e)}}function i(e){for(var t=e;;)if(o(t),null===t.child||u&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function a(e){return 5===e.tag||3===e.tag||4===e.tag}function s(e){for(var t=e,n=!1,a=void 0,s=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:a=n.stateNode,s=!1;break e;case 3:case 4:a=n.stateNode.containerInfo,s=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)i(t),s?b(a,t.stateNode):v(a,t.stateNode);else if(4===t.tag?a=t.stateNode.containerInfo:o(t),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;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var l=e.getPublicInstance,u=e.mutation;e=e.persistence,u||r(e?"235":"236");var c=u.commitMount,p=u.commitUpdate,f=u.resetTextContent,d=u.commitTextUpdate,h=u.appendChild,y=u.appendChildToContainer,m=u.insertBefore,g=u.insertInContainerBefore,v=u.removeChild,b=u.removeChildFromContainer;return{commitResetTextContent:function(e){f(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(a(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:case 4:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}16&n.effectTag&&(f(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)n?o?g(t,i.stateNode,n):m(t,i.stateNode,n):o?y(t,i.stateNode):h(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){s(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var i=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&p(n,a,i,e,o,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,d(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t=t.updateQueue,null!==t&&Ct(t,n);break;case 3:n=t.updateQueue,null!==n&&Ct(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&c(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(l(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function Rt(e){function t(e){return e===Ao&&r("174"),e}var n=e.getChildHostContext,o=e.getRootHostContext,i={current:Ao},a={current:Ao},s={current:Ao};return{getHostContext:function(){return t(i.current)},getRootHostContainer:function(){return t(s.current)},popHostContainer:function(e){Xe(i,e),Xe(a,e),Xe(s,e)},popHostContext:function(e){a.current===e&&(Xe(i,e),Xe(a,e))},pushHostContainer:function(e,t){_e(s,t,e),t=o(t),_e(a,e,e),_e(i,t,e)},pushHostContext:function(e){var r=t(s.current),o=t(i.current);r=n(o,e.type,r),o!==r&&(_e(a,e,e),_e(i,r,e))},resetHostContainer:function(){i.current=Ao,s.current=Ao}}}function Mt(e){function t(e,t){var n=new it(5,null,0);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 n(e,t){switch(e.tag){case 5:return null!==(t=a(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=s(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function o(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;f=e}var i=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,s=e.canHydrateTextInstance,l=e.getNextHydratableSibling,u=e.getFirstHydratableChild,c=e.hydrateInstance,p=e.hydrateTextInstance,f=null,d=null,h=!1;return{enterHydrationState:function(e){return d=u(e.stateNode.containerInfo),f=e,h=!0},resetHydrationState:function(){d=f=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=d;if(r){if(!n(e,r)){if(!(r=l(r))||!n(e,r))return e.effectTag|=2,h=!1,void(f=e);t(f,d)}f=e,d=u(r)}else e.effectTag|=2,h=!1,f=e}},prepareToHydrateHostInstance:function(e,t,n){return t=c(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return p(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==f)return!1;if(!h)return o(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!i(n,e.memoizedProps))for(n=d;n;)t(e,n),n=l(n);return o(e),d=f?l(e.stateNode):null,!0}}}function jt(e){function t(e){ie=X=!0;var t=e.stateNode;if(t.current===e&&r("177"),t.isReadyForCommit=!1,zr.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var n=e.firstEffect}else n=e;else n=e.firstEffect;for(G(),$=n;null!==$;){var o=!1,i=void 0;try{for(;null!==$;){var a=$.effectTag;if(16&a&&j($),128&a){var s=$.alternate;null!==s&&U(s)}switch(-242&a){case 2:N($),$.effectTag&=-3;break;case 6:N($),$.effectTag&=-3,D($.alternate,$);break;case 4:D($.alternate,$);break;case 8:ae=!0,L($),ae=!1}$=$.nextEffect}}catch(e){o=!0,i=e}o&&(null===$&&r("178"),l($,i),null!==$&&($=$.nextEffect))}for(q(),t.current=e,$=n;null!==$;){n=!1,o=void 0;try{for(;null!==$;){var u=$.effectTag;if(36&u&&F($.alternate,$),128&u&&H($),64&u)switch(i=$,a=void 0,null!==ee&&(a=ee.get(i),ee.delete(i),null==a&&null!==i.alternate&&(i=i.alternate,a=ee.get(i),ee.delete(i))),null==a&&r("184"),i.tag){case 2:i.stateNode.componentDidCatch(a.error,{componentStack:a.componentStack});break;case 3:null===re&&(re=a.error);break;default:r("157")}var c=$.nextEffect;$.nextEffect=null,$=c}}catch(e){n=!0,o=e}n&&(null===$&&r("178"),l($,o),null!==$&&($=$.nextEffect))}return X=ie=!1,"function"===typeof yt&&yt(e.stateNode),ne&&(ne.forEach(y),ne=null),null!==re&&(e=re,re=null,S(e)),t=t.current.expirationTime,0===t&&(te=ee=null),t}function n(e){for(;;){var t=M(e.alternate,e,J),n=e.return,r=e.sibling,o=e;if(2147483647===J||2147483647!==o.expirationTime){if(2!==o.tag&&3!==o.tag)var i=0;else i=o.updateQueue,i=null===i?0:i.expirationTime;for(var a=o.child;null!==a;)0!==a.expirationTime&&(0===i||i>a.expirationTime)&&(i=a.expirationTime),a=a.sibling;o.expirationTime=i}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){e.stateNode.isReadyForCommit=!0;break}e=n}return null}function o(e){var t=I(e.alternate,e,J);return null===t&&(t=n(e)),zr.current=null,t}function i(e){var t=R(e.alternate,e,J);return null===t&&(t=n(e)),zr.current=null,t}function a(e){if(null!==ee){if(!(0===J||J>e))if(J<=Q)for(;null!==_;)_=u(_)?i(_):o(_);else for(;null!==_&&!C();)_=u(_)?i(_):o(_)}else if(!(0===J||J>e))if(J<=Q)for(;null!==_;)_=o(_);else for(;null!==_&&!C();)_=o(_)}function s(e,t){if(X&&r("243"),X=!0,e.isReadyForCommit=!1,e!==Z||t!==J||null===_){for(;-1<fo;)po[fo]=null,fo--;mo=Pn,ho.current=Pn,yo.current=!1,P(),Z=e,J=t,_=at(Z.current,null,t)}var n=!1,o=null;try{a(t)}catch(e){n=!0,o=e}for(;n;){if(oe){re=o;break}var s=_;if(null===s)oe=!0;else{var u=l(s,o);if(null===u&&r("183"),!oe){try{for(n=u,o=t,u=n;null!==s;){switch(s.tag){case 2:et(s);break;case 5:T(s);break;case 3:O(s);break;case 4:O(s)}if(s===u||s.alternate===u)break;s=s.return}_=i(n),a(o)}catch(e){n=!0,o=e;continue}break}}}return t=re,oe=X=!1,re=null,null!==t&&S(t),e.isReadyForCommit?e.current.alternate:null}function l(e,t){var n=zr.current=null,r=!1,o=!1,i=null;if(3===e.tag)n=e,c(e)&&(oe=!0);else for(var a=e.return;null!==a&&null===n;){if(2===a.tag?"function"===typeof a.stateNode.componentDidCatch&&(r=!0,i=Ee(a),n=a,o=!0):3===a.tag&&(n=a),c(a)){if(ae||null!==ne&&(ne.has(a)||null!==a.alternate&&ne.has(a.alternate)))return null;n=null,o=!1}a=a.return}if(null!==n){null===te&&(te=new Set),te.add(n);var s="";a=e;do{e:switch(a.tag){case 0:case 1:case 2:case 5:var l=a._debugOwner,u=a._debugSource,p=Ee(a),f=null;l&&(f=Ee(l)),l=u,p="\n in "+(p||"Unknown")+(l?" (at "+l.fileName.replace(/^.*[\\\/]/,"")+":"+l.lineNumber+")":f?" (created by "+f+")":"");break e;default:p=""}s+=p,a=a.return}while(a);a=s,e=Ee(e),null===ee&&(ee=new Map),t={componentName:e,componentStack:a,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:i,willRetry:o},ee.set(n,t);try{var d=t.error;d&&d.suppressReactErrorLogging||console.error(d)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}return ie?(null===ne&&(ne=new Set),ne.add(n)):y(n),n}return null===re&&(re=t),null}function u(e){return null!==ee&&(ee.has(e)||null!==e.alternate&&ee.has(e.alternate))}function c(e){return null!==te&&(te.has(e)||null!==e.alternate&&te.has(e.alternate))}function p(){return 20*(1+((m()+100)/20|0))}function f(e){return 0!==V?V:X?ie?1:J:!Y||1&e.internalContextTag?p():1}function d(e,t){return h(e,t,!1)}function h(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!X&&n===Z&&t<J&&(_=Z=null,J=0);var o=n,i=t;if(Ce>we&&r("185"),null===o.nextScheduledRoot)o.remainingExpirationTime=i,null===le?(se=le=o,o.nextScheduledRoot=o):(le=le.nextScheduledRoot=o,le.nextScheduledRoot=se);else{var a=o.remainingExpirationTime;(0===a||i<a)&&(o.remainingExpirationTime=i)}pe||(ve?be&&(fe=o,de=1,E(fe,de)):1===i?w(1,null):g(i)),!X&&n===Z&&t<J&&(_=Z=null,J=0)}e=e.return}}function y(e){h(e,1,!0)}function m(){return Q=2+((B()-K)/10|0)}function g(e){if(0!==ue){if(e>ue)return;W(ce)}var t=B()-K;ue=e,ce=z(b,{timeout:10*(e-2)-t})}function v(){var e=0,t=null;if(null!==le)for(var n=le,o=se;null!==o;){var i=o.remainingExpirationTime;if(0===i){if((null===n||null===le)&&r("244"),o===o.nextScheduledRoot){se=le=o.nextScheduledRoot=null;break}if(o===se)se=i=o.nextScheduledRoot,le.nextScheduledRoot=i,o.nextScheduledRoot=null;else{if(o===le){le=n,le.nextScheduledRoot=se,o.nextScheduledRoot=null;break}n.nextScheduledRoot=o.nextScheduledRoot,o.nextScheduledRoot=null}o=n.nextScheduledRoot}else{if((0===e||i<e)&&(e=i,t=o),o===le)break;n=o,o=o.nextScheduledRoot}}n=fe,null!==n&&n===t?Ce++:Ce=0,fe=t,de=e}function b(e){w(0,e)}function w(e,t){for(ge=t,v();null!==fe&&0!==de&&(0===e||de<=e)&&!he;)E(fe,de),v();if(null!==ge&&(ue=0,ce=-1),0!==de&&g(de),ge=null,he=!1,Ce=0,ye)throw e=me,me=null,ye=!1,e}function E(e,n){if(pe&&r("245"),pe=!0,n<=m()){var o=e.finishedWork;null!==o?(e.finishedWork=null,e.remainingExpirationTime=t(o)):(e.finishedWork=null,null!==(o=s(e,n))&&(e.remainingExpirationTime=t(o)))}else o=e.finishedWork,null!==o?(e.finishedWork=null,e.remainingExpirationTime=t(o)):(e.finishedWork=null,null!==(o=s(e,n))&&(C()?e.finishedWork=o:e.remainingExpirationTime=t(o)));pe=!1}function C(){return!(null===ge||ge.timeRemaining()>Se)&&(he=!0)}function S(e){null===fe&&r("246"),fe.remainingExpirationTime=0,ye||(ye=!0,me=e)}var x=Rt(e),k=Mt(e),O=x.popHostContainer,T=x.popHostContext,P=x.resetHostContainer,A=Pt(e,x,k,d,f),I=A.beginWork,R=A.beginFailedWork,M=At(e,x,k).completeWork;x=It(e,l);var j=x.commitResetTextContent,N=x.commitPlacement,L=x.commitDeletion,D=x.commitWork,F=x.commitLifeCycles,H=x.commitAttachRef,U=x.commitDetachRef,B=e.now,z=e.scheduleDeferredCallback,W=e.cancelDeferredCallback,Y=e.useSyncScheduling,G=e.prepareForCommit,q=e.resetAfterCommit,K=B(),Q=2,V=0,X=!1,_=null,Z=null,J=0,$=null,ee=null,te=null,ne=null,re=null,oe=!1,ie=!1,ae=!1,se=null,le=null,ue=0,ce=-1,pe=!1,fe=null,de=0,he=!1,ye=!1,me=null,ge=null,ve=!1,be=!1,we=1e3,Ce=0,Se=1;return{computeAsyncExpiration:p,computeExpirationForFiber:f,scheduleWork:d,batchedUpdates:function(e,t){var n=ve;ve=!0;try{return e(t)}finally{(ve=n)||pe||w(1,null)}},unbatchedUpdates:function(e){if(ve&&!be){be=!0;try{return e()}finally{be=!1}}return e()},flushSync:function(e){var t=ve;ve=!0;try{e:{var n=V;V=1;try{var o=e();break e}finally{V=n}o=void 0}return o}finally{ve=t,pe&&r("187"),w(1,null)}},deferredUpdates:function(e){var t=V;V=p();try{return e()}finally{V=t}}}}function Nt(e){function t(e){return e=Oe(e),null===e?null:e.stateNode}var n=e.getPublicInstance;e=jt(e);var o=e.computeAsyncExpiration,i=e.computeExpirationForFiber,a=e.scheduleWork;return{createContainer:function(e,t){var n=new it(3,null,0);return e={current:n,containerInfo:e,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:t,nextScheduledRoot:null},n.stateNode=e},updateContainer:function(e,t,n,s){var l=t.current;if(n){n=n._reactInternalFiber;var u;e:{for(2===Ce(n)&&2===n.tag||r("170"),u=n;3!==u.tag;){if($e(u)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}(u=u.return)||r("171")}u=u.stateNode.context}n=$e(n)?nt(n,u):u}else n=Pn;null===t.context?t.context=n:t.pendingContext=n,t=s,t=void 0===t?null:t,s=null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent?o():i(l),bt(l,{expirationTime:s,partialState:{element:e},callback:t,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(l,s)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return n(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:t,findHostInstanceWithNoPortals:function(e){return e=Te(e),null===e?null:e.stateNode},injectIntoDevTools:function(e){var n=e.findFiberByHostInstance;return ht(En({},e,{findHostInstanceByFiber:function(e){return t(e)},findFiberByHostInstance:function(e){return n?n(e):null}}))}}}function Lt(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:So,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Dt(e){return!!Xo.hasOwnProperty(e)||!Vo.hasOwnProperty(e)&&(Qo.test(e)?Xo[e]=!0:(Vo[e]=!0,!1))}function Ft(e,t,n){var r=a(t);if(r&&i(t,n)){var o=r.mutationMethod;o?o(e,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?Ut(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else Ht(e,t,i(t,n)?n:null)}function Ht(e,t,n){Dt(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))}function Ut(e,t){var n=a(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}function Bt(e,t){var n=t.value,r=t.checked;return En({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})}function zt(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Wt(e,t){null!=(t=t.checked)&&Ft(e,"checked",t)}function Yt(e,t){Wt(e,t);var n=t.value;null!=n?0===n&&""===e.value?e.value="0":"number"===t.type?(t=parseFloat(e.value)||0,(n!=t||n==t&&e.value!=n)&&(e.value=""+n)):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))}function Gt(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}t=e.name,""!==t&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)}function qt(e){var t="";return bn.Children.forEach(e,function(e){null==e||"string"!==typeof e&&"number"!==typeof e||(t+=e)}),t}function Kt(e,t){return e=En({children:void 0},t),(t=qt(t.children))&&(e.children=t),e}function Qt(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=""+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 Vt(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function Xt(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),En({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _t(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&r("92"),Array.isArray(t)&&(1>=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Zt(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Jt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function $t(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 en(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?$t(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function tn(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 nn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,i=t[n];o=null==i||"boolean"===typeof i||""===i?"":r||"number"!==typeof i||0===i||$o.hasOwnProperty(o)&&$o[o]?(""+i).trim():i+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}function rn(e,t,n){t&&(ti[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!==typeof t.style&&r("62",n()))}function on(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 an(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Le(e);t=_n[t];for(var r=0;r<t.length;r++){var o=t[r];n.hasOwnProperty(o)&&n[o]||("topScroll"===o?Re("topScroll","scroll",e):"topFocus"===o||"topBlur"===o?(Re("topFocus","focus",e),Re("topBlur","blur",e),n.topBlur=!0,n.topFocus=!0):"topCancel"===o?(ne("cancel",!0)&&Re("topCancel","cancel",e),n.topCancel=!0):"topClose"===o?(ne("close",!0)&&Re("topClose","close",e),n.topClose=!0):Xr.hasOwnProperty(o)&&Ie(o,Xr[o],e),n[o]=!0)}}function sn(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===ni&&(r=$t(e)),r===ni?"script"===e?(e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"===typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function ln(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function un(e,t,n,r){var o=on(t,n);switch(t){case"iframe":case"object":Ie("topLoad","load",e);var i=n;break;case"video":case"audio":for(i in oi)oi.hasOwnProperty(i)&&Ie(i,oi[i],e);i=n;break;case"source":Ie("topError","error",e),i=n;break;case"img":case"image":Ie("topError","error",e),Ie("topLoad","load",e),i=n;break;case"form":Ie("topReset","reset",e),Ie("topSubmit","submit",e),i=n;break;case"details":Ie("topToggle","toggle",e),i=n;break;case"input":zt(e,n),i=Bt(e,n),Ie("topInvalid","invalid",e),an(r,"onChange");break;case"option":i=Kt(e,n);break;case"select":Vt(e,n),i=En({},n,{value:void 0}),Ie("topInvalid","invalid",e),an(r,"onChange");break;case"textarea":_t(e,n),i=Xt(e,n),Ie("topInvalid","invalid",e),an(r,"onChange");break;default:i=n}rn(t,i,ri);var a,s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?nn(e,l,ri):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&Jo(e,l):"children"===a?"string"===typeof l?("textarea"!==t||""!==l)&&tn(e,l):"number"===typeof l&&tn(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Xn.hasOwnProperty(a)?null!=l&&an(r,a):o?Ht(e,a,l):null!=l&&Ft(e,a,l))}switch(t){case"input":ie(e),Gt(e,n);break;case"textarea":ie(e),Jt(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?Qt(e,!!n.multiple,t,!1):null!=n.defaultValue&&Qt(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Cn)}}function cn(e,t,n,r,o){var i=null;switch(t){case"input":n=Bt(e,n),r=Bt(e,r),i=[];break;case"option":n=Kt(e,n),r=Kt(e,r),i=[];break;case"select":n=En({},n,{value:void 0}),r=En({},r,{value:void 0}),i=[];break;case"textarea":n=Xt(e,n),r=Xt(e,r),i=[];break;default:"function"!==typeof n.onClick&&"function"===typeof r.onClick&&(e.onclick=Cn)}rn(t,r,ri);var a,s;e=null;for(a in n)if(!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&null!=n[a])if("style"===a)for(s in t=n[a])t.hasOwnProperty(s)&&(e||(e={}),e[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Xn.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var l=r[a];if(t=null!=n?n[a]:void 0,r.hasOwnProperty(a)&&l!==t&&(null!=l||null!=t))if("style"===a)if(t){for(s in t)!t.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(e||(e={}),e[s]="");for(s in l)l.hasOwnProperty(s)&&t[s]!==l[s]&&(e||(e={}),e[s]=l[s])}else e||(i||(i=[]),i.push(a,e)),e=l;else"dangerouslySetInnerHTML"===a?(l=l?l.__html:void 0,t=t?t.__html:void 0,null!=l&&t!==l&&(i=i||[]).push(a,""+l)):"children"===a?t===l||"string"!==typeof l&&"number"!==typeof l||(i=i||[]).push(a,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(Xn.hasOwnProperty(a)?(null!=l&&an(o,a),i||t===l||(i=[])):(i=i||[]).push(a,l))}return e&&(i=i||[]).push("style",e),i}function pn(e,t,n,r,o){"input"===n&&"radio"===o.type&&null!=o.name&&Wt(e,o),on(n,r),r=on(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],s=t[i+1];"style"===a?nn(e,s,ri):"dangerouslySetInnerHTML"===a?Jo(e,s):"children"===a?tn(e,s):r?null!=s?Ht(e,a,s):e.removeAttribute(a):null!=s?Ft(e,a,s):Ut(e,a)}switch(n){case"input":Yt(e,o);break;case"textarea":Zt(e,o);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,n=o.value,null!=n?Qt(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?Qt(e,!!o.multiple,o.defaultValue,!0):Qt(e,!!o.multiple,o.multiple?[]:"",!1))}}function fn(e,t,n,r,o){switch(t){case"iframe":case"object":Ie("topLoad","load",e);break;case"video":case"audio":for(var i in oi)oi.hasOwnProperty(i)&&Ie(i,oi[i],e);break;case"source":Ie("topError","error",e);break;case"img":case"image":Ie("topError","error",e),Ie("topLoad","load",e);break;case"form":Ie("topReset","reset",e),Ie("topSubmit","submit",e);break;case"details":Ie("topToggle","toggle",e);break;case"input":zt(e,n),Ie("topInvalid","invalid",e),an(o,"onChange");break;case"select":Vt(e,n),Ie("topInvalid","invalid",e),an(o,"onChange");break;case"textarea":_t(e,n),Ie("topInvalid","invalid",e),an(o,"onChange")}rn(t,n,ri),r=null;for(var a in n)n.hasOwnProperty(a)&&(i=n[a],"children"===a?"string"===typeof i?e.textContent!==i&&(r=["children",i]):"number"===typeof i&&e.textContent!==""+i&&(r=["children",""+i]):Xn.hasOwnProperty(a)&&null!=i&&an(o,a));switch(t){case"input":ie(e),Gt(e,n);break;case"textarea":ie(e),Jt(e,n);break;case"select":case"option":break;default:"function"===typeof n.onClick&&(e.onclick=Cn)}return r}function dn(e,t){return e.nodeValue!==t}function hn(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function yn(e){return!(!(e=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))}function mn(e,t,n,o,i){hn(n)||r("200");var a=n._reactRootContainer;if(a)li.updateContainer(t,a,e,i);else{if(!(o=o||yn(n)))for(a=void 0;a=n.lastChild;)n.removeChild(a);var s=li.createContainer(n,o);a=n._reactRootContainer=s,li.unbatchedUpdates(function(){li.updateContainer(t,s,e,i)})}return li.getPublicRootInstance(a)}function gn(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return hn(t)||r("200"),Lt(e,t,null,n)}function vn(e,t){this._reactRootContainer=li.createContainer(e,t)}var bn=n(0),wn=n(64),En=n(4),Cn=n(12),Sn=n(65),xn=n(66),kn=n(67),On=n(68),Tn=n(71),Pn=n(16);bn||r("227");var An={children:!0,dangerouslySetInnerHTML:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,suppressHydrationWarning:!0,style:!0},In={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=In,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},a=e.DOMAttributeNames||{};e=e.DOMMutationMethods||{};for(var s in n){Rn.hasOwnProperty(s)&&r("48",s);var l=s.toLowerCase(),u=n[s];l={attributeName:l,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:o(u,t.MUST_USE_PROPERTY),hasBooleanValue:o(u,t.HAS_BOOLEAN_VALUE),hasNumericValue:o(u,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(u,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(u,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:o(u,t.HAS_STRING_BOOLEAN_VALUE)},1>=l.hasBooleanValue+l.hasNumericValue+l.hasOverloadedBooleanValue||r("50",s),a.hasOwnProperty(s)&&(l.attributeName=a[s]),i.hasOwnProperty(s)&&(l.attributeNamespace=i[s]),e.hasOwnProperty(s)&&(l.mutationMethod=e[s]),Rn[s]=l}}},Rn={},Mn=In,jn=Mn.MUST_USE_PROPERTY,Nn=Mn.HAS_BOOLEAN_VALUE,Ln=Mn.HAS_NUMERIC_VALUE,Dn=Mn.HAS_POSITIVE_NUMERIC_VALUE,Fn=Mn.HAS_OVERLOADED_BOOLEAN_VALUE,Hn=Mn.HAS_STRING_BOOLEAN_VALUE,Un={Properties:{allowFullScreen:Nn,async:Nn,autoFocus:Nn,autoPlay:Nn,capture:Fn,checked:jn|Nn,cols:Dn,contentEditable:Hn,controls:Nn,default:Nn,defer:Nn,disabled:Nn,download:Fn,draggable:Hn,formNoValidate:Nn,hidden:Nn,loop:Nn,multiple:jn|Nn,muted:jn|Nn,noValidate:Nn,open:Nn,playsInline:Nn,readOnly:Nn,required:Nn,reversed:Nn,rows:Dn,rowSpan:Ln,scoped:Nn,seamless:Nn,selected:jn|Nn,size:Dn,start:Ln,span:Dn,spellCheck:Hn,style:0,tabIndex:0,itemScope:Nn,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Hn},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},Bn=Mn.HAS_STRING_BOOLEAN_VALUE,zn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Wn={Properties:{autoReverse:Bn,externalResourcesRequired:Bn,preserveAlpha:Bn},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:zn.xlink,xlinkArcrole:zn.xlink,xlinkHref:zn.xlink,xlinkRole:zn.xlink,xlinkShow:zn.xlink,xlinkTitle:zn.xlink,xlinkType:zn.xlink,xmlBase:zn.xml,xmlLang:zn.xml,xmlSpace:zn.xml}},Yn=/[\-\:]([a-z])/g;"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 x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(Yn,s);Wn.Properties[t]=0,Wn.DOMAttributeNames[t]=e}),Mn.injectDOMPropertyConfig(Un),Mn.injectDOMPropertyConfig(Wn);var Gn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!==typeof e.invokeGuardedCallback&&r("197"),l=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,i,a,s,u){l.apply(Gn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,i,a,s,l){if(Gn.invokeGuardedCallback.apply(this,arguments),Gn.hasCaughtError()){var u=Gn.clearCaughtError();Gn._hasRethrowError||(Gn._hasRethrowError=!0,Gn._rethrowError=u)}},rethrowCaughtError:function(){return u.apply(Gn,arguments)},hasCaughtError:function(){return Gn._hasCaughtError},clearCaughtError:function(){if(Gn._hasCaughtError){var e=Gn._caughtError;return Gn._caughtError=null,Gn._hasCaughtError=!1,e}r("198")}},qn=null,Kn={},Qn=[],Vn={},Xn={},_n={},Zn=Object.freeze({plugins:Qn,eventNameDispatchConfigs:Vn,registrationNameModules:Xn,registrationNameDependencies:_n,possibleRegistrationNames:null,injectEventPluginOrder:f,injectEventPluginsByName:d}),Jn=null,$n=null,er=null,tr=null,nr={injectEventPluginOrder:f,injectEventPluginsByName:d},rr=Object.freeze({injection:nr,getListener:w,extractEvents:E,enqueueEvents:C,processEventQueue:S}),or=Math.random().toString(36).slice(2),ir="__reactInternalInstance$"+or,ar="__reactEventHandlers$"+or,sr=Object.freeze({precacheFiberNode:function(e,t){t[ir]=e},getClosestInstanceFromNode:x,getInstanceFromNode:function(e){return e=e[ir],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:k,getFiberCurrentPropsFromNode:O,updateFiberProps:function(e,t){e[ar]=t}}),lr=Object.freeze({accumulateTwoPhaseDispatches:N,accumulateTwoPhaseDispatchesSkipTarget:function(e){m(e,R)},accumulateEnterLeaveDispatches:L,accumulateDirectDispatches:function(e){m(e,j)}}),ur=null,cr={_root:null,_startText:null,_fallbackText:null},pr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),fr={type:null,target:null,currentTarget:Cn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};En(U.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Cn.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Cn.thatReturnsTrue)},persist:function(){this.isPersistent=Cn.thatReturnsTrue},isPersistent:Cn.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<pr.length;t++)this[pr[t]]=null}}),U.Interface=fr,U.augmentClass=function(e,t){function n(){}n.prototype=this.prototype;var r=new n;En(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=En({},this.Interface,t),e.augmentClass=this.augmentClass,W(e)},W(U),U.augmentClass(Y,{data:null}),U.augmentClass(G,{data:null});var dr=[9,13,27,32],hr=wn.canUseDOM&&"CompositionEvent"in window,yr=null;wn.canUseDOM&&"documentMode"in document&&(yr=document.documentMode);var mr;if(mr=wn.canUseDOM&&"TextEvent"in window&&!yr){var gr=window.opera;mr=!("object"===typeof gr&&"function"===typeof gr.version&&12>=parseInt(gr.version(),10))}var vr,br=mr,wr=wn.canUseDOM&&(!hr||yr&&8<yr&&11>=yr),Er=String.fromCharCode(32),Cr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Sr=!1,xr=!1,kr={eventTypes:Cr,extractEvents:function(e,t,n,r){var o;if(hr)e:{switch(e){case"topCompositionStart":var i=Cr.compositionStart;break e;case"topCompositionEnd":i=Cr.compositionEnd;break e;case"topCompositionUpdate":i=Cr.compositionUpdate;break e}i=void 0}else xr?q(e,n)&&(i=Cr.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(i=Cr.compositionStart);return i?(wr&&(xr||i!==Cr.compositionStart?i===Cr.compositionEnd&&xr&&(o=F()):(cr._root=r,cr._startText=H(),xr=!0)),i=Y.getPooled(i,t,n,r),o?i.data=o:null!==(o=K(n))&&(i.data=o),N(i),o=i):o=null,(e=br?Q(e,n):V(e,n))?(t=G.getPooled(Cr.beforeInput,t,n,r),t.data=e,N(t)):t=null,[o,t]}},Or=null,Tr=null,Pr=null,Ar={injectFiberControlledHostComponent:function(e){Or=e}},Ir=Object.freeze({injection:Ar,enqueueStateRestore:_,restoreStateIfNeeded:Z}),Rr=!1,Mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};wn.canUseDOM&&(vr=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var jr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Nr=null,Lr=null,Dr=!1;wn.canUseDOM&&(Dr=ne("input")&&(!document.documentMode||9<document.documentMode));var Fr={eventTypes:jr,_isInputEventSupported:Dr,extractEvents:function(e,t,n,r){var o=t?k(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=ce;else if(ee(o))if(Dr)a=me;else{a=he;var s=de}else!(i=o.nodeName)||"input"!==i.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type||(a=ye);if(a&&(a=a(e,t)))return se(a,n,r);s&&s(e,o,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&(e=""+o.value,o.getAttribute("value")!==e&&o.setAttribute("value",e))}};U.augmentClass(ge,{view:null,detail:null});var Hr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};ge.augmentClass(we,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:be,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}});var Ur={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Br={eventTypes:Ur,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?x(t):null):e=null,e===t)return null;var i=null==e?o:k(e);o=null==t?o:k(t);var a=we.getPooled(Ur.mouseLeave,e,n,r);return a.type="mouseleave",a.target=i,a.relatedTarget=o,n=we.getPooled(Ur.mouseEnter,t,n,r),n.type="mouseenter",n.target=o,n.relatedTarget=i,L(a,n,e,t),[a,n]}},zr=bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Wr=[],Yr=!0,Gr=void 0,qr=Object.freeze({get _enabled(){return Yr},get _handleTopLevel(){return Gr},setHandleTopLevel:function(e){Gr=e},setEnabled:Ae,isEnabled:function(){return Yr},trapBubbledEvent:Ie,trapCapturedEvent:Re,dispatchEvent:Me}),Kr={animationend:je("Animation","AnimationEnd"),animationiteration:je("Animation","AnimationIteration"),animationstart:je("Animation","AnimationStart"),transitionend:je("Transition","TransitionEnd")},Qr={},Vr={};wn.canUseDOM&&(Vr=document.createElement("div").style,"AnimationEvent"in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),"TransitionEvent"in window||delete Kr.transitionend.transition);var Xr={topAbort:"abort",topAnimationEnd:Ne("animationend")||"animationend",topAnimationIteration:Ne("animationiteration")||"animationiteration",topAnimationStart:Ne("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:Ne("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},_r={},Zr=0,Jr="_reactListenersID"+(""+Math.random()).slice(2),$r=wn.canUseDOM&&"documentMode"in document&&11>=document.documentMode,eo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},to=null,no=null,ro=null,oo=!1,io={eventTypes:eo,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=Le(i),o=_n.onSelect;for(var a=0;a<o.length;a++){var s=o[a];if(!i.hasOwnProperty(s)||!i[s]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?k(t):window,e){case"topFocus":(ee(i)||"true"===i.contentEditable)&&(to=i,no=t,ro=null);break;case"topBlur":ro=no=to=null;break;case"topMouseDown":oo=!0;break;case"topContextMenu":case"topMouseUp":return oo=!1,Ue(n,r);case"topSelectionChange":if($r)break;case"topKeyDown":case"topKeyUp":return Ue(n,r)}return null}};U.augmentClass(Be,{animationName:null,elapsedTime:null,pseudoElement:null}),U.augmentClass(ze,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ge.augmentClass(We,{relatedTarget:null});var ao={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},so={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"};ge.augmentClass(Ge,{key:function(e){if(e.key){var t=ao[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Ye(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?so[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:be,charCode:function(e){return"keypress"===e.type?Ye(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ye(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),we.augmentClass(qe,{dataTransfer:null}),ge.augmentClass(Ke,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:be}),U.augmentClass(Qe,{propertyName:null,elapsedTime:null,pseudoElement:null}),we.augmentClass(Ve,{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});var lo={},uo={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;t="top"+t,n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t]},lo[e]=n,uo[t]=n});var co={eventTypes:lo,extractEvents:function(e,t,n,r){var o=uo[e];if(!o)return null;switch(e){case"topKeyPress":if(0===Ye(n))return null;case"topKeyDown":case"topKeyUp":e=Ge;break;case"topBlur":case"topFocus":e=We;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":e=we;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":e=qe;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":e=Ke;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":e=Be;break;case"topTransitionEnd":e=Qe;break;case"topScroll":e=ge;break;case"topWheel":e=Ve;break;case"topCopy":case"topCut":case"topPaste":e=ze;break;default:e=U}return t=e.getPooled(o,t,n,r),N(t),t}};Gr=function(e,t,n,r){e=E(e,t,n,r),C(e),S(!1)},nr.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Jn=sr.getFiberCurrentPropsFromNode,$n=sr.getInstanceFromNode,er=sr.getNodeFromInstance,nr.injectEventPluginsByName({SimpleEventPlugin:co,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Fr,SelectEventPlugin:io,BeforeInputEventPlugin:kr});var po=[],fo=-1;new Set;var ho={current:Pn},yo={current:!1},mo=Pn,go=null,vo=null,bo="function"===typeof Symbol&&Symbol.for,wo=bo?Symbol.for("react.element"):60103,Eo=bo?Symbol.for("react.call"):60104,Co=bo?Symbol.for("react.return"):60105,So=bo?Symbol.for("react.portal"):60106,xo=bo?Symbol.for("react.fragment"):60107,ko="function"===typeof Symbol&&Symbol.iterator,Oo=Array.isArray,To=Tt(!0),Po=Tt(!1),Ao={},Io=Object.freeze({default:Nt}),Ro=Io&&Nt||Io,Mo=Ro.default?Ro.default:Ro,jo="object"===typeof performance&&"function"===typeof performance.now,No=void 0;No=jo?function(){return performance.now()}:function(){return Date.now()};var Lo=void 0,Do=void 0;if(wn.canUseDOM)if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var Fo,Ho=null,Uo=!1,Bo=-1,zo=!1,Wo=0,Yo=33,Go=33;Fo=jo?{didTimeout:!1,timeRemaining:function(){var e=Wo-performance.now();return 0<e?e:0}}:{didTimeout:!1,timeRemaining:function(){var e=Wo-Date.now();return 0<e?e:0}};var qo="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===qo){if(Uo=!1,e=No(),0>=Wo-e){if(!(-1!==Bo&&Bo<=e))return void(zo||(zo=!0,requestAnimationFrame(Ko)));Fo.didTimeout=!0}else Fo.didTimeout=!1;Bo=-1,e=Ho,Ho=null,null!==e&&e(Fo)}},!1);var Ko=function(e){zo=!1;var t=e-Wo+Go;t<Go&&Yo<Go?(8>t&&(t=8),Go=t<Yo?Yo:t):Yo=t,Wo=e+Go,Uo||(Uo=!0,window.postMessage(qo,"*"))};Lo=function(e,t){return Ho=e,null!=t&&"number"===typeof t.timeout&&(Bo=No()+t.timeout),zo||(zo=!0,requestAnimationFrame(Ko)),0},Do=function(){Ho=null,Uo=!1,Bo=-1}}else Lo=window.requestIdleCallback,Do=window.cancelIdleCallback;else Lo=function(e){return setTimeout(function(){e({timeRemaining:function(){return 1/0}})})},Do=function(e){clearTimeout(e)};var Qo=/^[: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]*$/,Vo={},Xo={},_o={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Zo=void 0,Jo=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!==_o.svg||"innerHTML"in e)e.innerHTML=t;else{for(Zo=Zo||document.createElement("div"),Zo.innerHTML="<svg>"+t+"</svg>",t=Zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),$o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ei=["Webkit","ms","Moz","O"];Object.keys($o).forEach(function(e){ei.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$o[t]=$o[e]})});var ti=En({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}),ni=_o.html,ri=Cn.thatReturns(""),oi={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ii=Object.freeze({createElement:sn,createTextNode:ln,setInitialProperties:un,diffProperties:cn,updateProperties:pn,diffHydratedProperties:fn,diffHydratedText:dn,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Yt(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 o=n[t];if(o!==e&&o.form===e.form){var i=O(o);i||r("90"),ae(o),Yt(o,i)}}}break;case"textarea":Zt(e,n);break;case"select":null!=(t=n.value)&&Qt(e,!!n.multiple,t,!1)}}});Ar.injectFiberControlledHostComponent(ii);var ai=null,si=null,li=Mo({getRootHostContext:function(e){var t=e.nodeType;switch(t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:en(null,"");break;default:t=8===t?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=en(e,t)}return e},getChildHostContext:function(e,t){return en(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){ai=Yr;var e=xn();if(He(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=window.getSelection&&window.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch(e){t=null;break e}var i=0,a=-1,s=-1,l=0,u=0,c=e,p=null;t:for(;;){for(var f;c!==t||0!==r&&3!==c.nodeType||(a=i+r),c!==o||0!==n&&3!==c.nodeType||(s=i+n),3===c.nodeType&&(i+=c.nodeValue.length),null!==(f=c.firstChild);)p=c,c=f;for(;;){if(c===e)break t;if(p===t&&++l===r&&(a=i),p===o&&++u===n&&(s=i),null!==(f=c.nextSibling))break;c=p,p=c.parentNode}c=f}t=-1===a||-1===s?null:{start:a,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;si={focusedElem:e,selectionRange:t},Ae(!1)},resetAfterCommit:function(){var e=si,t=xn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&On(document.documentElement,n)){if(He(n))if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(window.getSelection){t=window.getSelection();var o=n[D()].length;e=Math.min(r.start,o),r=void 0===r.end?e:Math.min(r.end,o),!t.extend&&e>r&&(o=r,r=e,e=o),o=Fe(n,e);var i=Fe(n,r);if(o&&i&&(1!==t.rangeCount||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==i.node||t.focusOffset!==i.offset)){var a=document.createRange();a.setStart(o.node,o.offset),t.removeAllRanges(),e>r?(t.addRange(a),t.extend(i.node,i.offset)):(a.setEnd(i.node,i.offset),t.addRange(a))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(Tn(n),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}si=null,Ae(ai),ai=null},createInstance:function(e,t,n,r,o){return e=sn(e,t,n,r),e[ir]=o,e[ar]=t,e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){un(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return cn(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"===typeof t.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=ln(e,t),e[ir]=r,e},now:No,mutation:{commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){e[ar]=o,pn(e,t,n,r,o)},resetTextContent:function(e){e.textContent=""},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){8===e.nodeType?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)}},hydration:{canHydrateInstance:function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e},canHydrateTextInstance:function(e,t){return""===t||3!==e.nodeType?null:e},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,i){return e[ir]=i,e[ar]=n,fn(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return e[ir]=n,dn(e,t)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:Lo,cancelDeferredCallback:Do,useSyncScheduling:!0});J=li.batchedUpdates,vn.prototype.render=function(e,t){li.updateContainer(e,this._reactRootContainer,null,t)},vn.prototype.unmount=function(e){li.updateContainer(null,this._reactRootContainer,null,e)};var ui={createPortal:gn,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(t)return li.findHostInstance(t);"function"===typeof e.render?r("188"):r("213",Object.keys(e))},hydrate:function(e,t,n){return mn(null,e,t,!0,n)},render:function(e,t,n){return mn(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,o){return(null==e||void 0===e._reactInternalFiber)&&r("38"),mn(e,t,n,!1,o)},unmountComponentAtNode:function(e){return hn(e)||r("40"),!!e._reactRootContainer&&(li.unbatchedUpdates(function(){mn(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:gn,unstable_batchedUpdates:$,unstable_deferredUpdates:li.deferredUpdates,flushSync:li.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:rr,EventPluginRegistry:Zn,EventPropagators:lr,ReactControlledComponent:Ir,ReactDOMComponentTree:sr,ReactDOMEventListener:qr}};li.injectIntoDevTools({findFiberByHostInstance:x,bundleType:0,version:"16.2.0",rendererPackageName:"react-dom"});var ci=Object.freeze({default:ui}),pi=ci&&ui||ci;e.exports=pi.default?pi.default:pi},function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";var r=n(12),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(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}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;e.exports=o},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(69);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(70);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"===typeof n.Node?e instanceof n.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?l:s:u&&u in Object(e)?Object(i.a)(e):Object(a.a)(e)}var o=n(29),i=n(75),a=n(76),s="[object Null]",l="[object Undefined]",u=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";var r=n(74),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(11))},function(e,t,n){"use strict";function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}var o=n(29),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=o.a?o.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return i.call(e)}var o=Object.prototype,i=o.toString;t.a=r},function(e,t,n){"use strict";var r=n(78),o=Object(r.a)(Object.getPrototypeOf,Object);t.a=o},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";(function(e,r){var o,i=n(82);o="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(i.a)(o);t.a=a}).call(t,n(11),n(81)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.a=r},function(e,t,n){"use strict";function r(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function o(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:a.a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function i(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var a=t[i];"function"===typeof e[a]&&(n[a]=e[a])}var s=Object.keys(n),l=void 0;try{o(n)}catch(e){l=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var o=!1,i={},a=0;a<s.length;a++){var u=s[a],c=n[u],p=e[u],f=c(p,t);if("undefined"===typeof f){var d=r(u,t);throw new Error(d)}i[u]=f,o=o||f!==p}return o?i:e}}t.a=i;var a=n(27);n(28),n(30)},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"===typeof e)return r(e,t);if("object"!==typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},i=0;i<n.length;i++){var a=n[i],s=e[a];"function"===typeof s&&(o[a]=r(s,t))}return o}t.a=o},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,a){var s=e(n,r,a),l=s.dispatch,u=[],c={getState:s.getState,dispatch:function(e){return l(e)}};return u=t.map(function(e){return e(c)}),l=o.a.apply(void 0,u)(s.dispatch),i({},s,{dispatch:l})}}}t.a=r;var o=n(31),i=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}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(87),a=n(116),s=n(158),l=n(49),u=n.n(l),c=n(167),p=function(){return o.a.createElement(i.a,null,o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-6 col-md-2"},o.a.createElement("img",{className:"img-fluid",src:u.a,alt:"logo"})),o.a.createElement(c.a,null)),o.a.createElement("ul",{className:"header "},o.a.createElement("li",null,o.a.createElement(i.b,{exact:!0,className:"title",activeStyle:{fontWeight:"bold",color:"#e0aa00",border:"1px solid #e0aa00",borderRadius:"5px",borderBottom:"0px"},to:"/reto-redbus"},"Banca por internet")),o.a.createElement("li",null,o.a.createElement(i.b,{className:"title",activeStyle:{fontWeight:"bold",color:"#e0aa00",border:"1px solid #e0aa00",borderRadius:"5px",borderBottom:"0px"},to:"/reto-redbus-efectivo"},"Pagar en efectivo"))),o.a.createElement("div",{className:"content"},o.a.createElement(i.c,{exact:!0,path:"/reto-redbus",component:a.a}),o.a.createElement(i.c,{path:"/reto-redbus-efectivo",component:s.a}))))};t.a=p},function(e,t,n){"use strict";var r=n(88);n.d(t,"a",function(){return r.a});var o=(n(92),n(36),n(94),n(97));n.d(t,"b",function(){return o.a});var i=(n(100),n(102),n(37));n.d(t,"c",function(){return i.a});n(19),n(108),n(110),n(112),n(113)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),l=n(0),u=n.n(l),c=n(2),p=n.n(c),f=n(91),d=n.n(f),h=n(19),y=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=i=o(this,e.call.apply(e,[this].concat(l))),i.history=d()(i.props),a=n,o(i,a)}return i(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(u.a.Component);y.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=y},function(e,t,n){"use strict";var r=n(12),o=n(32),i=n(90);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"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")}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,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,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";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),s=r(a),l=n(3),u=r(l),c=n(17),p=n(7),f=n(18),d=r(f),h=n(35),y=function(){try{return window.history.state||{}}catch(e){return{}}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),a=e.forceRefresh,l=void 0!==a&&a,f=e.getUserConfirmation,m=void 0===f?h.getConfirmation:f,g=e.keyLength,v=void 0===g?6:g,b=e.basename?(0,p.stripTrailingSlash)((0,p.addLeadingSlash)(e.basename)):"",w=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname,a=o.search,l=o.hash,u=i+a+l;return(0,s.default)(!b||(0,p.hasBasename)(u,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+u+'" to begin with "'+b+'".'),b&&(u=(0,p.stripBasename)(u,b)),(0,c.createLocation)(u,r,n)},E=function(){return Math.random().toString(36).substr(2,v)},C=(0,d.default)(),S=function(e){i(W,e),W.length=t.length,C.notifyListeners(W.location,W.action)},x=function(e){(0,h.isExtraneousPopstateEvent)(e)||T(w(e.state))},k=function(){T(w(y()))},O=!1,T=function(e){if(O)O=!1,S();else{C.confirmTransitionTo(e,"POP",m,function(t){t?S({action:"POP",location:e}):P(e)})}},P=function(e){var t=W.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(O=!0,N(o))},A=w(y()),I=[A.key],R=function(e){return b+(0,p.createPath)(e)},M=function(e,r){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,r,E(),W.location);C.confirmTransitionTo(i,"PUSH",m,function(e){if(e){var r=R(i),o=i.key,a=i.state;if(n)if(t.pushState({key:o,state:a},null,r),l)window.location.href=r;else{var u=I.indexOf(W.location.key),c=I.slice(0,-1===u?0:u+1);c.push(i.key),I=c,S({action:"PUSH",location:i})}else(0,s.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},j=function(e,r){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,r,E(),W.location);C.confirmTransitionTo(i,"REPLACE",m,function(e){if(e){var r=R(i),o=i.key,a=i.state;if(n)if(t.replaceState({key:o,state:a},null,r),l)window.location.replace(r);else{var u=I.indexOf(W.location.key);-1!==u&&(I[u]=i.key),S({action:"REPLACE",location:i})}else(0,s.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},N=function(e){t.go(e)},L=function(){return N(-1)},D=function(){return N(1)},F=0,H=function(e){F+=e,1===F?((0,h.addEventListener)(window,"popstate",x),r&&(0,h.addEventListener)(window,"hashchange",k)):0===F&&((0,h.removeEventListener)(window,"popstate",x),r&&(0,h.removeEventListener)(window,"hashchange",k))},U=!1,B=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=C.setPrompt(e);return U||(H(1),U=!0),function(){return U&&(U=!1,H(-1)),t()}},z=function(e){var t=C.appendListener(e);return H(1),function(){H(-1),t()}},W={length:t.length,action:"POP",location:A,createHref:R,push:M,replace:j,go:N,goBack:L,goForward:D,block:B,listen:z};return W};t.default=m},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),l=n(0),u=n.n(l),c=n(2),p=n.n(c),f=n(93),d=n.n(f),h=n(19),y=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=i=o(this,e.call.apply(e,[this].concat(l))),i.history=d()(i.props),a=n,o(i,a)}return i(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(u.a.Component);y.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),a=r(i),s=n(3),l=r(s),u=n(17),c=n(7),p=n(18),f=r(p),d=n(35),h={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+(0,c.stripLeadingSlash)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c.stripLeadingSlash,decodePath:c.addLeadingSlash},slash:{encodePath:c.addLeadingSlash,decodePath:c.addLeadingSlash}},y=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},m=function(e){return window.location.hash=e},g=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(d.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=e.getUserConfirmation,i=void 0===r?d.getConfirmation:r,s=e.hashType,p=void 0===s?"slash":s,v=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",b=h[p],w=b.encodePath,E=b.decodePath,C=function(){var e=E(y());return(0,a.default)(!v||(0,c.hasBasename)(e,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+v+'".'),v&&(e=(0,c.stripBasename)(e,v)),(0,u.createLocation)(e)},S=(0,f.default)(),x=function(e){o(q,e),q.length=t.length,S.notifyListeners(q.location,q.action)},k=!1,O=null,T=function(){var e=y(),t=w(e);if(e!==t)g(t);else{var n=C(),r=q.location;if(!k&&(0,u.locationsAreEqual)(r,n))return;if(O===(0,c.createPath)(n))return;O=null,P(n)}},P=function(e){if(k)k=!1,x();else{S.confirmTransitionTo(e,"POP",i,function(t){t?x({action:"POP",location:e}):A(e)})}},A=function(e){var t=q.location,n=j.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=j.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(k=!0,F(o))},I=y(),R=w(I);I!==R&&g(R);var M=C(),j=[(0,c.createPath)(M)],N=function(e){return"#"+w(v+(0,c.createPath)(e))},L=function(e,t){(0,a.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,u.createLocation)(e,void 0,void 0,q.location);S.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=(0,c.createPath)(n),r=w(v+t);if(y()!==r){O=t,m(r);var o=j.lastIndexOf((0,c.createPath)(q.location)),i=j.slice(0,-1===o?0:o+1);i.push(t),j=i,x({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),x()}})},D=function(e,t){(0,a.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,u.createLocation)(e,void 0,void 0,q.location);S.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=(0,c.createPath)(n),r=w(v+t);y()!==r&&(O=t,g(r));var o=j.indexOf((0,c.createPath)(q.location));-1!==o&&(j[o]=t),x({action:"REPLACE",location:n})}})},F=function(e){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},H=function(){return F(-1)},U=function(){return F(1)},B=0,z=function(e){B+=e,1===B?(0,d.addEventListener)(window,"hashchange",T):0===B&&(0,d.removeEventListener)(window,"hashchange",T)},W=!1,Y=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=S.setPrompt(e);return W||(z(1),W=!0),function(){return W&&(W=!1,z(-1)),t()}},G=function(e){var t=S.appendListener(e);return z(1),function(){z(-1),t()}},q={length:t.length,action:"POP",location:M,createHref:N,push:L,replace:D,go:F,goBack:H,goForward:U,block:Y,listen:G};return q};t.default=v},function(e,t,n){"use strict";var r=n(95);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),l=n(0),u=n.n(l),c=n(2),p=n.n(c),f=n(96),d=n.n(f),h=n(20),y=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=i=o(this,e.call.apply(e,[this].concat(l))),i.history=d()(i.props),a=n,o(i,a)}return i(t,e),t.prototype.componentWillMount=function(){s()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(h.a,{history:this.history,children:this.props.children})},t}(u.a.Component);y.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),s=r(a),l=n(7),u=n(17),c=n(18),p=r(c),f=function(e,t,n){return Math.min(Math.max(e,t),n)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,a=e.initialIndex,c=void 0===a?0:a,d=e.keyLength,h=void 0===d?6:d,y=(0,p.default)(),m=function(e){i(A,e),A.length=A.entries.length,y.notifyListeners(A.location,A.action)},g=function(){return Math.random().toString(36).substr(2,h)},v=f(c,0,r.length-1),b=r.map(function(e){return"string"===typeof e?(0,u.createLocation)(e,void 0,g()):(0,u.createLocation)(e,void 0,e.key||g())}),w=l.createPath,E=function(e,n){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,u.createLocation)(e,n,g(),A.location);y.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=A.index,n=t+1,o=A.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),m({action:"PUSH",location:r,index:n,entries:o})}})},C=function(e,n){(0,s.default)(!("object"===("undefined"===typeof e?"undefined":o(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,u.createLocation)(e,n,g(),A.location);y.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(A.entries[A.index]=r,m({action:"REPLACE",location:r}))})},S=function(e){var n=f(A.index+e,0,A.entries.length-1),r=A.entries[n];y.confirmTransitionTo(r,"POP",t,function(e){e?m({action:"POP",location:r,index:n}):m()})},x=function(){return S(-1)},k=function(){return S(1)},O=function(e){var t=A.index+e;return t>=0&&t<A.entries.length},T=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(e)},P=function(e){return y.appendListener(e)},A={length:b.length,action:"POP",location:b[v],index:v,entries:b,createHref:w,push:E,replace:C,go:S,goBack:x,goForward:k,canGo:O,block:T,listen:P};return A};t.default=d},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(0),i=n.n(o),a=n(2),s=n.n(a),l=n(37),u=n(36),c=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},p="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},f=function(e){var t=e.to,n=e.exact,o=e.strict,a=e.location,s=e.activeClassName,f=e.className,d=e.activeStyle,h=e.style,y=e.isActive,m=e.ariaCurrent,g=r(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return i.a.createElement(l.a,{path:"object"===("undefined"===typeof t?"undefined":p(t))?t.pathname:t,exact:n,strict:o,location:a,children:function(e){var n=e.location,r=e.match,o=!!(y?y(r,n):r);return i.a.createElement(u.a,c({to:t,className:o?[f,s].filter(function(e){return e}).join(" "):f,style:o?c({},h,d):h,"aria-current":o&&m},g))}})};f.propTypes={to:u.a.propTypes.to,exact:s.a.bool,strict:s.a.bool,location:s.a.object,activeClassName:s.a.string,className:s.a.string,activeStyle:s.a.object,style:s.a.object,isActive:s.a.func,ariaCurrent:s.a.oneOf(["page","step","location","true"])},f.defaultProps={activeClassName:"active",ariaCurrent:"true"},t.a=f},function(e,t,n){function r(e,t){for(var n,r=[],o=0,i=0,a="",s=t&&t.delimiter||"/";null!=(n=v.exec(e));){var c=n[0],p=n[1],f=n.index;if(a+=e.slice(i,f),i=f+c.length,p)a+=p[1];else{var d=e[i],h=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];a&&(r.push(a),a="");var E=null!=h&&null!=d&&d!==h,C="+"===b||"*"===b,S="?"===b||"*"===b,x=n[2]||s,k=m||g;r.push({name:y||o++,prefix:h||"",delimiter:x,optional:S,repeat:C,partial:E,asterisk:!!w,pattern:k?u(k):w?".*":"[^"+l(x)+"]+?"})}}return i<e.length&&(a+=e.substr(i)),a&&r.push(a),r}function o(e,t){return s(r(e,t))}function i(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function a(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(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,r){for(var o="",s=n||{},l=r||{},u=l.pretty?i:encodeURIComponent,c=0;c<e.length;c++){var p=e[c];if("string"!==typeof p){var f,d=s[p.name];if(null==d){if(p.optional){p.partial&&(o+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(g(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!t[c].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?p.prefix:p.delimiter)+f}}else{if(f=p.asterisk?a(d):u(d),!t[c].test(f))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+f+'"');o+=p.prefix+f}}else o+=p}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function f(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 c(e,t)}function d(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(m(e[o],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",p(n)),t)}function h(e,t,n){return y(r(e,n),t,n)}function y(e,t,n){g(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,i="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)i+=l(s);else{var u=l(s.prefix),f="(?:"+s.pattern+")";t.push(s),s.repeat&&(f+="(?:"+u+f+")*"),f=s.optional?s.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")",i+=f}}var d=l(n.delimiter||"/"),h=i.slice(-d.length)===d;return r||(i=(h?i.slice(0,-d.length):i)+"(?:"+d+"(?=$))?"),i+=o?"$":r&&h?"":"(?="+d+"|$)",c(new RegExp("^"+i,p(n)),t)}function m(e,t,n){return g(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?f(e,t):g(e)?d(e,t,n):h(e,t,n)}var g=n(99);e.exports=m,e.exports.parse=r,e.exports.compile=o,e.exports.tokensToFunction=s,e.exports.tokensToRegExp=y;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},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(101);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(2),u=n.n(l),c=n(3),p=n.n(c),f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(s.a.Component);f.propTypes={when:u.a.bool,message:u.a.oneOfType([u.a.func,u.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:u.a.shape({history:u.a.shape({block:u.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,n){"use strict";var r=n(103);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(2),u=n.n(l),c=n(1),p=n.n(c),f=n(3),d=n.n(f),h=n(104),y=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(h.a)(e.to),n=Object(h.a)(this.props.to);if(Object(h.b)(t,n))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"');this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(s.a.Component);y.propTypes={push:u.a.bool,from:u.a.string,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired},y.defaultProps={push:!1},y.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired}).isRequired,staticContext:u.a.object}).isRequired},t.a=y},function(e,t,n){"use strict";var r=(n(105),n(106),n(107),n(13));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return r.b});n(8)},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(3));n.n(o),n(13),n(8),n(22),n(39),"function"===typeof Symbol&&Symbol.iterator,Object.assign},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),n(3)),i=(n.n(o),n(13),n(8));n(22),n(39),Object.assign,i.f,i.a,i.a,i.a},function(e,t,n){"use strict";var r=n(1);n.n(r),n(8),n(13),n(22),"function"===typeof Symbol&&Symbol.iterator,Object.assign},function(e,t,n){"use strict";var r=n(109);r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(1),l=n.n(s),u=n(3),c=n.n(u),p=n(0),f=n.n(p),d=n(2),h=n.n(d),y=n(7),m=(n.n(y),n(20)),g=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},v=function(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return{pathname:n,search:"?"===o?"":o,hash:"#"===a?"":a}},b=function(e,t){return e?g({},t,{pathname:Object(y.addLeadingSlash)(e)+t.pathname}):t},w=function(e,t){if(!e)return t;var n=Object(y.addLeadingSlash)(e);return 0!==t.pathname.indexOf(n)?t:g({},t,{pathname:t.pathname.substr(n.length)})},E=function(e){return"string"===typeof e?Object(y.parsePath)(e):v(e)},C=function(e){return"string"===typeof e?e:Object(y.createPath)(e)},S=function(e){return function(){c()(!1,"You cannot %s with <StaticRouter>",e)}},x=function(){},k=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.createHref=function(e){return Object(y.addLeadingSlash)(r.props.basename+C(e))},r.handlePush=function(e){var t=r.props,n=t.basename,o=t.context;o.action="PUSH",o.location=b(n,E(e)),o.url=C(o.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,o=t.context;o.action="REPLACE",o.location=b(n,E(e)),o.url=C(o.location)},r.handleListen=function(){return x},r.handleBlock=function(){return x},a=n,i(r,a)}return a(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){l()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),o=r(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:w(t,E(n)),push:this.handlePush,replace:this.handleReplace,go:S("go"),goBack:S("goBack"),goForward:S("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(m.a,g({},o,{history:i}))},t}(f.a.Component);k.propTypes={basename:h.a.string,context:h.a.object.isRequired,location:h.a.oneOfType([h.a.string,h.a.object])},k.defaultProps={basename:"",location:"/"},k.childContextTypes={router:h.a.object.isRequired},t.a=k},function(e,t,n){"use strict";var r=n(111);r.a},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=n.n(a),l=n(2),u=n.n(l),c=n(1),p=n.n(c),f=n(3),d=n.n(f),h=n(21),y=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,o=void 0;return s.a.Children.forEach(t,function(t){if(s.a.isValidElement(t)){var i=t.props,a=i.path,l=i.exact,u=i.strict,c=i.sensitive,p=i.from,f=a||p;null==r&&(o=t,r=f?Object(h.a)(n.pathname,{path:f,exact:l,strict:u,sensitive:c}):e.match)}}),r?s.a.cloneElement(o,{location:n,computedMatch:r}):null},t}(s.a.Component);y.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},y.propTypes={children:u.a.node,location:u.a.object},t.a=y},function(e,t,n){"use strict";var r=n(21);r.a},function(e,t,n){"use strict";var r=n(114);r.a},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(0),i=n.n(o),a=n(2),s=n.n(a),l=n(115),u=n.n(l),c=n(38),p=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},f=function(e){var t=function(t){var n=t.wrappedComponentRef,o=r(t,["wrappedComponentRef"]);return i.a.createElement(c.a,{render:function(t){return i.a.createElement(e,p({},o,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:s.a.func},u()(t,e)};t.a=f},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,s=a&&a(Object);return function l(u,c,p){if("string"!==typeof c){if(s){var f=a(c);f&&f!==s&&l(u,f,p)}var d=r(c);o&&(d=d.concat(o(c)));for(var h=0;h<d.length;++h){var y=d[h];if(!e[y]&&!t[y]&&(!p||!p[y])){var m=i(c,y);try{n(u,y,m)}catch(e){}}}return u}return u}})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(40),a=n(119),s=n(155),l=n(48),u=function(){return o.a.createElement("div",null,o.a.createElement(i.a,null),o.a.createElement(a.a,null),o.a.createElement(s.a,null),o.a.createElement(l.a,null))};t.a=u},function(e,t,n){e.exports=n.p+"static/media/clock.039e2d98.png"},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(120),a=n(153),s=function(){return o.a.createElement("div",{className:"place-pay"},o.a.createElement("span",{className:"text"},"Selecciona d\xf3nde quieras pagar"),o.a.createElement(i.a,null),o.a.createElement("span",{className:"text"},"Puedes paga desde la Web o App m\xf3vil del Banco"),o.a.createElement(a.a,null))};t.a=s},function(e,t,n){"use strict";function r(e){return{dataOnline:e.data}}function o(e){return Object(l.bindActionCreators)({onItemClick:s.a},e)}var i=n(9),a=(n.n(i),n(135)),s=n(47),l=n(6);t.a=Object(i.connect)(r,o)(a.a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s=n(0),l=n(2),u=r(l),c=n(41),p=r(c),f=n(42),d=(r(f),function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component));t.default=d,d.propTypes={store:p.default.isRequired,children:u.default.element.isRequired},d.childContextTypes={store:p.default.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.displayName||e.name||"Component"}function l(e,t){try{return e.apply(t)}catch(e){return T.value=e,T}}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Boolean(e),f=e||x,h=void 0;h="function"===typeof t?t:t?(0,g.default)(t):k;var m=n||O,v=r.pure,b=void 0===v||v,w=r.withRef,C=void 0!==w&&w,A=b&&m!==O,I=P++;return function(e){function t(e,t,n){var r=m(e,t,n);return r}var n="Connect("+s(e)+")",r=function(r){function s(e,t){o(this,s);var a=i(this,r.call(this,e,t));a.version=I,a.store=e.store||t.store,(0,S.default)(a.store,'Could not find "store" in either the context or props of "'+n+'". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "'+n+'".');var l=a.store.getState();return a.state={storeState:l},a.clearCache(),a}return a(s,r),s.prototype.shouldComponentUpdate=function(){return!b||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},s.prototype.configureFinalMapState=function(e,t){var n=f(e.getState(),t),r="function"===typeof n;return this.finalMapStateToProps=r?n:f,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},s.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},s.prototype.configureFinalMapDispatch=function(e,t){var n=h(e.dispatch,t),r="function"===typeof n;return this.finalMapDispatchToProps=r?n:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},s.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,y.default)(e,this.stateProps))&&(this.stateProps=e,!0)},s.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,y.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},s.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&A&&(0,y.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},s.prototype.isSubscribed=function(){return"function"===typeof this.unsubscribe},s.prototype.trySubscribe=function(){u&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){b&&(0,y.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!b||t!==e){if(b&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===T&&(this.statePropsPrecalculationError=T.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},s.prototype.getWrappedInstance=function(){return(0,S.default)(C,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,s=!0;b&&i&&(a=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var l=!1,u=!1;r?l=!0:a&&(l=this.updateStatePropsIfNeeded()),s&&(u=this.updateDispatchPropsIfNeeded());return!(!!(l||u||t)&&this.updateMergedPropsIfNeeded())&&i?i:(this.renderedElement=C?(0,p.createElement)(e,c({},this.mergedProps,{ref:"wrappedInstance"})):(0,p.createElement)(e,this.mergedProps),this.renderedElement)},s}(p.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:d.default},r.propTypes={store:d.default},(0,E.default)(r,e)}}t.__esModule=!0;var c=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};t.default=u;var p=n(0),f=n(41),d=r(f),h=n(123),y=r(h),m=n(124),g=r(m),v=n(42),b=(r(v),n(125)),w=(r(b),n(134)),E=r(w),C=n(3),S=r(C),x=function(e){return{}},k=function(e){return{dispatch:e}},O=function(e,t,n){return c({},n,e,t)},T={value:null},P=0},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!o.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0}t.__esModule=!0,t.default=r},function(e,t,n){"use strict";function r(e){return function(t){return(0,o.bindActionCreators)(e,t)}}t.__esModule=!0,t.default=r;var o=n(6)},function(e,t,n){function r(e){if(!a(e)||o(e)!=s)return!1;var t=i(e);if(null===t)return!0;var n=p.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var o=n(126),i=n(131),a=n(133),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,p=u.hasOwnProperty,f=c.call(Object);e.exports=r},function(e,t,n){function r(e){return null==e?void 0===e?l:s:u&&u in Object(e)?i(e):a(e)}var o=n(43),i=n(129),a=n(130),s="[object Null]",l="[object Undefined]",u=o?o.toStringTag:void 0;e.exports=r},function(e,t,n){var r=n(128),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(11))},function(e,t,n){function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[l]=n:delete e[l]),o}var o=n(43),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=o?o.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return o.call(e)}var r=Object.prototype,o=r.toString;e.exports=n},function(e,t,n){var r=n(132),o=r(Object.getPrototypeOf,Object);e.exports=o},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"===typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!==typeof t){var a=Object.getOwnPropertyNames(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;++s)if(!r[a[s]]&&!o[a[s]]&&(!n||!n[a[s]]))try{e[a[s]]=t[a[s]]}catch(e){}}return e}},function(e,t,n){"use strict";function r(e){var t=e.className,n=e.style,r=e.onClick;return a.a.createElement("div",{className:t,style:Object.assign({},n,{top:"8%"}),onClick:r},a.a.createElement("i",{className:"fas fa-chevron-right"}))}function o(e){var t=e.className,n=e.style,r=e.onClick;return a.a.createElement("div",{className:t,style:Object.assign({},n,{top:"8%"}),onClick:r},a.a.createElement("i",{className:"fas fa-chevron-left"}))}var i=n(0),a=n.n(i),s=n(136),l=n(44),u=n.n(l),c={arrows:!0,infinite:!0,speed:500,slidesToShow:5,slidesToScroll:1,nextArrow:a.a.createElement(r,null),prevArrow:a.a.createElement(o,null),responsive:[{breakpoint:768,settings:{slidesToShow:3}}]},p=function(e){var t=e.dataOnline,n=e.onItemClick;return a.a.createElement(u.a,Object.assign({className:"ul"},c),t.map(function(e){return a.a.createElement(s.a,Object.assign({key:e.name,onClick:function(){return n(e)}},e))}))};t.a=p},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=function(e){var t=e.url,n=e.name,r=e.onClick;e.style;return o.a.createElement("li",{onClick:r},o.a.createElement("img",{className:"img-agents",src:t,alt:n}))};t.a=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=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},l=n(0),u=r(l),c=n(138),p=n(4),f=r(p),d=n(146),h=r(d),y=n(45),m=r(y),g=n(148),v=r(g),b=v.default&&n(149),w=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.innerSliderRefHandler=function(e){return r.innerSlider=e},r.slickPrev=function(){return r.innerSlider.slickPrev()},r.slickNext=function(){return r.innerSlider.slickNext()},r.slickGoTo=function(e){return r.innerSlider.slickGoTo(e)},r.slickPause=function(){return r.innerSlider.pause()},r.slickPlay=function(){return r.innerSlider.autoPlay()},r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return a(t,e),t.prototype.media=function(e,t){b.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})},t.prototype.componentWillMount=function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var o=void 0;o=0===r?(0,h.default)({minWidth:0,maxWidth:n}):(0,h.default)({minWidth:t[r-1]+1,maxWidth:n}),v.default&&e.media(o,function(){e.setState({breakpoint:n})})});var n=(0,h.default)({minWidth:t.slice(-1)[0]});v.default&&this.media(n,function(){e.setState({breakpoint:null})})}},t.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(e){b.unregister(e.query,e.handler)})},t.prototype.render=function(){var e,t,n=this;this.state.breakpoint?(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}),e="unslick"===t[0].settings?"unslick":(0,f.default)({},m.default,this.props,t[0].settings)):e=(0,f.default)({},m.default,this.props),e.centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=u.default.Children.toArray(this.props.children);return r=r.filter(function(e){return"string"===typeof e?!!e.trim():!!e}),"unslick"===e?(e=(0,f.default)({unslick:!0},m.default,this.props),e.slidesToShow=r.length,e.className+=" unslicked"):r.length<=e.slidesToShow&&(e.unslick=!0,e.slidesToShow=r.length,e.className+=" unslicked"),u.default.createElement(c.InnerSlider,s({ref:this.innerSliderRefHandler},e),r)},t}(u.default.Component);t.default=w},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.InnerSlider=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(0),a=r(i),s=n(139),l=r(s),u=n(25),c=r(u),p=n(140),f=r(p),d=n(45),h=(r(d),n(141)),y=r(h),m=n(15),g=r(m),v=n(4),b=r(v),w=n(10),E=n(23),C=n(143),S=n(144),x=n(145);t.InnerSlider=(0,y.default)({displayName:"InnerSlider",mixins:[c.default,l.default],list:null,track:null,listRefHandler:function(e){this.list=e},trackRefHandler:function(e){this.track=e},getInitialState:function(){return o({},f.default,{currentSlide:this.props.initialSlide})},componentWillMount:function(){if(this.props.init&&this.props.init(),this.props.lazyLoad){var e=(0,w.getOnDemandLazySlides)((0,b.default)({},this.props,this.state));e.length>0&&(this.setState(function(t,n){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),this.props.onLazyLoad&&this.props.onLazyLoad(e))}},componentDidMount:function(){var e=this,t=(0,b.default)({listRef:this.list,trackRef:this.track},this.props),n=(0,w.initializedState)(t);(0,b.default)(t,{slideIndex:n.currentSlide},n);var r=(0,E.getTrackLeft)(t);(0,b.default)(t,{left:r});var o=(0,E.getTrackCSS)(t);n.trackStyle=o,this.setState(n,function(){e.adaptHeight(),e.autoPlay()}),window&&(window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized))},componentWillUnmount:function(){this.animationEndCallback&&clearTimeout(this.animationEndCallback),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer)},componentWillReceiveProps:function(e){var t=this,n=(0,b.default)({listRef:this.list,trackRef:this.track},e,this.state),r=(0,w.initializedState)(n);(0,b.default)(n,{slideIndex:r.currentSlide},r);var o=(0,E.getTrackLeft)(n);(0,b.default)(n,{left:o});var i=(0,E.getTrackCSS)(n);a.default.Children.count(this.props.children)!==a.default.Children.count(e.children)&&(r.trackStyle=i),this.setState(r,function(){t.state.currentSlide>=a.default.Children.count(e.children)&&t.changeSlide({message:"index",index:a.default.Children.count(e.children)-e.slidesToShow,currentSlide:t.state.currentSlide}),e.autoplay?t.autoPlay(e.autoplay):t.pause()})},componentDidUpdate:function(){var e=this;if(document.querySelectorAll(".slick-slide img").forEach(function(t){t.onload||(t.onload=function(){return setTimeout(function(){return e.update(e.props)},e.props.speed)})}),this.props.reInit&&this.props.reInit(),this.props.lazyLoad){var t=(0,w.getOnDemandLazySlides)((0,b.default)({},this.props,this.state));t.length>0&&(this.setState(function(e,n){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),this.props.onLazyLoad&&this.props.onLazyLoad(t))}this.adaptHeight()},onWindowResized:function(){this.update(this.props),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},slickPrev:function(){var e=this;setTimeout(function(){return e.changeSlide({message:"previous"})},0)},slickNext:function(){var e=this;setTimeout(function(){return e.changeSlide({message:"next"})},0)},slickGoTo:function(e){var t=this;e=Number(e),!isNaN(e)&&setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide})},0)},render:function(){var e=(0,g.default)("slick-initialized","slick-slider",this.props.className,{"slick-vertical":this.props.vertical}),t=(0,b.default)({},this.props,this.state),n=(0,w.extractObject)(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]);n.focusOnSelect=this.props.focusOnSelect?this.selectHandler:null;var r;if(!0===this.props.dots&&this.state.slideCount>=this.props.slidesToShow){var i=(0,w.extractObject)(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]);i.clickHandler=this.changeSlide,r=a.default.createElement(S.Dots,i)}var s,l,u=(0,w.extractObject)(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=this.changeSlide,this.props.arrows&&(s=a.default.createElement(x.PrevArrow,u),l=a.default.createElement(x.NextArrow,u));var c=null;this.props.vertical&&(c={height:this.state.listHeight});var p=null;!1===this.props.vertical?!0===this.props.centerMode&&(p={padding:"0px "+this.props.centerPadding}):!0===this.props.centerMode&&(p={padding:this.props.centerPadding+" 0px"});var f=(0,b.default)({},c,p),d={className:"slick-list",style:f,onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null,onKeyDown:this.props.accessibility?this.keyHandler:null},h={className:e,onMouseEnter:this.onInnerSliderEnter,onMouseLeave:this.onInnerSliderLeave,onMouseOver:this.onInnerSliderOver,dir:"ltr"};return this.props.unslick&&(d={className:"slick-list"},h={className:e}),a.default.createElement("div",h,this.props.unslick?"":s,a.default.createElement("div",o({ref:this.listRefHandler},d),a.default.createElement(C.Track,o({ref:this.trackRefHandler},n),this.props.children)),this.props.unslick?"":l,this.props.unslick?"":r)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(23),i=n(25),a=(r(i),n(4)),s=r(a),l=n(5),u=r(l),c=n(24),p=n(10),f={changeSlide:function(e){var t,n,r,o,i,a=this.props,s=a.slidesToScroll,l=a.slidesToShow,u=a.centerMode,p=a.rtl,f=this.state,d=f.slideCount,h=f.currentSlide;if(o=d%s!==0,t=o?0:(d-h)%s,"previous"===e.message)r=0===t?s:l-t,i=h-r,this.props.lazyLoad&&!this.props.infinite&&(n=h-r,i=-1===n?d-1:n);else if("next"===e.message)r=0===t?s:t,i=h+r,this.props.lazyLoad&&!this.props.infinite&&(i=(h+s)%d+t);else if("dots"===e.message){if((i=e.index*e.slidesToScroll)===e.currentSlide)return}else if("children"===e.message){if((i=e.index)===e.currentSlide)return;if(this.props.infinite){var y=(0,c.siblingDirection)({currentSlide:h,targetSlide:i,slidesToShow:l,centerMode:u,slideCount:d,rtl:p});i>e.currentSlide&&"left"===y?i-=d:i<e.currentSlide&&"right"===y&&(i+=d)}}else if("index"===e.message&&(i=Number(e.index))===e.currentSlide)return;this.slideHandler(i)},keyHandler:function(e){e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===this.props.accessibility?this.changeSlide({message:!0===this.props.rtl?"next":"previous"}):39===e.keyCode&&!0===this.props.accessibility&&this.changeSlide({message:!0===this.props.rtl?"previous":"next"}))},selectHandler:function(e){this.changeSlide(e)},swipeStart:function(e){"IMG"===e.target.tagName&&e.preventDefault();var t,n;!1!==this.props.swipe&&(!1===this.props.draggable&&-1!==e.type.indexOf("mouse")||(t=void 0!==e.touches?e.touches[0].pageX:e.clientX,n=void 0!==e.touches?e.touches[0].pageY:e.clientY,this.setState({dragging:!0,touchObject:{startX:t,startY:n,curX:t,curY:n}})))},swipeMove:function(e){if(!this.state.dragging)return void e.preventDefault();if(!this.state.scrolling){if(this.state.animating)return void e.preventDefault();this.props.vertical&&this.props.swipeToSlide&&this.props.verticalSwiping&&e.preventDefault();var t,n,r,i=this.state.touchObject;n=(0,o.getTrackLeft)((0,s.default)({slideIndex:this.state.currentSlide,trackRef:this.track},this.props,this.state)),i.curX=e.touches?e.touches[0].pageX:e.clientX,i.curY=e.touches?e.touches[0].pageY:e.clientY,i.swipeLength=Math.round(Math.sqrt(Math.pow(i.curX-i.startX,2)));var a=Math.round(Math.sqrt(Math.pow(i.curY-i.startY,2)));if(!this.props.verticalSwiping&&!this.state.swiping&&a>10)return void this.setState({scrolling:!0});this.props.verticalSwiping&&(i.swipeLength=a),r=(!1===this.props.rtl?1:-1)*(i.curX>i.startX?1:-1),this.props.verticalSwiping&&(r=i.curY>i.startY?1:-1);var l=this.state.currentSlide,u=Math.ceil(this.state.slideCount/this.props.slidesToScroll),c=(0,p.getSwipeDirection)(this.state.touchObject,this.props.verticalSwiping),f=i.swipeLength;!1===this.props.infinite&&(0===l&&"right"===c||l+1>=u&&"left"===c)&&(f=i.swipeLength*this.props.edgeFriction,!1===this.state.edgeDragged&&this.props.edgeEvent&&(this.props.edgeEvent(c),this.setState({edgeDragged:!0}))),!1===this.state.swiped&&this.props.swipeEvent&&(this.props.swipeEvent(c),this.setState({swiped:!0})),t=this.props.vertical?n+f*(this.state.listHeight/this.state.listWidth)*r:this.props.rtl?n-f*r:n+f*r,this.props.verticalSwiping&&(t=n+f*r),this.setState({touchObject:i,swipeLeft:t,trackStyle:(0,o.getTrackCSS)((0,s.default)({left:t},this.props,this.state))}),Math.abs(i.curX-i.startX)<.8*Math.abs(i.curY-i.startY)||i.swipeLength>10&&(this.setState({swiping:!0}),e.preventDefault())}},getNavigableIndexes:function(){var e=void 0,t=0,n=0,r=[];for(this.props.infinite?(t=-1*this.props.slidesToShow,n=-1*this.props.slidesToShow,e=2*this.state.slideCount):e=this.state.slideCount;t<e;)r.push(t),t=n+this.props.slidesToScroll,n+=this.props.slidesToScroll<=this.props.slidesToShow?this.props.slidesToScroll:this.props.slidesToShow;return r},checkNavigable:function(e){var t=this.getNavigableIndexes(),n=0;if(e>t[t.length-1])e=t[t.length-1];else for(var r in t){if(e<t[r]){e=n;break}n=t[r]}return e},getSlideCount:function(){var e=this,t=this.props.centerMode?this.state.slideWidth*Math.floor(this.props.slidesToShow/2):0;if(this.props.swipeToSlide){var n=void 0,r=u.default.findDOMNode(this.list),o=r.querySelectorAll(".slick-slide");if(Array.from(o).every(function(r){if(e.props.vertical){if(r.offsetTop+(0,p.getHeight)(r)/2>-1*e.state.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+(0,p.getWidth)(r)/2>-1*e.state.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===this.props.rtl?this.state.slideCount-this.state.currentSlide:this.state.currentSlide;return Math.abs(n.dataset.index-i)||1}return this.props.slidesToScroll},swipeEnd:function(e){if(!this.state.dragging)return void(this.props.swipe&&e.preventDefault());var t=this.state.touchObject,n=this.state.listWidth/this.props.touchThreshold,r=(0,p.getSwipeDirection)(t,this.props.verticalSwiping);this.props.verticalSwiping&&(n=this.state.listHeight/this.props.touchThreshold);var i=this.state.scrolling;if(this.setState({dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}}),!i&&t.swipeLength)if(t.swipeLength>n){e.preventDefault(),this.props.onSwipe&&this.props.onSwipe(r);var a=void 0,l=void 0;switch(r){case"left":case"up":l=this.state.currentSlide+this.getSlideCount(),a=this.props.swipeToSlide?this.checkNavigable(l):l,this.setState({currentDirection:0});break;case"right":case"down":l=this.state.currentSlide-this.getSlideCount(),a=this.props.swipeToSlide?this.checkNavigable(l):l,this.setState({currentDirection:1});break;default:a=this.state.currentSlide}this.slideHandler(a)}else{var u=(0,o.getTrackLeft)((0,s.default)({slideIndex:this.state.currentSlide,trackRef:this.track},this.props,this.state));this.setState({trackStyle:(0,o.getTrackAnimateCSS)((0,s.default)({left:u},this.props,this.state))})}},onInnerSliderEnter:function(e){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderOver:function(e){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderLeave:function(e){this.props.autoplay&&this.props.pauseOnHover&&this.autoPlay()}};t.default=f},function(e,t,n){"use strict";var r={animating:!1,dragging:!1,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,listWidth:null,listHeight:null,scrolling:!1,slideCount:null,slideWidth:null,slideHeight:null,swiping:!1,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0};e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n(142);if("undefined"===typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t){var n=v.hasOwnProperty(t)?v[t]:null;S.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function u(e,n){if(n){s("function"!==typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(l)&&w.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==l){var u=n[a],c=r.hasOwnProperty(a);if(o(c,a),w.hasOwnProperty(a))w[a](e,u);else{var p=v.hasOwnProperty(a),h="function"===typeof u,y=h&&!p&&!c&&!1!==n.autobind;if(y)i.push(a,u),r[a]=u;else if(c){var m=v[a];s(p&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=f(r[a],u):"DEFINE_MANY"===m&&(r[a]=d(r[a],u))}else r[a]=u}}}else;}function c(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in w;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;if(i){var a=b.hasOwnProperty(n)?b[n]:null;return s("DEFINE_MANY_MERGED"===a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r))}e[n]=r}}}function p(e,t){s(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return p(o,n),p(o,r),o}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=h(e,o)}}function m(e){var t=r(function(e,r,o){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=r,this.refs=a,this.updater=o||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;s("object"===typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=i});t.prototype=new x,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],g.forEach(u.bind(null,t)),u(t,E),u(t,e),u(t,C),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),s(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in v)t.prototype[o]||(t.prototype[o]=null);return t}var g=[],v={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},w={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)u(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=i({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=i({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=i({},e.propTypes,t)},statics:function(e,t){c(e,t)},autobind:function(){}},E={componentDidMount:function(){this.__isMounted=!0}},C={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},x=function(){};return i(x.prototype,e.prototype,S),m}var i=n(4),a=n(16),s=n(32),l="mixins";e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.Track=void 0;var s=n(0),l=r(s),u=n(4),c=r(u),p=n(15),f=r(p),d=n(24),h=n(10),y=function(e){var t,n,r,o,i;i=e.rtl?e.slideCount-1-e.index:e.index,r=i<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow;var a=i===e.currentSlide;return(0,f.default)({"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":a})},m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*e.slideHeight:t.left=-e.index*e.slideWidth,t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t},g=function(e,t){return e.key||t},v=function(e){var t,n=[],r=[],o=[],i=l.default.Children.count(e.children),a=(0,h.lazyStartIndex)(e),s=(0,h.lazyEndIndex)(e);return l.default.Children.forEach(e.children,function(u,p){var h=void 0,v={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};h=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?u:l.default.createElement("div",null);var b=m((0,c.default)({},e,{index:p})),w=h.props.className||"";if(n.push(l.default.cloneElement(h,{key:"original"+g(h,p),"data-index":p,className:(0,f.default)(y((0,c.default)({index:p},e)),w),tabIndex:"-1",style:(0,c.default)({outline:"none"},h.props.style||{},b),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})),e.infinite&&!1===e.fade){var E=i-p;E<=(0,d.getPreClones)(e)&&i!==e.slidesToShow&&(t=-E,t>=a&&(h=u),r.push(l.default.cloneElement(h,{key:"precloned"+g(h,t),"data-index":t,tabIndex:"-1",className:(0,f.default)(y((0,c.default)({index:t},e)),w),style:(0,c.default)({},h.props.style||{},b),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}}))),i!==e.slidesToShow&&(t=i+p,t<s&&(h=u),o.push(l.default.cloneElement(h,{key:"postcloned"+g(h,t),"data-index":t,tabIndex:"-1",className:(0,f.default)(y((0,c.default)({index:t},e)),w),style:(0,c.default)({},h.props.style||{},b),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})))}}),e.rtl?r.concat(n,o).reverse():r.concat(n,o)};t.Track=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=v(this.props);return l.default.createElement("div",{className:"slick-track",style:this.props.trackStyle},e)},t}(l.default.Component)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.Dots=void 0;var s=n(0),l=r(s),u=n(15),c=r(u),p=function(e){return e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1};t.Dots=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.clickHandler=function(e,t){t.preventDefault(),this.props.clickHandler(e)},t.prototype.render=function(){var e=this,t=p({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}),n=Array.apply(null,Array(t+1).join("0").split("")).map(function(t,n){var r=n*e.props.slidesToScroll,o=n*e.props.slidesToScroll+(e.props.slidesToScroll-1),i=(0,c.default)({"slick-active":e.props.currentSlide>=r&&e.props.currentSlide<=o}),a={message:"dots",index:n,slidesToScroll:e.props.slidesToScroll,currentSlide:e.props.currentSlide},s=e.clickHandler.bind(e,a);return l.default.createElement("li",{key:n,className:i},l.default.cloneElement(e.props.customPaging(n),{onClick:s}))});return l.default.cloneElement(this.props.appendDots(n),{className:this.props.dotsClass})},t}(l.default.Component)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.NextArrow=t.PrevArrow=void 0;var s=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},l=n(0),u=r(l),c=n(15),p=r(c),f=n(25),d=(r(f),n(10));t.PrevArrow=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,p.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?u.default.cloneElement(this.props.prevArrow,s({},n,r)):u.default.createElement("button",s({key:"0",type:"button"},n)," Previous")},t}(u.default.Component),t.NextArrow=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,d.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,p.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?u.default.cloneElement(this.props.nextArrow,s({},n,r)):u.default.createElement("button",s({key:"1",type:"button"},n)," Next")},t}(u.default.Component)},function(e,t,n){var r=n(147),o=function(e){return/[height|width]$/.test(e)},i=function(e){var t="",n=Object.keys(e);return n.forEach(function(i,a){var s=e[i];i=r(i),o(i)&&"number"===typeof s&&(s+="px"),t+=!0===s?i:!1===s?"not "+i:"("+i+": "+s+")",a<n.length-1&&(t+=" and ")}),t},a=function(e){var t="";return"string"===typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=i(n),r<e.length-1&&(t+=", ")}),t):i(e)};e.exports=a},function(e,t){var n=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()};e.exports=n},function(e,t){var n=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=n},function(e,t,n){var r=n(150);e.exports=new r},function(e,t,n){function r(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var o=n(151),i=n(46),a=i.each,s=i.isFunction,l=i.isArray;r.prototype={constructor:r,register:function(e,t,n){var r=this.queries,i=n&&this.browserIsIncapable;return r[e]||(r[e]=new o(e,i)),s(t)&&(t={match:t}),l(t)||(t=[t]),a(t,function(t){s(t)&&(t={match:t}),r[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=r},function(e,t,n){function r(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}var o=n(152),i=n(46).each;r.prototype={constuctor:r,addHandler:function(e){var t=new o(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,function(t){t[e]()})}},e.exports=r},function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t,n){"use strict";function r(e){return{dataInstructions:e.active_data}}var o=n(9),i=(n.n(o),n(154));t.a=Object(o.connect)(r)(i.a)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=function(e){var t=e.dataInstructions;return o.a.createElement("div",{className:"instructions"},o.a.createElement("h6",null,"Instrucciones de pago"),o.a.createElement("p",null,o.a.createElement("strong",{className:"number text-center"},"1")," ",t.instructions1),o.a.createElement("p",null,o.a.createElement("strong",{className:"number text-center"},"2")," ",t.instructions2),o.a.createElement("p",{className:"instruction3"},t.instructions3))};t.a=i},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(156),a=(n.n(i),n(14)),s=(n.n(a),function(){return o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"},o.a.createElement("a",{href:"",type:"button",className:"btn btn-lg btn-block btn-pago"},o.a.createElement("span",{className:"icon-arrow-right-circle"})," Ir a banca por internet"))))});t.a=s},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(40),a=n(159),s=n(165),l=n(48),u=function(){return o.a.createElement("div",null,o.a.createElement(i.a,null),o.a.createElement(a.a,null),o.a.createElement(s.a,null),o.a.createElement(l.a,null))};t.a=u},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(160),a=n(163),s=function(){return o.a.createElement("div",{className:"place-pay"},o.a.createElement("span",{className:"text"},"Selecciona d\xf3nde quieras pagar"),o.a.createElement(i.a,null),o.a.createElement(a.a,null))};t.a=s},function(e,t,n){"use strict";function r(e){return{dataCash:e.dataCash}}function o(e){return Object(l.bindActionCreators)({onItemClick:s.b},e)}var i=n(9),a=(n.n(i),n(161)),s=n(47),l=n(6);t.a=Object(i.connect)(r,o)(a.a)},function(e,t,n){"use strict";function r(e){var t=e.className,n=e.style,r=e.onClick;return a.a.createElement("div",{className:t,style:Object.assign({},n,{top:"8%"}),onClick:r},a.a.createElement("i",{className:"fas fa-chevron-right"}))}function o(e){var t=e.className,n=e.style,r=e.onClick;return a.a.createElement("div",{className:t,style:Object.assign({},n,{top:"8%"}),onClick:r},a.a.createElement("i",{className:"fas fa-chevron-left"}))}var i=n(0),a=n.n(i),s=n(162),l=n(44),u=n.n(l),c={arrows:!0,infinite:!0,speed:500,slidesToShow:4,slidesToScroll:1,nextArrow:a.a.createElement(r,null),prevArrow:a.a.createElement(o,null),responsive:[{breakpoint:768,settings:{slidesToShow:3}}]},p=function(e){var t=e.dataCash,n=e.onItemClick;return a.a.createElement(u.a,Object.assign({},c,{className:"row d-flex justify-content-center"}),t.map(function(e){return a.a.createElement(s.a,Object.assign({key:e.name,onClick:function(){return n(e)}},e))}))};t.a=p},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=function(e){var t=e.url,n=e.name,r=e.typeEntity,i=e.typeEntity2,a=e.onClick;return o.a.createElement("li",{onClick:a,className:"align-self-center li-carousel "},o.a.createElement("img",{className:"img-agents",src:t,alt:n}),o.a.createElement("p",{className:"bold span"},o.a.createElement("span",null,"."),r),o.a.createElement("p",{className:"bold span"},o.a.createElement("span",null,"."),i))};t.a=i},function(e,t,n){"use strict";function r(e){return{dataInstructionsCash:e.active_dataCash}}var o=n(9),i=(n.n(o),n(164));t.a=Object(o.connect)(r)(i.a)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=function(e){var t=e.dataInstructionsCash;return o.a.createElement("div",{className:"instructions"},o.a.createElement("h6",null,"Instrucciones de pago"),o.a.createElement("p",null,t.instructions1),o.a.createElement("p",null,t.instructions2),o.a.createElement("p",{className:"instruction3 "},o.a.createElement("span",{style:Object.assign({},""===t.instructions3?{display:"none"}:{color:"#e0aa00",fontSize:"12px",fontWeight:"bold"})},"(*)")," ",t.instructions3),o.a.createElement("p",{className:"instruction3 right"},o.a.createElement("span",{style:Object.assign({},""===t.instructions4?{display:"none"}:{color:"#e0aa00",fontSize:"12px",fontWeight:"bold"})},"(*)")," ",t.instructions4))};t.a=i},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(166),a=(n.n(i),n(14)),s=(n.n(a),function(){return o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12"},o.a.createElement("a",{href:"https://ubicanos.pagoefectivo.pe/#/?tienda=[idServicio]&moneda=1&monto=100.00&ubicame=true&_k=p7jk0i",target:"_blank",rel:"noopener noreferrer",type:"button",className:"btn btn-lg btn-block btn-pago"},o.a.createElement("span",{className:"icon-arrow-right-circle"})," Encuentra tu punto de pago"))))});t.a=s},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(168),a=(n.n(i),function(){return o.a.createElement("ul",{className:" col-6 col-md-10 selectLanguaje"},o.a.createElement("li",null,o.a.createElement("a",{href:"https://claudiagari.github.io/reto-redbus"},"ESPA\xd1OL")),o.a.createElement("li",null,"|"),o.a.createElement("li",null,o.a.createElement("a",{href:"https://claudiagari.github.io/reto-redbus-en"},"ENGLISH")))});t.a=a},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(6),o=n(171),i=n(172),a=n(173),s=n(177),l=Object(r.combineReducers)({active_data:i.a,data:o.a,active_dataCash:s.a,dataCash:a.a});t.a=l},function(e,t,n){"use strict";var r=n(50),o=n.n(r),i=n(51),a=n.n(i),s=n(52),l=n.n(s),u=n(53),c=n.n(u),p=n(54),f=n.n(p);t.a=function(){return[{name:"bcp",url:o.a,instructions1:"Selecciona la opci\xf3n Pago de servicios > EMPRESAS > PAGOEFECTIVO > PAGOEFECTIVOSOLES.",instructions2:"Ingresa tu c\xf3digo CIP: 9125682 y sigue los pasos"},{name:"bbva",url:a.a,instructions1:"Selecciona la opci\xf3n Pago de servicios > De Instituciones y Empresas > Busca por nombre > PAGOEFECTIVO > PAGOEFECTIVOSOLES.",instructions2:"Ingresa tu c\xf3digo CIP: 9125682 y sigue los pasos"},{name:"interbank",url:l.a,instructions1:"Selecciona la opci\xf3n Pago a Instituciones o Empresa > Empresa: PAGOEFECTIVO > Servicio: PAGOEFECTIVO",instructions2:"Ingresa tu c\xf3digo CIP: 9125682 y sigue los pasos"},{name:"scotiabank",url:c.a,instructions1:"Selecciona la opci\xf3n Pagos > Otras Instituciones > Otros > Busca por Empresa/Servicio: PAGOEFECTIVO > Selecciona: PAGOEFECTIVO SOLES",instructions2:"Ingresa tu c\xf3digo CIP: 9125682 y sigue los pasos"},{name:"banbif",url:f.a,instructions1:"Selecciona la opci\xf3n Pago de servicio > Busca por Empresa y escribe PAGOEFECTIVO > Selecciona la empresa PAGOEFECTIVO",instructions2:"Ingresa tu c\xf3digo CIP: 9125682 y sigue los pasos"}]}},function(e,t,n){"use strict";t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"bcp",url:"bcp.png",instructions1:"Selecciona la opci\xf3n Pago de servicios > EMPRESAS > PAGOEFECTIVO > PAGOEFECTIVOSOLES.",instructions2:"Ingresa tu c\xf3digo CIP: 9125682 y sigue los pasos",instructions3:""},t=arguments[1];switch(t.type){case"ITEM_SELECT":return t.payload}return e}},function(e,t,n){"use strict";var r=n(50),o=n.n(r),i=n(51),a=n.n(i),s=n(52),l=n.n(s),u=n(53),c=n.n(u),p=n(54),f=n.n(p),d=n(174),h=n.n(d),y=n(175),m=n.n(y),g=n(176),v=n.n(g);t.a=function(){return[{name:"bcp",url:o.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles",instructions3:"Agentes BCP. Brinda el c\xf3digo de empresa 02186",instructions4:"Agencias BCP. Costo adicional: S/.1.00",typeEntity:"Agentes y Bodegas",typeEntity2:"Agencias"},{name:"bbva",url:a.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles.",instructions3:"",instructions4:"",typeEntity:"Agentes y Bodegas",typeEntity2:"Agencias"},{name:"interbank",url:l.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles.",instructions3:"Agentes Interbank. Brinda el siguiente c\xf3digo 2735001",instructions4:"Agencias Market de Interbank Costo adicional S/.2.00 ",typeEntity:"Agentes y Bodegas",typeEntity2:"Agencias"},{name:"banbif",url:f.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles.",instructions3:"",instructions4:"",typeEntity:"Agencias"},{name:"fullcarga",url:h.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles.",instructions3:"Encuentra a Full Carga en Bodegas, Farmacia, cabinas de Internet y Locutorios.",instructions4:"",typeEntity:"Agentes y Bodegas"},{name:"scotiabank",url:c.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles.",instructions3:"",instructions4:"",typeEntity:"Agentes y Bodegas",typeEntity2:"Agencias"},{name:"western",url:m.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles.",instructions3:"",instructions4:"",typeEntity:"Agentes y Bodegas"},{name:"kasnet",url:v.a,instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles.",instructions3:"",instructions4:"",typeEntity:"Agentes y Bodegas"}]}},function(e,t,n){e.exports=n.p+"static/media/full-carga.671e7fc5.jpg"},function(e,t,n){e.exports=n.p+"static/media/western-union.3bfaebfc.png"},function(e,t,n){e.exports=n.p+"static/media/kasnet.c41aca90.png"},function(e,t,n){"use strict";t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"bcp",url:"bcp.png",instructions1:"Indica que vas a realizar un pago a la empresa PAGOEFECTIVO",instructions2:"Indica el C\xf3digo CIP: 9125682 y el importe a pagar en Soles",instructions3:"Agentes BCP. Brinda el c\xf3digo de empresa 02186",instructions4:"Agencias BCP. Costo adicional: S/.1.00"},t=arguments[1];switch(t.type){case"ITEM_SELECT_CASH":return t.payload}return e}}]); //# sourceMappingURL=main.aef81b9e.js.map
// Copyright (c) 2020 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. /** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * 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. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/master/LICENSE.md for full licensing details. */ define(["exports","./when-a55a8a4c","./Math-73a8bd13","./Cartesian2-8c9f79ed","./EllipsoidTangentPlane-7f2f6dd6","./PolygonPipeline-c12287cd","./PolylinePipeline-a7e2c020"],function(e,C,A,w,E,O,b){"use strict";var i={};var M=new w.Cartographic,L=new w.Cartographic;var F=new Array(2),H=new Array(2),T={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};i.computePositions=function(e,i,t,n,r,o){var a=function(e,i,t,n){var r=i.length;if(!(r<2)){var o=C.defined(n),a=C.defined(t),l=!0,h=new Array(r),s=new Array(r),g=new Array(r),p=i[0];h[0]=p;var d=e.cartesianToCartographic(p,M);a&&(d.height=t[0]),l=l&&d.height<=0,s[0]=d.height,g[0]=o?n[0]:0;for(var P,c,u=1,v=1;v<r;++v){var f=i[v],y=e.cartesianToCartographic(f,L);a&&(y.height=t[v]),l=l&&y.height<=0,P=d,c=y,A.CesiumMath.equalsEpsilon(P.latitude,c.latitude,A.CesiumMath.EPSILON14)&&A.CesiumMath.equalsEpsilon(P.longitude,c.longitude,A.CesiumMath.EPSILON14)?d.height<y.height&&(s[u-1]=y.height):(h[u]=f,s[u]=y.height,g[u]=o?n[v]:0,w.Cartographic.clone(y,d),++u)}if(!(l||u<2))return h.length=u,s.length=u,g.length=u,{positions:h,topHeights:s,bottomHeights:g}}}(e,i,t,n);if(C.defined(a)){if(i=a.positions,t=a.topHeights,n=a.bottomHeights,3<=i.length){var l=E.EllipsoidTangentPlane.fromPoints(i,e).projectPointsOntoPlane(i);O.PolygonPipeline.computeWindingOrder2D(l)===O.WindingOrder.CLOCKWISE&&(i.reverse(),t.reverse(),n.reverse())}var h,s,g=i.length,p=g-2,d=A.CesiumMath.chordLength(r,e.maximumRadius),P=T;if(P.minDistance=d,P.ellipsoid=e,o){var c,u=0;for(c=0;c<g-1;c++)u+=b.PolylinePipeline.numberOfPoints(i[c],i[c+1],d)+1;h=new Float64Array(3*u),s=new Float64Array(3*u);var v=F,f=H;P.positions=v,P.height=f;var y=0;for(c=0;c<g-1;c++){v[0]=i[c],v[1]=i[c+1],f[0]=t[c],f[1]=t[c+1];var m=b.PolylinePipeline.generateArc(P);h.set(m,y),f[0]=n[c],f[1]=n[c+1],s.set(b.PolylinePipeline.generateArc(P),y),y+=m.length}}else P.positions=i,P.height=t,h=new Float64Array(b.PolylinePipeline.generateArc(P)),P.height=n,s=new Float64Array(b.PolylinePipeline.generateArc(P));return{bottomPositions:s,topPositions:h,numCorners:p}}},e.WallGeometryLibrary=i});
import unittest from http_monitor.recurrent_period import RecurrentPeriod from tests.utils import captured_output class SlidingPeriodTestDict(unittest.TestCase): def test_one_elt_hit_dict_content(self): rp = RecurrentPeriod(time_window=10) rp.add(100, "/report") self.assertDictEqual(dict(rp.hits), {"/report": 1}) def test_two_elt_hit_dict_content(self): rp = RecurrentPeriod(time_window=100) rp.add(100, "/report") rp.add(101, "/report") self.assertDictEqual(dict(rp.hits), {"/report": 2}) def test_several_elt_hit_dict_content(self): rp = RecurrentPeriod(time_window=100) rp.add(100, "/report") rp.add(101, "/report") rp.add(101, "/api") self.assertDictEqual(dict(rp.hits), {"/report": 2, "/api": 1}) def test_hit_dict_content_after_reset(self): rp = RecurrentPeriod(time_window=100) rp.add(100, "/report") rp.add(101, "/api") rp.add(1001, "/report") self.assertDictEqual(dict(rp.hits), {"/report": 1}) class SlidingPeriodTestDisplay(unittest.TestCase): def test_empty_period_no_display(self): with captured_output() as (out, err): rp = RecurrentPeriod(time_window=10) self.assertEqual(out.getvalue().strip(), "") def test_one_elt_period_no_display(self): rp = RecurrentPeriod(time_window=10) with captured_output() as (out, err): rp.add(100, "/report") self.assertEqual(out.getvalue().strip(), "") def test_smaller_period_no_display(self): rp = RecurrentPeriod(time_window=10) with captured_output() as (out, err): rp.add(1, "/report") rp.add(10, "/report") self.assertEqual(out.getvalue().strip(), "") def test_refresh_period_display(self): rp = RecurrentPeriod(time_window=10) with captured_output() as (out, err): rp.add(1, "/report") rp.add(12, "/report") self.assertEqual(out.getvalue().strip(), "most hit: /report 1 (100.0%)")