diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/LICENSE b/server-data/resources/[bpt_addons]/bpt_doorlock/LICENSE
new file mode 100644
index 000000000..70a056a40
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 bitpredator
+
+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.
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/README.md b/server-data/resources/[bpt_addons]/bpt_doorlock/README.md
new file mode 100644
index 000000000..ff09466ff
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/README.md
@@ -0,0 +1,44 @@
+# bpt_doorlock
+
+Port management resource, currently only compatible with es_extended.
+[latest release](https://github.com/bitpredator/bpt_doorlock/releases/latest/download/bpt_doorlock.zip)
+
+## Dependencies
+
+### [oxmysql](https://github.com/overextended/oxmysql)
+
+The ports are stored in a database to facilitate the use of the resource
+
+## Client API
+
+```lua
+exports.bpt_doorlock:useClosestDoor()
+```
+
+```lua
+exports.bpt_doorlock:pickClosestDoor()
+```
+
+## Server API
+
+```lua
+local mrpd_locker_rooms = exports.bpt_doorlock:getDoor(1)
+local mrpd_locker_rooms = exports.bpt_doorlock:getDoorFromName('mrpd locker rooms')
+```
+
+- Set door state (0: unlocked, 1: locked)
+
+```lua
+TriggerEvent('bpt_doorlock:setState', mrpd_locker_rooms.id, state)
+```
+
+- Listen for event when door is toggled
+
+```lua
+AddEventHandler('bpt_doorlock:stateChanged', function(source, doorId, state, usedItem)
+ if usedItem == 'trainticket' then
+ local xPlayer = ESX.GetPlayerFromId(source)
+ xPlayer.removeInventoryItem(usedItem, 1)
+ end
+end)
+```
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/data/bptdoorlock_sounds.dat54.rel b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/data/bptdoorlock_sounds.dat54.rel
new file mode 100644
index 000000000..d1229f2be
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/data/bptdoorlock_sounds.dat54.rel differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/data/bptdoorlock_sounds.dat54.rel.xml b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/data/bptdoorlock_sounds.dat54.rel.xml
new file mode 100644
index 000000000..bb7b2e9b5
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/data/bptdoorlock_sounds.dat54.rel.xml
@@ -0,0 +1,145 @@
+
+
+
+
+ - dlc_bptdoorlock\bptdoorlock
+
+
+
+ -
+ button_remote_simple
+
+ dlc_bptdoorlock/bptdoorlock
+ button_remote
+
+
+
+ -
+ door_bolt_simple
+
+ dlc_bptdoorlock/bptdoorlock
+ door_bolt
+
+
+
+ -
+ metal_locker_simple
+
+ dlc_bptdoorlock/bptdoorlock
+ metal_locker
+
+
+
+ -
+ metallic_creak_simple
+
+ dlc_bptdoorlock/bptdoorlock
+ metallic_creak
+
+
+
+
+
+
+ -
+ dlc_bptdoorlock_set
+
+
+
-
+ button_remote
+ button_remote_directional
+
+ -
+ door_bolt
+ door_bolt_directional
+
+ -
+ metal_locker
+ metal_locker_directional
+
+ -
+ metallic_creak
+ metallic_creak_directional
+
+
+
+
+ -
+ button_remote_directional
+
+ button_remote_simple
+
+
+
+
+
+
+
+ -
+ door_bolt_directional
+
+ door_bolt_simple
+
+
+
+
+
+
+
+ -
+ metal_locker_directional
+
+ metal_locker_simple
+
+
+
+
+
+
+
+ -
+ metallic_creak_directional
+
+ metallic_creak_simple
+
+
+
+
+
+
+
+
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock.awc b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock.awc
new file mode 100644
index 000000000..1b5ef2b83
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock.awc differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock.awc.xml b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock.awc.xml
new file mode 100644
index 000000000..112836d25
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock.awc.xml
@@ -0,0 +1,107 @@
+
+
+
+
+
+ -
+ button_remote
+ button_remote.wav
+
+
-
+ peak
+
+ -
+ data
+
+ -
+ format
+ ADPCM
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ door_bolt
+ door_bolt.wav
+
+
-
+ peak
+
+ -
+ data
+
+ -
+ format
+ ADPCM
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ metal_locker
+ metal_locker.wav
+
+
-
+ peak
+
+ -
+ data
+
+ -
+ format
+ ADPCM
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ metallic_creak
+ metallic_creak.wav
+
+
-
+ peak
+
+ -
+ data
+
+ -
+ format
+ ADPCM
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/button_remote.wav b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/button_remote.wav
new file mode 100644
index 000000000..1bcd010c6
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/button_remote.wav differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/door_bolt.wav b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/door_bolt.wav
new file mode 100644
index 000000000..a27e3251c
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/door_bolt.wav differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/metal_locker.wav b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/metal_locker.wav
new file mode 100644
index 000000000..dc640352c
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/metal_locker.wav differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/metallic_creak.wav b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/metallic_creak.wav
new file mode 100644
index 000000000..a2bff3a93
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/audio/dlc_bptdoorlock/bptdoorlock/metallic_creak.wav differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/client/main.lua b/server-data/resources/[bpt_addons]/bpt_doorlock/client/main.lua
new file mode 100644
index 000000000..c2b20230c
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/client/main.lua
@@ -0,0 +1,354 @@
+if not LoadResourceFile(lib.name, 'web/build/index.html') then
+ error('Unable to load UI. Build bpt_doorlock or download the latest release.\n ^3https://github.com/bitpredator/bpt_doorlock/releases/latest/download/bpt_doorlock.zip^0')
+end
+
+do
+ local success, msg = lib.checkDependency('ox_lib', '3.0.0')
+ if not success then error(msg) end
+end
+
+lib.locale()
+
+local function createDoor(door)
+ local double = door.doors
+ door.zone = GetLabelText(GetNameOfZone(door.coords.x, door.coords.y, door.coords.z))
+
+ if double then
+ for i = 1, 2 do
+ AddDoorToSystem(double[i].hash, double[i].model, double[i].coords.x, double[i].coords.y, double[i].coords.z, false, false, false)
+ DoorSystemSetDoorState(double[i].hash, 4, false, false)
+ DoorSystemSetDoorState(double[i].hash, door.state, false, false)
+
+ if door.doorRate or not door.auto then
+ DoorSystemSetAutomaticRate(double[i].hash, door.doorRate or 10.0, false, false)
+ end
+ end
+ else
+ AddDoorToSystem(door.hash, door.model, door.coords.x, door.coords.y, door.coords.z, false, false, false)
+ DoorSystemSetDoorState(door.hash, 4, false, false)
+ DoorSystemSetDoorState(door.hash, door.state, false, false)
+
+ if door.doorRate or not door.auto then
+ DoorSystemSetAutomaticRate(door.hash, door.doorRate or 10.0, false, false)
+ end
+ end
+end
+
+local nearbyDoors = {}
+local Entity = Entity
+
+lib.callback('bpt_doorlock:getDoors', false, function(data)
+ doors = data
+
+ for _, door in pairs(data) do
+ createDoor(door)
+ end
+
+ while true do
+ table.wipe(nearbyDoors)
+ local coords = GetEntityCoords(cache.ped)
+
+ for _, door in pairs(doors) do
+ local double = door.doors
+ door.distance = #(coords - door.coords)
+
+ if double then
+ if door.distance < 80 then
+ for i = 1, 2 do
+ if not double[i].entity and IsModelValid(double[i].model) then
+ local entity = GetClosestObjectOfType(double[i].coords.x, double[i].coords.y, double[i].coords.z, 1.0, double[i].model, false, false, false)
+
+ if entity ~= 0 then
+ double[i].entity = entity
+ Entity(entity).state.doorId = door.id
+ end
+ end
+ end
+
+ if door.distance < 20 then
+ nearbyDoors[#nearbyDoors + 1] = door
+ end
+ else
+ for i = 1, 2 do
+ double[i].entity = nil
+ end
+ end
+ elseif door.distance < 80 then
+ if not door.entity and IsModelValid(door.model) then
+ local entity = GetClosestObjectOfType(door.coords.x, door.coords.y, door.coords.z, 1.0, door.model, false, false, false)
+
+ if entity ~= 0 then
+ local min, max = GetModelDimensions(door.model)
+ local points = {
+ GetOffsetFromEntityInWorldCoords(entity, min.x, min.y, min.z).xy,
+ GetOffsetFromEntityInWorldCoords(entity, min.x, min.y, max.z).xy,
+ GetOffsetFromEntityInWorldCoords(entity, min.x, max.y, max.z).xy,
+ GetOffsetFromEntityInWorldCoords(entity, min.x, max.y, min.z).xy,
+ GetOffsetFromEntityInWorldCoords(entity, max.x, min.y, min.z).xy,
+ GetOffsetFromEntityInWorldCoords(entity, max.x, min.y, max.z).xy,
+ GetOffsetFromEntityInWorldCoords(entity, max.x, max.y, max.z).xy,
+ GetOffsetFromEntityInWorldCoords(entity, max.x, max.y, min.z).xy
+ }
+
+ local centroid = vec2(0, 0)
+
+ for i = 1, 8 do
+ centroid += points[i]
+ end
+
+ centroid = centroid / 8
+ door.coords = vec3(centroid.x, centroid.y, door.coords.z)
+ door.entity = entity
+ Entity(entity).state.doorId = door.id
+ end
+ end
+
+ if door.distance < 20 then
+ nearbyDoors[#nearbyDoors + 1] = door
+ end
+ elseif door.entity then
+ door.entity = nil
+ end
+ end
+
+ Wait(500)
+ end
+end)
+
+RegisterNetEvent('bpt_doorlock:setState', function(id, state, source, data)
+ if not doors then return end
+
+ if data then
+ doors[id] = data
+ createDoor(data)
+
+ if NuiHasLoaded then
+ SendNuiMessage(json.encode({
+ action = 'updateDoorData',
+ data = data
+ }))
+ end
+ end
+
+ if Config.Notify and source == cache.serverId then
+ if state == 0 then
+ lib.notify({
+ type = 'success',
+ icon = 'unlock',
+ description = locale('unlocked_door')
+ })
+ else
+ lib.notify({
+ type = 'success',
+ icon = 'lock',
+ description = locale('locked_door')
+ })
+ end
+ end
+
+ local door = data or doors[id]
+ local double = door.doors
+ door.state = state
+
+ if double then
+ DoorSystemSetDoorState(double[1].hash, door.state, false, false)
+ DoorSystemSetDoorState(double[2].hash, door.state, false, false)
+
+ if door.holdOpen then
+ DoorSystemSetHoldOpen(double[1].hash, door.state == 0)
+ DoorSystemSetHoldOpen(double[2].hash, door.state == 0)
+ end
+
+ while door.state == 1 and (not IsDoorClosed(double[1].hash) or not IsDoorClosed(double[2].hash)) do Wait(0) end
+ else
+ DoorSystemSetDoorState(door.hash, door.state, false, false)
+
+ if door.holdOpen then DoorSystemSetHoldOpen(door.hash, door.state == 0) end
+ while door.state == 1 and not IsDoorClosed(door.hash) do Wait(0) end
+ end
+
+ if door.state == state and door.distance and door.distance < 20 then
+ if Config.NativeAudio then
+ RequestScriptAudioBank('dlc_oxdoorlock/oxdoorlock', false)
+ local sound = state == 0 and door.unlockSound or door.lockSound or 'door_bolt'
+ local soundId = GetSoundId()
+
+ PlaySoundFromCoord(soundId, sound, door.coords.x, door.coords.y, door.coords.z, 'DLC_OXDOORLOCK_SET', false, 0, false)
+ ReleaseSoundId(soundId)
+ ReleaseNamedScriptAudioBank('dlc_oxdoorlock/oxdoorlock')
+ else
+ local volume = (0.01 * GetProfileSetting(300)) / (door.distance / 2)
+ if volume > 1 then volume = 1 end
+ local sound = state == 0 and door.unlockSound or door.lockSound or 'door-bolt-4'
+
+ SendNUIMessage({
+ action = 'playSound',
+ data = {
+ sound = sound,
+ volume = volume
+ }
+ })
+ end
+ end
+end)
+
+RegisterNetEvent('bpt_doorlock:editDoorlock', function(id, data)
+ if source == '' then return end
+
+ local door = doors[id]
+ local double = door.doors
+ local doorState = data and data.state or 0
+
+ if data then
+ data.zone = door.zone or GetLabelText(GetNameOfZone(door.coords.x, door.coords.y, door.coords.z))
+
+ -- hacky method to resolve a bug with "closest door" by forcing a distance recalculation
+ if door.distance < 20 then door.distance = 80 end
+ elseif ClosestDoor?.id == id then
+ ClosestDoor = nil
+ end
+
+ if double then
+ for i = 1, 2 do
+ local doorHash = double[i].hash
+
+ if data then
+ if data.doorRate or door.doorRate or not data.auto then
+ DoorSystemSetAutomaticRate(doorHash, data.doorRate or door.doorRate and 0.0 or 10.0, false, false)
+ end
+
+ DoorSystemSetDoorState(doorHash, doorState, false, false)
+
+ if data.holdOpen then DoorSystemSetHoldOpen(doorHash, doorState == 0) end
+ else
+ DoorSystemSetDoorState(doorHash, 4, false, false)
+ DoorSystemSetDoorState(doorHash, 0, false, false)
+
+ if double[i].entity then
+ Entity(double[i].entity).state.doorId = nil
+ end
+ end
+ end
+ else
+ if data then
+ if data.doorRate or door.doorRate or not data.auto then
+ DoorSystemSetAutomaticRate(door.hash, data.doorRate or door.doorRate and 0.0 or 10.0, false, false)
+ end
+
+ DoorSystemSetDoorState(door.hash, doorState, false, false)
+
+ if data.holdOpen then DoorSystemSetHoldOpen(door.hash, doorState == 0) end
+ else
+ DoorSystemSetDoorState(door.hash, 4, false, false)
+ DoorSystemSetDoorState(door.hash, 0, false, false)
+
+ if door.entity then
+ Entity(door.entity).state.doorId = nil
+ end
+ end
+ end
+
+ doors[id] = data
+
+ if NuiHasLoaded then
+ SendNuiMessage(json.encode({
+ action = 'updateDoorData',
+ data = data or id
+ }))
+ end
+end)
+
+ClosestDoor = nil
+
+lib.callback.register('bpt_doorlock:inputPassCode', function()
+ return ClosestDoor?.passcode and lib.inputDialog(locale('door_lock'), {
+ {
+ type = 'input',
+ label = locale('passcode'),
+ password = true,
+ icon = 'lock'
+ },
+ })?[1]
+end)
+
+local lastTriggered = 0
+
+local function useClosestDoor()
+ if not ClosestDoor then return false end
+
+ local gameTimer = GetGameTimer()
+
+ if gameTimer - lastTriggered > 500 then
+ lastTriggered = gameTimer
+ TriggerServerEvent('bpt_doorlock:setState', ClosestDoor.id, ClosestDoor.state == 1 and 0 or 1)
+ end
+end
+
+exports('useClosestDoor', useClosestDoor)
+
+CreateThread(function()
+ local lockDoor = locale('lock_door')
+ local unlockDoor = locale('unlock_door')
+ local showUI
+ local drawSprite = Config.DrawSprite
+
+ if drawSprite then
+ local sprite1 = drawSprite[0]?[1]
+ local sprite2 = drawSprite[1]?[1]
+
+ if sprite1 then
+ RequestStreamedTextureDict(sprite1, true)
+ end
+
+ if sprite2 then
+ RequestStreamedTextureDict(sprite2, true)
+ end
+ end
+
+ local SetDrawOrigin = SetDrawOrigin
+ local ClearDrawOrigin = ClearDrawOrigin
+ local DrawSprite = drawSprite and DrawSprite
+
+ while true do
+ local num = #nearbyDoors
+
+ if num > 0 then
+ local ratio = drawSprite and GetAspectRatio(true)
+ for i = 1, num do
+ local door = nearbyDoors[i]
+
+ if door.distance < door.maxDistance then
+ if door.distance < (ClosestDoor?.distance or 10) then
+ ClosestDoor = door
+ end
+
+ if drawSprite and not door.hideUi then
+ local sprite = drawSprite[door.state]
+
+ if sprite then
+ SetDrawOrigin(door.coords.x, door.coords.y, door.coords.z)
+ DrawSprite(sprite[1], sprite[2], sprite[3], sprite[4], sprite[5], sprite[6] * ratio, sprite[7], sprite[8], sprite[9], sprite[10], sprite[11])
+ ClearDrawOrigin()
+ end
+ end
+ end
+ end
+ else ClosestDoor = nil end
+
+ if ClosestDoor and ClosestDoor.distance < ClosestDoor.maxDistance then
+ if Config.DrawTextUI and not ClosestDoor.hideUi and ClosestDoor.state ~= showUI then
+ lib.showTextUI(ClosestDoor.state == 0 and lockDoor or unlockDoor)
+ showUI = ClosestDoor.state
+ end
+
+ if not PickingLock and IsDisabledControlJustReleased(0, 38) then
+ useClosestDoor()
+ end
+ elseif showUI then
+ lib.hideTextUI()
+ showUI = nil
+ end
+
+ Wait(num > 0 and 0 or 500)
+ end
+end)
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/client/utils.lua b/server-data/resources/[bpt_addons]/bpt_doorlock/client/utils.lua
new file mode 100644
index 000000000..66ac47e00
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/client/utils.lua
@@ -0,0 +1,324 @@
+local Entity = Entity
+
+local function getDoorFromEntity(data)
+ local entity = type(data) == 'table' and data.entity or data
+
+ if not entity then return end
+
+ local state = Entity(entity)?.state
+ local doorId = state?.doorId
+
+ if not doorId then return end
+
+ local door = doors[doorId]
+
+ if not door then
+ state.doorId = nil
+ end
+
+ return door
+end
+
+local function entityIsNotDoor(data)
+ local entity = type(data) == 'number' and data or data.entity
+ return not getDoorFromEntity(entity)
+end
+
+PickingLock = false
+
+local function canPickLock(entity)
+ if PickingLock then return false end
+
+ local door = getDoorFromEntity(entity)
+
+ return door and door.lockpick and (Config.CanPickUnlockedDoors or door.state == 1)
+end
+
+---@param entity number
+local function pickLock(entity)
+ local door = getDoorFromEntity(entity)
+
+ if not door or PickingLock or not door.lockpick or (not Config.CanPickUnlockedDoors and door.state == 0) then return end
+
+ PickingLock = true
+
+ TaskTurnPedToFaceCoord(cache.ped, door.coords.x, door.coords.y, door.coords.z, 4000)
+ Wait(500)
+ lib.requestAnimDict('mp_common_heist')
+ TaskPlayAnim(cache.ped, 'mp_common_heist', 'pick_door', 3.0, 1.0, -1, 49, 0, true, true, true)
+
+ local success = lib.skillCheck(door.lockpickDifficulty or Config.LockDifficulty)
+ local rand = math.random(1, success and 100 or 5)
+
+ if success then
+ TriggerServerEvent('bpt_doorlock:setState', door.id, door.state == 1 and 0 or 1, true)
+ end
+
+ if rand == 1 then
+ TriggerServerEvent('bpt_doorlock:breakLockpick')
+ lib.notify({ type = 'error', description = locale('lockpick_broke') })
+ end
+
+ StopEntityAnim(cache.ped, 'pick_door', 'mp_common_heist', 0)
+
+ PickingLock = false
+end
+
+exports('pickClosestDoor', function()
+ if not ClosestDoor then return end
+
+ pickLock(ClosestDoor.entity)
+end)
+
+local tempData = {}
+
+local function addDoorlock(data)
+ local entity = type(data) == 'number' and data or data.entity
+ local model = GetEntityModel(entity)
+ local coords = GetEntityCoords(entity)
+
+ AddDoorToSystem(`temp`, model, coords.x, coords.y, coords.z, false, false, false)
+ DoorSystemSetDoorState(`temp`, 4, false, false)
+
+ coords = GetEntityCoords(entity)
+ tempData[#tempData + 1] = {
+ entity = entity,
+ model = model,
+ coords = coords,
+ heading = math.floor(GetEntityHeading(entity) + 0.5)
+ }
+
+ RemoveDoorFromSystem(`temp`)
+end
+
+local isAddingDoorlock = false
+
+RegisterNUICallback('notify', function(data, cb)
+ cb(1)
+ lib.notify({title = data})
+end)
+
+RegisterNUICallback('createDoor', function(data, cb)
+ cb(1)
+ SetNuiFocus(false, false)
+
+ data.state = data.state and 1 or 0
+
+ if data.items and not next(data.items) then
+ data.items = nil
+ end
+
+ if data.characters and not next(data.characters) then
+ data.characters = nil
+ end
+
+ if data.lockpickDifficulty and not next(data.lockpickDifficulty) then
+ data.lockpickDifficulty = nil
+ end
+
+ if data.groups and not next(data.groups) then
+ data.groups = nil
+ end
+
+ if not data.id then
+ isAddingDoorlock = true
+ local doorCount = data.doors and 2 or 1
+ local lastEntity = 0
+
+ lib.showTextUI(locale('add_door_textui'))
+
+ repeat
+ DisablePlayerFiring(cache.playerId, true)
+ DisableControlAction(0, 25, true)
+
+ local hit, entity, coords = lib.raycast.cam(1|16)
+ local changedEntity = lastEntity ~= entity
+ local doorA = tempData[1]?.entity
+
+ if changedEntity and lastEntity ~= doorA then
+ SetEntityDrawOutline(lastEntity, false)
+ end
+
+ lastEntity = entity
+
+ if hit then
+ ---@diagnostic disable-next-line: param-type-mismatch
+ DrawMarker(28, coords.x, coords.y, coords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2, 0.2, 0.2, 255, 42, 24, 100, false, false, 0, true, false, false, false)
+ end
+
+ if hit and entity > 0 and GetEntityType(entity) == 3 and (doorCount == 1 or doorA ~= entity) and entityIsNotDoor(entity) then
+ if changedEntity then
+ SetEntityDrawOutline(entity, true)
+ end
+
+ if IsDisabledControlJustPressed(0, 24) then
+ addDoorlock(entity)
+ end
+ end
+
+ if IsDisabledControlJustPressed(0, 25) then
+ SetEntityDrawOutline(entity, false)
+
+ if not doorA then
+ isAddingDoorlock = false
+ return lib.hideTextUI()
+ end
+
+ SetEntityDrawOutline(doorA, false)
+ table.wipe(tempData)
+ end
+ until tempData[doorCount]
+
+ lib.hideTextUI()
+ SetEntityDrawOutline(tempData[1].entity, false)
+
+ if data.doors then
+ SetEntityDrawOutline(tempData[2].entity, false)
+ tempData[1].entity = nil
+ tempData[2].entity = nil
+ data.doors = tempData
+ else
+ data.model = tempData[1].model
+ data.coords = tempData[1].coords
+ data.heading = tempData[1].heading
+ end
+
+ else
+ if data.doors then
+ for i = 1, 2 do
+ local coords = data.doors[i].coords
+ data.doors[i].coords = vector3(coords.x, coords.y, coords.z)
+ data.doors[i].entity = nil
+ end
+ else
+ data.entity = nil
+ end
+
+ data.coords = vector3(data.coords.x, data.coords.y, data.coords.z)
+ data.distance = nil
+ data.zone = nil
+ end
+
+ isAddingDoorlock = false
+
+ TriggerServerEvent('bpt_doorlock:editDoorlock', data.id or false, data)
+ table.wipe(tempData)
+end)
+
+RegisterNUICallback('deleteDoor', function(id, cb)
+ cb(1)
+ TriggerServerEvent('bpt_doorlock:editDoorlock', id)
+end)
+
+RegisterNUICallback('teleportToDoor', function(id, cb)
+ cb(1)
+ SetNuiFocus(false, false)
+ local doorCoords = doors[id].coords
+ if not doorCoords then return end
+ SetEntityCoords(cache.ped, doorCoords.x, doorCoords.y, doorCoords.z, false, false, false, false)
+end)
+
+RegisterNUICallback('exit', function(_, cb)
+ cb(1)
+ SetNuiFocus(false, false)
+end)
+
+local function openUi(id)
+ if source == '' or isAddingDoorlock then return end
+
+ if not NuiHasLoaded then
+ NuiHasLoaded = true
+
+ SendNuiMessage(json.encode({
+ action = 'updateDoorData',
+ data = doors
+ }, { with_hole = false }))
+ Wait(100)
+
+ SendNUIMessage({
+ action = 'setSoundFiles',
+ data = lib.callback.await('bpt_doorlock:getSounds', false)
+ })
+ end
+
+ SetNuiFocus(true, true)
+ SendNuiMessage(json.encode({
+ action = 'setVisible',
+ data = id
+ }))
+end
+
+RegisterNetEvent('bpt_doorlock:triggeredCommand', function(closest)
+ openUi(closest and ClosestDoor?.id or nil)
+end)
+
+CreateThread(function()
+ local target
+
+ if GetResourceState('ox_target'):find('start') then
+ target = {
+ ox = true,
+ exp = exports.ox_target
+ }
+ elseif GetResourceState('qb-target'):find('start') then
+ target = {
+ qb = true,
+ exp = exports['qb-target']
+ }
+ elseif GetResourceState('qtarget'):find('start') then
+ target = {
+ qt = true,
+ exp = exports.qtarget
+ }
+ end
+
+ if not target then return end
+
+ if target.ox then
+ target.exp:addGlobalObject({
+ {
+ name = 'pickDoorlock',
+ label = locale('pick_lock'),
+ icon = 'fas fa-user-lock',
+ onSelect = pickLock,
+ canInteract = canPickLock,
+ items = Config.LockpickItems,
+ anyItem = true,
+ distance = 1
+ }
+ })
+ else
+ local options = {
+ {
+ label = locale('pick_lock'),
+ icon = 'fas fa-user-lock',
+ action = pickLock,
+ canInteract = canPickLock,
+ item = Config.LockpickItems[1],
+ distance = 1
+ }
+ }
+
+ ---@cast target table
+
+ if target.qt then
+ target.exp:Object({ options = options })
+ elseif target.qb then
+ target.exp:AddGlobalObject({ options = options })
+ end
+
+ options = { locale('pick_lock') }
+
+ AddEventHandler('onResourceStop', function(resource)
+ if resource == cache.resource then
+ if target.qt then
+ return target.exp:RemoveObject(options)
+ end
+
+ if target.qb then
+ return target.exp:RemoveGlobalObject(options)
+ end
+ end
+ end)
+ end
+end)
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/config.lua b/server-data/resources/[bpt_addons]/bpt_doorlock/config.lua
new file mode 100644
index 000000000..d01c8c140
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/config.lua
@@ -0,0 +1,38 @@
+---@type DoorlockConfig
+---@diagnostic disable-next-line: missing-fields
+Config = {}
+
+---Trigger a notification on the client when the door state is successfully updated.
+Config.Notify = false
+
+---Create a persistent notification while in-range of a door, prompting to lock/unlock.
+Config.DrawTextUI = false
+
+---Set the properties used by [DrawSprite](https://docs.fivem.net/natives/?_0xE7FFAE5EBF23D890).
+Config.DrawSprite = {
+ -- Unlocked
+ [0] = { 'mpsafecracking', 'lock_open', 0, 0, 0.018, 0.018, 0, 255, 255, 255, 100 },
+
+ -- Locked
+ [1] = { 'mpsafecracking', 'lock_closed', 0, 0, 0.018, 0.018, 0, 255, 255, 255, 100 },
+}
+
+---Allow the specified ace principal to use 'command.doorlock'.
+Config.CommandPrincipal = 'group.admin'
+
+---Allow players with the 'command.doorlock' principal to use any door.
+Config.PlayerAceAuthorised = false
+
+---The default skill check difficulty when lockpicking a door.
+Config.LockDifficulty = { 'easy', 'easy', 'medium' }
+
+---Allow lockpicks to be used to lock an unlocked door.
+Config.CanPickUnlockedDoors = false
+
+---An array of items that function as lockpicks.
+Config.LockpickItems = {
+ 'lockpick'
+}
+
+---Play sounds using game audio (sound natives) instead of through NUI.
+Config.NativeAudio = false
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua b/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua
new file mode 100644
index 000000000..53a7c381e
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/fxmanifest.lua
@@ -0,0 +1,48 @@
+-- FX Information
+fx_version 'cerulean'
+use_experimental_fxv2_oal 'yes'
+lua54 'yes'
+game 'gta5'
+
+-- Resource Information
+name 'bpt_doorlock'
+version '1.0.0'
+license 'MIT'
+author 'bitpredator'
+repository 'https://github.com/bitpredator/bpt_doorlock'
+
+-- Manifest
+shared_script {
+ '@ox_lib/init.lua',
+ 'config.lua',
+}
+
+client_script {
+ 'client/main.lua',
+ 'client/utils.lua',
+}
+
+server_script {
+ '@oxmysql/lib/MySQL.lua',
+ 'server/convert.lua',
+ 'server/framework/*.lua',
+ 'server/main.lua',
+}
+
+ui_page 'web/build/index.html'
+
+files {
+ 'web/build/index.html',
+ 'web/build/**/*',
+ 'locales/*.json',
+ 'audio/data/bptdoorlock_sounds.dat54.rel',
+ 'audio/dlc_bptdoorlock/bptdoorlock.awc',
+}
+
+data_file 'AUDIO_WAVEPACK' 'audio/dlc_bptdoorlock'
+data_file 'AUDIO_SOUNDDATA' 'audio/data/bptdoorlock_sounds.dat'
+
+dependencies {
+ 'oxmysql',
+ 'ox_lib'
+}
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/locales/en.json b/server-data/resources/[bpt_addons]/bpt_doorlock/locales/en.json
new file mode 100644
index 000000000..8b14217af
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/locales/en.json
@@ -0,0 +1,18 @@
+{
+ "unlocked_door": "Unlocked door",
+ "locked_door": "Locked door",
+ "lock_door": "[E] Lock door",
+ "unlock_door": "[E] Unlock door",
+ "door_lock": "Door lock",
+ "passcode": "Passcode",
+ "lockpick_broke": "Your lockpick broke",
+ "pick_lock": "Pick lock",
+ "add_lock": "Add doorlock",
+ "edit_lock": "Edit doorlock",
+ "remove_lock": "Remove doorlock",
+ "cannot_unlock": "Unable to unlock door",
+ "cannot_lock": "Unable to lock door",
+ "create_modify_lock": "Create a doorlock, or modify an existing one",
+ "add_door_textui": "**Create new door** \nInteract with [LMB] \nCancel with [RMB]",
+ "command_closest": "Open UI directly to closest doorlock"
+ }
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/locales/it.json b/server-data/resources/[bpt_addons]/bpt_doorlock/locales/it.json
new file mode 100644
index 000000000..8c9b49cb0
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/locales/it.json
@@ -0,0 +1,18 @@
+{
+ "unlocked_door": "Porta sbloccata",
+ "locked_door": "Porta chiusa",
+ "lock_door": "[E] Chiudi porta",
+ "unlock_door": "[E] Apri porta",
+ "door_lock": "Serratura della porta",
+ "passcode": "codice di accesso",
+ "lockpick_broke": "il tuo grimaldello si è rotto",
+ "pick_lock": "Scassina serratura",
+ "add_lock": "Aggiungi serratura",
+ "edit_lock": "Modifica serratura",
+ "remove_lock": "Rimuovi serratura",
+ "cannot_unlock": "Impossibile aprire la porta",
+ "cannot_lock": "Impossibile chiudere la porta",
+ "create_modify_lock": "Crea una serratura o modificane una esistente",
+ "add_door_textui": "**Crea una nuova porta** \nInteragire con [LMB] \nAnnulla con [RMB]",
+ "command_closest": "Apri l'interfaccia utente direttamente alla serratura più vicina"
+ }
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/sql/bpt_doorlock.sql b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/bpt_doorlock.sql
new file mode 100644
index 000000000..02e113905
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/bpt_doorlock.sql
@@ -0,0 +1,8 @@
+CREATE TABLE
+ IF NOT EXISTS `bpt_doorlock` (
+ `id` int (11) unsigned NOT NULL AUTO_INCREMENT,
+ `name` varchar(50) NOT NULL,
+ `data` longtext NOT NULL,
+ PRIMARY KEY (`id`)
+ )
+;
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/sql/community_mrpd.sql b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/community_mrpd.sql
new file mode 100644
index 000000000..27fc36730
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/community_mrpd.sql
@@ -0,0 +1,38 @@
+/*
+ Run this file after bpt_doorlock.sql
+ Works with https://www.gta5-mods.com/maps/community-mission-row-pd
+*/
+
+INSERT INTO `bpt_doorlock` (`id`, `name`, `data`) VALUES
+ (1, 'community_mrpd 1', '{"coords":{"x":434.7478942871094,"y":-981.916748046875,"z":30.83926963806152},"groups":{"police":0,"offpolice":0},"maxDistance":2.5,"state":0,"doors":[{"coords":{"x":434.7478942871094,"y":-980.618408203125,"z":30.83926963806152},"model":-1215222675,"heading":270},{"coords":{"x":434.7478942871094,"y":-983.215087890625,"z":30.83926963806152},"model":320433149,"heading":270}],"hideUi":false}'),
+ (2, 'community_mrpd 2', '{"coords":{"x":468.6697998046875,"y":-1014.4520263671875,"z":26.53623962402343},"groups":{"police":0},"maxDistance":2.5,"state":1,"doors":[{"coords":{"x":469.9679870605469,"y":-1014.4520263671875,"z":26.53623962402343},"model":-2023754432,"heading":180},{"coords":{"x":467.3716125488281,"y":-1014.4520263671875,"z":26.53623962402343},"model":-2023754432,"heading":0}],"hideUi":false}'),
+ (3, 'community_mrpd 3', '{"coords":{"x":463.4783020019531,"y":-1003.5380249023438,"z":25.00598907470703},"model":-1033001619,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (4, 'community_mrpd 4', '{"coords":{"x":488.8948059082031,"y":-1017.2100219726563,"z":27.14863014221191},"auto":true,"lockSound":"button-remote","groups":{"police":0},"heading":90,"maxDistance":5,"state":1,"model":-1603817716,"hideUi":false}'),
+ (5, 'community_mrpd 5', '{"coords":{"x":431.4056091308594,"y":-1001.1690063476563,"z":26.71261024475097},"auto":true,"lockSound":"button-remote","groups":{"police":0},"heading":0,"maxDistance":5,"state":1,"model":-190780785,"hideUi":false}'),
+ (6, 'community_mrpd 6', '{"coords":{"x":436.223388671875,"y":-1001.1690063476563,"z":26.71261024475097},"auto":true,"lockSound":"button-remote","groups":{"police":0},"heading":0,"maxDistance":5,"state":1,"model":-190780785,"hideUi":false}'),
+ (7, 'community_mrpd 7', '{"coords":{"x":450.10418701171877,"y":-985.7384033203125,"z":30.83930969238281},"model":1557126584,"groups":{"police":0,"offpolice":0},"heading":90,"maxDistance":2,"state":1,"hideUi":false}'),
+ (8, 'community_mrpd 8', '{"coords":{"x":464.15838623046877,"y":-1011.260009765625,"z":33.01121139526367},"model":507213820,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (9, 'community_mrpd 9', '{"coords":{"x":461.2864990234375,"y":-985.3206176757813,"z":30.83926963806152},"model":749848321,"groups":{"police":0},"heading":90,"maxDistance":2,"state":1,"hideUi":false}'),
+ (10, 'community_mrpd 10', '{"coords":{"x":446.57281494140627,"y":-980.0106201171875,"z":30.83930969238281},"model":-1320876379,"groups":{"police":0},"heading":180,"maxDistance":2,"state":1,"hideUi":false}'),
+ (11, 'community_mrpd 11', '{"coords":{"x":453.09381103515627,"y":-983.2293701171875,"z":30.83926963806152},"model":-1033001619,"groups":{"police":0},"heading":91,"maxDistance":2,"state":1,"hideUi":false}'),
+ (12, 'community_mrpd 12', '{"coords":{"x":464.36138916015627,"y":-984.677978515625,"z":43.83443832397461},"model":-340230128,"groups":{"police":0},"heading":90,"maxDistance":2,"state":1,"hideUi":false}'),
+ (13, 'community_mrpd 13', '{"coords":{"x":442.6625061035156,"y":-988.2412719726563,"z":26.81977081298828},"model":-131296141,"groups":{"police":0},"heading":179,"maxDistance":2,"state":1,"hideUi":false}'),
+ (14, 'community_mrpd 14', '{"coords":{"x":471.3153991699219,"y":-986.1090698242188,"z":25.05794906616211},"model":-131296141,"groups":{"police":0},"heading":270,"maxDistance":2,"state":1,"hideUi":false}'),
+ (15, 'community_mrpd 15', '{"coords":{"x":467.5935974121094,"y":-977.9932861328125,"z":25.05794906616211},"model":-131296141,"groups":{"police":0},"heading":180,"maxDistance":2,"state":1,"hideUi":false}'),
+ (16, 'community_mrpd 16', '{"coords":{"x":463.6145935058594,"y":-980.5814208984375,"z":25.05794906616211},"model":-131296141,"groups":{"police":0},"heading":90,"maxDistance":2,"state":1,"hideUi":false}'),
+ (17, 'community_mrpd 17', '{"coords":{"x":464.5701904296875,"y":-992.6641235351563,"z":25.0644302368164},"model":631614199,"lockSound":"metal-locker","groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"unlockSound":"metallic-creak","hideUi":false}'),
+ (18, 'community_mrpd 18', '{"coords":{"x":461.8064880371094,"y":-994.4086303710938,"z":25.0644302368164},"model":631614199,"lockSound":"metal-locker","groups":{"police":0},"heading":270,"maxDistance":2,"state":1,"unlockSound":"metallic-creak","hideUi":false}'),
+ (19, 'community_mrpd 19', '{"coords":{"x":461.8064880371094,"y":-997.6583862304688,"z":25.0644302368164},"model":631614199,"lockSound":"metal-locker","groups":{"police":0},"heading":90,"maxDistance":2,"state":1,"unlockSound":"metallic-creak","hideUi":false}'),
+ (20, 'community_mrpd 20', '{"coords":{"x":461.8064880371094,"y":-1001.302001953125,"z":25.0644302368164},"model":631614199,"lockSound":"metal-locker","groups":{"police":0},"heading":90,"maxDistance":2,"state":1,"unlockSound":"metallic-creak","hideUi":false}'),
+ (21, 'community_mrpd 21', '{"coords":{"x":467.19219970703127,"y":-996.4594116210938,"z":25.00598907470703},"model":-1033001619,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (22, 'community_mrpd 22', '{"coords":{"x":471.4754943847656,"y":-996.4594116210938,"z":25.00598907470703},"model":-1033001619,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (23, 'community_mrpd 23', '{"coords":{"x":475.7543029785156,"y":-996.4594116210938,"z":25.00598907470703},"model":-1033001619,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (24, 'community_mrpd 24', '{"coords":{"x":480.03009033203127,"y":-996.4594116210938,"z":25.00598907470703},"model":-1033001619,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (25, 'community_mrpd 25', '{"coords":{"x":468.4872131347656,"y":-1003.5479736328125,"z":25.01313972473144},"model":-1033001619,"groups":{"police":0},"heading":180,"maxDistance":2,"state":1,"hideUi":false}'),
+ (26, 'community_mrpd 26', '{"coords":{"x":471.4747009277344,"y":-1003.5380249023438,"z":25.01222991943359},"model":-1033001619,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (27, 'community_mrpd 27', '{"coords":{"x":477.0495910644531,"y":-1003.552001953125,"z":25.01203918457031},"auto":false,"groups":{"police":0},"heading":179,"lockpick":false,"maxDistance":2,"state":1,"model":-1033001619,"hideUi":false}'),
+ (28, 'community_mrpd 28', '{"coords":{"x":480.03009033203127,"y":-1003.5380249023438,"z":25.00598907470703},"model":-1033001619,"groups":{"police":0},"heading":0,"maxDistance":2,"state":1,"hideUi":false}'),
+ (29, 'community_mrpd 29', '{"coords":{"x":444.7078857421875,"y":-989.4453735351563,"z":30.83930969238281},"groups":{"police":0},"maxDistance":2.5,"state":1,"doors":[{"coords":{"x":443.4078063964844,"y":-989.4453735351563,"z":30.83930969238281},"model":185711165,"heading":180},{"coords":{"x":446.00799560546877,"y":-989.4453735351563,"z":30.83930969238281},"model":185711165,"heading":0}],"hideUi":false}'),
+ (30, 'community_mrpd 30', '{"coords":{"x":445.9197998046875,"y":-999.0016479492188,"z":30.7890396118164},"groups":{"police":0},"maxDistance":2.5,"state":1,"doors":[{"coords":{"x":447.2184143066406,"y":-999.0023193359375,"z":30.78941917419433},"model":-1033001619,"heading":180},{"coords":{"x":444.6211853027344,"y":-999.0009765625,"z":30.78866004943847},"model":-1033001619,"heading":0}],"hideUi":false}'),
+ (31, 'community_mrpd 31', '{"coords":{"x":445.9298400878906,"y":-997.044677734375,"z":30.84351921081543},"groups":{"police":0},"maxDistance":2.5,"state":0,"doors":[{"coords":{"x":444.62939453125,"y":-997.044677734375,"z":30.84351921081543},"model":-2023754432,"heading":0},{"coords":{"x":447.23028564453127,"y":-997.044677734375,"z":30.84351921081543},"model":-2023754432,"heading":180}],"hideUi":false}')
+;
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/sql/default.sql b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/default.sql
new file mode 100644
index 000000000..7b8dfa54d
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/sql/default.sql
@@ -0,0 +1,18 @@
+/*
+ Run this file after bpt_doorlock.sql
+ Works with the standard Mission Row PD interior
+*/
+
+INSERT INTO `bpt_doorlock` (`id`, `name`, `data`) VALUES
+ (1, 'mrpd locker rooms', '{"maxDistance":2,"heading":90,"coords":{"x":450.1041259765625,"y":-985.7384033203125,"z":30.83930206298828},"groups":{"police":0},"state":1,"model":1557126584,"hideUi":false}'),
+ (2, 'mrpd cells/briefing', '{"maxDistance":2,"coords":{"x":444.7078552246094,"y":-989.4454345703125,"z":30.83930206298828},"doors":[{"model":185711165,"coords":{"x":446.0079345703125,"y":-989.4454345703125,"z":30.83930206298828},"heading":0},{"model":185711165,"coords":{"x":443.40777587890627,"y":-989.4454345703125,"z":30.83930206298828},"heading":180}],"groups":{"police":0},"state":1,"hideUi":false}'),
+ (3, 'mrpd cell 3', '{"maxDistance":2,"heading":90,"coords":{"x":461.8065185546875,"y":-1001.9515380859375,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'),
+ (4, 'mrpd back entrance', '{"maxDistance":2,"coords":{"x":468.6697692871094,"y":-1014.4520263671875,"z":26.5362319946289},"doors":[{"model":-2023754432,"coords":{"x":467.37164306640627,"y":-1014.4520263671875,"z":26.5362319946289},"heading":0},{"model":-2023754432,"coords":{"x":469.9678955078125,"y":-1014.4520263671875,"z":26.5362319946289},"heading":180}],"groups":{"police":0},"state":1,"hideUi":false}'),
+ (5, 'mrpd cells security door', '{"maxDistance":2,"heading":0,"coords":{"x":464.1282958984375,"y":-1003.5386962890625,"z":25.00598907470703},"autolock":5,"groups":{"police":0},"state":1,"model":-1033001619,"hideUi":false}'),
+ (6, 'mrpd cell 2', '{"maxDistance":2,"heading":90,"coords":{"x":461.8064880371094,"y":-998.3082885742188,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'),
+ (7, 'mrpd captain\'s office', '{"maxDistance":2,"heading":180,"coords":{"x":446.57281494140627,"y":-980.0105590820313,"z":30.83930206298828},"groups":{"police":0},"state":1,"model":-1320876379,"hideUi":false}'),
+ (8, 'mrpd gate', '{"maxDistance":6,"heading":90,"coords":{"x":488.894775390625,"y":-1017.2102661132813,"z":27.14714050292968},"groups":{"police":0},"auto":true,"state":1,"model":-1603817716,"hideUi":false}'),
+ (9, 'mrpd cell 1', '{"maxDistance":2,"heading":270,"coords":{"x":461.8065185546875,"y":-993.7586059570313,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'),
+ (10, 'mrpd cells main', '{"maxDistance":2,"heading":360,"coords":{"x":463.92010498046877,"y":-992.6640625,"z":25.06442832946777},"lockSound":"metal-locker","groups":{"police":0},"state":1,"unlockSound":"metallic-creak","model":631614199,"hideUi":false}'),
+ (11, 'mrpd armoury', '{"maxDistance":2,"heading":270,"coords":{"x":453.08428955078127,"y":-982.5794677734375,"z":30.81926536560058},"autolock":5,"groups":{"police":0},"state":1,"model":749848321,"hideUi":false}')
+;
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/types.lua b/server-data/resources/[bpt_addons]/bpt_doorlock/types.lua
new file mode 100644
index 000000000..a99514fdb
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/types.lua
@@ -0,0 +1,23 @@
+---@class DraSpriteProps
+---@field [1] string textureDict
+---@field [2] string textureName
+---@field [3] number scrennX
+---@field [4] number scrennY
+---@field [5] number number width
+---@field [6] number height
+---@field [7] number heading
+---@field [8] integer red
+---@field [9] integer green
+---@field [10] integer blue
+---@field [11] integer alpha
+
+---@class DoorlockConfig
+---@field Notify boolean
+---@field DrawTextUI boolean
+---@field CommandPrincipal string
+---@field PlayerAceAuthorised boolean
+---@field LockDifficulty SkillCheckDifficulity | SkillCheckDifficulity[]
+---@field CanPickUnlockedDoors boolean
+---@field LockpickItems string[]
+---@field NativeAudio boolean
+---@field DrawSprite { [0]: DrawSpriteProps, [1]: DrawSpriteProps }
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.92dc219b.css b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.92dc219b.css
new file mode 100644
index 000000000..1d58b091f
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.92dc219b.css
@@ -0,0 +1 @@
+@import"https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700&display=swap";@import"https://use.typekit.net/wxh5ury.css";body{margin:0;font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:100vh;user-select:none;background:none!important;overflow:hidden}#root{height:100%}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}::-webkit-scrollbar{width:3px;border-radius:3px}::-webkit-scrollbar-track{background:rgb(95,95,95);border-radius:3px}::-webkit-scrollbar-thumb{background:#888;border-radius:3px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js
new file mode 100644
index 000000000..c879b3963
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/assets/index.9f535db0.js
@@ -0,0 +1,93 @@
+function mx(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const vx=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};vx();var g={exports:{}},J={};/*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/var vp=Object.getOwnPropertySymbols,hx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable;function wx(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function _x(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var x0=_x()?Object.assign:function(e,t){for(var r,n=wx(e),o,i=1;i"u"||typeof MessageChannel!="function"){var s=null,u=null,c=function(){if(s!==null)try{var R=e.unstable_now();s(!0,R),s=null}catch(T){throw setTimeout(c,0),T}};t=function(R){s!==null?setTimeout(t,0,R):(s=R,setTimeout(c,0))},r=function(R,T){u=setTimeout(R,T)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof p!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,w=null,v=-1,m=5,h=0;e.unstable_shouldYield=function(){return e.unstable_now()>=h},o=function(){},e.unstable_forceFrameRate=function(R){0>R||125>>1,M=R[k];if(M!==void 0&&0<$(M,T))R[k]=T,R[A]=M,A=k;else break e}}function x(R){return R=R[0],R===void 0?null:R}function P(R){var T=R[0];if(T!==void 0){var A=R.pop();if(A!==T){R[0]=A;e:for(var k=0,M=R.length;k$(Z,A))ae!==void 0&&0>$(ae,Z)?(R[k]=ae,R[De]=A,k=De):(R[k]=Z,R[G]=A,k=G);else if(ae!==void 0&&0>$(ae,A))R[k]=ae,R[De]=A,k=De;else break e}}return T}return null}function $(R,T){var A=R.sortIndex-T.sortIndex;return A!==0?A:R.id-T.id}var C=[],I=[],z=1,D=null,j=3,B=!1,V=!1,W=!1;function ne(R){for(var T=x(I);T!==null;){if(T.callback===null)P(I);else if(T.startTime<=R)P(I),T.sortIndex=T.expirationTime,O(C,T);else break;T=x(I)}}function se(R){if(W=!1,ne(R),!V)if(x(C)!==null)V=!0,t(ie);else{var T=x(I);T!==null&&r(se,T.startTime-R)}}function ie(R,T){V=!1,W&&(W=!1,n()),B=!0;var A=j;try{for(ne(T),D=x(C);D!==null&&(!(D.expirationTime>T)||R&&!e.unstable_shouldYield());){var k=D.callback;if(typeof k=="function"){D.callback=null,j=D.priorityLevel;var M=k(D.expirationTime<=T);T=e.unstable_now(),typeof M=="function"?D.callback=M:D===x(C)&&P(C),ne(T)}else P(C);D=x(C)}if(D!==null)var G=!0;else{var Z=x(I);Z!==null&&r(se,Z.startTime-T),G=!1}return G}finally{D=null,j=A,B=!1}}var ze=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){V||B||(V=!0,t(ie))},e.unstable_getCurrentPriorityLevel=function(){return j},e.unstable_getFirstCallbackNode=function(){return x(C)},e.unstable_next=function(R){switch(j){case 1:case 2:case 3:var T=3;break;default:T=j}var A=j;j=T;try{return R()}finally{j=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=ze,e.unstable_runWithPriority=function(R,T){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var A=j;j=R;try{return T()}finally{j=A}},e.unstable_scheduleCallback=function(R,T,A){var k=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0k?(R.sortIndex=A,O(I,R),x(C)===null&&R===x(I)&&(W?n():W=!0,r(se,A-k))):(R.sortIndex=M,O(C,R),V||B||(V=!0,t(ie))),R},e.unstable_wrapCallback=function(R){var T=j;return function(){var A=j;j=T;try{return R.apply(this,arguments)}finally{j=A}}}})(L0);j0.exports=L0;/** @license React v17.0.2
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Es=g.exports,pe=x0,Oe=j0.exports;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ox=/^[: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]*$/,wp=Object.prototype.hasOwnProperty,_p={},Sp={};function Cx(e){return wp.call(Sp,e)?!0:wp.call(_p,e)?!1:Ox.test(e)?Sp[e]=!0:(_p[e]=!0,!1)}function Ex(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kx(e,t,r,n){if(t===null||typeof t>"u"||Ex(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function We(e,t,r,n,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new We(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ff=/[\-:]([a-z])/g;function Af(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ff,Af);Ne[t]=new We(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ff,Af);Ne[t]=new We(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ff,Af);Ne[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vf(e,t,r,n){var o=Ne.hasOwnProperty(t)?Ne[t]:null,i=o!==null?o.type===0:n?!1:!(!(2a||o[l]!==i[a])return`
+`+o[l].replace(" at new "," at ");while(1<=l&&0<=a);break}}}finally{Ou=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ao(e):""}function Rx(e){switch(e.tag){case 5:return Ao(e.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return e=Zi(e.type,!1),e;case 11:return e=Zi(e.type.render,!1),e;case 22:return e=Zi(e.type._render,!1),e;case 1:return e=Zi(e.type,!0),e;default:return""}}function Nn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sr:return"Fragment";case Yr:return"Portal";case Uo:return"Profiler";case Hf:return"StrictMode";case Go:return"Suspense";case Bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wf:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case ks:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Rs:return Nn(e.type);case Gf:return Nn(e._render);case Uf:t=e._payload,e=e._init;try{return Nn(e(t))}catch{}}return null}function Pr(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function V0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ix(e){var t=V0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Ix(e))}function H0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=V0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bc(e,t){var r=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xp(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B0(e,t){t=t.checked,t!=null&&Vf(e,"checked",t,!1)}function xc(e,t){B0(e,t);var r=Pr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Pc(e,t.type,Pr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pp(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Pc(e,t,r){(t!=="number"||Wl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Nx(e){var t="";return Es.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function $c(e,t){return e=pe({children:void 0},t),(t=Nx(t.children))&&(e.children=t),e}function zn(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o=r.length))throw Error(N(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Pr(r)}}function W0(e,t){var r=Pr(t.value),n=Pr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Op(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Cc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function U0(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 Ec(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?U0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var el,G0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!==Cc.svg||"innerHTML"in e)e.innerHTML=t;else{for(el=el||document.createElement("div"),el.innerHTML="",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function si(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Yo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zx=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){zx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function Y0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function X0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Y0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Dx=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function kc(e,t){if(t){if(Dx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Rc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Kf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ic=null,Dn=null,Tn=null;function Cp(e){if(e=Ri(e)){if(typeof Ic!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ms(t),Ic(e.stateNode,e.type,t))}}function K0(e){Dn?Tn?Tn.push(e):Tn=[e]:Dn=e}function q0(){if(Dn){var e=Dn,t=Tn;if(Tn=Dn=null,Cp(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Ns(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-$r(t),e[t]=r}var $r=Math.clz32?Math.clz32:qx,Xx=Math.log,Kx=Math.LN2;function qx(e){return e===0?32:31-(Xx(e)/Kx|0)|0}var Qx=Oe.unstable_UserBlockingPriority,Zx=Oe.unstable_runWithPriority,El=!0;function Jx(e,t,r,n){Xr||Qf();var o=rd,i=Xr;Xr=!0;try{Q0(o,e,t,r,n)}finally{(Xr=i)||Zf()}}function eP(e,t,r,n){Zx(Qx,rd.bind(null,e,t,r,n))}function rd(e,t,r,n){if(El){var o;if((o=(t&4)===0)&&0=Ko),jp=String.fromCharCode(32),Lp=!1;function gy(e,t){switch(e){case"keyup":return xP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function my(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function $P(e,t){switch(e){case"compositionend":return my(t);case"keypress":return t.which!==32?null:(Lp=!0,jp);case"textInput":return e=t.data,e===jp&&Lp?null:e;default:return null}}function OP(e,t){if(On)return e==="compositionend"||!ad&&gy(e,t)?(e=dy(),kl=od=ur=null,On=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Hp(r)}}function wy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wp(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var MP=qt&&"documentMode"in document&&11>=document.documentMode,Cn=null,jc=null,Qo=null,Lc=!1;function Up(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Lc||Cn==null||Cn!==Wl(n)||(n=Cn,"selectionStart"in n&&Mc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Qo&&gi(Qo,n)||(Qo=n,n=Xl(jc,"onSelect"),0kn||(e.current=Ac[kn],Ac[kn]=null,kn--)}function he(e,t){kn++,Ac[kn]=e.current,e.current=t}var Or={},Ae=Nr(Or),Ye=Nr(!1),rn=Or;function Wn(e,t){var r=e.type.contextTypes;if(!r)return Or;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function Ql(){fe(Ye),fe(Ae)}function eg(e,t,r){if(Ae.current!==Or)throw Error(N(168));he(Ae,t),he(Ye,r)}function Cy(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in e))throw Error(N(108,Nn(t)||"Unknown",o));return pe({},r,n)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Or,rn=Ae.current,he(Ae,e),he(Ye,Ye.current),!0}function tg(e,t,r){var n=e.stateNode;if(!n)throw Error(N(169));r?(e=Cy(e,t,rn),n.__reactInternalMemoizedMergedChildContext=e,fe(Ye),fe(Ae),he(Ae,e)):fe(Ye),he(Ye,r)}var ud=null,Jr=null,FP=Oe.unstable_runWithPriority,cd=Oe.unstable_scheduleCallback,Vc=Oe.unstable_cancelCallback,AP=Oe.unstable_shouldYield,rg=Oe.unstable_requestPaint,Hc=Oe.unstable_now,VP=Oe.unstable_getCurrentPriorityLevel,js=Oe.unstable_ImmediatePriority,Ey=Oe.unstable_UserBlockingPriority,ky=Oe.unstable_NormalPriority,Ry=Oe.unstable_LowPriority,Iy=Oe.unstable_IdlePriority,Fu={},HP=rg!==void 0?rg:function(){},Ht=null,Nl=null,Au=!1,ng=Hc(),Le=1e4>ng?Hc:function(){return Hc()-ng};function Un(){switch(VP()){case js:return 99;case Ey:return 98;case ky:return 97;case Ry:return 96;case Iy:return 95;default:throw Error(N(332))}}function Ny(e){switch(e){case 99:return js;case 98:return Ey;case 97:return ky;case 96:return Ry;case 95:return Iy;default:throw Error(N(332))}}function nn(e,t){return e=Ny(e),FP(e,t)}function vi(e,t,r){return e=Ny(e),cd(e,t,r)}function Mt(){if(Nl!==null){var e=Nl;Nl=null,Vc(e)}zy()}function zy(){if(!Au&&Ht!==null){Au=!0;var e=0;try{var t=Ht;nn(99,function(){for(;eP?($=x,x=null):$=x.sibling;var C=d(v,x,h[P],_);if(C===null){x===null&&(x=$);break}e&&x&&C.alternate===null&&t(v,x),m=i(C,m,P),O===null?b=C:O.sibling=C,O=C,x=$}if(P===h.length)return r(v,x),b;if(x===null){for(;PP?($=x,x=null):$=x.sibling;var I=d(v,x,C.value,_);if(I===null){x===null&&(x=$);break}e&&x&&I.alternate===null&&t(v,x),m=i(I,m,P),O===null?b=I:O.sibling=I,O=I,x=$}if(C.done)return r(v,x),b;if(x===null){for(;!C.done;P++,C=h.next())C=f(v,C.value,_),C!==null&&(m=i(C,m,P),O===null?b=C:O.sibling=C,O=C);return b}for(x=n(v,x);!C.done;P++,C=h.next())C=p(x,v,P,C.value,_),C!==null&&(e&&C.alternate!==null&&x.delete(C.key===null?P:C.key),m=i(C,m,P),O===null?b=C:O.sibling=C,O=C);return e&&x.forEach(function(z){return t(v,z)}),b}return function(v,m,h,_){var b=typeof h=="object"&&h!==null&&h.type===sr&&h.key===null;b&&(h=h.props.children);var O=typeof h=="object"&&h!==null;if(O)switch(h.$$typeof){case Fo:e:{for(O=h.key,b=m;b!==null;){if(b.key===O){switch(b.tag){case 7:if(h.type===sr){r(v,b.sibling),m=o(b,h.props.children),m.return=v,v=m;break e}break;default:if(b.elementType===h.type){r(v,b.sibling),m=o(b,h.props),m.ref=$o(v,b,h),m.return=v,v=m;break e}}r(v,b);break}else t(v,b);b=b.sibling}h.type===sr?(m=Vn(h.props.children,v.mode,_,h.key),m.return=v,v=m):(_=Ml(h.type,h.key,h.props,null,v.mode,_),_.ref=$o(v,m,h),_.return=v,v=_)}return l(v);case Yr:e:{for(b=h.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===h.containerInfo&&m.stateNode.implementation===h.implementation){r(v,m.sibling),m=o(m,h.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Gu(h,v.mode,_),m.return=v,v=m}return l(v)}if(typeof h=="string"||typeof h=="number")return h=""+h,m!==null&&m.tag===6?(r(v,m.sibling),m=o(m,h),m.return=v,v=m):(r(v,m),m=Uu(h,v.mode,_),m.return=v,v=m),l(v);if(nl(h))return y(v,m,h,_);if(wo(h))return w(v,m,h,_);if(O&&ol(v,h),typeof h>"u"&&!b)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(N(152,Nn(v.type)||"Component"))}return r(v,m)}}var ra=Ly(!0),Fy=Ly(!1),Ii={},It=Nr(Ii),yi=Nr(Ii),wi=Nr(Ii);function qr(e){if(e===Ii)throw Error(N(174));return e}function Wc(e,t){switch(he(wi,t),he(yi,e),he(It,Ii),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ec(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ec(t,e)}fe(It),he(It,t)}function Gn(){fe(It),fe(yi),fe(wi)}function sg(e){qr(wi.current);var t=qr(It.current),r=Ec(t,e.type);t!==r&&(he(yi,e),he(It,r))}function gd(e){yi.current===e&&(fe(It),fe(yi))}var ve=Nr(0);function na(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gt=null,fr=null,Nt=!1;function Ay(e,t){var r=ft(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function ug(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Uc(e){if(Nt){var t=fr;if(t){var r=t;if(!ug(e,t)){if(t=Mn(r.nextSibling),!t||!ug(e,t)){e.flags=e.flags&-1025|2,Nt=!1,Gt=e;return}Ay(Gt,r)}Gt=e,fr=Mn(t.firstChild)}else e.flags=e.flags&-1025|2,Nt=!1,Gt=e}}function cg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gt=e}function il(e){if(e!==Gt)return!1;if(!Nt)return cg(e),Nt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Fc(t,e.memoizedProps))for(t=fr;t;)Ay(e,t),t=Mn(t.nextSibling);if(cg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){fr=Mn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}fr=null}}else fr=Gt?Mn(e.stateNode.nextSibling):null;return!0}function Vu(){fr=Gt=null,Nt=!1}var Ln=[];function md(){for(var e=0;ei))throw Error(N(301));i+=1,ke=je=null,t.updateQueue=null,Zo.current=YP,e=r(n,o)}while(Jo)}if(Zo.current=sa,t=je!==null&&je.next!==null,_i=0,ke=je=ye=null,oa=!1,t)throw Error(N(300));return e}function Qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ye.memoizedState=ke=e:ke=ke.next=e,ke}function fn(){if(je===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=ke===null?ye.memoizedState:ke.next;if(t!==null)ke=t,je=e;else{if(e===null)throw Error(N(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},ke===null?ye.memoizedState=ke=e:ke=ke.next=e}return ke}function kt(e,t){return typeof t=="function"?t(e):t}function Oo(e){var t=fn(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=je,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}n.baseQueue=o=i,r.pending=null}if(o!==null){o=o.next,n=n.baseState;var a=l=i=null,s=o;do{var u=s.lane;if((_i&u)===u)a!==null&&(a=a.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var c={lane:u,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};a===null?(l=a=c,i=n):a=a.next=c,ye.lanes|=u,Ni|=u}s=s.next}while(s!==null&&s!==o);a===null?i=n:a.next=l,ct(n,t.memoizedState)||(xt=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=a,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Co(e){var t=fn(),r=t.queue;if(r===null)throw Error(N(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);ct(i,t.memoizedState)||(xt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function fg(e,t,r){var n=t._getVersion;n=n(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===n:(e=e.mutableReadLanes,(e=(_i&e)===e)&&(t._workInProgressVersionPrimary=n,Ln.push(t))),e)return r(t._source);throw Ln.push(t),Error(N(350))}function Vy(e,t,r,n){var o=Be;if(o===null)throw Error(N(349));var i=t._getVersion,l=i(t._source),a=Zo.current,s=a.useState(function(){return fg(o,t,r)}),u=s[1],c=s[0];s=ke;var f=e.memoizedState,d=f.refs,p=d.getSnapshot,y=f.source;f=f.subscribe;var w=ye;return e.memoizedState={refs:d,source:t,subscribe:n},a.useEffect(function(){d.getSnapshot=r,d.setSnapshot=u;var v=i(t._source);if(!ct(l,v)){v=r(t._source),ct(c,v)||(u(v),v=wr(w),o.mutableReadLanes|=v&o.pendingLanes),v=o.mutableReadLanes,o.entangledLanes|=v;for(var m=o.entanglements,h=v;0r?98:r,function(){e(!0)}),nn(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[cr]=t,e[ql]=n,qy(e,t,!1,!1),t.stateNode=e,l=Rc(r,n),r){case"dialog":ce("cancel",e),ce("close",e),o=n;break;case"iframe":case"object":case"embed":ce("load",e),o=n;break;case"video":case"audio":for(o=0;otf&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432)}else{if(!i)if(e=na(l),e!==null){if(t.flags|=64,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ko(n,!0),n.tail===null&&n.tailMode==="hidden"&&!l.alternate&&!Nt)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Le()-n.renderingStartTime>tf&&r!==1073741824&&(t.flags|=64,i=!0,ko(n,!1),t.lanes=33554432);n.isBackwards?(l.sibling=t.child,t.child=l):(r=n.last,r!==null?r.sibling=l:t.child=l,n.last=l)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Le(),r.sibling=null,t=ve.current,he(ve,i?t&1|2:t&1),r):null;case 23:case 24:return $d(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(N(156,t.tag))}function qP(e){switch(e.tag){case 1:Xe(e.type)&&Ql();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Gn(),fe(Ye),fe(Ae),md(),t=e.flags,(t&64)!==0)throw Error(N(285));return e.flags=t&-4097|64,e;case 5:return gd(e),null;case 13:return fe(ve),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return fe(ve),null;case 4:return Gn(),null;case 10:return dd(e),null;case 23:case 24:return $d(),null;default:return null}}function Sd(e,t){try{var r="",n=t;do r+=Rx(n),n=n.return;while(n);var o=r}catch(i){o=`
+Error generating stack: `+i.message+`
+`+i.stack}return{value:e,source:t,stack:o}}function qc(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var QP=typeof WeakMap=="function"?WeakMap:Map;function Jy(e,t,r){r=hr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ca||(ca=!0,rf=n),qc(e,t)},r}function e1(e,t,r){r=hr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return qc(e,t),n(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Rt===null?Rt=new Set([this]):Rt.add(this),qc(e,t));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}var ZP=typeof WeakSet=="function"?WeakSet:Set;function Pg(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Sr(e,r)}else t.current=null}function JP(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:bt(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&sd(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(N(163))}function e$(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;n=o.next,o=o.tag,(o&4)!==0&&(o&1)!==0&&(u1(r,e),s$(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:bt(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&ig(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}ig(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&$y(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&oy(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(N(163))}function $g(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,n.style.display=Y0("display",o)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Og(e,t){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(ud,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,o=n.destroy;if(n=n.tag,o!==void 0)if((n&4)!==0)u1(t,r);else{n=t;try{o()}catch(i){Sr(n,i)}}r=r.next}while(r!==e)}break;case 1:if(Pg(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Sr(t,i)}break;case 5:Pg(t);break;case 4:t1(e,t)}}function Cg(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Eg(e){return e.tag===5||e.tag===3||e.tag===4}function kg(e){e:{for(var t=e.return;t!==null;){if(Eg(t))break e;t=t.return}throw Error(N(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(N(161))}r.flags&16&&(si(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||Eg(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?Qc(e,r,t):Zc(e,r,t)}function Qc(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Kl));else if(n!==4&&(e=e.child,e!==null))for(Qc(e,t,r),e=e.sibling;e!==null;)Qc(e,t,r),e=e.sibling}function Zc(e,t,r){var n=e.tag,o=n===5||n===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Zc(e,t,r),e=e.sibling;e!==null;)Zc(e,t,r),e=e.sibling}function t1(e,t){for(var r=t,n=!1,o,i;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(N(160));switch(o=n.stateNode,n.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var l=e,a=r,s=a;;)if(Og(l,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}i?(l=o,a=r.stateNode,l.nodeType===8?l.parentNode.removeChild(a):l.removeChild(a)):o.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){o=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(Og(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Wu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var o=e!==null?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(r[ql]=n,e==="input"&&n.type==="radio"&&n.name!=null&&B0(r,n),Rc(e,o),t=Rc(e,n),o=0;oo&&(o=l),r&=~i}if(r=o,r=Le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r$(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Ie!==5&&(Ie=2),s=Sd(s,a),d=l;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t;var O=Jy(d,i,t);og(d,O);break e;case 1:i=s;var x=d.type,P=d.stateNode;if((d.flags&64)===0&&(typeof x.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(Rt===null||!Rt.has(P)))){d.flags|=4096,t&=-t,d.lanes|=t;var $=e1(d,i,t);og(d,$);break e}}d=d.return}while(d!==null)}s1(r)}catch(C){t=C,Se===r&&r!==null&&(Se=r=r.return);continue}break}while(1)}function l1(){var e=ua.current;return ua.current=sa,e===null?sa:e}function Bo(e,t){var r=Y;Y|=16;var n=l1();Be===e&&Fe===t||An(e,t);do try{o$();break}catch(o){i1(e,o)}while(1);if(fd(),Y=r,ua.current=n,Se!==null)throw Error(N(261));return Be=null,Fe=0,Ie}function o$(){for(;Se!==null;)a1(Se)}function i$(){for(;Se!==null&&!AP();)a1(Se)}function a1(e){var t=c1(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?s1(e):Se=t,bd.current=null}function s1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=KP(r,t,on),r!==null){Se=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(on&1073741824)!==0||(r.mode&4)===0){for(var n=0,o=r.child;o!==null;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1l&&(a=l,l=O,O=a),a=Bp(h,O),i=Bp(h,l),a&&i&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==i.node||b.focusOffset!==i.offset)&&(_=_.createRange(),_.setStart(a.node,a.offset),b.removeAllRanges(),O>l?(b.addRange(_),b.extend(i.node,i.offset)):(_.setEnd(i.node,i.offset),b.addRange(_)))))),_=[],b=h;b=b.parentNode;)b.nodeType===1&&_.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<_.length;h++)b=_[h],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}El=!!Mu,ju=Mu=null,e.current=r,L=n;do try{for(h=e;L!==null;){var x=L.flags;if(x&36&&e$(h,L.alternate,L),x&128){_=void 0;var P=L.ref;if(P!==null){var $=L.stateNode;switch(L.tag){case 5:_=$;break;default:_=$}typeof P=="function"?P(_):P.current=_}}L=L.nextEffect}}catch(C){if(L===null)throw Error(N(330));Sr(L,C),L=L.nextEffect}while(L!==null);L=null,HP(),Y=o}else e.current=r;if(Cr)Cr=!1,ei=e,Ho=t;else for(L=n;L!==null;)t=L.nextEffect,L.nextEffect=null,L.flags&8&&(x=L,x.sibling=null,x.stateNode=null),L=t;if(n=e.pendingLanes,n===0&&(Rt=null),n===1?e===lf?ti++:(ti=0,lf=e):ti=0,r=r.stateNode,Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(ud,r,void 0,(r.current.flags&64)===64)}catch{}if(gt(e,Le()),ca)throw ca=!1,e=rf,rf=null,e;return(Y&8)!==0||Mt(),null}function a$(){for(;L!==null;){var e=L.alternate;Tl||ri===null||((L.flags&8)!==0?kp(L,ri)&&(Tl=!0):L.tag===13&&t$(e,L)&&kp(L,ri)&&(Tl=!0));var t=L.flags;(t&256)!==0&&JP(e,L),(t&512)===0||Cr||(Cr=!0,vi(97,function(){return zr(),null})),L=L.nextEffect}}function zr(){if(Ho!==90){var e=97Le()-Pd?An(e,0):xd|=r),gt(e,t)}function f$(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Un()===99?1:2:(Wt===0&&(Wt=to),t=xn(62914560&~Wt),t===0&&(t=4194304))),r=tt(),e=As(e,t),e!==null&&(Ns(e,t,r),gt(e,r))}var c1;c1=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)xt=!0;else if((r&n)!==0)xt=(e.flags&16384)!==0;else{switch(xt=!1,t.tag){case 3:hg(t),Vu();break;case 5:sg(t);break;case 1:Xe(t.type)&&Il(t);break;case 4:Wc(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var o=t.type._context;he(Zl,o._currentValue),o._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?yg(e,t,r):(he(ve,ve.current&1),t=Yt(e,t,r),t!==null?t.sibling:null);he(ve,ve.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return xg(e,t,r);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),he(ve,ve.current),n)break;return null;case 23:case 24:return t.lanes=0,Hu(e,t,r)}return Yt(e,t,r)}else xt=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Wn(t,Ae.current),jn(t,r),o=hd(null,t,n,e,o,r),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(n)){var i=!0;Il(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,pd(t);var l=n.getDerivedStateFromProps;typeof l=="function"&&ta(t,n,l,e),o.updater=Ls,t.stateNode=o,o._reactInternals=t,Bc(t,n,e,r),t=Xc(null,t,n,!0,i,r)}else t.tag=0,Ge(null,t,o,r),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=p$(o),e=bt(o,e),i){case 0:t=Yc(null,t,o,e,r);break e;case 1:t=vg(null,t,o,e,r);break e;case 11:t=gg(null,t,o,e,r);break e;case 14:t=mg(null,t,o,bt(o.type,e),n,r);break e}throw Error(N(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),Yc(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:bt(n,o),vg(e,t,n,o,r);case 3:if(hg(t),n=t.updateQueue,e===null||n===null)throw Error(N(282));if(n=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,Ty(e,t),hi(t,n,null,r),n=t.memoizedState.element,n===o)Vu(),t=Yt(e,t,r);else{if(o=t.stateNode,(i=o.hydrate)&&(fr=Mn(t.stateNode.containerInfo.firstChild),Gt=t,i=Nt=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d1)}catch(e){console.error(e)}}d1(),Ei.exports=ht;var _$=Ei.exports;function da(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function S$(e,t,r){for(let n=e-1;n>=0;n-=1)if(!t[n].disabled)return n;if(r){for(let n=t.length-1;n>-1;n-=1)if(!t[n].disabled)return n}return e}function b$(e,t,r){for(let n=e+1;n{var s;r?.(a);const u=Array.from(((s=da(a.currentTarget,e))==null?void 0:s.querySelectorAll(t))||[]).filter(w=>x$(a.currentTarget,w,e)),c=u.findIndex(w=>a.currentTarget===w),f=b$(c,u,n),d=S$(c,u,n),p=i==="rtl"?d:f,y=i==="rtl"?f:d;switch(a.key){case"ArrowRight":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[p].focus(),o&&u[p].click());break}case"ArrowLeft":{l==="horizontal"&&(a.stopPropagation(),a.preventDefault(),u[y].focus(),o&&u[y].click());break}case"ArrowUp":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[d].focus(),o&&u[d].click());break}case"ArrowDown":{l==="vertical"&&(a.stopPropagation(),a.preventDefault(),u[f].focus(),o&&u[f].click());break}case"Home":{a.stopPropagation(),a.preventDefault(),!u[0].disabled&&u[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const w=u.length-1;!u[w].disabled&&u[w].focus();break}}}}function P$(e,t,r){var n;return r?Array.from(((n=da(r,t))==null?void 0:n.querySelectorAll(e))||[]).findIndex(o=>o===r):null}var Hs={exports:{}},Di={};/** @license React v17.0.2
+ * react-jsx-runtime.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var $$=g.exports,g1=60103;Di.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var zg=Symbol.for;g1=zg("react.element"),Di.Fragment=zg("react.fragment")}var O$=$$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,C$=Object.prototype.hasOwnProperty,E$={key:!0,ref:!0,__self:!0,__source:!0};function m1(e,t,r){var n,o={},i=null,l=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)C$.call(t,n)&&!E$.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:g1,type:e,key:i,ref:l,props:o,_owner:O$.current}}Di.jsx=m1;Di.jsxs=m1;Hs.exports=Di;const S=Hs.exports.jsx,U=Hs.exports.jsxs,it=Hs.exports.Fragment;function Rd(e){const t=g.exports.createContext(null);return[({children:o,value:i})=>S(t.Provider,{value:i,children:o}),()=>{const o=g.exports.useContext(t);if(o===null)throw new Error(e);return o}]}function Si(e){return Array.isArray(e)?e:[e]}function Dg(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}function Ti(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}const k$=()=>{};function R$(e,t={active:!0}){return typeof e!="function"||!t.active?k$:r=>{var n;r.key==="Escape"&&(e(),(n=t.onTrigger)==null||n.call(t))}}function Xt(e,t){return r=>{e?.(r),t?.(r)}}function I$(){const[e,t]=g.exports.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function N$({data:e}){const t=[],r=[],n=e.reduce((o,i,l)=>(i.group?o[i.group]?o[i.group].push(l):o[i.group]=[l]:r.push(l),o),{});return Object.keys(n).forEach(o=>{t.push(...n[o].map(i=>e[i]))}),t.push(...r.map(o=>e[o])),t}function z$(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}const D$=typeof window<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function T$(e){function t(n){const o=Object.keys(n).reduce((i,l)=>(i[`${e}:${l}`]=a=>n[l](a.detail),i),{});D$(()=>(Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i]),window.addEventListener(i,o[i])}),()=>Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i])})),[])}function r(n){return(...o)=>z$(`${e}:${String(n)}`,o[0])}return[t,r]}function v1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t({fontFamily:e.fontFamily||"sans-serif"})}function j$(e){return()=>({WebkitTapHighlightColor:"transparent","&:focus":{outlineOffset:2,outline:e.focusRing==="always"||e.focusRing==="auto"?`2px solid ${e.colors[e.primaryColor][e.colorScheme==="dark"?7:5]}`:"none"},"&:focus:not(:focus-visible)":{outline:e.focusRing==="auto"||e.focusRing==="never"?"none":void 0}})}function Mi(e){return t=>typeof e.primaryShade=="number"?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Id(e){const t=Mi(e);return(r,n,o=!0,i=!0)=>{if(typeof r=="string"&&r.includes(".")){const[a,s]=r.split("."),u=parseInt(s,10);if(a in e.colors&&u>=0&&u<10)return e.colors[a][typeof n=="number"&&!i?n:u]}const l=typeof n=="number"?n:t();return r in e.colors?e.colors[r][l]:o?e.colors[e.primaryColor][l]:r}}function w1(e){let t="";for(let r=1;r{const o={from:n?.from||e.defaultGradient.from,to:n?.to||e.defaultGradient.to,deg:n?.deg||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function Nd(e){if(typeof e.size=="number")return e.size;const t=e.sizes[e.size];return t!==void 0?t:e.size||e.sizes.md}function A$(e){return t=>`@media (min-width: ${Nd({size:t,sizes:e.breakpoints})+1}px)`}function V$(e){return t=>`@media (max-width: ${Nd({size:t,sizes:e.breakpoints})}px)`}function H$(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)}function B$(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}const r=parseInt(t,16),n=r>>16&255,o=r>>8&255,i=r&255;return{r:n,g:o,b:i,a:1}}function W$(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}function zd(e){return H$(e)?B$(e):e.startsWith("rgb")?W$(e):{r:0,g:0,b:0,a:1}}function Pn(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";const{r,g:n,b:o}=zd(e);return`rgba(${r}, ${n}, ${o}, ${t})`}function U$(e=0){return{position:"absolute",top:e,right:e,left:e,bottom:e}}function G$(e,t){const{r,g:n,b:o,a:i}=zd(e),l=1-t,a=s=>Math.round(s*l);return`rgba(${a(r)}, ${a(n)}, ${a(o)}, ${i})`}function Y$(e,t){const{r,g:n,b:o,a:i}=zd(e),l=a=>Math.round(a+(255-a)*t);return`rgba(${l(r)}, ${l(n)}, ${l(o)}, ${i})`}function X$(e){return t=>{if(typeof t=="number")return t;const r=typeof e.defaultRadius=="number"?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}}function K$(e,t){if(typeof e=="string"&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}function q$(e){const t=Id(e),r=Mi(e),n=_1(e);return({variant:o,color:i,gradient:l,primaryFallback:a})=>{const s=K$(i,e);if(o==="light")return{border:"transparent",background:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1),color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?7:1,a,!1),e.colorScheme==="dark"?.25:.65)};if(o==="default")return{border:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4],background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,color:e.colorScheme==="dark"?e.white:e.black,hover:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]};if(o==="white")return{border:"transparent",background:e.white,color:t(i,r()),hover:null};if(o==="outline")return{border:t(i,e.colorScheme==="dark"?5:r("light")),background:"transparent",color:t(i,e.colorScheme==="dark"?5:r("light")),hover:e.colorScheme==="dark"?Pn(t(i,5,a,!1),.05):Pn(t(i,0,a,!1),.35)};if(o==="gradient")return{background:n(l),color:e.white,border:"transparent",hover:null};if(o==="subtle")return{border:"transparent",background:"transparent",color:i==="dark"?e.colorScheme==="dark"?e.colors.dark[0]:e.colors.dark[9]:t(i,e.colorScheme==="dark"?2:r("light")),hover:Pn(t(i,e.colorScheme==="dark"?8:0,a,!1),e.colorScheme==="dark"?.2:1)};const u=r(),c=s.isSplittedColor?s.shade:u,f=s.isSplittedColor?s.key:i;return{border:"transparent",background:t(f,c,a),color:e.white,hover:t(f,c===9?8:c+1)}}}function Q$(e){return t=>{const r=Mi(e)(t);return e.colors[e.primaryColor][r]}}function Z$(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}}const $e={fontStyles:M$,themeColor:Id,focusStyles:j$,linearGradient:L$,radialGradient:F$,smallerThan:V$,largerThan:A$,rgba:Pn,size:Nd,cover:U$,darken:G$,lighten:Y$,radius:X$,variant:q$,primaryShade:Mi,hover:Z$,gradient:_1,primaryColor:Q$};var J$=Object.defineProperty,eO=Object.defineProperties,tO=Object.getOwnPropertyDescriptors,Tg=Object.getOwnPropertySymbols,rO=Object.prototype.hasOwnProperty,nO=Object.prototype.propertyIsEnumerable,Mg=(e,t,r)=>t in e?J$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oO=(e,t)=>{for(var r in t||(t={}))rO.call(t,r)&&Mg(e,r,t[r]);if(Tg)for(var r of Tg(t))nO.call(t,r)&&Mg(e,r,t[r]);return e},iO=(e,t)=>eO(e,tO(t));function S1(e){return iO(oO({},e),{fn:{fontStyles:$e.fontStyles(e),themeColor:$e.themeColor(e),focusStyles:$e.focusStyles(e),largerThan:$e.largerThan(e),smallerThan:$e.smallerThan(e),radialGradient:$e.radialGradient,linearGradient:$e.linearGradient,gradient:$e.gradient(e),rgba:$e.rgba,size:$e.size,cover:$e.cover,lighten:$e.lighten,darken:$e.darken,primaryShade:$e.primaryShade(e),radius:$e.radius(e),variant:$e.variant(e),hover:$e.hover,primaryColor:$e.primaryColor(e)}})}Object.keys(y1);const lO=["xs","sm","md","lg","xl"],aO={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:y1,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en"},Dd=S1(aO);function sO(e){if(e.sheet)return e.sheet;for(var t=0;t0?Re(oo,--Ke):0,Yn--,we===10&&(Yn=1,Ws--),we}function rt(){return we=Ke<$1?Re(oo,Ke++):0,Yn++,we===10&&(Yn=1,Ws++),we}function zt(){return Re(oo,Ke)}function jl(){return Ke}function ji(e,t){return bi(oo,e,t)}function xi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O1(e){return Ws=Yn=1,$1=Ot(oo=e),Ke=0,[]}function C1(e){return oo="",e}function Ll(e){return P1(ji(Ke-1,uf(e===91?e+2:e===40?e+1:e)))}function _O(e){for(;(we=zt())&&we<33;)rt();return xi(e)>2||xi(we)>3?"":" "}function SO(e,t){for(;--t&&rt()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return ji(e,jl()+(t<6&&zt()==32&&rt()==32))}function uf(e){for(;rt();)switch(we){case e:return Ke;case 34:case 39:e!==34&&e!==39&&uf(we);break;case 40:e===41&&uf(e);break;case 92:rt();break}return Ke}function bO(e,t){for(;rt()&&e+we!==47+10;)if(e+we===42+42&&zt()===47)break;return"/*"+ji(t,Ke-1)+"*"+Bs(e===47?e:rt())}function xO(e){for(;!xi(zt());)rt();return ji(e,Ke)}function PO(e){return C1(Fl("",null,null,null,[""],e=O1(e),0,[0],e))}function Fl(e,t,r,n,o,i,l,a,s){for(var u=0,c=0,f=l,d=0,p=0,y=0,w=1,v=1,m=1,h=0,_="",b=o,O=i,x=n,P=_;v;)switch(y=h,h=rt()){case 40:if(y!=108&&Re(P,f-1)==58){sf(P+=re(Ll(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=Ll(h);break;case 9:case 10:case 13:case 32:P+=_O(y);break;case 92:P+=SO(jl()-1,7);continue;case 47:switch(zt()){case 42:case 47:ul($O(bO(rt(),jl()),t,r),s);break;default:P+="/"}break;case 123*w:a[u++]=Ot(P)*m;case 125*w:case 59:case 0:switch(h){case 0:case 125:v=0;case 59+c:m==-1&&(P=re(P,/\f/g,"")),p>0&&Ot(P)-f&&ul(p>32?Lg(P+";",n,r,f-1):Lg(re(P," ","")+";",n,r,f-2),s);break;case 59:P+=";";default:if(ul(x=jg(P,t,r,u,c,o,a,_,b=[],O=[],f),i),h===123)if(c===0)Fl(P,t,x,x,b,i,f,a,O);else switch(d===99&&Re(P,3)===110?100:d){case 100:case 108:case 109:case 115:Fl(e,x,x,n&&ul(jg(e,x,x,0,0,o,a,_,o,b=[],f),O),o,O,f,a,n?b:O);break;default:Fl(P,x,x,x,[""],O,0,a,O)}}u=c=p=0,w=m=1,_=P="",f=l;break;case 58:f=1+Ot(P),p=y;default:if(w<1){if(h==123)--w;else if(h==125&&w++==0&&wO()==125)continue}switch(P+=Bs(h),h*w){case 38:m=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(Ot(P)-1)*m,m=1;break;case 64:zt()===45&&(P+=Ll(rt())),d=zt(),c=f=Ot(_=P+=xO(jl())),h++;break;case 45:y===45&&Ot(P)==2&&(w=0)}}return i}function jg(e,t,r,n,o,i,l,a,s,u,c){for(var f=o-1,d=o===0?i:[""],p=jd(d),y=0,w=0,v=0;y0?d[m]+" "+h:re(h,/&\f/g,d[m])))&&(s[v++]=_);return Us(e,t,r,o===0?Td:a,s,u,c)}function $O(e,t,r){return Us(e,t,r,b1,Bs(yO()),bi(e,2,-2),0)}function Lg(e,t,r,n){return Us(e,t,r,Md,bi(e,0,n),bi(e,n+1,-1),n)}function Hn(e,t){for(var r="",n=jd(e),o=0;o6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+pa+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sf(e,"stretch")?E1(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,Ot(e)-3-(~sf(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Re(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return te+e+Me+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Me+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Me+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Me+e+e}return e}var TO=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Md:t.return=E1(t.value,t.length);break;case x1:return Hn([Io(t,{value:re(t.value,"@","@"+te)})],o);case Td:if(t.length)return hO(t.props,function(i){switch(vO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([Io(t,{props:[re(i,/:(read-\w+)/,":"+pa+"$1")]})],o);case"::placeholder":return Hn([Io(t,{props:[re(i,/:(plac\w+)/,":"+te+"input-$1")]}),Io(t,{props:[re(i,/:(plac\w+)/,":"+pa+"$1")]}),Io(t,{props:[re(i,/:(plac\w+)/,Me+"input-$1")]})],o)}return""})}},MO=[TO],k1=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var v=w.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||MO,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var v=w.getAttribute("data-emotion").split(" "),m=1;m=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},KO=/[A-Z]|^ms/g,qO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T1=function(t){return t.charCodeAt(1)===45},Ag=function(t){return t!=null&&typeof t!="boolean"},Xu=kO(function(e){return T1(e)?e:e.replace(KO,"-$&").toLowerCase()}),Vg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qO,function(n,o,i){return Ct={name:o,styles:i,next:Ct},o})}return XO[t]!==1&&!T1(t)&&typeof r=="number"&&r!==0?r+"px":r};function Pi(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Ct={name:r.name,styles:r.styles,next:Ct},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Ct={name:n.name,styles:n.styles,next:Ct},n=n.next;var o=r.styles+";";return o}return QO(e,t,r)}case"function":{if(e!==void 0){var i=Ct,l=r(e);return Ct=i,Pi(e,t,l)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function QO(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ot in e?eC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iC=(e,t)=>{for(var r in t||(t={}))nC.call(t,r)&&Ug(e,r,t[r]);if(Wg)for(var r of Wg(t))oC.call(t,r)&&Ug(e,r,t[r]);return e},lC=(e,t)=>tC(e,rC(t));function aC({theme:e}){return E.createElement(Vd,{styles:{"*, *::before, *::after":{boxSizing:"border-box"},body:lC(iC({},e.fn.fontStyles()),{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,fontSize:e.fontSizes.md,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"})}})}function cl(e,t,r){Object.keys(t).forEach(n=>{e[`--mantine-${r}-${n}`]=typeof t[n]=="number"?`${t[n]}px`:t[n]})}function sC({theme:e}){const t={"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-transition-timing-function":e.transitionTimingFunction,"--mantine-line-height":`${e.lineHeight}`,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":`${e.headings.fontWeight}`};cl(t,e.shadows,"shadow"),cl(t,e.fontSizes,"font-size"),cl(t,e.radius,"radius"),cl(t,e.spacing,"spacing"),Object.keys(e.colors).forEach(n=>{e.colors[n].forEach((o,i)=>{t[`--mantine-color-${n}-${i}`]=o})});const r=e.headings.sizes;return Object.keys(r).forEach(n=>{t[`--mantine-${n}-font-size`]=`${r[n].fontSize}px`,t[`--mantine-${n}-line-height`]=`${r[n].lineHeight}`}),E.createElement(Vd,{styles:{":root":t}})}var uC=Object.defineProperty,cC=Object.defineProperties,fC=Object.getOwnPropertyDescriptors,Gg=Object.getOwnPropertySymbols,dC=Object.prototype.hasOwnProperty,pC=Object.prototype.propertyIsEnumerable,Yg=(e,t,r)=>t in e?uC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lr=(e,t)=>{for(var r in t||(t={}))dC.call(t,r)&&Yg(e,r,t[r]);if(Gg)for(var r of Gg(t))pC.call(t,r)&&Yg(e,r,t[r]);return e},Xg=(e,t)=>cC(e,fC(t));function gC(e,t){return t?Object.keys(e).reduce((r,n)=>{if(n==="headings"&&t.headings){const o=t.headings.sizes?Object.keys(e.headings.sizes).reduce((i,l)=>(i[l]=Lr(Lr({},e.headings.sizes[l]),t.headings.sizes[l]),i),{}):e.headings.sizes;return Xg(Lr({},r),{headings:Xg(Lr(Lr({},e.headings),t.headings),{sizes:o})})}return r[n]=typeof t[n]=="object"?Lr(Lr({},e[n]),t[n]):typeof t[n]=="number"||typeof t[n]=="boolean"?t[n]:t[n]||e[n],r},{}):e}function mC(e,t){return S1(gC(e,t))}function vC(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}const hC={html:{fontFamily:"sans-serif",lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:0},"article, aside, footer, header, nav, section, figcaption, figure, main":{display:"block"},h1:{fontSize:"2em"},hr:{boxSizing:"content-box",height:0,overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{background:"transparent",textDecorationSkip:"objects"},"a:active, a:hover":{outlineWidth:0},"abbr[title]":{borderBottom:"none",textDecoration:"underline"},"b, strong":{fontWeight:"bolder"},"code, kbp, samp":{fontFamily:"monospace, monospace",fontSize:"1em"},dfn:{fontStyle:"italic"},mark:{backgroundColor:"#ff0",color:"#000"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sup:{top:"-0.5em"},sub:{bottom:"-0.25em"},"audio, video":{display:"inline-block"},"audio:not([controls])":{display:"none",height:0},img:{borderStyle:"none",verticalAlign:"middle"},"svg:not(:root)":{overflow:"hidden"},"button, input, optgroup, select, textarea":{fontFamily:"sans-serif",fontSize:"100%",lineHeight:"1.15",margin:0},"button, input":{overflow:"visible"},"button, select":{textTransform:"none"},"button, [type=reset], [type=submit]":{WebkitAppearance:"button"},"button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner":{borderStyle:"none",padding:0},"button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring":{outline:"1px dotted ButtonText"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:0,whiteSpace:"normal"},progress:{display:"inline-block",verticalAlign:"baseline"},textarea:{overflow:"auto"},"[type=checkbox], [type=radio]":{boxSizing:"border-box",padding:0},"[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button":{height:"auto"},"[type=search]":{appearance:"none"},"[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration":{appearance:"none"},"::-webkit-file-upload-button":{appearance:"button",font:"inherit"},"details, menu":{display:"block"},summary:{display:"list-item"},canvas:{display:"inline-block"},template:{display:"none"},"[hidden]":{display:"none"}};function yC(){return E.createElement(Vd,{styles:hC})}var wC=Object.defineProperty,Kg=Object.getOwnPropertySymbols,_C=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,qg=(e,t,r)=>t in e?wC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ni=(e,t)=>{for(var r in t||(t={}))_C.call(t,r)&&qg(e,r,t[r]);if(Kg)for(var r of Kg(t))SC.call(t,r)&&qg(e,r,t[r]);return e};const ga=g.exports.createContext({theme:Dd});function at(){var e;return((e=g.exports.useContext(ga))==null?void 0:e.theme)||Dd}function bC(e){const t=at(),r=n=>{var o,i;return{styles:((o=t.components[n])==null?void 0:o.styles)||{},classNames:((i=t.components[n])==null?void 0:i.classNames)||{}}};return Array.isArray(e)?e.map(r):[r(e)]}function xC(){var e;return(e=g.exports.useContext(ga))==null?void 0:e.emotionCache}function ee(e,t,r){var n;const i=(n=at().components[e])==null?void 0:n.defaultProps;return ni(ni(ni({},t),i),vC(r))}function L1({theme:e,emotionCache:t,withNormalizeCSS:r=!1,withGlobalStyles:n=!1,withCSSVariables:o=!1,inherit:i=!1,children:l}){const a=g.exports.useContext(ga),s=mC(Dd,i?ni(ni({},a.theme),e):e);return U(ga.Provider,{value:{theme:s,emotionCache:t},children:[r&&S(yC,{}),n&&S(aC,{theme:s}),o&&S(sC,{theme:s}),l]})}L1.displayName="@mantine/core/MantineProvider";const F1=g.exports.createContext({classNames:{},styles:{},unstyled:!1});function A1({children:e,classNames:t,unstyled:r,styles:n,staticSelector:o}){return S(F1.Provider,{value:{classNames:t,styles:n,unstyled:r,staticSelector:o},children:e})}function dn(){return g.exports.useContext(F1)}const PC={app:100,modal:200,popover:300,overlay:400,max:9999};function io(e){return PC[e]}var Qg=Object.getOwnPropertySymbols,$C=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable,CC=(e,t)=>{var r={};for(var n in e)$C.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qg)for(var n of Qg(e))t.indexOf(n)<0&&OC.call(e,n)&&(r[n]=e[n]);return r};function ru(e){const t=e,{m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:y,pr:w}=t,v=CC(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr"]),m={m:r,mx:n,my:o,mt:i,mb:l,ml:a,mr:s,p:u,px:c,py:f,pt:d,pb:p,pl:y,pr:w};return Object.keys(m).forEach(h=>{m[h]===void 0&&delete m[h]}),{systemStyles:m,rest:v}}function EC(e,t){const r=g.exports.useRef();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map((n,o)=>n===t[o]).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}const kC=k1({key:"mantine",prepend:!0});function RC(){return xC()||kC}var IC=Object.defineProperty,Zg=Object.getOwnPropertySymbols,NC=Object.prototype.hasOwnProperty,zC=Object.prototype.propertyIsEnumerable,Jg=(e,t,r)=>t in e?IC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DC=(e,t)=>{for(var r in t||(t={}))NC.call(t,r)&&Jg(e,r,t[r]);if(Zg)for(var r of Zg(t))zC.call(t,r)&&Jg(e,r,t[r]);return e};const Ku="ref";function TC(e){let t;if(e.length!==1)return{args:e,ref:t};const[r]=e;if(!(r instanceof Object))return{args:e,ref:t};if(!(Ku in r))return{args:e,ref:t};t=r[Ku];const n=DC({},r);return delete n[Ku],{args:[n],ref:t}}const{cssFactory:MC}=(()=>{function e(r,n,o){const i=[],l=UO(r,i,o);return i.length<2?o:l+n(i)}function t(r){const{cache:n}=r,o=(...l)=>{const{ref:a,args:s}=TC(l),u=M1(s,n.registered);return D1(n,u,!1),`${n.key}-${u.name}${a===void 0?"":` ${a}`}`};return{css:o,cx:(...l)=>e(n.registered,o,h1(l))}}return{cssFactory:t}})();function V1(){const e=RC();return EC(()=>MC({cache:e}),[e])}function jC({cx:e,classes:t,context:r,classNames:n,name:o}){const i=r.reduce((l,a)=>(Object.keys(a.classNames).forEach(s=>{typeof l[s]!="string"?l[s]=`${a.classNames[s]}`:l[s]=`${l[s]} ${a.classNames[s]}`}),l),{});return Object.keys(t).reduce((l,a)=>(l[a]=e(t[a],i[a],n!=null&&n[a],Array.isArray(o)?o.filter(Boolean).map(s=>`mantine-${s}-${a}`).join(" "):o?`mantine-${o}-${a}`:null),l),{})}var LC=Object.defineProperty,em=Object.getOwnPropertySymbols,FC=Object.prototype.hasOwnProperty,AC=Object.prototype.propertyIsEnumerable,tm=(e,t,r)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qu=(e,t)=>{for(var r in t||(t={}))FC.call(t,r)&&tm(e,r,t[r]);if(em)for(var r of em(t))AC.call(t,r)&&tm(e,r,t[r]);return e};function VC(e){return`__mantine-ref-${e||""}`}function rm(e,t,r){const n=o=>typeof o=="function"?o(t,r||{}):o||{};return Array.isArray(e)?e.map(o=>n(o.styles)).reduce((o,i)=>(Object.keys(i).forEach(l=>{o[l]?o[l]=qu(qu({},o[l]),i[l]):o[l]=qu({},i[l])}),o),{}):n(e)}function Q(e){const t=typeof e=="function"?e:()=>e;function r(n,o){const i=at(),l=bC(o?.name),{css:a,cx:s}=V1(),u=t(i,n,VC),c=rm(o?.styles,i,n),f=rm(l,i,n),d=Object.fromEntries(Object.keys(u).map(p=>{const y=s({[a(u[p])]:!o?.unstyled},a(f[p]),a(c[p]));return[p,y]}));return{classes:jC({cx:s,classes:d,context:l,classNames:o?.classNames,name:o?.name}),cx:s,theme:i}}return r}var HC=Object.defineProperty,BC=Object.defineProperties,WC=Object.getOwnPropertyDescriptors,nm=Object.getOwnPropertySymbols,UC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,om=(e,t,r)=>t in e?HC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,No=(e,t)=>{for(var r in t||(t={}))UC.call(t,r)&&om(e,r,t[r]);if(nm)for(var r of nm(t))GC.call(t,r)&&om(e,r,t[r]);return e},zo=(e,t)=>BC(e,WC(t));const Do={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},fl={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:zo(No({},Do),{common:{transformOrigin:"center center"}}),"pop-bottom-left":zo(No({},Do),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":zo(No({},Do),{common:{transformOrigin:"bottom right"}}),"pop-top-left":zo(No({},Do),{common:{transformOrigin:"top left"}}),"pop-top-right":zo(No({},Do),{common:{transformOrigin:"top right"}})},im=["mousedown","touchstart"];function YC(e,t,r){const n=g.exports.useRef();return g.exports.useEffect(()=>{const o=i=>{const{target:l}=i??{};if(Array.isArray(r)){const a=l?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(l);r.every(u=>!!u&&!u.contains(l))&&!a&&e()}else n.current&&!n.current.contains(l)&&e()};return(t||im).forEach(i=>document.addEventListener(i,o)),()=>{(t||im).forEach(i=>document.removeEventListener(i,o))}},[n,e,r]),n}function XC(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function KC(e,t){return typeof t=="boolean"?t:typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function qC(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,o]=g.exports.useState(r?!1:KC(e,t)),i=g.exports.useRef();return g.exports.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),XC(i.current,l=>o(l.matches))},[e]),n}function Qu(e,t,r){return Math.min(Math.max(e,t),r)}const H1=typeof document<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function kr(e,t){const r=g.exports.useRef(!1);g.exports.useEffect(()=>{r.current?e():r.current=!0},t)}function B1({opened:e,shouldReturnFocus:t=!0}){const r=g.exports.useRef(),n=()=>{var o;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((o=r.current)==null||o.focus())};return kr(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?r.current=document.activeElement:t&&(o=window.setTimeout(n,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e]),n}const QC=/input|select|textarea|button|object/,W1="a, input, select, textarea, button, object, [tabindex]";function ZC(e){return e.style.display==="none"}function JC(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&r!==document.body;){if(ZC(r))return!1;r=r.parentNode}return!0}function U1(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function cf(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(U1(e));return(QC.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&JC(e)}function G1(e){const t=U1(e);return(Number.isNaN(t)||t>=0)&&cf(e)}function e2(e){return Array.from(e.querySelectorAll(W1)).filter(G1)}function t2(e,t){const r=e2(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();const i=r[t.shiftKey?r.length-1:0];i&&i.focus()}function r2(e,t="body > :not(script)"){const r=Array.from(document.querySelectorAll(t)).map(n=>{if(n.contains(e))return;const o=n.getAttribute("aria-hidden");return(o===null||o==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:o}});return()=>{r.forEach(n=>{!n||(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}}function Y1(e=!0){const t=g.exports.useRef(),r=g.exports.useRef(null),n=g.exports.useCallback(o=>{if(!!e)if(r.current&&r.current(),o){const i=l=>{r.current=r2(l);let a=o.querySelector("[data-autofocus]");if(!a){const s=Array.from(o.querySelectorAll(W1));a=s.find(G1)||s.find(cf)||null,!a&&cf(o)&&(a=o)}a&&a.focus()};setTimeout(()=>{o.ownerDocument&&i(o)}),t.current=o}else t.current=null},[e]);return g.exports.useEffect(()=>{if(!e)return;const o=i=>{i.key==="Tab"&&t.current&&t2(t.current,i)};return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e]),n}const n2=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,o2=E["useId".toString()]||(()=>{});function i2(){const[e,t]=g.exports.useState("");return H1(()=>{t(n2())},[]),e}function l2(){const e=o2();return e?`mantine-${e.replace(/:/g,"")}`:""}function lo(e){return typeof e=="string"?e:l2()||i2()}function lm(e,t,r){g.exports.useEffect(()=>(window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)),[])}function X1(e,t){typeof e=="function"?e(t):typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function a2(...e){return t=>{e.forEach(r=>X1(r,t))}}function pn(...e){return g.exports.useCallback(a2(...e),e)}function Li({value:e,defaultValue:t,finalValue:r,onChange:n=()=>{}}){const[o,i]=g.exports.useState(t!==void 0?t:r),l=a=>{i(a),n?.(a)};return e!==void 0?[e,n,!0]:[o,l,!1]}function ir(e,t){const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)}const dl="dots";function s2({total:e,siblings:t=1,boundaries:r=1,page:n,initialPage:o=1,onChange:i}){const[l,a]=Li({value:n,onChange:i,defaultValue:o,finalValue:o}),s=y=>{y<=0?a(1):y>e?a(e):a(y)},u=()=>s(l+1),c=()=>s(l-1),f=()=>s(1),d=()=>s(e);return{range:g.exports.useMemo(()=>{if(t*2+3+r*2>=e)return ir(1,e);const w=Math.max(l-t,r),v=Math.min(l+t,e-r),m=w>r+2,h=ve<.5?2*e*e:-1+(4-2*e)*e,c2=({axis:e,target:t,parent:r,alignment:n,offset:o,isList:i})=>{if(!t||!r&&typeof document>"u")return 0;const l=!!r,s=(r||document.body).getBoundingClientRect(),u=t.getBoundingClientRect(),c=f=>u[f]-s[f];if(e==="y"){const f=c("top");if(f===0)return 0;if(n==="start"){const p=f-o;return p<=u.height*(i?0:1)||!i?p:0}const d=l?s.height:window.innerHeight;if(n==="end"){const p=f+o-d+u.height;return p>=-u.height*(i?0:1)||!i?p:0}return n==="center"?f-d/2+u.height/2:0}if(e==="x"){const f=c("left");if(f===0)return 0;if(n==="start"){const p=f-o;return p<=u.width||!i?p:0}const d=l?s.width:window.innerWidth;if(n==="end"){const p=f+o-d+u.width;return p>=-u.width||!i?p:0}return n==="center"?f-d/2+u.width/2:0}return 0},f2=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;const r=e==="y"?"scrollTop":"scrollLeft";if(t)return t[r];const{body:n,documentElement:o}=document;return n[r]+o[r]},d2=({axis:e,parent:t,distance:r})=>{if(!t&&typeof document>"u")return;const n=e==="y"?"scrollTop":"scrollLeft";if(t)t[n]=r;else{const{body:o,documentElement:i}=document;o[n]=r,i[n]=r}};function p2({duration:e=1250,axis:t="y",onScrollFinish:r,easing:n=u2,offset:o=0,cancelable:i=!0,isList:l=!1}={}){const a=g.exports.useRef(0),s=g.exports.useRef(0),u=g.exports.useRef(!1),c=g.exports.useRef(null),f=g.exports.useRef(null),d=K1(),p=()=>{a.current&&cancelAnimationFrame(a.current)},y=g.exports.useCallback(({alignment:v="start"}={})=>{var m;u.current=!1,a.current&&p();const h=(m=f2({parent:c.current,axis:t}))!=null?m:0,_=c2({parent:c.current,target:f.current,axis:t,alignment:v,offset:o,isList:l})-(c.current?0:h);function b(){s.current===0&&(s.current=performance.now());const x=performance.now()-s.current,P=d||e===0?1:x/e,$=h+_*n(P);d2({parent:c.current,axis:t,distance:$}),!u.current&&P<1?a.current=requestAnimationFrame(b):(typeof r=="function"&&r(),s.current=0,a.current=0,p())}b()},[c.current]),w=()=>{i&&(u.current=!0)};return lm("wheel",w,{passive:!0}),lm("touchmove",w,{passive:!0}),g.exports.useEffect(()=>p,[]),{scrollableRef:c,targetRef:f,scrollIntoView:y,cancel:p}}function g2(){if(typeof window>"u"||typeof document>"u")return 0;const e=parseInt(window.getComputedStyle(document.body).paddingRight,10),t=window.innerWidth-document.documentElement.clientWidth;return e+t}const m2=({disableBodyPadding:e})=>{const t=e?null:g2();return`body {
+ --removed-scroll-width: ${t}px;
+ touch-action: none;
+ overflow: hidden !important;
+ position: relative !important;
+ ${t?"padding-right: var(--removed-scroll-width) !important;":""}
+ `};function v2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function h2(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}function y2(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}function w2(e,t={disableBodyPadding:!1}){const[r,n]=g.exports.useState(e||!1),o=g.exports.useRef(0),{disableBodyPadding:i}=t,l=g.exports.useRef(null),a=()=>{o.current=window.scrollY;const u=m2({disableBodyPadding:i}),c=y2();v2(c,u),h2(c),l.current=c},s=()=>{!l?.current||(l.current.parentNode.removeChild(l.current),l.current=null)};return g.exports.useEffect(()=>(r?a():s(),s),[r]),g.exports.useEffect(()=>{e!==void 0&&n(e)},[e]),g.exports.useEffect(()=>{e===void 0&&typeof window<"u"&&window.document.body.style.overflow==="hidden"&&n(!0)},[n]),[r,n]}function _2(){const{userAgent:e}=window.navigator,t=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i,r=/(Win32)|(Win64)|(Windows)|(WinCE)/i,n=/(iPhone)|(iPad)|(iPod)/i;return t.test(e)?"macos":n.test(e)?"ios":r.test(e)?"windows":/Android/i.test(e)?"android":/Linux/i.test(e)?"linux":"undetermined"}function S2(){return typeof window<"u"?_2():"undetermined"}function Al(){return`mantine-${Math.random().toString(36).slice(2,11)}`}const am={mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",pt:"paddingTop",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight"},b2=["-xs","-sm","-md","-lg","-xl"];function Fr(e){return typeof e=="string"||typeof e=="number"}function Ar(e,t){return b2.includes(e)?t.fn.size({size:e.replace("-",""),sizes:t.spacing})*-1:t.fn.size({size:e,sizes:t.spacing})}function sm(e,t){const r={};if(Fr(e.p)){const n=Ar(e.p,t);r.padding=n}if(Fr(e.m)){const n=Ar(e.m,t);r.margin=n}if(Fr(e.py)){const n=Ar(e.py,t);r.paddingTop=n,r.paddingBottom=n}if(Fr(e.px)){const n=Ar(e.px,t);r.paddingLeft=n,r.paddingRight=n}if(Fr(e.my)){const n=Ar(e.my,t);r.marginTop=n,r.marginBottom=n}if(Fr(e.mx)){const n=Ar(e.mx,t);r.marginLeft=n,r.marginRight=n}return Object.keys(am).forEach(n=>{Fr(e[n])&&(r[am[n]]=t.fn.size({size:Ar(e[n],t),sizes:t.spacing}))}),r}function um(e,t){return typeof e=="function"?e(t):e}function x2(e,t,r){const n=at(),{css:o,cx:i}=V1();return Array.isArray(e)?i(r,o(sm(t,n)),e.map(l=>o(um(l,n)))):i(r,o(um(e,n)),o(sm(t,n)))}var P2=Object.defineProperty,ma=Object.getOwnPropertySymbols,q1=Object.prototype.hasOwnProperty,Q1=Object.prototype.propertyIsEnumerable,cm=(e,t,r)=>t in e?P2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$2=(e,t)=>{for(var r in t||(t={}))q1.call(t,r)&&cm(e,r,t[r]);if(ma)for(var r of ma(t))Q1.call(t,r)&&cm(e,r,t[r]);return e},O2=(e,t)=>{var r={};for(var n in e)q1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ma)for(var n of ma(e))t.indexOf(n)<0&&Q1.call(e,n)&&(r[n]=e[n]);return r};const Z1=g.exports.forwardRef((e,t)=>{var r=e,{className:n,component:o,style:i,sx:l}=r,a=O2(r,["className","component","style","sx"]);const{systemStyles:s,rest:u}=ru(a);return S(o||"div",{...$2({ref:t,className:x2(l,s,n),style:i},u)})});Z1.displayName="@mantine/core/Box";const K=Z1;var C2=Object.defineProperty,E2=Object.defineProperties,k2=Object.getOwnPropertyDescriptors,fm=Object.getOwnPropertySymbols,R2=Object.prototype.hasOwnProperty,I2=Object.prototype.propertyIsEnumerable,dm=(e,t,r)=>t in e?C2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pm=(e,t)=>{for(var r in t||(t={}))R2.call(t,r)&&dm(e,r,t[r]);if(fm)for(var r of fm(t))I2.call(t,r)&&dm(e,r,t[r]);return e},N2=(e,t)=>E2(e,k2(t)),z2=Q(e=>({root:N2(pm(pm({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})),D2=z2,T2=Object.defineProperty,va=Object.getOwnPropertySymbols,J1=Object.prototype.hasOwnProperty,ew=Object.prototype.propertyIsEnumerable,gm=(e,t,r)=>t in e?T2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M2=(e,t)=>{for(var r in t||(t={}))J1.call(t,r)&&gm(e,r,t[r]);if(va)for(var r of va(t))ew.call(t,r)&&gm(e,r,t[r]);return e},j2=(e,t)=>{var r={};for(var n in e)J1.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&va)for(var n of va(e))t.indexOf(n)<0&&ew.call(e,n)&&(r[n]=e[n]);return r};const tw=g.exports.forwardRef((e,t)=>{const r=ee("UnstyledButton",{},e),{className:n,component:o="button",unstyled:i}=r,l=j2(r,["className","component","unstyled"]),{classes:a,cx:s}=D2(null,{name:"UnstyledButton",unstyled:i});return S(K,{...M2({component:o,ref:t,className:s(a.root,n),type:o==="button"?"button":void 0},l)})});tw.displayName="@mantine/core/UnstyledButton";const nu=tw;var L2=Object.defineProperty,F2=Object.defineProperties,A2=Object.getOwnPropertyDescriptors,mm=Object.getOwnPropertySymbols,V2=Object.prototype.hasOwnProperty,H2=Object.prototype.propertyIsEnumerable,vm=(e,t,r)=>t in e?L2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rw=(e,t)=>{for(var r in t||(t={}))V2.call(t,r)&&vm(e,r,t[r]);if(mm)for(var r of mm(t))H2.call(t,r)&&vm(e,r,t[r]);return e},B2=(e,t)=>F2(e,A2(t));const Wo={xs:18,sm:22,md:28,lg:34,xl:44};function W2({variant:e,theme:t,color:r}){if(e==="transparent")return{border:"1px solid transparent",color:t.fn.variant({variant:"subtle",color:r}).color,backgroundColor:"transparent"};const n=t.fn.variant({color:r,variant:e});return rw({backgroundColor:n.background,color:n.color,border:`1px solid ${n.border}`},t.fn.hover({backgroundColor:n.hover}))}var U2=Q((e,{color:t,size:r,radius:n,variant:o})=>({root:B2(rw({},W2({variant:o,theme:e,color:t})),{position:"relative",height:e.fn.size({size:r,sizes:Wo}),minHeight:e.fn.size({size:r,sizes:Wo}),width:e.fn.size({size:r,sizes:Wo}),minWidth:e.fn.size({size:r,sizes:Wo}),borderRadius:e.fn.radius(n),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&[data-disabled]":{color:e.colors.gray[e.colorScheme==="dark"?6:4],cursor:"not-allowed",backgroundColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),borderColor:o==="transparent"?void 0:e.fn.themeColor("gray",e.colorScheme==="dark"?8:1),"&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}})})),G2=U2,Y2=Object.defineProperty,ha=Object.getOwnPropertySymbols,nw=Object.prototype.hasOwnProperty,ow=Object.prototype.propertyIsEnumerable,hm=(e,t,r)=>t in e?Y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X2=(e,t)=>{for(var r in t||(t={}))nw.call(t,r)&&hm(e,r,t[r]);if(ha)for(var r of ha(t))ow.call(t,r)&&hm(e,r,t[r]);return e},K2=(e,t)=>{var r={};for(var n in e)nw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ha)for(var n of ha(e))t.indexOf(n)<0&&ow.call(e,n)&&(r[n]=e[n]);return r};function q2(e){var t=e,{size:r,color:n}=t,o=K2(t,["size","color"]);return E.createElement("svg",X2({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:n,width:`${r}px`},o),E.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},E.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},E.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},E.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},E.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},E.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var Q2=Object.defineProperty,ya=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,ym=(e,t,r)=>t in e?Q2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z2=(e,t)=>{for(var r in t||(t={}))iw.call(t,r)&&ym(e,r,t[r]);if(ya)for(var r of ya(t))lw.call(t,r)&&ym(e,r,t[r]);return e},J2=(e,t)=>{var r={};for(var n in e)iw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&lw.call(e,n)&&(r[n]=e[n]);return r};function eE(e){var t=e,{size:r,color:n}=t,o=J2(t,["size","color"]);return E.createElement("svg",Z2({width:`${r}px`,height:`${r}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:n},o),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},E.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),E.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},E.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))}var tE=Object.defineProperty,wa=Object.getOwnPropertySymbols,aw=Object.prototype.hasOwnProperty,sw=Object.prototype.propertyIsEnumerable,wm=(e,t,r)=>t in e?tE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rE=(e,t)=>{for(var r in t||(t={}))aw.call(t,r)&&wm(e,r,t[r]);if(wa)for(var r of wa(t))sw.call(t,r)&&wm(e,r,t[r]);return e},nE=(e,t)=>{var r={};for(var n in e)aw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wa)for(var n of wa(e))t.indexOf(n)<0&&sw.call(e,n)&&(r[n]=e[n]);return r};function oE(e){var t=e,{size:r,color:n}=t,o=nE(t,["size","color"]);return E.createElement("svg",rE({width:`${r}px`,height:`${r/4}px`,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:n},o),E.createElement("circle",{cx:"15",cy:"15",r:"15"},E.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},E.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),E.createElement("circle",{cx:"105",cy:"15",r:"15"},E.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),E.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var iE=Object.defineProperty,_a=Object.getOwnPropertySymbols,uw=Object.prototype.hasOwnProperty,cw=Object.prototype.propertyIsEnumerable,_m=(e,t,r)=>t in e?iE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lE=(e,t)=>{for(var r in t||(t={}))uw.call(t,r)&&_m(e,r,t[r]);if(_a)for(var r of _a(t))cw.call(t,r)&&_m(e,r,t[r]);return e},aE=(e,t)=>{var r={};for(var n in e)uw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_a)for(var n of _a(e))t.indexOf(n)<0&&cw.call(e,n)&&(r[n]=e[n]);return r};const Zu={bars:q2,oval:eE,dots:oE},sE={xs:18,sm:22,md:36,lg:44,xl:58},uE={size:"md"};function Hd(e){const t=ee("Loader",uE,e),{size:r,color:n,variant:o}=t,i=aE(t,["size","color","variant"]),l=at(),a=o in Zu?o:l.loader;return E.createElement(K,lE({role:"presentation",component:Zu[a]||Zu.bars,size:l.fn.size({size:r,sizes:sE}),color:l.fn.variant({variant:"filled",primaryFallback:!1,color:n||l.primaryColor}).background},i))}Hd.displayName="@mantine/core/Loader";var cE=Object.defineProperty,Sa=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,dw=Object.prototype.propertyIsEnumerable,Sm=(e,t,r)=>t in e?cE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bm=(e,t)=>{for(var r in t||(t={}))fw.call(t,r)&&Sm(e,r,t[r]);if(Sa)for(var r of Sa(t))dw.call(t,r)&&Sm(e,r,t[r]);return e},fE=(e,t)=>{var r={};for(var n in e)fw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sa)for(var n of Sa(e))t.indexOf(n)<0&&dw.call(e,n)&&(r[n]=e[n]);return r};const dE={color:"gray",size:"md",variant:"subtle",loading:!1},pw=g.exports.forwardRef((e,t)=>{const r=ee("ActionIcon",dE,e),{className:n,color:o,children:i,radius:l,size:a,variant:s,disabled:u,loaderProps:c,loading:f,unstyled:d}=r,p=fE(r,["className","color","children","radius","size","variant","disabled","loaderProps","loading","unstyled"]),{classes:y,cx:w,theme:v}=G2({size:a,radius:l,color:o,variant:s},{name:"ActionIcon",unstyled:d}),m=v.fn.variant({color:o,variant:"light"}),h=S(Hd,{...bm({color:m.color,size:v.fn.size({size:a,sizes:Wo})-12},c)});return S(nu,{...bm({className:w(y.root,n),ref:t,disabled:u||f,"data-disabled":u||void 0,"data-loading":f||void 0,unstyled:d},p),children:f?h:i})});pw.displayName="@mantine/core/ActionIcon";const $t=pw;function gw(e){const{children:t,target:r,className:n}=ee("Portal",{},e),o=at(),[i,l]=g.exports.useState(!1),a=g.exports.useRef();return H1(()=>(l(!0),a.current=r?typeof r=="string"?document.querySelector(r):r:document.createElement("div"),r||document.body.appendChild(a.current),()=>{!r&&document.body.removeChild(a.current)}),[r]),i?Ei.exports.createPortal(S("div",{className:n,dir:o.dir,children:t}),a.current):null}gw.displayName="@mantine/core/Portal";var pE=Object.defineProperty,ba=Object.getOwnPropertySymbols,mw=Object.prototype.hasOwnProperty,vw=Object.prototype.propertyIsEnumerable,xm=(e,t,r)=>t in e?pE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gE=(e,t)=>{for(var r in t||(t={}))mw.call(t,r)&&xm(e,r,t[r]);if(ba)for(var r of ba(t))vw.call(t,r)&&xm(e,r,t[r]);return e},mE=(e,t)=>{var r={};for(var n in e)mw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ba)for(var n of ba(e))t.indexOf(n)<0&&vw.call(e,n)&&(r[n]=e[n]);return r};function Fi(e){var t=e,{withinPortal:r=!0,children:n}=t,o=mE(t,["withinPortal","children"]);return r?E.createElement(gw,gE({},o),n):E.createElement(E.Fragment,null,n)}Fi.displayName="@mantine/core/OptionalPortal";var vE=Object.defineProperty,Pm=Object.getOwnPropertySymbols,hE=Object.prototype.hasOwnProperty,yE=Object.prototype.propertyIsEnumerable,$m=(e,t,r)=>t in e?vE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wE=(e,t)=>{for(var r in t||(t={}))hE.call(t,r)&&$m(e,r,t[r]);if(Pm)for(var r of Pm(t))yE.call(t,r)&&$m(e,r,t[r]);return e};function hw(e){return E.createElement("svg",wE({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}hw.displayName="@mantine/core/CloseIcon";var _E=Object.defineProperty,xa=Object.getOwnPropertySymbols,yw=Object.prototype.hasOwnProperty,ww=Object.prototype.propertyIsEnumerable,Om=(e,t,r)=>t in e?_E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SE=(e,t)=>{for(var r in t||(t={}))yw.call(t,r)&&Om(e,r,t[r]);if(xa)for(var r of xa(t))ww.call(t,r)&&Om(e,r,t[r]);return e},bE=(e,t)=>{var r={};for(var n in e)yw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xa)for(var n of xa(e))t.indexOf(n)<0&&ww.call(e,n)&&(r[n]=e[n]);return r};const xE={xs:12,sm:14,md:16,lg:20,xl:24},PE={size:"md"},ou=g.exports.forwardRef((e,t)=>{const r=ee("CloseButton",PE,e),{iconSize:n,size:o="md"}=r,i=bE(r,["iconSize","size"]),l=at(),a=n||l.fn.size({size:o,sizes:xE});return S($t,{...SE({size:o,ref:t},i),children:S(hw,{width:a,height:a})})});ou.displayName="@mantine/core/CloseButton";var $E=Object.defineProperty,OE=Object.defineProperties,CE=Object.getOwnPropertyDescriptors,Cm=Object.getOwnPropertySymbols,EE=Object.prototype.hasOwnProperty,kE=Object.prototype.propertyIsEnumerable,Em=(e,t,r)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pl=(e,t)=>{for(var r in t||(t={}))EE.call(t,r)&&Em(e,r,t[r]);if(Cm)for(var r of Cm(t))kE.call(t,r)&&Em(e,r,t[r]);return e},RE=(e,t)=>OE(e,CE(t));function IE({underline:e,strikethrough:t}){const r=[];return e&&r.push("underline"),t&&r.push("line-through"),r.length>0?r.join(" "):"none"}function NE({theme:e,color:t,variant:r}){return t==="dimmed"?e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]:typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?e.fn.variant({variant:"filled",color:t}).background:r==="link"?e.colors[e.primaryColor][e.colorScheme==="dark"?4:7]:t||"inherit"}function zE(e){return typeof e=="number"?{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}:null}var DE=Q((e,{color:t,variant:r,size:n,lineClamp:o,inline:i,inherit:l,underline:a,gradient:s,weight:u,transform:c,align:f,strikethrough:d,italic:p})=>{const y=e.fn.variant({variant:"gradient",gradient:s});return{root:pl(RE(pl(pl(pl({},e.fn.fontStyles()),e.fn.focusStyles()),zE(o)),{color:NE({color:t,theme:e,variant:r}),fontFamily:l?"inherit":e.fontFamily,fontSize:l||n===void 0?"inherit":e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:l?"inherit":i?1:e.lineHeight,textDecoration:IE({underline:a,strikethrough:d}),WebkitTapHighlightColor:"transparent",fontWeight:l?"inherit":u,textTransform:c,textAlign:f,fontStyle:p?"italic":void 0}),e.fn.hover(r==="link"&&a===void 0?{textDecoration:"underline"}:void 0)),gradient:{backgroundImage:y.background,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}}),TE=DE,ME=Object.defineProperty,Pa=Object.getOwnPropertySymbols,_w=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,km=(e,t,r)=>t in e?ME(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jE=(e,t)=>{for(var r in t||(t={}))_w.call(t,r)&&km(e,r,t[r]);if(Pa)for(var r of Pa(t))Sw.call(t,r)&&km(e,r,t[r]);return e},LE=(e,t)=>{var r={};for(var n in e)_w.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pa)for(var n of Pa(e))t.indexOf(n)<0&&Sw.call(e,n)&&(r[n]=e[n]);return r};const FE={variant:"text"},bw=g.exports.forwardRef((e,t)=>{const r=ee("Text",FE,e),{className:n,size:o,weight:i,transform:l,color:a,align:s,variant:u,lineClamp:c,gradient:f,inline:d,inherit:p,underline:y,strikethrough:w,italic:v,classNames:m,styles:h,unstyled:_,span:b}=r,O=LE(r,["className","size","weight","transform","color","align","variant","lineClamp","gradient","inline","inherit","underline","strikethrough","italic","classNames","styles","unstyled","span"]),{classes:x,cx:P}=TE({variant:u,color:a,size:o,lineClamp:c,inline:d,inherit:p,underline:y,strikethrough:w,italic:v,weight:i,transform:l,align:s,gradient:f},{unstyled:_,name:"Text"});return S(K,{...jE({ref:t,className:P(x.root,{[x.gradient]:u==="gradient"},n),component:b?"span":"div"},O)})});bw.displayName="@mantine/core/Text";const mt=bw,gl={xs:1,sm:2,md:3,lg:4,xl:5};function ml(e,t){const r=e.fn.variant({variant:"outline",color:t}).border;return typeof t=="string"&&(t in e.colors||t.split(".")[0]in e.colors)?r:t===void 0?e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]:t}var AE=Q((e,{size:t,variant:r,color:n})=>({root:{},withLabel:{borderTop:"0 !important"},left:{"&::before":{display:"none"}},right:{"&::after":{display:"none"}},label:{display:"flex",alignItems:"center","&::before":{content:'""',flex:1,height:1,borderTop:`${e.fn.size({size:t,sizes:gl})}px ${r} ${ml(e,n)}`,marginRight:e.spacing.xs},"&::after":{content:'""',flex:1,borderTop:`${e.fn.size({size:t,sizes:gl})}px ${r} ${ml(e,n)}`,marginLeft:e.spacing.xs}},labelDefaultStyles:{color:n==="dark"?e.colors.dark[1]:e.fn.themeColor(n,e.colorScheme==="dark"?5:e.fn.primaryShade(),!1)},horizontal:{border:0,borderTopWidth:e.fn.size({size:t,sizes:gl}),borderTopColor:ml(e,n),borderTopStyle:r,margin:0},vertical:{border:0,alignSelf:"stretch",height:"auto",borderLeftWidth:e.fn.size({size:t,sizes:gl}),borderLeftColor:ml(e,n),borderLeftStyle:r}})),VE=AE,HE=Object.defineProperty,BE=Object.defineProperties,WE=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,xw=Object.prototype.hasOwnProperty,Pw=Object.prototype.propertyIsEnumerable,Rm=(e,t,r)=>t in e?HE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Im=(e,t)=>{for(var r in t||(t={}))xw.call(t,r)&&Rm(e,r,t[r]);if($a)for(var r of $a(t))Pw.call(t,r)&&Rm(e,r,t[r]);return e},UE=(e,t)=>BE(e,WE(t)),GE=(e,t)=>{var r={};for(var n in e)xw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$a)for(var n of $a(e))t.indexOf(n)<0&&Pw.call(e,n)&&(r[n]=e[n]);return r};const YE={orientation:"horizontal",size:"xs",labelPosition:"left",variant:"solid"},ff=g.exports.forwardRef((e,t)=>{const r=ee("Divider",YE,e),{className:n,color:o,orientation:i,size:l,label:a,labelPosition:s,labelProps:u,variant:c,styles:f,classNames:d,unstyled:p}=r,y=GE(r,["className","color","orientation","size","label","labelPosition","labelProps","variant","styles","classNames","unstyled"]),{classes:w,cx:v}=VE({color:o,size:l,variant:c},{classNames:d,styles:f,unstyled:p,name:"Divider"}),m=i==="vertical",h=i==="horizontal",_=!!a&&h,b=!u?.color;return S(K,{...Im({ref:t,className:v(w.root,{[w.vertical]:m,[w.horizontal]:h,[w.withLabel]:_},n),role:"separator"},y),children:_&&S(mt,{...UE(Im({},u),{size:u?.size||"xs",sx:{marginTop:2},className:v(w.label,w[s],{[w.labelDefaultStyles]:b})}),children:a})})});ff.displayName="@mantine/core/Divider";var XE=Object.defineProperty,Nm=Object.getOwnPropertySymbols,KE=Object.prototype.hasOwnProperty,qE=Object.prototype.propertyIsEnumerable,zm=(e,t,r)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QE=(e,t)=>{for(var r in t||(t={}))KE.call(t,r)&&zm(e,r,t[r]);if(Nm)for(var r of Nm(t))qE.call(t,r)&&zm(e,r,t[r]);return e},ZE=Q((e,{size:t})=>({item:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`,cursor:"pointer",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderRadius:e.radius.sm,"&[data-hovered]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[1]},"&[data-selected]":QE({backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.fn.variant({variant:"filled"}).color},e.fn.hover({backgroundColor:e.fn.variant({variant:"filled"}).hover})),"&[data-disabled]":{cursor:"default",color:e.colors.dark[2]}},nothingFound:{boxSizing:"border-box",color:e.colors.gray[6],paddingTop:e.fn.size({size:t,sizes:e.spacing})/2,paddingBottom:e.fn.size({size:t,sizes:e.spacing})/2,textAlign:"center"},separator:{boxSizing:"border-box",textAlign:"left",width:"100%",padding:`${e.fn.size({size:t,sizes:e.spacing})/1.5}px ${e.fn.size({size:t,sizes:e.spacing})}px`},separatorLabel:{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]}})),JE=ZE,ek=Object.defineProperty,Dm=Object.getOwnPropertySymbols,tk=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,Tm=(e,t,r)=>t in e?ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nk=(e,t)=>{for(var r in t||(t={}))tk.call(t,r)&&Tm(e,r,t[r]);if(Dm)for(var r of Dm(t))rk.call(t,r)&&Tm(e,r,t[r]);return e};function $w({data:e,hovered:t,classNames:r,styles:n,isItemSelected:o,uuid:i,__staticSelector:l,onItemHover:a,onItemSelect:s,itemsRefs:u,itemComponent:c,size:f,nothingFound:d,creatable:p,createLabel:y,unstyled:w}){const{classes:v}=JE({size:f},{classNames:r,styles:n,unstyled:w,name:l}),m=[],h=[];let _=null;const b=(x,P)=>{const $=typeof o=="function"?o(x.value):!1;return E.createElement(c,nk({key:x.value,className:v.item,"data-disabled":x.disabled||void 0,"data-hovered":!x.disabled&&t===P||void 0,"data-selected":!x.disabled&&$||void 0,onMouseEnter:()=>a(P),id:`${i}-${P}`,role:"option","data-ignore-outside-clicks":!0,tabIndex:-1,"aria-selected":t===P,ref:C=>{u&&u.current&&(u.current[x.value]=C)},onMouseDown:x.disabled?null:C=>{C.preventDefault(),s(x)},disabled:x.disabled},x))};let O=null;if(e.forEach((x,P)=>{x.creatable?_=P:x.group?(O!==x.group&&(O=x.group,h.push(E.createElement("div",{className:v.separator,key:`__mantine-divider-${P}`},E.createElement(ff,{classNames:{label:v.separatorLabel},label:x.group})))),h.push(b(x,P))):m.push(b(x,P))}),p){const x=e[_];m.push(E.createElement("div",{key:Al(),className:v.item,"data-hovered":t===_||void 0,onMouseEnter:()=>a(_),onMouseDown:P=>{P.preventDefault(),s(x)},tabIndex:-1,ref:P=>{u&&u.current&&(u.current[x.value]=P)}},y))}return h.length>0&&m.length>0&&m.unshift(E.createElement("div",{className:v.separator,key:"empty-group-separator"},E.createElement(ff,null))),h.length>0||m.length>0?E.createElement(E.Fragment,null,h,m):E.createElement(mt,{size:f,unstyled:w,className:v.nothingFound},d)}$w.displayName="@mantine/core/SelectItems";var ok=Object.defineProperty,Oa=Object.getOwnPropertySymbols,Ow=Object.prototype.hasOwnProperty,Cw=Object.prototype.propertyIsEnumerable,Mm=(e,t,r)=>t in e?ok(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ik=(e,t)=>{for(var r in t||(t={}))Ow.call(t,r)&&Mm(e,r,t[r]);if(Oa)for(var r of Oa(t))Cw.call(t,r)&&Mm(e,r,t[r]);return e},lk=(e,t)=>{var r={};for(var n in e)Ow.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Oa)for(var n of Oa(e))t.indexOf(n)<0&&Cw.call(e,n)&&(r[n]=e[n]);return r};const Ew=g.exports.forwardRef((e,t)=>{var r=e,{label:n,value:o}=r,i=lk(r,["label","value"]);return S("div",{...ik({ref:t},i),children:n||o})});Ew.displayName="@mantine/core/DefaultItem";function ak(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function kw(...e){return t=>e.forEach(r=>ak(r,t))}function gn(...e){return g.exports.useCallback(kw(...e),e)}const Rw=g.exports.forwardRef((e,t)=>{const{children:r,...n}=e,o=g.exports.Children.toArray(r),i=o.find(uk);if(i){const l=i.props.children,a=o.map(s=>s===i?g.exports.Children.count(l)>1?g.exports.Children.only(null):g.exports.isValidElement(l)?l.props.children:null:s);return g.exports.createElement(df,de({},n,{ref:t}),g.exports.isValidElement(l)?g.exports.cloneElement(l,void 0,a):null)}return g.exports.createElement(df,de({},n,{ref:t}),r)});Rw.displayName="Slot";const df=g.exports.forwardRef((e,t)=>{const{children:r,...n}=e;return g.exports.isValidElement(r)?g.exports.cloneElement(r,{...ck(n,r.props),ref:kw(t,r.ref)}):g.exports.Children.count(r)>1?g.exports.Children.only(null):null});df.displayName="SlotClone";const sk=({children:e})=>g.exports.createElement(g.exports.Fragment,null,e);function uk(e){return g.exports.isValidElement(e)&&e.type===sk}function ck(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?r[n]=(...a)=>{i?.(...a),o?.(...a)}:n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const fk=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Ai=fk.reduce((e,t)=>{const r=g.exports.forwardRef((n,o)=>{const{asChild:i,...l}=n,a=i?Rw:t;return g.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.exports.createElement(a,de({},l,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),pf=Boolean(globalThis?.document)?g.exports.useLayoutEffect:()=>{};function dk(e,t){return g.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Vi=e=>{const{present:t,children:r}=e,n=pk(t),o=typeof r=="function"?r({present:n.isPresent}):g.exports.Children.only(r),i=gn(n.ref,o.ref);return typeof r=="function"||n.isPresent?g.exports.cloneElement(o,{ref:i}):null};Vi.displayName="Presence";function pk(e){const[t,r]=g.exports.useState(),n=g.exports.useRef({}),o=g.exports.useRef(e),i=g.exports.useRef("none"),l=e?"mounted":"unmounted",[a,s]=dk(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.exports.useEffect(()=>{const u=vl(n.current);i.current=a==="mounted"?u:"none"},[a]),pf(()=>{const u=n.current,c=o.current;if(c!==e){const d=i.current,p=vl(u);e?s("MOUNT"):p==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),pf(()=>{if(t){const u=f=>{const p=vl(n.current).includes(f.animationName);f.target===t&&p&&Ei.exports.flushSync(()=>s("ANIMATION_END"))},c=f=>{f.target===t&&(i.current=vl(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.exports.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function vl(e){return e?.animationName||"none"}function gk(e,t=[]){let r=[];function n(i,l){const a=g.exports.createContext(l),s=r.length;r=[...r,l];function u(f){const{scope:d,children:p,...y}=f,w=d?.[e][s]||a,v=g.exports.useMemo(()=>y,Object.values(y));return g.exports.createElement(w.Provider,{value:v},p)}function c(f,d){const p=d?.[e][s]||a,y=g.exports.useContext(p);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(l=>g.exports.createContext(l));return function(a){const s=a?.[e]||i;return g.exports.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return o.scopeName=e,[n,mk(o,...t)]}function mk(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=n.reduce((a,{useScope:s,scopeName:u})=>{const f=s(i)[`__scope${u}`];return{...a,...f}},{});return g.exports.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}function Ur(e){const t=g.exports.useRef(e);return g.exports.useEffect(()=>{t.current=e}),g.exports.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}const vk=g.exports.createContext(void 0);function hk(e){const t=g.exports.useContext(vk);return e||t||"ltr"}function yk(e,[t,r]){return Math.min(r,Math.max(t,e))}function en(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function wk(e,t){return g.exports.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const Iw="ScrollArea",[Nw,i7]=gk(Iw),[_k,yt]=Nw(Iw),Sk=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[a,s]=g.exports.useState(null),[u,c]=g.exports.useState(null),[f,d]=g.exports.useState(null),[p,y]=g.exports.useState(null),[w,v]=g.exports.useState(null),[m,h]=g.exports.useState(0),[_,b]=g.exports.useState(0),[O,x]=g.exports.useState(!1),[P,$]=g.exports.useState(!1),C=gn(t,z=>s(z)),I=hk(o);return g.exports.createElement(_k,{scope:r,type:n,dir:I,scrollHideDelay:i,scrollArea:a,viewport:u,onViewportChange:c,content:f,onContentChange:d,scrollbarX:p,onScrollbarXChange:y,scrollbarXEnabled:O,onScrollbarXEnabledChange:x,scrollbarY:w,onScrollbarYChange:v,scrollbarYEnabled:P,onScrollbarYEnabledChange:$,onCornerWidthChange:h,onCornerHeightChange:b},g.exports.createElement(Ai.div,de({dir:I},l,{ref:C,style:{position:"relative",["--radix-scroll-area-corner-width"]:m+"px",["--radix-scroll-area-corner-height"]:_+"px",...e.style}})))}),bk="ScrollAreaViewport",xk=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,...o}=e,i=yt(bk,r),l=g.exports.useRef(null),a=gn(t,l,i.onViewportChange);return g.exports.createElement(g.exports.Fragment,null,g.exports.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),g.exports.createElement(Ai.div,de({"data-radix-scroll-area-viewport":""},o,{ref:a,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style}}),g.exports.createElement("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),tr="ScrollAreaScrollbar",Pk=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=yt(tr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,a=e.orientation==="horizontal";return g.exports.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),o.type==="hover"?g.exports.createElement($k,de({},n,{ref:t,forceMount:r})):o.type==="scroll"?g.exports.createElement(Ok,de({},n,{ref:t,forceMount:r})):o.type==="auto"?g.exports.createElement(zw,de({},n,{ref:t,forceMount:r})):o.type==="always"?g.exports.createElement(Bd,de({},n,{ref:t})):null}),$k=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=yt(tr,e.__scopeScrollArea),[i,l]=g.exports.useState(!1);return g.exports.useEffect(()=>{const a=o.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),l(!0)},c=()=>{s=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),g.exports.createElement(Vi,{present:r||i},g.exports.createElement(zw,de({"data-state":i?"visible":"hidden"},n,{ref:t})))}),Ok=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=yt(tr,e.__scopeScrollArea),i=e.orientation==="horizontal",l=lu(()=>s("SCROLL_END"),100),[a,s]=wk("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.exports.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,o.scrollHideDelay,s]),g.exports.useEffect(()=>{const u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let f=u[c];const d=()=>{const p=u[c];f!==p&&(s("SCROLL"),l()),f=p};return u.addEventListener("scroll",d),()=>u.removeEventListener("scroll",d)}},[o.viewport,i,s,l]),g.exports.createElement(Vi,{present:r||a!=="hidden"},g.exports.createElement(Bd,de({"data-state":a==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:en(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:en(e.onPointerLeave,()=>s("POINTER_LEAVE"))})))}),zw=g.exports.forwardRef((e,t)=>{const r=yt(tr,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=g.exports.useState(!1),a=e.orientation==="horizontal",s=lu(()=>{if(r.viewport){const u=r.viewport.offsetWidth{const{orientation:r="vertical",...n}=e,o=yt(tr,e.__scopeScrollArea),i=g.exports.useRef(null),l=g.exports.useRef(0),[a,s]=g.exports.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=jw(a.viewport,a.content),c={...n,sizes:a,onSizesChange:s,hasThumb:Boolean(u>0&&u<1),onThumbChange:d=>i.current=d,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:d=>l.current=d};function f(d,p){return Dk(d,l.current,a,p)}return r==="horizontal"?g.exports.createElement(Ck,de({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollLeft,p=jm(d,a,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=f(d,o.dir))}})):r==="vertical"?g.exports.createElement(Ek,de({},c,{ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const d=o.viewport.scrollTop,p=jm(d,a);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=f(d))}})):null}),Ck=g.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=yt(tr,e.__scopeScrollArea),[l,a]=g.exports.useState(),s=g.exports.useRef(null),u=gn(t,s,i.onScrollbarXChange);return g.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.exports.createElement(Tw,de({"data-orientation":"horizontal"},o,{ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:iu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(d),Fw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ca(l.paddingLeft),paddingEnd:Ca(l.paddingRight)}})}}))}),Ek=g.exports.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,i=yt(tr,e.__scopeScrollArea),[l,a]=g.exports.useState(),s=g.exports.useRef(null),u=gn(t,s,i.onScrollbarYChange);return g.exports.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),g.exports.createElement(Tw,de({"data-orientation":"vertical"},o,{ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:iu(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,f)=>{if(i.viewport){const d=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(d),Fw(d,f)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ca(l.paddingTop),paddingEnd:Ca(l.paddingBottom)}})}}))}),[kk,Dw]=Nw(tr),Tw=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:f,...d}=e,p=yt(tr,r),[y,w]=g.exports.useState(null),v=gn(t,C=>w(C)),m=g.exports.useRef(null),h=g.exports.useRef(""),_=p.viewport,b=n.content-n.viewport,O=Ur(c),x=Ur(s),P=lu(f,10);function $(C){if(m.current){const I=C.clientX-m.current.left,z=C.clientY-m.current.top;u({x:I,y:z})}}return g.exports.useEffect(()=>{const C=I=>{const z=I.target;y?.contains(z)&&O(I,b)};return document.addEventListener("wheel",C,{passive:!1}),()=>document.removeEventListener("wheel",C,{passive:!1})},[_,y,b,O]),g.exports.useEffect(x,[n,x]),Xn(y,P),Xn(p.content,P),g.exports.createElement(kk,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:Ur(i),onThumbPointerUp:Ur(l),onThumbPositionChange:x,onThumbPointerDown:Ur(a)},g.exports.createElement(Ai.div,de({},d,{ref:v,style:{position:"absolute",...d.style},onPointerDown:en(e.onPointerDown,C=>{C.button===0&&(C.target.setPointerCapture(C.pointerId),m.current=y.getBoundingClientRect(),h.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$(C))}),onPointerMove:en(e.onPointerMove,$),onPointerUp:en(e.onPointerUp,C=>{C.target.releasePointerCapture(C.pointerId),document.body.style.webkitUserSelect=h.current,m.current=null})})))}),gf="ScrollAreaThumb",Rk=g.exports.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Dw(gf,e.__scopeScrollArea);return g.exports.createElement(Vi,{present:r||o.hasThumb},g.exports.createElement(Ik,de({ref:t},n)))}),Ik=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,i=yt(gf,r),l=Dw(gf,r),{onThumbPositionChange:a}=l,s=gn(t,f=>l.onThumbChange(f)),u=g.exports.useRef(),c=lu(()=>{u.current&&(u.current(),u.current=void 0)},100);return g.exports.useEffect(()=>{const f=i.viewport;if(f){const d=()=>{if(c(),!u.current){const p=Tk(f,a);u.current=p,a()}};return a(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[i.viewport,c,a]),g.exports.createElement(Ai.div,de({"data-state":l.hasThumb?"visible":"hidden"},o,{ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:en(e.onPointerDownCapture,f=>{const p=f.target.getBoundingClientRect(),y=f.clientX-p.left,w=f.clientY-p.top;l.onThumbPointerDown({x:y,y:w})}),onPointerUp:en(e.onPointerUp,l.onThumbPointerUp)}))}),Mw="ScrollAreaCorner",Nk=g.exports.forwardRef((e,t)=>{const r=yt(Mw,e.__scopeScrollArea),n=Boolean(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?g.exports.createElement(zk,de({},e,{ref:t})):null}),zk=g.exports.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=yt(Mw,r),[i,l]=g.exports.useState(0),[a,s]=g.exports.useState(0),u=Boolean(i&&a);return Xn(o.scrollbarX,()=>{var c;const f=((c=o.scrollbarX)===null||c===void 0?void 0:c.offsetHeight)||0;o.onCornerHeightChange(f),s(f)}),Xn(o.scrollbarY,()=>{var c;const f=((c=o.scrollbarY)===null||c===void 0?void 0:c.offsetWidth)||0;o.onCornerWidthChange(f),l(f)}),u?g.exports.createElement(Ai.div,de({},n,{ref:t,style:{width:i,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null});function Ca(e){return e?parseInt(e,10):0}function jw(e,t){const r=e/t;return isNaN(r)?0:r}function iu(e){const t=jw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Dk(e,t,r,n="ltr"){const o=iu(r),i=o/2,l=t||i,a=o-l,s=r.scrollbar.paddingStart+l,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,c=r.content-r.viewport,f=n==="ltr"?[0,c]:[c*-1,0];return Lw([s,u],f)(e)}function jm(e,t,r="ltr"){const n=iu(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=i-n,s=r==="ltr"?[0,l]:[l*-1,0],u=yk(e,s);return Lw([0,l],[0,a])(u)}function Lw(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Fw(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,a=r.top!==i.top;(l||a)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function lu(e,t){const r=Ur(e),n=g.exports.useRef(0);return g.exports.useEffect(()=>()=>window.clearTimeout(n.current),[]),g.exports.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Xn(e,t){const r=Ur(t);pf(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}const Mk=Sk,jk=xk,Lm=Pk,Fm=Rk,Lk=Nk;var Fk=Q((e,{scrollbarSize:t,offsetScrollbars:r,scrollbarHovered:n,hidden:o},i)=>({root:{overflow:"hidden"},viewport:{width:"100%",height:"100%",paddingRight:r?t:void 0},scrollbar:{display:o?"none":"flex",userSelect:"none",touchAction:"none",boxSizing:"border-box",padding:t/5,transition:"background-color 150ms ease, opacity 150ms ease","&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.colors.gray[0],[`& .${i("thumb")}`]:{backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.5):e.fn.rgba(e.black,.5)}},'&[data-orientation="vertical"]':{width:t},'&[data-orientation="horizontal"]':{flexDirection:"column",height:t},'&[data-state="hidden"]':{display:"none",opacity:0}},thumb:{ref:i("thumb"),flex:1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.white,.4):e.fn.rgba(e.black,.4),borderRadius:t,position:"relative",transition:"background-color 150ms ease",display:o?"none":void 0,"&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}},corner:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],transition:"opacity 150ms ease",opacity:n?1:0,display:o?"none":void 0}})),Ak=Fk,Vk=Object.defineProperty,Hk=Object.defineProperties,Bk=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,Aw=Object.prototype.hasOwnProperty,Vw=Object.prototype.propertyIsEnumerable,Am=(e,t,r)=>t in e?Vk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hw=(e,t)=>{for(var r in t||(t={}))Aw.call(t,r)&&Am(e,r,t[r]);if(Ea)for(var r of Ea(t))Vw.call(t,r)&&Am(e,r,t[r]);return e},Wk=(e,t)=>Hk(e,Bk(t)),Bw=(e,t)=>{var r={};for(var n in e)Aw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ea)for(var n of Ea(e))t.indexOf(n)<0&&Vw.call(e,n)&&(r[n]=e[n]);return r};const Ww={scrollbarSize:12,scrollHideDelay:1e3,type:"hover",offsetScrollbars:!1},au=g.exports.forwardRef((e,t)=>{const r=ee("ScrollArea",Ww,e),{children:n,className:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:y}=r,w=Bw(r,["children","className","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled"]),[v,m]=g.exports.useState(!1),h=at(),{classes:_,cx:b}=Ak({scrollbarSize:a,offsetScrollbars:f,scrollbarHovered:v,hidden:u==="never"},{name:"ScrollArea",classNames:i,styles:l,unstyled:y});return S(Mk,{type:u==="never"?"always":u,scrollHideDelay:s,dir:c||h.dir,ref:t,asChild:!0,children:U(K,{...Hw({className:b(_.root,o)},w),children:[S(jk,{className:_.viewport,ref:d,onScroll:typeof p=="function"?({currentTarget:O})=>p({x:O.scrollLeft,y:O.scrollTop}):void 0,children:n}),S(Lm,{orientation:"horizontal",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Fm,{className:_.thumb})}),S(Lm,{orientation:"vertical",className:_.scrollbar,forceMount:!0,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:S(Fm,{className:_.thumb})}),S(Lk,{className:_.corner})]})})}),Uw=g.exports.forwardRef((e,t)=>{const r=ee("ScrollAreaAutosize",Ww,e),{maxHeight:n,children:o,classNames:i,styles:l,scrollbarSize:a,scrollHideDelay:s,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:y,sx:w}=r,v=Bw(r,["maxHeight","children","classNames","styles","scrollbarSize","scrollHideDelay","type","dir","offsetScrollbars","viewportRef","onScrollPositionChange","unstyled","sx"]);return E.createElement(K,Wk(Hw({},v),{ref:t,sx:[{display:"flex",maxHeight:n},...Si(w)]}),E.createElement(K,{sx:{display:"flex",flexDirection:"column",flex:1}},E.createElement(au,{classNames:i,styles:l,scrollHideDelay:s,scrollbarSize:a,type:u,dir:c,offsetScrollbars:f,viewportRef:d,onScrollPositionChange:p,unstyled:y},o)))});Uw.displayName="@mantine/core/ScrollAreaAutosize";au.displayName="@mantine/core/ScrollArea";au.Autosize=Uw;const Uk=au;var Gk=Object.defineProperty,Yk=Object.defineProperties,Xk=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,Gw=Object.prototype.hasOwnProperty,Yw=Object.prototype.propertyIsEnumerable,Vm=(e,t,r)=>t in e?Gk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hm=(e,t)=>{for(var r in t||(t={}))Gw.call(t,r)&&Vm(e,r,t[r]);if(ka)for(var r of ka(t))Yw.call(t,r)&&Vm(e,r,t[r]);return e},Kk=(e,t)=>Yk(e,Xk(t)),qk=(e,t)=>{var r={};for(var n in e)Gw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ka)for(var n of ka(e))t.indexOf(n)<0&&Yw.call(e,n)&&(r[n]=e[n]);return r};const Wd=g.exports.forwardRef((e,t)=>{var r=e,{style:n}=r,o=qk(r,["style"]);return S(Uk,{...Kk(Hm({},o),{style:Hm({width:"100%"},n),viewportRef:t}),children:o.children})});Wd.displayName="@mantine/core/SelectScrollArea";function ao(e){return e.split("-")[0]}function su(e){return e.split("-")[1]}function uu(e){return["top","bottom"].includes(ao(e))?"x":"y"}function Xw(e){return e==="y"?"height":"width"}function Bm(e,t,r){let{reference:n,floating:o}=e;const i=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2,a=uu(t),s=Xw(a),u=n[s]/2-o[s]/2,c=ao(t),f=a==="x";let d;switch(c){case"top":d={x:i,y:n.y-o.height};break;case"bottom":d={x:i,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:l};break;case"left":d={x:n.x-o.width,y:l};break;default:d={x:n.x,y:n.y}}switch(su(t)){case"start":d[a]-=u*(r&&f?-1:1);break;case"end":d[a]+=u*(r&&f?-1:1);break}return d}const Qk=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=Bm(s,n,a),f=n,d={},p=0;for(let y=0;yt3[t])}function r3(e,t,r){r===void 0&&(r=!1);const n=su(e),o=uu(e),i=Xw(o);let l=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Ia(l)),{main:l,cross:Ia(l)}}const n3={start:"end",end:"start"};function Um(e){return e.replace(/start|end/g,t=>n3[t])}function o3(e){const t=Ia(e);return[Um(e),t,Um(t)]}const Kw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:i,initialPlacement:l,platform:a,elements:s}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...y}=e,w=ao(n),m=f||(w===l||!p?[Ia(l)]:o3(l)),h=[l,...m],_=await Ud(t,y),b=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&b.push(_[w]),c){const{main:C,cross:I}=r3(n,i,await(a.isRTL==null?void 0:a.isRTL(s.floating)));b.push(_[C],_[I])}if(O=[...O,{placement:n,overflows:b}],!b.every(C=>C<=0)){var x,P;const C=((x=(P=o.flip)==null?void 0:P.index)!=null?x:0)+1,I=h[C];if(I)return{data:{index:C,overflows:O},reset:{placement:I}};let z="bottom";switch(d){case"bestFit":{var $;const D=($=O.map(j=>[j,j.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((j,B)=>j[1]-B[1])[0])==null?void 0:$[0].placement;D&&(z=D);break}case"initialPlacement":z=l;break}if(n!==z)return{reset:{placement:z}}}return{}}}};async function i3(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),l=ao(r),a=su(r),s=uu(r)==="x",u=["left","top"].includes(l)?-1:1,c=i&&s?-1:1,f=typeof t=="function"?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(p=a==="end"?y*-1:y),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const qw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await i3(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function l3(e){return e==="x"?"y":"x"}const Gd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:m,y:h}=v;return{x:m,y:h}}},...s}=e,u={x:r,y:n},c=await Ud(t,s),f=uu(ao(o)),d=l3(f);let p=u[f],y=u[d];if(i){const v=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=p+c[v],_=p-c[m];p=Wm(h,p,_)}if(l){const v=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=y+c[v],_=y-c[m];y=Wm(h,y,_)}const w=a.fn({...t,[f]:p,[d]:y});return{...w,data:{x:w.x-r,y:w.y-n}}}}},a3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:l,...a}=e,s=await Ud(t,a),u=ao(r),c=su(r);let f,d;u==="top"||u==="bottom"?(f=u,d=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(d=u,f=c==="end"?"top":"bottom");const p=Br(s.left,0),y=Br(s.right,0),w=Br(s.top,0),v=Br(s.bottom,0),m={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(w!==0||v!==0?w+v:Br(s.top,s.bottom)):s[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(p!==0||y!==0?p+y:Br(s.left,s.right)):s[d])},h=await o.getDimensions(i.floating);l?.({...t,...m});const _=await o.getDimensions(i.floating);return h.width!==_.width||h.height!==_.height?{reset:{rects:!0}}:{}}}};function Qw(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function rr(e){if(e==null)return window;if(!Qw(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hi(e){return rr(e).getComputedStyle(e)}function Qt(e){return Qw(e)?"":e?(e.nodeName||"").toLowerCase():""}function Zw(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Dt(e){return e instanceof rr(e).HTMLElement}function Rr(e){return e instanceof rr(e).Element}function s3(e){return e instanceof rr(e).Node}function Yd(e){if(typeof ShadowRoot>"u")return!1;const t=rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cu(e){const{overflow:t,overflowX:r,overflowY:n}=Hi(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function u3(e){return["table","td","th"].includes(Qt(e))}function Jw(e){const t=/firefox/i.test(Zw()),r=Hi(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function e_(){return!/^((?!chrome|android).)*safari/i.test(Zw())}const Gm=Math.min,oi=Math.max,Na=Math.round;function Zt(e,t,r){var n,o,i,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect();let s=1,u=1;t&&Dt(e)&&(s=e.offsetWidth>0&&Na(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Na(a.height)/e.offsetHeight||1);const c=Rr(e)?rr(e):window,f=!e_()&&r,d=(a.left+(f&&(n=(o=c.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/s,p=(a.top+(f&&(i=(l=c.visualViewport)==null?void 0:l.offsetTop)!=null?i:0))/u,y=a.width/s,w=a.height/u;return{width:y,height:w,top:p,right:d+y,bottom:p+w,left:d,x:d,y:p}}function Dr(e){return((s3(e)?e.ownerDocument:e.document)||window.document).documentElement}function fu(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function t_(e){return Zt(Dr(e)).left+fu(e).scrollLeft}function c3(e){const t=Zt(e);return Na(t.width)!==e.offsetWidth||Na(t.height)!==e.offsetHeight}function f3(e,t,r){const n=Dt(t),o=Dr(t),i=Zt(e,n&&c3(t),r==="fixed");let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&r!=="fixed")if((Qt(t)!=="body"||cu(o))&&(l=fu(t)),Dt(t)){const s=Zt(t,!0);a.x=s.x+t.clientLeft,a.y=s.y+t.clientTop}else o&&(a.x=t_(o));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function r_(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Yd(e)?e.host:null)||Dr(e)}function Ym(e){return!Dt(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function d3(e){let t=r_(e);for(Yd(t)&&(t=t.host);Dt(t)&&!["html","body"].includes(Qt(t));){if(Jw(t))return t;t=t.parentNode}return null}function mf(e){const t=rr(e);let r=Ym(e);for(;r&&u3(r)&&getComputedStyle(r).position==="static";)r=Ym(r);return r&&(Qt(r)==="html"||Qt(r)==="body"&&getComputedStyle(r).position==="static"&&!Jw(r))?t:r||d3(e)||t}function Xm(e){if(Dt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Zt(e);return{width:t.width,height:t.height}}function p3(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Dt(r),i=Dr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&n!=="fixed")&&((Qt(r)!=="body"||cu(i))&&(l=fu(r)),Dt(r))){const s=Zt(r,!0);a.x=s.x+r.clientLeft,a.y=s.y+r.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}}function g3(e,t){const r=rr(e),n=Dr(e),o=r.visualViewport;let i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const u=e_();(u||!u&&t==="fixed")&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function m3(e){var t;const r=Dr(e),n=fu(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=oi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=oi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-n.scrollLeft+t_(e);const s=-n.scrollTop;return Hi(o||r).direction==="rtl"&&(a+=oi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}function n_(e){const t=r_(e);return["html","body","#document"].includes(Qt(t))?e.ownerDocument.body:Dt(t)&&cu(t)?t:n_(t)}function ln(e,t){var r;t===void 0&&(t=[]);const n=n_(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=rr(n),l=o?[i].concat(i.visualViewport||[],cu(n)?n:[]):n,a=t.concat(l);return o?a:a.concat(ln(l))}function v3(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Yd(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function h3(e,t){const r=Zt(e,!1,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Km(e,t,r){return t==="viewport"?Ra(g3(e,r)):Rr(t)?h3(t,r):Ra(m3(Dr(e)))}function y3(e){const t=ln(e),n=["absolute","fixed"].includes(Hi(e).position)&&Dt(e)?mf(e):e;return Rr(n)?t.filter(o=>Rr(o)&&v3(o,n)&&Qt(o)!=="body"):[]}function w3(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const l=[...r==="clippingAncestors"?y3(t):[].concat(r),n],a=l[0],s=l.reduce((u,c)=>{const f=Km(t,c,o);return u.top=oi(f.top,u.top),u.right=Gm(f.right,u.right),u.bottom=Gm(f.bottom,u.bottom),u.left=oi(f.left,u.left),u},Km(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}const _3={getClippingRect:w3,convertOffsetParentRelativeRectToViewportRelativeRect:p3,isElement:Rr,getDimensions:Xm,getOffsetParent:mf,getDocumentElement:Dr,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:f3(t,mf(r),n),floating:{...Xm(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Hi(e).direction==="rtl"};function S3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=n,s=o&&!a,u=i&&!a,c=s||u?[...Rr(e)?ln(e):[],...ln(t)]:[];c.forEach(w=>{s&&w.addEventListener("scroll",r,{passive:!0}),u&&w.addEventListener("resize",r)});let f=null;if(l){let w=!0;f=new ResizeObserver(()=>{w||r(),w=!1}),Rr(e)&&!a&&f.observe(e),f.observe(t)}let d,p=a?Zt(e):null;a&&y();function y(){const w=Zt(e);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&r(),p=w,d=requestAnimationFrame(y)}return r(),()=>{var w;c.forEach(v=>{s&&v.removeEventListener("scroll",r),u&&v.removeEventListener("resize",r)}),(w=f)==null||w.disconnect(),f=null,a&&cancelAnimationFrame(d)}}const b3=(e,t,r)=>Qk(e,t,{platform:_3,...r});var vf=typeof document<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!hf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!hf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function x3(e){const t=g.exports.useRef(e);return vf(()=>{t.current=e}),t}function P3(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=g.exports.useRef(null),l=g.exports.useRef(null),a=x3(o),s=g.exports.useRef(null),[u,c]=g.exports.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,d]=g.exports.useState(t);hf(f?.map(_=>{let{options:b}=_;return b}),t?.map(_=>{let{options:b}=_;return b}))||d(t);const p=g.exports.useCallback(()=>{!i.current||!l.current||b3(i.current,l.current,{middleware:f,placement:r,strategy:n}).then(_=>{y.current&&Ei.exports.flushSync(()=>{c(_)})})},[f,r,n]);vf(()=>{y.current&&p()},[p]);const y=g.exports.useRef(!1);vf(()=>(y.current=!0,()=>{y.current=!1}),[]);const w=g.exports.useCallback(()=>{if(typeof s.current=="function"&&(s.current(),s.current=null),i.current&&l.current)if(a.current){const _=a.current(i.current,l.current,p);s.current=_}else p()},[p,a]),v=g.exports.useCallback(_=>{i.current=_,w()},[w]),m=g.exports.useCallback(_=>{l.current=_,w()},[w]),h=g.exports.useMemo(()=>({reference:i,floating:l}),[]);return g.exports.useMemo(()=>({...u,update:p,refs:h,reference:v,floating:m}),[u,p,h,v,m])}var Kn=typeof document<"u"?g.exports.useLayoutEffect:g.exports.useEffect;function $3(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}let Ju=!1,O3=0;const qm=()=>"floating-ui-"+O3++;function C3(){const[e,t]=g.exports.useState(()=>Ju?qm():void 0);return Kn(()=>{e==null&&t(qm())},[]),g.exports.useEffect(()=>{Ju||(Ju=!0)},[]),e}const Qm=li["useId".toString()],Zm=Qm??C3,E3=g.exports.createContext(null),k3=g.exports.createContext(null),R3=()=>{var e,t;return(e=(t=g.exports.useContext(E3))==null?void 0:t.id)!=null?e:null},Xd=()=>g.exports.useContext(k3);function Ut(e){var t;return(t=e?.ownerDocument)!=null?t:document}function o_(e){var t;return(t=Ut(e).defaultView)!=null?t:window}function za(e){return e?e instanceof o_(e).Element:!1}function i_(e){return e?e instanceof o_(e).HTMLElement:!1}function Kd(e){let{open:t=!1,onOpenChange:r=()=>{},whileElementsMounted:n,placement:o,middleware:i,strategy:l,nodeId:a}=e===void 0?{}:e;const s=Xd(),u=g.exports.useRef(null),c=g.exports.useRef({}),f=g.exports.useState(()=>$3())[0],d=P3({placement:o,middleware:i,strategy:l,whileElementsMounted:n}),p=g.exports.useMemo(()=>({...d.refs,domReference:u}),[d.refs]),y=g.exports.useMemo(()=>({...d,refs:p,dataRef:c,nodeId:a,events:f,open:t,onOpenChange:r}),[d,a,f,t,r,p]);Kn(()=>{const m=s?.nodesRef.current.find(h=>h.id===a);m&&(m.context=y)});const{reference:w}=d,v=g.exports.useCallback(m=>{(za(m)||m===null)&&(y.refs.domReference.current=m),w(m)},[w,y.refs]);return g.exports.useMemo(()=>({...d,context:y,refs:p,reference:v}),[d,p,y,v])}function ec(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[a,s]=l;if(a.indexOf("on")===0){if(n.has(a)||n.set(a,[]),typeof s=="function"){var u;(u=n.get(a))==null||u.push(s)}o[a]=function(){for(var c,f=arguments.length,d=new Array(f),p=0;py(...d))}}else o[a]=s}),o),{})}}const I3=function(e){return e===void 0&&(e=[]),{getReferenceProps:t=>ec(t,e,"reference"),getFloatingProps:t=>ec(t,e,"floating"),getItemProps:t=>ec(t,e,"item")}};function N3(e,t){var r;let n=(r=e.filter(l=>{var a;return l.parentId===t&&((a=l.context)==null?void 0:a.open)}))!=null?r:[],o=n;for(;o.length;){var i;o=(i=e.filter(l=>{var a;return(a=o)==null?void 0:a.some(s=>{var u;return l.parentId===s.id&&((u=l.context)==null?void 0:u.open)})}))!=null?i:[],n=n.concat(o)}return n}function l_(e){let t=e.activeElement;for(;((r=t)==null||(n=r.shadowRoot)==null?void 0:n.activeElement)!=null;){var r,n;t=t.shadowRoot.activeElement}return t}function Da(e){const t=g.exports.useRef(e);return Kn(()=>{t.current=e}),t}function z3(e){const t=g.exports.useRef();return Kn(()=>{t.current=e},[e]),t.current}function Vl(e,t,r){return r&&r!=="mouse"?0:typeof e=="number"?e:e?.[t]}const D3=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:l=0}=t===void 0?{}:t;const{open:a,onOpenChange:s,dataRef:u,events:c,refs:f}=e,d=Xd(),p=R3(),y=Da(s),w=Da(o),v=z3(a),m=g.exports.useRef(),h=g.exports.useRef(),_=g.exports.useRef(),b=g.exports.useRef(),O=g.exports.useRef(!0),x=g.exports.useRef(!1);g.exports.useEffect(()=>{if(!r)return;function z(){clearTimeout(h.current),clearTimeout(b.current),O.current=!0}return c.on("dismiss",z),()=>{c.off("dismiss",z)}},[r,c,f]),g.exports.useEffect(()=>{if(!r||!w.current)return;function z(){var j;(j=u.current.openEvent)!=null&&j.type.includes("mouse")&&y.current(!1)}const D=Ut(f.floating.current).documentElement;return D.addEventListener("mouseleave",z),()=>{D.removeEventListener("mouseleave",z)}},[f,y,r,w,u]);const P=g.exports.useCallback(function(z){z===void 0&&(z=!0);const D=Vl(n,"close",m.current);D&&!_.current?(clearTimeout(h.current),h.current=setTimeout(()=>y.current(!1),D)):z&&(clearTimeout(h.current),y.current(!1))},[n,y]),$=g.exports.useCallback(()=>{_.current&&(Ut(f.floating.current).removeEventListener("pointermove",_.current),_.current=void 0)},[f]),C=g.exports.useCallback(()=>{Ut(f.floating.current).body.style.pointerEvents="",x.current=!1},[f]);if(g.exports.useEffect(()=>{if(!r)return;function z(W){if(clearTimeout(h.current),O.current=!1,a||i&&m.current!=="mouse"||l>0&&Vl(n,"open")===0)return;u.current.openEvent=W;const ne=Vl(n,"open",m.current);ne?h.current=setTimeout(()=>{y.current(!0)},ne):y.current(!0)}function D(W){var ne,se;if(((ne=u.current.openEvent)==null?void 0:ne.type)==="click"||((se=u.current.openEvent)==null?void 0:se.type)==="pointerdown")return;const ie=Ut(f.floating.current);if(clearTimeout(b.current),w.current){clearTimeout(h.current),_.current&&ie.removeEventListener("pointermove",_.current),_.current=w.current({...e,tree:d,x:W.clientX,y:W.clientY,onClose(){$(),P()}}),ie.addEventListener("pointermove",_.current);return}P()}function j(W){w.current==null||w.current({...e,tree:d,x:W.clientX,y:W.clientY,leave:!0,onClose(){$(),P()}})(W)}const B=f.floating.current,V=f.domReference.current;if(za(V))return a&&V.addEventListener("mouseleave",j),B?.addEventListener("mouseleave",j),V.addEventListener("mousemove",z,{once:!0}),V.addEventListener("mouseenter",z),V.addEventListener("mouseleave",D),()=>{a&&V.removeEventListener("mouseleave",j),B?.removeEventListener("mouseleave",j),V.removeEventListener("mousemove",z),V.removeEventListener("mouseenter",z),V.removeEventListener("mouseleave",D)}},[r,P,e,n,w,u,i,y,a,d,l,$,f]),Kn(()=>{if(!!r&&a&&w.current){Ut(f.floating.current).body.style.pointerEvents="none",x.current=!0;const j=f.domReference.current,B=f.floating.current;if(i_(j)&&B){var z,D;const V=d==null||(z=d.nodesRef.current.find(W=>W.id===p))==null||(D=z.context)==null?void 0:D.refs.floating.current;return V&&(V.style.pointerEvents=""),j.style.pointerEvents="auto",B.style.pointerEvents="auto",()=>{j.style.pointerEvents="",B.style.pointerEvents=""}}}},[r,a,p,f,d,w,u]),Kn(()=>{v&&!a&&(m.current=void 0,$(),C())}),g.exports.useEffect(()=>()=>{$(),clearTimeout(h.current),clearTimeout(b.current),x.current&&C()},[$,C]),!r)return{};function I(z){m.current=z.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(){a||l===0||(clearTimeout(b.current),b.current=setTimeout(()=>{O.current||s(!0)},l))}},floating:{onMouseEnter(){clearTimeout(h.current)},onMouseLeave(){P(!1)}}}},a_=g.exports.createContext({delay:1e3,initialDelay:1e3,currentId:null,setCurrentId:()=>{},setState:()=>{}}),s_=()=>g.exports.useContext(a_),T3=e=>{let{children:t,delay:r}=e;const[n,o]=g.exports.useState({delay:r,initialDelay:r,currentId:null}),i=g.exports.useCallback(l=>{o(a=>({...a,currentId:l}))},[]);return g.exports.createElement(a_.Provider,{value:g.exports.useMemo(()=>({...n,setState:o,setCurrentId:i}),[n,o,i])},t)},M3=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,initialDelay:l,setState:a}=s_(),s=Da(n);g.exports.useEffect(()=>{i&&s.current&&(a(u=>({...u,delay:{open:1,close:Vl(l,"close")}})),i!==o&&s.current(!1))},[o,s,a,i,l]),g.exports.useEffect(()=>{!r&&i===o&&s.current&&(s.current(!1),a(u=>({...u,delay:l,currentId:null})))},[r,a,i,o,s,l])},j3=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Zm(),l=Zm(),a={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:a}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:l}},floating:{...a,...o==="menu"&&{"aria-labelledby":l}}}:{}};function tc(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const L3=function(e,t){let{open:r,onOpenChange:n,refs:o,events:i,nodeId:l}=e,{enabled:a=!0,escapeKey:s=!0,outsidePointerDown:u=!0,referencePointerDown:c=!1,ancestorScroll:f=!1,bubbles:d=!0}=t===void 0?{}:t;const p=Xd(),y=Da(n),w=g.exports.useCallback(()=>{var v;return(v=o.floating.current)==null?void 0:v.contains(l_(Ut(o.floating.current)))},[o]);return g.exports.useEffect(()=>{if(!r||!a)return;function v(O){if(O.key==="Escape"){if(!d&&!w())return;i.emit("dismiss"),y.current(!1),i_(o.domReference.current)&&o.domReference.current.focus()}}function m(O){const x=p&&N3(p.nodesRef.current,l).some(P=>{var $;return tc(O,($=P.context)==null?void 0:$.refs.floating.current)});tc(O,o.floating.current)||tc(O,o.domReference.current)||x||!d&&!w()||(i.emit("dismiss"),y.current(!1))}function h(){y.current(!1)}const _=Ut(o.floating.current);s&&_.addEventListener("keydown",v),u&&_.addEventListener("mousedown",m);const b=(f?[...za(o.reference.current)?ln(o.reference.current):[],...za(o.floating.current)?ln(o.floating.current):[]]:[]).filter(O=>{var x;return O!==((x=_.defaultView)==null?void 0:x.visualViewport)});return b.forEach(O=>O.addEventListener("scroll",h,{passive:!0})),()=>{s&&_.removeEventListener("keydown",v),u&&_.removeEventListener("mousedown",m),b.forEach(O=>O.removeEventListener("scroll",h))}},[s,u,i,p,l,r,y,f,a,d,w,o]),a?{reference:{onPointerDown(){c&&(i.emit("dismiss"),n(!1))}}}:{}},F3=function(e,t){let{open:r,onOpenChange:n,dataRef:o,refs:i,events:l}=e,{enabled:a=!0,keyboardOnly:s=!0}=t===void 0?{}:t;const u=g.exports.useRef(""),c=g.exports.useRef(!1);return g.exports.useEffect(()=>{var f;if(!a)return;const d=Ut(i.floating.current),p=(f=d.defaultView)!=null?f:window;function y(){u.current&&i.domReference.current===l_(d)&&(c.current=!r)}function w(){setTimeout(()=>{c.current=!1,u.current=""})}return p.addEventListener("focus",w),p.addEventListener("blur",y),()=>{p.removeEventListener("focus",w),p.removeEventListener("blur",y)}},[i,r,a]),g.exports.useEffect(()=>{if(!a)return;function f(){c.current=!0}return l.on("dismiss",f),()=>{l.off("dismiss",f)}},[l,a]),a?{reference:{onPointerDown(f){let{pointerType:d}=f;u.current=d,c.current=!!(d&&s)},onFocus(f){var d,p,y;c.current||f.type==="focus"&&((d=o.current.openEvent)==null?void 0:d.type)==="mousedown"&&(p=i.domReference.current)!=null&&p.contains((y=o.current.openEvent)==null?void 0:y.target)||(o.current.openEvent=f.nativeEvent,n(!0))},onBlur(f){var d,p;const y=f.relatedTarget;(d=i.floating.current)!=null&&d.contains(y)||(p=i.domReference.current)!=null&&p.contains(y)||(c.current=!1,n(!1))}}}:{}};function u_({opened:e,floating:t,positionDependencies:r}){const[n,o]=g.exports.useState(0);g.exports.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current)return S3(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference,t.refs.floating,e,n]),kr(()=>{t.update()},r),kr(()=>{o(i=>i+1)},[e])}function A3(e){const t=[qw(e.offset)];return e.middlewares.shift&&t.push(Gd()),e.middlewares.flip&&t.push(Kw()),t}function V3(e){const[t,r]=Li({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=()=>{var l;(l=e.onClose)==null||l.call(e),r(!1)},o=()=>{var l,a;t?((l=e.onClose)==null||l.call(e),r(!1)):((a=e.onOpen)==null||a.call(e),r(!0))},i=Kd({placement:e.position,middleware:[...A3(e),...e.width==="target"?[a3({apply({rects:l}){var a,s;Object.assign((s=(a=i.refs.floating.current)==null?void 0:a.style)!=null?s:{},{width:`${l.reference.width}px`})}})]:[]]});return u_({opened:e.opened,positionDependencies:e.positionDependencies,floating:i}),kr(()=>{var l;(l=e.onPositionChange)==null||l.call(e,i.placement)},[i.placement]),{floating:i,controlled:typeof e.opened=="boolean",opened:t,onClose:n,onToggle:o}}const c_={context:"Popover component was not found in the tree",children:"Popover.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[H3,f_]=Rd(c_.context);var B3=Object.defineProperty,W3=Object.defineProperties,U3=Object.getOwnPropertyDescriptors,Ta=Object.getOwnPropertySymbols,d_=Object.prototype.hasOwnProperty,p_=Object.prototype.propertyIsEnumerable,Jm=(e,t,r)=>t in e?B3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hl=(e,t)=>{for(var r in t||(t={}))d_.call(t,r)&&Jm(e,r,t[r]);if(Ta)for(var r of Ta(t))p_.call(t,r)&&Jm(e,r,t[r]);return e},G3=(e,t)=>W3(e,U3(t)),Y3=(e,t)=>{var r={};for(var n in e)d_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ta)for(var n of Ta(e))t.indexOf(n)<0&&p_.call(e,n)&&(r[n]=e[n]);return r};const g_=g.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref",popupType:i="dialog"}=r,l=Y3(r,["children","refProp","popupType"]);if(!Ti(n))throw new Error(c_.children);const a=l,s=f_(),u=pn(s.reference,n.ref,t),c=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return g.exports.cloneElement(n,hl(G3(hl(hl(hl({},a),c),s.targetProps),{className:h1(s.targetProps.className,a.className,n.props.className),[o]:u}),s.controlled?null:{onClick:s.onToggle}))});g_.displayName="@mantine/core/PopoverTarget";var X3=Q((e,{radius:t,shadow:r})=>({dropdown:{position:"absolute",backgroundColor:e.white,background:e.colorScheme==="dark"?e.colors.dark[6]:e.white,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,padding:`${e.spacing.sm}px ${e.spacing.md}px`,boxShadow:e.shadows[r]||r||"none",borderRadius:e.fn.radius(t),"&:focus":{outline:0}},arrow:{backgroundColor:"inherit",border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`,zIndex:1}})),K3=X3,q3=Object.defineProperty,ev=Object.getOwnPropertySymbols,Q3=Object.prototype.hasOwnProperty,Z3=Object.prototype.propertyIsEnumerable,tv=(e,t,r)=>t in e?q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t)=>{for(var r in t||(t={}))Q3.call(t,r)&&tv(e,r,t[r]);if(ev)for(var r of ev(t))Z3.call(t,r)&&tv(e,r,t[r]);return e};const rv={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function m_({transition:e,state:t,duration:r,timingFunction:n}){const o={transitionDuration:`${r}ms`,transitionTimingFunction:n};return typeof e=="string"?e in fl?wn(wn(wn({transitionProperty:fl[e].transitionProperty},o),fl[e].common),fl[e][rv[t]]):null:wn(wn(wn({transitionProperty:e.transitionProperty},o),e.common),e[rv[t]])}function v_({duration:e,exitDuration:t,timingFunction:r,mounted:n,onEnter:o,onExit:i,onEntered:l,onExited:a}){const s=at(),u=K1(),c=s.respectReducedMotion?u:!1,[f,d]=g.exports.useState(n?"entered":"exited");let p=c?0:e;const y=g.exports.useRef(-1),w=v=>{const m=v?o:i,h=v?l:a;if(d(v?"pre-entering":"pre-exiting"),window.clearTimeout(y.current),p=c?0:v?e:t,p===0)typeof m=="function"&&m(),typeof h=="function"&&h(),d(v?"entered":"exited");else{const _=window.setTimeout(()=>{typeof m=="function"&&m(),d(v?"entering":"exiting")},10);y.current=window.setTimeout(()=>{window.clearTimeout(_),typeof h=="function"&&h(),d(v?"entered":"exited")},p)}};return kr(()=>{w(n)},[n]),g.exports.useEffect(()=>()=>window.clearTimeout(y.current),[]),{transitionDuration:p,transitionStatus:f,transitionTimingFunction:r||s.transitionTimingFunction}}function du({transition:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=v_({mounted:n,exitDuration:r,duration:t,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});return c===0?n?E.createElement(E.Fragment,null,o({})):null:f==="exited"?null:E.createElement(E.Fragment,null,o(m_({transition:e,duration:c,state:f,timingFunction:d})))}du.displayName="@mantine/core/Transition";function h_({children:e,active:t=!0,refProp:r="ref"}){const n=Y1(t),o=pn(n,e?.ref);return Ti(e)?g.exports.cloneElement(e,{[r]:o}):e}h_.displayName="@mantine/core/FocusTrap";var J3=Object.defineProperty,e5=Object.defineProperties,t5=Object.getOwnPropertyDescriptors,nv=Object.getOwnPropertySymbols,r5=Object.prototype.hasOwnProperty,n5=Object.prototype.propertyIsEnumerable,ov=(e,t,r)=>t in e?J3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))r5.call(t,r)&&ov(e,r,t[r]);if(nv)for(var r of nv(t))n5.call(t,r)&&ov(e,r,t[r]);return e},yl=(e,t)=>e5(e,t5(t));function iv(e,t,r){return e==="center"?{top:`calc(50% - ${t/2}px)`}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function lv(e,t,r,n){return e==="center"?{left:`calc(50% - ${t/2}px)`}:e==="end"?{[n==="ltr"?"right":"left"]:r}:e==="start"?{[n==="ltr"?"left":"right"]:r}:{}}function o5({position:e,withBorder:t,arrowSize:r,arrowOffset:n,dir:o}){const[i,l="center"]=e.split("-"),a={width:r,height:r,transform:"rotate(45deg)",position:"absolute"},s=t?-r/2-1:-r/2;return i==="left"?yl(lr(lr({},a),iv(l,r,n)),{[o==="ltr"?"right":"left"]:s,[o==="ltr"?"borderLeft":"borderRight"]:0,borderBottom:0}):i==="right"?yl(lr(lr({},a),iv(l,r,n)),{[o==="ltr"?"left":"right"]:s,[o==="ltr"?"borderRight":"borderLeft"]:0,borderTop:0}):i==="top"?yl(lr(lr({},a),lv(l,r,n,o)),{bottom:s,borderTop:0,[o==="ltr"?"borderLeft":"borderRight"]:0}):i==="bottom"?yl(lr(lr({},a),lv(l,r,n,o)),{top:s,borderBottom:0,[o==="ltr"?"borderRight":"borderLeft"]:0}):{}}var i5=Object.defineProperty,l5=Object.defineProperties,a5=Object.getOwnPropertyDescriptors,Ma=Object.getOwnPropertySymbols,y_=Object.prototype.hasOwnProperty,w_=Object.prototype.propertyIsEnumerable,av=(e,t,r)=>t in e?i5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s5=(e,t)=>{for(var r in t||(t={}))y_.call(t,r)&&av(e,r,t[r]);if(Ma)for(var r of Ma(t))w_.call(t,r)&&av(e,r,t[r]);return e},u5=(e,t)=>l5(e,a5(t)),c5=(e,t)=>{var r={};for(var n in e)y_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ma)for(var n of Ma(e))t.indexOf(n)<0&&w_.call(e,n)&&(r[n]=e[n]);return r};function qd(e){var t=e,{withBorder:r,position:n,arrowSize:o,arrowOffset:i,visible:l}=t,a=c5(t,["withBorder","position","arrowSize","arrowOffset","visible"]);const s=at();return l?E.createElement("div",u5(s5({},a),{style:o5({withBorder:r,position:n,arrowSize:o,arrowOffset:i,dir:s.dir})})):null}qd.displayName="@mantine/core/FloatingArrow";var f5=Object.defineProperty,d5=Object.defineProperties,p5=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,__=Object.prototype.hasOwnProperty,S_=Object.prototype.propertyIsEnumerable,sv=(e,t,r)=>t in e?f5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wl=(e,t)=>{for(var r in t||(t={}))__.call(t,r)&&sv(e,r,t[r]);if(ja)for(var r of ja(t))S_.call(t,r)&&sv(e,r,t[r]);return e},uv=(e,t)=>d5(e,p5(t)),g5=(e,t)=>{var r={};for(var n in e)__.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ja)for(var n of ja(e))t.indexOf(n)<0&&S_.call(e,n)&&(r[n]=e[n]);return r};function b_(e){var t=e,{style:r,className:n,children:o}=t,i=g5(t,["style","className","children"]);const{classNames:l,styles:a,unstyled:s,staticSelector:u}=dn(),c=f_(),{classes:f,cx:d}=K3({radius:c.radius,shadow:c.shadow},{name:u,classNames:l,styles:a,unstyled:s}),p=B1({opened:c.opened,shouldReturnFocus:!1}),y=c.withRoles?{"aria-labelledby":c.getTargetId(),id:c.getDropdownId(),role:"dialog"}:{};return E.createElement(Fi,{withinPortal:c.withinPortal},E.createElement(du,{mounted:c.opened,transition:c.transition,duration:c.transitionDuration,exitDuration:typeof c.exitTransitionDuration=="number"?c.exitTransitionDuration:c.transitionDuration},w=>{var v,m;return E.createElement(h_,{active:c.trapFocus},E.createElement(K,wl(uv(wl({},y),{tabIndex:-1,ref:c.floating,style:uv(wl(wl({},r),w),{zIndex:c.zIndex,top:(v=c.y)!=null?v:"",left:(m=c.x)!=null?m:"",width:c.width==="target"?void 0:c.width}),className:d(f.dropdown,n),onKeyDownCapture:R$(c.onClose,{active:c.closeOnEscape,onTrigger:p}),"data-position":c.placement}),i),o,E.createElement(qd,{visible:c.withArrow,withBorder:!0,position:c.placement,arrowSize:c.arrowSize,arrowOffset:c.arrowOffset,className:f.arrow})))}))}b_.displayName="@mantine/core/PopoverDropdown";function x_(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,n]=t.split("-"),o=r==="right"?"left":"right";return n===void 0?o:`${o}-${n}`}return t}var cv=Object.getOwnPropertySymbols,m5=Object.prototype.hasOwnProperty,v5=Object.prototype.propertyIsEnumerable,h5=(e,t)=>{var r={};for(var n in e)m5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cv)for(var n of cv(e))t.indexOf(n)<0&&v5.call(e,n)&&(r[n]=e[n]);return r};const y5={position:"bottom",offset:8,positionDependencies:[],transition:"fade",transitionDuration:150,middlewares:{flip:!0,shift:!0},arrowSize:7,arrowOffset:5,closeOnClickOutside:!0,withinPortal:!1,closeOnEscape:!0,trapFocus:!1,withRoles:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:io("popover"),__staticSelector:"Popover"};function nr(e){const t=ee("Popover",y5,e),{children:r,position:n,offset:o,onPositionChange:i,positionDependencies:l,opened:a,transition:s,transitionDuration:u,width:c,middlewares:f,withArrow:d,arrowSize:p,arrowOffset:y,unstyled:w,classNames:v,styles:m,closeOnClickOutside:h,withinPortal:_,closeOnEscape:b,clickOutsideEvents:O,trapFocus:x,onClose:P,onOpen:$,onChange:C,zIndex:I,radius:z,shadow:D,id:j,defaultOpened:B,exitTransitionDuration:V,__staticSelector:W,withRoles:ne}=t,se=h5(t,["children","position","offset","onPositionChange","positionDependencies","opened","transition","transitionDuration","width","middlewares","withArrow","arrowSize","arrowOffset","unstyled","classNames","styles","closeOnClickOutside","withinPortal","closeOnEscape","clickOutsideEvents","trapFocus","onClose","onOpen","onChange","zIndex","radius","shadow","id","defaultOpened","exitTransitionDuration","__staticSelector","withRoles"]),ie=lo(j),ze=at(),R=V3({middlewares:f,width:c,position:x_(ze.dir,n),offset:o+(d?p/2:0),onPositionChange:i,positionDependencies:l,opened:a,defaultOpened:B,onChange:C,onOpen:$,onClose:P});return YC(()=>h&&R.onClose(),O,[R.floating.refs.floating.current,R.floating.refs.reference.current]),E.createElement(A1,{classNames:v,styles:m,unstyled:w,staticSelector:W},E.createElement(H3,{value:{controlled:R.controlled,reference:R.floating.reference,floating:R.floating.floating,x:R.floating.x,y:R.floating.y,opened:R.opened,transition:s,transitionDuration:u,exitTransitionDuration:V,width:c,withArrow:d,arrowSize:p,arrowOffset:y,placement:R.floating.placement,trapFocus:x,withinPortal:_,zIndex:I,radius:z,shadow:D,closeOnEscape:b,onClose:R.onClose,onToggle:R.onToggle,getTargetId:()=>`${ie}-target`,getDropdownId:()=>`${ie}-dropdown`,withRoles:ne,targetProps:se}},r))}nr.Target=g_;nr.Dropdown=b_;nr.displayName="@mantine/core/Popover";var w5=Object.defineProperty,La=Object.getOwnPropertySymbols,P_=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable,fv=(e,t,r)=>t in e?w5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_5=(e,t)=>{for(var r in t||(t={}))P_.call(t,r)&&fv(e,r,t[r]);if(La)for(var r of La(t))$_.call(t,r)&&fv(e,r,t[r]);return e},S5=(e,t)=>{var r={};for(var n in e)P_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&La)for(var n of La(e))t.indexOf(n)<0&&$_.call(e,n)&&(r[n]=e[n]);return r};function b5(e){var t=e,{children:r,component:n="div",maxHeight:o=220,direction:i="column",id:l,innerRef:a}=t,s=S5(t,["children","component","maxHeight","direction","id","innerRef"]);return E.createElement(nr.Dropdown,_5({p:0,onMouseDown:u=>u.preventDefault()},s),E.createElement("div",{style:{maxHeight:o,display:"flex"}},E.createElement(K,{component:n||"div",id:`${l}-items`,"aria-labelledby":`${l}-label`,role:"listbox",onMouseDown:u=>u.preventDefault(),style:{flex:1,overflowY:n!==Wd?"auto":void 0},"data-combobox-popover":!0,ref:a},E.createElement("div",{style:{display:"flex",flexDirection:i,width:"100%",padding:4}},r))))}function ii({opened:e,transition:t="fade",transitionDuration:r=0,shadow:n,withinPortal:o,children:i,__staticSelector:l,onDirectionChange:a,switchDirectionOnFlip:s,zIndex:u,dropdownPosition:c,positionDependencies:f=[],classNames:d,styles:p,unstyled:y}){return E.createElement(nr,{unstyled:y,classNames:d,styles:p,width:"target",withRoles:!1,opened:e,middlewares:{flip:c==="flip",shift:!1},position:c==="flip"?"bottom":c,positionDependencies:f,zIndex:u,__staticSelector:l,withinPortal:o,transition:t,transitionDuration:r,shadow:n,onPositionChange:w=>s&&a?.(w==="top"?"column-reverse":"column")},i)}ii.Target=nr.Target;ii.Dropdown=b5;var x5=Object.defineProperty,P5=Object.defineProperties,$5=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,O_=Object.prototype.hasOwnProperty,C_=Object.prototype.propertyIsEnumerable,dv=(e,t,r)=>t in e?x5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rc=(e,t)=>{for(var r in t||(t={}))O_.call(t,r)&&dv(e,r,t[r]);if(Fa)for(var r of Fa(t))C_.call(t,r)&&dv(e,r,t[r]);return e},O5=(e,t)=>P5(e,$5(t)),C5=(e,t)=>{var r={};for(var n in e)O_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&C_.call(e,n)&&(r[n]=e[n]);return r};function E_(e,t,r){const n=ee(e,t,r),{label:o,description:i,error:l,required:a,classNames:s,styles:u,className:c,unstyled:f,__staticSelector:d,sx:p,errorProps:y,labelProps:w,descriptionProps:v,wrapperProps:m,id:h,size:_,style:b,inputContainer:O,inputWrapperOrder:x}=n,P=C5(n,["label","description","error","required","classNames","styles","className","unstyled","__staticSelector","sx","errorProps","labelProps","descriptionProps","wrapperProps","id","size","style","inputContainer","inputWrapperOrder"]),$=lo(h),{systemStyles:C,rest:I}=ru(P);return O5(rc({},I),{classNames:s,styles:u,unstyled:f,wrapperProps:rc(rc({label:o,description:i,error:l,required:a,classNames:s,className:c,__staticSelector:d,sx:p,errorProps:y,labelProps:w,descriptionProps:v,unstyled:f,styles:u,id:$,size:_,style:b,inputContainer:O,inputWrapperOrder:x},m),C),inputProps:{required:a,classNames:s,styles:u,unstyled:f,id:$,size:_,__staticSelector:d,invalid:!!l}})}var E5=Q((e,{size:t})=>({label:{display:"inline-block",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontWeight:500,color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}})),k5=E5,R5=Object.defineProperty,Aa=Object.getOwnPropertySymbols,k_=Object.prototype.hasOwnProperty,R_=Object.prototype.propertyIsEnumerable,pv=(e,t,r)=>t in e?R5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I5=(e,t)=>{for(var r in t||(t={}))k_.call(t,r)&&pv(e,r,t[r]);if(Aa)for(var r of Aa(t))R_.call(t,r)&&pv(e,r,t[r]);return e},N5=(e,t)=>{var r={};for(var n in e)k_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Aa)for(var n of Aa(e))t.indexOf(n)<0&&R_.call(e,n)&&(r[n]=e[n]);return r};const Qd=g.exports.forwardRef((e,t)=>{var r=e,{labelElement:n="label",children:o,required:i,size:l="sm",classNames:a,styles:s,unstyled:u,className:c,htmlFor:f,__staticSelector:d}=r,p=N5(r,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]);const{classes:y,cx:w}=k5({size:l},{name:["InputWrapper",d],classNames:a,styles:s,unstyled:u});return U(K,{...I5({component:n,ref:t,className:w(y.label,c),htmlFor:n==="label"?f:void 0},p),children:[o,i&&S("span",{className:y.required,"aria-hidden":!0,children:" *"})]})});Qd.displayName="@mantine/core/InputLabel";var z5=Q((e,{size:t})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),D5=z5,T5=Object.defineProperty,Va=Object.getOwnPropertySymbols,I_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable,gv=(e,t,r)=>t in e?T5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M5=(e,t)=>{for(var r in t||(t={}))I_.call(t,r)&&gv(e,r,t[r]);if(Va)for(var r of Va(t))N_.call(t,r)&&gv(e,r,t[r]);return e},j5=(e,t)=>{var r={};for(var n in e)I_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Va)for(var n of Va(e))t.indexOf(n)<0&&N_.call(e,n)&&(r[n]=e[n]);return r};const Zd=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=j5(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=D5({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(mt,{...M5({className:d(f.error,o),ref:t,role:"alert"},c),children:n})});Zd.displayName="@mantine/core/InputError";var L5=Q((e,{size:t})=>({description:{wordBreak:"break-word",color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}})),F5=L5,A5=Object.defineProperty,Ha=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,D_=Object.prototype.propertyIsEnumerable,mv=(e,t,r)=>t in e?A5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V5=(e,t)=>{for(var r in t||(t={}))z_.call(t,r)&&mv(e,r,t[r]);if(Ha)for(var r of Ha(t))D_.call(t,r)&&mv(e,r,t[r]);return e},H5=(e,t)=>{var r={};for(var n in e)z_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ha)for(var n of Ha(e))t.indexOf(n)<0&&D_.call(e,n)&&(r[n]=e[n]);return r};const Jd=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,classNames:i,styles:l,unstyled:a,size:s="sm",__staticSelector:u}=r,c=H5(r,["children","className","classNames","styles","unstyled","size","__staticSelector"]);const{classes:f,cx:d}=F5({size:s},{name:["InputWrapper",u],classNames:i,styles:l,unstyled:a});return S(mt,{...V5({color:"dimmed",className:d(f.description,o),ref:t,unstyled:a},c),children:n})});Jd.displayName="@mantine/core/InputDescription";const T_=g.exports.createContext({offsetBottom:!1,offsetTop:!1}),B5=T_.Provider,W5=()=>g.exports.useContext(T_);function U5(e,{hasDescription:t,hasError:r}){const n=e.findIndex(s=>s==="input"),o=e[n-1],i=e[n+1];return{offsetBottom:t&&i==="description"||r&&i==="error",offsetTop:t&&o==="description"||r&&o==="error"}}var G5=Object.defineProperty,Y5=Object.defineProperties,X5=Object.getOwnPropertyDescriptors,vv=Object.getOwnPropertySymbols,K5=Object.prototype.hasOwnProperty,q5=Object.prototype.propertyIsEnumerable,hv=(e,t,r)=>t in e?G5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Q5=(e,t)=>{for(var r in t||(t={}))K5.call(t,r)&&hv(e,r,t[r]);if(vv)for(var r of vv(t))q5.call(t,r)&&hv(e,r,t[r]);return e},Z5=(e,t)=>Y5(e,X5(t)),J5=Q(e=>({root:Z5(Q5({},e.fn.fontStyles()),{lineHeight:e.lineHeight})})),eR=J5,tR=Object.defineProperty,rR=Object.defineProperties,nR=Object.getOwnPropertyDescriptors,Ba=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,j_=Object.prototype.propertyIsEnumerable,yv=(e,t,r)=>t in e?tR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vr=(e,t)=>{for(var r in t||(t={}))M_.call(t,r)&&yv(e,r,t[r]);if(Ba)for(var r of Ba(t))j_.call(t,r)&&yv(e,r,t[r]);return e},oR=(e,t)=>rR(e,nR(t)),iR=(e,t)=>{var r={};for(var n in e)M_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&j_.call(e,n)&&(r[n]=e[n]);return r};const lR={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},L_=g.exports.forwardRef((e,t)=>{const r=ee("InputWrapper",lR,e),{className:n,label:o,children:i,required:l,id:a,error:s,description:u,labelElement:c,labelProps:f,descriptionProps:d,errorProps:p,classNames:y,styles:w,size:v,inputContainer:m,__staticSelector:h,unstyled:_,inputWrapperOrder:b}=r,O=iR(r,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder"]),{classes:x,cx:P}=eR(null,{classNames:y,styles:w,name:["InputWrapper",h],unstyled:_}),$={classNames:y,styles:w,unstyled:_,size:v,__staticSelector:h},C=o&&S(Qd,{...Vr(Vr({key:"label",labelElement:c,id:a?`${a}-label`:void 0,htmlFor:a,required:l},$),f),children:o}),I=u&&S(Jd,{...Vr(Vr({key:"description"},$),d),children:u}),z=S(it,{children:m(i)}),D=typeof s!="boolean"&&s&&S(Zd,{...Vr(oR(Vr({},p),{key:"error"}),$),children:s}),j=b.map(B=>{switch(B){case"label":return C;case"input":return z;case"description":return I;case"error":return D;default:return null}});return S(B5,{value:U5(b,{hasDescription:!!I,hasError:!!D}),children:S(K,{...Vr({className:P(x.root,n),ref:t},O),children:j})})});L_.displayName="@mantine/core/InputWrapper";var aR=Object.defineProperty,sR=Object.defineProperties,uR=Object.getOwnPropertyDescriptors,wv=Object.getOwnPropertySymbols,cR=Object.prototype.hasOwnProperty,fR=Object.prototype.propertyIsEnumerable,_v=(e,t,r)=>t in e?aR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nc=(e,t)=>{for(var r in t||(t={}))cR.call(t,r)&&_v(e,r,t[r]);if(wv)for(var r of wv(t))fR.call(t,r)&&_v(e,r,t[r]);return e},Sv=(e,t)=>sR(e,uR(t));const ut={xs:30,sm:36,md:42,lg:50,xl:60};function dR({theme:e,variant:t}){return t==="default"?{border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":{outline:"none",borderColor:e.colors[e.primaryColor][e.fn.primaryShade()]}}:t==="filled"?{border:"1px solid transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":{outline:"none",borderColor:`${e.colors[e.primaryColor][e.fn.primaryShade()]} !important`}}:{borderWidth:0,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var pR=Q((e,{size:t,multiline:r,radius:n,variant:o,invalid:i,rightSectionWidth:l,withRightSection:a,iconWidth:s,offsetBottom:u,offsetTop:c,pointer:f})=>{const d=e.fn.variant({variant:"filled",color:"red"}).background,p=o==="default"||o==="filled"?{minHeight:e.fn.size({size:t,sizes:ut}),paddingLeft:e.fn.size({size:t,sizes:ut})/3,paddingRight:a?l:e.fn.size({size:t,sizes:ut})/3,borderRadius:e.fn.radius(n)}:null;return{wrapper:{position:"relative",marginTop:c?e.spacing.xs/2:void 0,marginBottom:u?e.spacing.xs/2:void 0},input:nc(Sv(nc(Sv(nc({},e.fn.fontStyles()),{height:r?o==="unstyled"?void 0:"auto":e.fn.size({size:t,sizes:ut}),WebkitTapHighlightColor:"transparent",lineHeight:r?e.lineHeight:`${e.fn.size({size:t,sizes:ut})-2}px`,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),width:"100%",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:f?"pointer":void 0}),p),{"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":{opacity:1,userSelect:"none",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),dR({theme:e,variant:o})),withIcon:{paddingLeft:typeof s=="number"?s:e.fn.size({size:t,sizes:ut})},invalid:{color:d,borderColor:d,"&::placeholder":{opacity:1,color:d}},disabled:{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:typeof s=="number"?s:e.fn.size({size:t,sizes:ut}),color:i?e.colors.red[e.colorScheme==="dark"?6:7]:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:l}}}),gR=pR,mR=Object.defineProperty,vR=Object.defineProperties,hR=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,F_=Object.prototype.hasOwnProperty,A_=Object.prototype.propertyIsEnumerable,bv=(e,t,r)=>t in e?mR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_l=(e,t)=>{for(var r in t||(t={}))F_.call(t,r)&&bv(e,r,t[r]);if(Wa)for(var r of Wa(t))A_.call(t,r)&&bv(e,r,t[r]);return e},xv=(e,t)=>vR(e,hR(t)),yR=(e,t)=>{var r={};for(var n in e)F_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wa)for(var n of Wa(e))t.indexOf(n)<0&&A_.call(e,n)&&(r[n]=e[n]);return r};const wR={rightSectionWidth:36,size:"sm",variant:"default"},so=g.exports.forwardRef((e,t)=>{const r=ee("Input",wR,e),{className:n,invalid:o,required:i,disabled:l,variant:a,icon:s,style:u,rightSectionWidth:c,iconWidth:f,rightSection:d,rightSectionProps:p,radius:y,size:w,wrapperProps:v,classNames:m,styles:h,__staticSelector:_,multiline:b,sx:O,unstyled:x,pointer:P}=r,$=yR(r,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:C,offsetTop:I}=W5(),{classes:z,cx:D}=gR({radius:y,size:w,multiline:b,variant:a,invalid:o,rightSectionWidth:c,iconWidth:f,withRightSection:!!d,offsetBottom:C,offsetTop:I,pointer:P},{classNames:m,styles:h,name:["Input",_],unstyled:x}),{systemStyles:j,rest:B}=ru($);return U(K,{..._l(_l({className:D(z.wrapper,n),sx:O,style:u},j),v),children:[s&&S("div",{className:z.icon,children:s}),S(K,{...xv(_l({component:"input"},B),{ref:t,required:i,"aria-invalid":o,disabled:l,className:D(z[`${a}Variant`],z.input,{[z.withIcon]:s,[z.invalid]:o,[z.disabled]:l})})}),d&&S("div",{...xv(_l({},p),{className:z.rightSection}),children:d})]})});so.displayName="@mantine/core/Input";so.Wrapper=L_;so.Label=Qd;so.Description=Jd;so.Error=Zd;const Ua=so;var _R=Q((e,{orientation:t,buttonBorderWidth:r})=>({root:{display:"flex",flexDirection:t==="vertical"?"column":"row","& [data-button]":{"&:first-of-type":{borderBottomRightRadius:0,[t==="vertical"?"borderBottomLeftRadius":"borderTopRightRadius"]:0,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"&:last-of-type":{borderTopLeftRadius:0,[t==="vertical"?"borderTopRightRadius":"borderBottomLeftRadius"]:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,[t==="vertical"?"borderTopWidth":"borderLeftWidth"]:r/2,[t==="vertical"?"borderBottomWidth":"borderRightWidth"]:r/2},"& + [data-button]":{[t==="vertical"?"marginTop":"marginLeft"]:-r,"@media (min-resolution: 192dpi)":{[t==="vertical"?"marginTop":"marginLeft"]:0}}}}})),SR=_R,bR=Object.defineProperty,Ga=Object.getOwnPropertySymbols,V_=Object.prototype.hasOwnProperty,H_=Object.prototype.propertyIsEnumerable,Pv=(e,t,r)=>t in e?bR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xR=(e,t)=>{for(var r in t||(t={}))V_.call(t,r)&&Pv(e,r,t[r]);if(Ga)for(var r of Ga(t))H_.call(t,r)&&Pv(e,r,t[r]);return e},PR=(e,t)=>{var r={};for(var n in e)V_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ga)for(var n of Ga(e))t.indexOf(n)<0&&H_.call(e,n)&&(r[n]=e[n]);return r};const $R={orientation:"horizontal",buttonBorderWidth:1},B_=g.exports.forwardRef((e,t)=>{const r=ee("ButtonGroup",$R,e),{className:n,orientation:o,buttonBorderWidth:i,unstyled:l}=r,a=PR(r,["className","orientation","buttonBorderWidth","unstyled"]),{classes:s,cx:u}=SR({orientation:o,buttonBorderWidth:i},{name:"ButtonGroup",unstyled:l});return S(K,{...xR({className:u(s.root,n),ref:t},a)})});B_.displayName="@mantine/core/ButtonGroup";var OR=Object.defineProperty,CR=Object.defineProperties,ER=Object.getOwnPropertyDescriptors,$v=Object.getOwnPropertySymbols,kR=Object.prototype.hasOwnProperty,RR=Object.prototype.propertyIsEnumerable,Ov=(e,t,r)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gr=(e,t)=>{for(var r in t||(t={}))kR.call(t,r)&&Ov(e,r,t[r]);if($v)for(var r of $v(t))RR.call(t,r)&&Ov(e,r,t[r]);return e},yf=(e,t)=>CR(e,ER(t));const wf={xs:{height:ut.xs,paddingLeft:14,paddingRight:14},sm:{height:ut.sm,paddingLeft:18,paddingRight:18},md:{height:ut.md,paddingLeft:22,paddingRight:22},lg:{height:ut.lg,paddingLeft:26,paddingRight:26},xl:{height:ut.xl,paddingLeft:32,paddingRight:32},"compact-xs":{height:22,paddingLeft:7,paddingRight:7},"compact-sm":{height:26,paddingLeft:8,paddingRight:8},"compact-md":{height:30,paddingLeft:10,paddingRight:10},"compact-lg":{height:34,paddingLeft:12,paddingRight:12},"compact-xl":{height:40,paddingLeft:14,paddingRight:14}};function IR({compact:e,size:t,withLeftIcon:r,withRightIcon:n}){if(e)return wf[`compact-${t}`];const o=wf[t];return yf(Gr({},o),{paddingLeft:r?o.paddingLeft/1.5:o.paddingLeft,paddingRight:n?o.paddingRight/1.5:o.paddingRight})}const NR=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function zR({variant:e,theme:t,color:r,gradient:n}){const o=t.fn.variant({color:r,variant:e,gradient:n});return e==="gradient"?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:Gr({border:`1px solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var DR=Q((e,{color:t,size:r,radius:n,fullWidth:o,compact:i,gradient:l,variant:a,withLeftIcon:s,withRightIcon:u})=>({root:yf(Gr(yf(Gr(Gr(Gr(Gr({},IR({compact:i,size:r,withLeftIcon:s,withRightIcon:u})),e.fn.fontStyles()),e.fn.focusStyles()),NR(o)),{borderRadius:e.fn.radius(n),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:r,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),zR({variant:a,theme:e,color:t,gradient:l})),{"&:active":e.activeStyles,"&[data-disabled]":{borderColor:"transparent",backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],color:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(n),cursor:"not-allowed"}}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:10},rightIcon:{marginLeft:10},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}})),TR=DR,MR=Object.defineProperty,Ya=Object.getOwnPropertySymbols,W_=Object.prototype.hasOwnProperty,U_=Object.prototype.propertyIsEnumerable,Cv=(e,t,r)=>t in e?MR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ev=(e,t)=>{for(var r in t||(t={}))W_.call(t,r)&&Cv(e,r,t[r]);if(Ya)for(var r of Ya(t))U_.call(t,r)&&Cv(e,r,t[r]);return e},jR=(e,t)=>{var r={};for(var n in e)W_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ya)for(var n of Ya(e))t.indexOf(n)<0&&U_.call(e,n)&&(r[n]=e[n]);return r};const LR={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},ep=g.exports.forwardRef((e,t)=>{const r=ee("Button",LR,e),{className:n,size:o,color:i,type:l,disabled:a,children:s,leftIcon:u,rightIcon:c,fullWidth:f,variant:d,radius:p,uppercase:y,compact:w,loading:v,loaderPosition:m,loaderProps:h,gradient:_,classNames:b,styles:O,unstyled:x}=r,P=jR(r,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:$,cx:C,theme:I}=TR({radius:p,color:i,size:o,fullWidth:f,compact:w,gradient:_,variant:d,withLeftIcon:!!u,withRightIcon:!!c},{name:"Button",unstyled:x,classNames:b,styles:O}),z=I.fn.variant({color:i,variant:d}),D=S(Hd,{...Ev({color:z.color,size:I.fn.size({size:o,sizes:wf}).height/2},h)});return S(nu,{...Ev({className:C($.root,n),type:l,disabled:a||v,"data-button":!0,"data-disabled":a||void 0,"data-loading":v||void 0,ref:t,unstyled:x},P),children:U("div",{className:$.inner,children:[(u||v&&m==="left")&&S("span",{className:C($.icon,$.leftIcon),children:v&&m==="left"?D:u}),S("span",{className:$.label,style:{textTransform:y?"uppercase":void 0},children:s}),(c||v&&m==="right")&&S("span",{className:C($.icon,$.rightIcon),children:v&&m==="right"?D:c})]})})});ep.displayName="@mantine/core/Button";ep.Group=B_;const qn=ep;var FR=Q((e,{radius:t,shadow:r,withBorder:n})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(t),boxShadow:e.shadows[r]||r||"none",border:n?`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`:void 0}})),AR=FR,VR=Object.defineProperty,Xa=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable,kv=(e,t,r)=>t in e?VR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HR=(e,t)=>{for(var r in t||(t={}))G_.call(t,r)&&kv(e,r,t[r]);if(Xa)for(var r of Xa(t))Y_.call(t,r)&&kv(e,r,t[r]);return e},BR=(e,t)=>{var r={};for(var n in e)G_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xa)for(var n of Xa(e))t.indexOf(n)<0&&Y_.call(e,n)&&(r[n]=e[n]);return r};const WR={},X_=g.exports.forwardRef((e,t)=>{const r=ee("Paper",WR,e),{className:n,children:o,radius:i,withBorder:l,shadow:a,unstyled:s}=r,u=BR(r,["className","children","radius","withBorder","shadow","unstyled"]),{classes:c,cx:f}=AR({radius:i,shadow:a,withBorder:l},{name:"Paper",unstyled:s});return S(K,{...HR({className:f(c.root,n),ref:t},u),children:o})});X_.displayName="@mantine/core/Paper";const UR=X_;var GR=Object.defineProperty,Ka=Object.getOwnPropertySymbols,K_=Object.prototype.hasOwnProperty,q_=Object.prototype.propertyIsEnumerable,Rv=(e,t,r)=>t in e?GR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YR=(e,t)=>{for(var r in t||(t={}))K_.call(t,r)&&Rv(e,r,t[r]);if(Ka)for(var r of Ka(t))q_.call(t,r)&&Rv(e,r,t[r]);return e},XR=(e,t)=>{var r={};for(var n in e)K_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ka)for(var n of Ka(e))t.indexOf(n)<0&&q_.call(e,n)&&(r[n]=e[n]);return r};const Q_=g.exports.forwardRef((e,t)=>{const r=ee("Center",{},e),{inline:n,sx:o}=r,i=XR(r,["inline","sx"]);return S(K,{...YR({ref:t,sx:[{display:n?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...Si(o)]},i)})});Q_.displayName="@mantine/core/Center";const Z_=Q_;function KR(e){return g.exports.Children.toArray(e).filter(Boolean)}const J_={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var qR=Q((e,{spacing:t,position:r,noWrap:n,grow:o,align:i,count:l})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:n?"nowrap":"wrap",justifyContent:J_[r],gap:e.fn.size({size:t,sizes:e.spacing})},child:{boxSizing:"border-box",maxWidth:o?`calc(${100/l}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/l}px)`:void 0,flexGrow:o?1:0}})),QR=qR,ZR=Object.defineProperty,qa=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,tS=Object.prototype.propertyIsEnumerable,Iv=(e,t,r)=>t in e?ZR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JR=(e,t)=>{for(var r in t||(t={}))eS.call(t,r)&&Iv(e,r,t[r]);if(qa)for(var r of qa(t))tS.call(t,r)&&Iv(e,r,t[r]);return e},e4=(e,t)=>{var r={};for(var n in e)eS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&tS.call(e,n)&&(r[n]=e[n]);return r};const t4={position:"left",spacing:"md"},jt=g.exports.forwardRef((e,t)=>{const r=ee("Group",t4,e),{className:n,position:o,align:i,children:l,noWrap:a,grow:s,spacing:u,unstyled:c}=r,f=e4(r,["className","position","align","children","noWrap","grow","spacing","unstyled"]),d=KR(l),{classes:p,cx:y}=QR({align:i,grow:s,noWrap:a,spacing:u,position:o,count:d.length},{unstyled:c,name:"Group"}),w=d.map(v=>{var m;return typeof v=="object"&&v!==null&&"props"in v?E.cloneElement(v,{className:y(p.child,(m=v.props)==null?void 0:m.className)}):v});return S(K,{...JR({className:y(p.root,n),ref:t},f),children:w})});jt.displayName="@mantine/core/Group";var r4=Q((e,{spacing:t,align:r,justify:n})=>({root:{display:"flex",flexDirection:"column",alignItems:r,justifyContent:n,gap:e.fn.size({size:t,sizes:e.spacing})}})),n4=r4,o4=Object.defineProperty,Qa=Object.getOwnPropertySymbols,rS=Object.prototype.hasOwnProperty,nS=Object.prototype.propertyIsEnumerable,Nv=(e,t,r)=>t in e?o4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i4=(e,t)=>{for(var r in t||(t={}))rS.call(t,r)&&Nv(e,r,t[r]);if(Qa)for(var r of Qa(t))nS.call(t,r)&&Nv(e,r,t[r]);return e},l4=(e,t)=>{var r={};for(var n in e)rS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Qa)for(var n of Qa(e))t.indexOf(n)<0&&nS.call(e,n)&&(r[n]=e[n]);return r};const a4={spacing:"md",align:"stretch",justify:"top"},Tt=g.exports.forwardRef((e,t)=>{const r=ee("Stack",a4,e),{spacing:n,className:o,align:i,justify:l,unstyled:a}=r,s=l4(r,["spacing","className","align","justify","unstyled"]),{classes:u,cx:c}=n4({spacing:n,align:i,justify:l},{name:"Stack",unstyled:a});return S(K,{...i4({className:c(u.root,o),ref:t},s)})});Tt.displayName="@mantine/core/Stack";function oS({transitions:e,duration:t=250,exitDuration:r=t,mounted:n,children:o,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u}){const{transitionDuration:c,transitionStatus:f,transitionTimingFunction:d}=v_({mounted:n,duration:t,exitDuration:r,timingFunction:i,onExit:l,onEntered:a,onEnter:s,onExited:u});if(c===0)return n?E.createElement(E.Fragment,null,o({})):null;if(f==="exited")return null;const p=Object.keys(e).reduce((y,w)=>(y[w]=m_({duration:e[w].duration,transition:e[w].transition,timingFunction:e[w].timingFunction||d,state:f}),y),{});return E.createElement(E.Fragment,null,o(p))}oS.displayName="@mantine/core/GroupedTransition";var s4=Q((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}})),u4=s4,c4=Object.defineProperty,f4=Object.defineProperties,d4=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,iS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,zv=(e,t,r)=>t in e?c4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oc=(e,t)=>{for(var r in t||(t={}))iS.call(t,r)&&zv(e,r,t[r]);if(Za)for(var r of Za(t))lS.call(t,r)&&zv(e,r,t[r]);return e},p4=(e,t)=>f4(e,d4(t)),g4=(e,t)=>{var r={};for(var n in e)iS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Za)for(var n of Za(e))t.indexOf(n)<0&&lS.call(e,n)&&(r[n]=e[n]);return r};const m4={opacity:.6,color:"#fff",zIndex:io("modal"),radius:0,blur:0},aS=g.exports.forwardRef((e,t)=>{const r=ee("Overlay",m4,e),{opacity:n,blur:o,color:i,gradient:l,zIndex:a,radius:s,sx:u,unstyled:c,className:f}=r,d=g4(r,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:p,cx:y}=u4({zIndex:a},{name:"Overlay",unstyled:c}),w=l?{backgroundImage:l}:{backgroundColor:i},v=m=>S(K,{...oc({ref:t,className:y(p.root,f),sx:[h=>p4(oc({},w),{opacity:n,borderRadius:h.fn.size({size:s,sizes:h.radius})}),...Si(u)]},m)});return o?S(K,{...oc({className:y(p.root,f),sx:[{backdropFilter:`blur(${o}px)`},...Si(u)]},d),children:v()}):v(d)});aS.displayName="@mantine/core/Overlay";const v4=aS,sS=g.exports.createContext(null),h4=sS.Provider,y4=()=>g.exports.useContext(sS);var w4=Object.defineProperty,Dv=Object.getOwnPropertySymbols,_4=Object.prototype.hasOwnProperty,S4=Object.prototype.propertyIsEnumerable,Tv=(e,t,r)=>t in e?w4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b4=(e,t)=>{for(var r in t||(t={}))_4.call(t,r)&&Tv(e,r,t[r]);if(Dv)for(var r of Dv(t))S4.call(t,r)&&Tv(e,r,t[r]);return e};const Ja=(e,t)=>`${100/(t/e)}%`,uS=(e,t)=>e?`${100/(t/e)}%`:void 0;function x4({sizes:e,offsets:t,theme:r,columns:n,grow:o}){return lO.reduce((i,l)=>(typeof e[l]=="number"&&(i[`@media (min-width: ${r.breakpoints[l]+1}px)`]={flexBasis:Ja(e[l],n),flexShrink:0,maxWidth:o?"unset":Ja(e[l],n),marginLeft:uS(t[l],n)}),i),{})}var P4=Q((e,{gutter:t,grow:r,offset:n,offsetXs:o,offsetSm:i,offsetMd:l,offsetLg:a,offsetXl:s,columns:u,span:c,xs:f,sm:d,md:p,lg:y,xl:w})=>({root:b4({boxSizing:"border-box",flexGrow:r?1:0,padding:e.fn.size({size:t,sizes:e.spacing})/2,marginLeft:uS(n,u),flexBasis:Ja(c,u),flexShrink:0,maxWidth:r?"unset":Ja(c,u)},x4({sizes:{xs:f,sm:d,md:p,lg:y,xl:w},offsets:{xs:o,sm:i,md:l,lg:a,xl:s},theme:e,columns:u,grow:r}))})),$4=P4,O4=Object.defineProperty,es=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,fS=Object.prototype.propertyIsEnumerable,Mv=(e,t,r)=>t in e?O4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C4=(e,t)=>{for(var r in t||(t={}))cS.call(t,r)&&Mv(e,r,t[r]);if(es)for(var r of es(t))fS.call(t,r)&&Mv(e,r,t[r]);return e},E4=(e,t)=>{var r={};for(var n in e)cS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&es)for(var n of es(e))t.indexOf(n)<0&&fS.call(e,n)&&(r[n]=e[n]);return r};const k4={offset:0,offsetXs:0,offsetSm:0,offsetMd:0,offsetLg:0,offsetXl:0};function R4(e){return typeof e=="number"&&e>0&&e%1===0}const dS=g.exports.forwardRef((e,t)=>{const r=ee("Grid.Col",k4,e),{children:n,span:o,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:p,lg:y,xl:w,className:v,id:m,unstyled:h}=r,_=E4(r,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","className","id","unstyled"]),b=y4();if(!b)throw new Error("[@mantine/core] Grid.Col was used outside of Grid context");const O=o||b.columns,{classes:x,cx:P}=$4({gutter:b.gutter,offset:i,offsetXs:l,offsetSm:a,offsetMd:s,offsetLg:u,offsetXl:c,xs:f,sm:d,md:p,lg:y,xl:w,grow:b.grow,columns:b.columns,span:O},{unstyled:h,name:"Col"});return!R4(O)||O>b.columns?null:S(K,{...C4({className:P(x.root,v),ref:t},_),children:n})});dS.displayName="@mantine/core/Col";var I4=Q((e,{justify:t,align:r,gutter:n})=>({root:{margin:-e.fn.size({size:n,sizes:e.spacing})/2,display:"flex",flexWrap:"wrap",justifyContent:t,alignItems:r}})),N4=I4,z4=Object.defineProperty,ts=Object.getOwnPropertySymbols,pS=Object.prototype.hasOwnProperty,gS=Object.prototype.propertyIsEnumerable,jv=(e,t,r)=>t in e?z4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D4=(e,t)=>{for(var r in t||(t={}))pS.call(t,r)&&jv(e,r,t[r]);if(ts)for(var r of ts(t))gS.call(t,r)&&jv(e,r,t[r]);return e},T4=(e,t)=>{var r={};for(var n in e)pS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ts)for(var n of ts(e))t.indexOf(n)<0&&gS.call(e,n)&&(r[n]=e[n]);return r};const M4={gutter:"md",justify:"flex-start",align:"stretch",columns:12},pu=g.exports.forwardRef((e,t)=>{const r=ee("Grid",M4,e),{gutter:n,children:o,grow:i,justify:l,align:a,columns:s,className:u,id:c,unstyled:f}=r,d=T4(r,["gutter","children","grow","justify","align","columns","className","id","unstyled"]),{classes:p,cx:y}=N4({gutter:n,justify:l,align:a},{unstyled:f,name:"Grid"});return S(h4,{value:{gutter:n,grow:i,columns:s},children:S(K,{...D4({className:y(p.root,u),ref:t},d),children:o})})});pu.Col=dS;pu.displayName="@mantine/core/Grid";function j4({open:e,close:t,openDelay:r,closeDelay:n}){const o=g.exports.useRef(-1),i=g.exports.useRef(-1),l=()=>{window.clearTimeout(o.current),window.clearTimeout(i.current)},a=()=>{l(),r===0?e():o.current=window.setTimeout(e,r)},s=()=>{l(),n===0?t():i.current=window.setTimeout(t,n)};return g.exports.useEffect(()=>l,[]),{openDropdown:a,closeDropdown:s}}var L4=Q(e=>({divider:{margin:`${e.spacing.xs/2}px -5px`,borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2]}`}})),F4=L4,A4=Object.defineProperty,rs=Object.getOwnPropertySymbols,mS=Object.prototype.hasOwnProperty,vS=Object.prototype.propertyIsEnumerable,Lv=(e,t,r)=>t in e?A4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V4=(e,t)=>{for(var r in t||(t={}))mS.call(t,r)&&Lv(e,r,t[r]);if(rs)for(var r of rs(t))vS.call(t,r)&&Lv(e,r,t[r]);return e},H4=(e,t)=>{var r={};for(var n in e)mS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&rs)for(var n of rs(e))t.indexOf(n)<0&&vS.call(e,n)&&(r[n]=e[n]);return r};function hS(e){var t=e,{children:r,className:n}=t,o=H4(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=dn(),{classes:s,cx:u}=F4(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return E.createElement(K,V4({className:u(s.divider,n)},o))}hS.displayName="@mantine/core/MenuDivider";const yS={context:"Menu component was not found in the tree",children:"Menu.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"},[B4,tp]=Rd(yS.context);var W4=Object.defineProperty,ns=Object.getOwnPropertySymbols,wS=Object.prototype.hasOwnProperty,_S=Object.prototype.propertyIsEnumerable,Fv=(e,t,r)=>t in e?W4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U4=(e,t)=>{for(var r in t||(t={}))wS.call(t,r)&&Fv(e,r,t[r]);if(ns)for(var r of ns(t))_S.call(t,r)&&Fv(e,r,t[r]);return e},G4=(e,t)=>{var r={};for(var n in e)wS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ns)for(var n of ns(e))t.indexOf(n)<0&&_S.call(e,n)&&(r[n]=e[n]);return r};function SS(e){var t=e,{children:r,onMouseEnter:n,onMouseLeave:o}=t,i=G4(t,["children","onMouseEnter","onMouseLeave"]);const l=g.exports.useRef(),a=tp(),s=f=>{(f.key==="ArrowUp"||f.key==="ArrowDown")&&(f.preventDefault(),l.current.querySelectorAll("[data-menu-item]")[0].focus())},u=Xt(n,()=>a.trigger==="hover"&&a.openDropdown()),c=Xt(o,()=>a.trigger==="hover"&&a.closeDropdown());return S(nr.Dropdown,{...U4({onMouseEnter:u,onMouseLeave:c,role:"menu","aria-orientation":"vertical"},i),children:S("div",{tabIndex:-1,"data-menu-dropdown":!0,"data-autofocus":!0,onKeyDown:s,ref:l,style:{outline:0},children:r})})}SS.displayName="@mantine/core/MenuDropdown";var Y4=Object.defineProperty,X4=Object.defineProperties,K4=Object.getOwnPropertyDescriptors,Av=Object.getOwnPropertySymbols,q4=Object.prototype.hasOwnProperty,Q4=Object.prototype.propertyIsEnumerable,Vv=(e,t,r)=>t in e?Y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z4=(e,t)=>{for(var r in t||(t={}))q4.call(t,r)&&Vv(e,r,t[r]);if(Av)for(var r of Av(t))Q4.call(t,r)&&Vv(e,r,t[r]);return e},J4=(e,t)=>X4(e,K4(t)),e6=Q((e,{color:t,radius:r})=>({item:J4(Z4({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fontSizes.sm,border:0,backgroundColor:"transparent",outline:0,width:"100%",textAlign:"left",textDecoration:"none",boxSizing:"border-box",padding:`${e.spacing.xs}px ${e.spacing.sm}px`,cursor:"pointer",borderRadius:e.fn.radius(r),color:t?e.fn.variant({variant:"filled",primaryFallback:!1,color:t}).background:e.colorScheme==="dark"?e.colors.dark[0]:e.black,display:"flex",alignItems:"center","&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5],pointerEvents:"none",userSelect:"none"},"&[data-hovered]":{backgroundColor:t?e.fn.variant({variant:"light",color:t}).background:e.colorScheme==="dark"?e.fn.rgba(e.colors.dark[3],.35):e.colors.gray[0]}}),itemLabel:{flex:1},itemIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:e.spacing.xs},itemRightSection:{}})),t6=e6,r6=Object.defineProperty,n6=Object.defineProperties,o6=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,bS=Object.prototype.hasOwnProperty,xS=Object.prototype.propertyIsEnumerable,Hv=(e,t,r)=>t in e?r6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i6=(e,t)=>{for(var r in t||(t={}))bS.call(t,r)&&Hv(e,r,t[r]);if(os)for(var r of os(t))xS.call(t,r)&&Hv(e,r,t[r]);return e},l6=(e,t)=>n6(e,o6(t)),a6=(e,t)=>{var r={};for(var n in e)bS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&os)for(var n of os(e))t.indexOf(n)<0&&xS.call(e,n)&&(r[n]=e[n]);return r};const PS=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,color:i,closeMenuOnClick:l,icon:a,rightSection:s}=r,u=a6(r,["children","className","color","closeMenuOnClick","icon","rightSection"]);const c=tp(),{classNames:f,styles:d,unstyled:p}=dn(),{classes:y,cx:w,theme:v}=t6({radius:c.radius,color:i},{name:"Menu",classNames:f,styles:d,unstyled:p}),m=g.exports.useRef(),h=c.getItemIndex(m.current),_=u,b=Xt(_.onMouseLeave,()=>c.setHovered(-1)),O=Xt(_.onMouseEnter,()=>c.setHovered(c.getItemIndex(m.current))),x=Xt(_.onClick,()=>{typeof l=="boolean"?l&&c.closeDropdownImmediately():c.closeOnItemClick&&c.closeDropdownImmediately()}),P=Xt(_.onFocus,()=>c.setHovered(c.getItemIndex(m.current)));return U(K,{...l6(i6({component:"button"},u),{type:"button",tabIndex:-1,onFocus:P,className:w(y.item,o),ref:pn(m,t),role:"menuitem","data-menu-item":!0,"data-hovered":c.hovered===h?!0:void 0,onMouseEnter:O,onMouseLeave:b,onClick:x,onKeyDown:p1({siblingSelector:"[data-menu-item]",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:c.loop,dir:v.dir,orientation:"vertical",onKeyDown:_.onKeydown})}),children:[a&&S("div",{className:y.itemIcon,children:a}),n&&S("div",{className:y.itemLabel,children:n}),s&&S("div",{className:y.itemRightSection,children:s})]})});PS.displayName="@mantine/core/MenuItem";const s6=PS;var u6=Q(e=>({label:{color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],fontWeight:500,fontSize:e.fontSizes.xs,padding:`${e.spacing.xs/2}px ${e.spacing.sm}px`,cursor:"default"}})),c6=u6,f6=Object.defineProperty,is=Object.getOwnPropertySymbols,$S=Object.prototype.hasOwnProperty,OS=Object.prototype.propertyIsEnumerable,Bv=(e,t,r)=>t in e?f6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d6=(e,t)=>{for(var r in t||(t={}))$S.call(t,r)&&Bv(e,r,t[r]);if(is)for(var r of is(t))OS.call(t,r)&&Bv(e,r,t[r]);return e},p6=(e,t)=>{var r={};for(var n in e)$S.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&is)for(var n of is(e))t.indexOf(n)<0&&OS.call(e,n)&&(r[n]=e[n]);return r};function CS(e){var t=e,{children:r,className:n}=t,o=p6(t,["children","className"]);const{classNames:i,styles:l,unstyled:a}=dn(),{classes:s,cx:u}=c6(null,{name:"Menu",classNames:i,styles:l,unstyled:a});return E.createElement(mt,d6({className:u(s.label,n)},o),r)}CS.displayName="@mantine/core/MenuLabel";var g6=Object.defineProperty,ls=Object.getOwnPropertySymbols,ES=Object.prototype.hasOwnProperty,kS=Object.prototype.propertyIsEnumerable,Wv=(e,t,r)=>t in e?g6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m6=(e,t)=>{for(var r in t||(t={}))ES.call(t,r)&&Wv(e,r,t[r]);if(ls)for(var r of ls(t))kS.call(t,r)&&Wv(e,r,t[r]);return e},v6=(e,t)=>{var r={};for(var n in e)ES.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ls)for(var n of ls(e))t.indexOf(n)<0&&kS.call(e,n)&&(r[n]=e[n]);return r};const RS=g.exports.forwardRef((e,t)=>{var r=e,{children:n,refProp:o="ref"}=r,i=v6(r,["children","refProp"]);if(!Ti(n))throw new Error(yS.children);const l=tp(),a=Xt(n.props.onClick,()=>l.trigger==="click"&&l.toggleDropdown()),s=Xt(n.props.onMouseEnter,()=>l.trigger==="hover"&&l.openDropdown()),u=Xt(n.props.onMouseLeave,()=>l.trigger==="hover"&&l.closeDropdown());return S(nr.Target,{...m6({refProp:o,popupType:"menu",ref:t},i),children:g.exports.cloneElement(n,{onClick:a,onMouseEnter:s,onMouseLeave:u,"data-expanded":l.opened?!0:void 0})})});RS.displayName="@mantine/core/MenuTarget";var h6=Q({dropdown:{padding:4}}),y6=h6,w6=Object.defineProperty,_6=Object.defineProperties,S6=Object.getOwnPropertyDescriptors,as=Object.getOwnPropertySymbols,IS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,Uv=(e,t,r)=>t in e?w6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gv=(e,t)=>{for(var r in t||(t={}))IS.call(t,r)&&Uv(e,r,t[r]);if(as)for(var r of as(t))NS.call(t,r)&&Uv(e,r,t[r]);return e},Yv=(e,t)=>_6(e,S6(t)),b6=(e,t)=>{var r={};for(var n in e)IS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&as)for(var n of as(e))t.indexOf(n)<0&&NS.call(e,n)&&(r[n]=e[n]);return r};const x6={closeOnItemClick:!0,loop:!0,trigger:"click",openDelay:0,closeDelay:100};function et(e){const t=ee("Menu",x6,e),{children:r,onOpen:n,onClose:o,opened:i,defaultOpened:l,onChange:a,closeOnItemClick:s,loop:u,closeOnEscape:c,trigger:f,openDelay:d,closeDelay:p,classNames:y,styles:w,unstyled:v,radius:m}=t,h=b6(t,["children","onOpen","onClose","opened","defaultOpened","onChange","closeOnItemClick","loop","closeOnEscape","trigger","openDelay","closeDelay","classNames","styles","unstyled","radius"]),{classes:_,cx:b}=y6(),[O,{setHovered:x,resetHovered:P}]=I$(),[$,C]=Li({value:i,defaultValue:l,finalValue:!1,onChange:a}),I=()=>{C(!1),$&&o?.()},z=()=>{C(!0),!$&&n?.()},D=()=>$?I():z(),{openDropdown:j,closeDropdown:B}=j4({open:z,close:I,closeDelay:p,openDelay:d}),V=W=>P$("[data-menu-item]","[data-menu-dropdown]",W);return kr(()=>{P()},[$]),E.createElement(B4,{value:{opened:$,toggleDropdown:D,getItemIndex:V,hovered:O,setHovered:x,closeOnItemClick:s,closeDropdown:f==="click"?I:B,openDropdown:f==="click"?z:j,closeDropdownImmediately:I,loop:u,trigger:f,radius:m}},E.createElement(nr,Yv(Gv({},h),{radius:m,opened:$,onChange:C,defaultOpened:l,trapFocus:f==="click",closeOnEscape:c&&f==="click",__staticSelector:"Menu",classNames:Yv(Gv({},y),{dropdown:b(_.dropdown,y?.dropdown)}),styles:w,unstyled:v,onClose:I,onOpen:z}),r))}et.displayName="@mantine/core/Menu";et.Item=s6;et.Label=CS;et.Dropdown=SS;et.Target=RS;et.Divider=hS;var P6=Object.defineProperty,Xv=Object.getOwnPropertySymbols,$6=Object.prototype.hasOwnProperty,O6=Object.prototype.propertyIsEnumerable,Kv=(e,t,r)=>t in e?P6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C6=(e,t)=>{for(var r in t||(t={}))$6.call(t,r)&&Kv(e,r,t[r]);if(Xv)for(var r of Xv(t))O6.call(t,r)&&Kv(e,r,t[r]);return e};const E6={xs:320,sm:380,md:440,lg:620,xl:780};function k6(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}}var R6=Q((e,{overflow:t,size:r,centered:n,zIndex:o,fullScreen:i})=>({close:{},overlay:{display:i?"none":void 0},root:{position:"fixed",zIndex:o,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:i?0:`${e.spacing.xl*2}px ${e.spacing.md}px`,display:"flex",justifyContent:"center",alignItems:n?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:C6({position:"relative",width:i?void 0:e.fn.size({sizes:E6,size:r}),borderRadius:i?0:void 0,outline:0,backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,marginTop:n?"auto":void 0,marginBottom:n?"auto":void 0,zIndex:1,marginLeft:i?void 0:"calc(var(--removed-scroll-width, 0px) * -1)"},k6(i)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:t==="inside"?"calc(100vh - 185px)":null,overflowY:t==="inside"?"auto":null,wordBreak:"break-word"}})),I6=R6,N6=Object.defineProperty,ss=Object.getOwnPropertySymbols,zS=Object.prototype.hasOwnProperty,DS=Object.prototype.propertyIsEnumerable,qv=(e,t,r)=>t in e?N6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z6=(e,t)=>{for(var r in t||(t={}))zS.call(t,r)&&qv(e,r,t[r]);if(ss)for(var r of ss(t))DS.call(t,r)&&qv(e,r,t[r]);return e},D6=(e,t)=>{var r={};for(var n in e)zS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ss)for(var n of ss(e))t.indexOf(n)<0&&DS.call(e,n)&&(r[n]=e[n]);return r};const T6={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:io("modal")};function gu(e){const t=ee("Modal",T6,e),{className:r,opened:n,title:o,onClose:i,children:l,withCloseButton:a,overlayOpacity:s,size:u,transitionDuration:c,closeButtonLabel:f,overlayColor:d,overflow:p,transition:y,padding:w,shadow:v,radius:m,id:h,classNames:_,styles:b,closeOnClickOutside:O,trapFocus:x,closeOnEscape:P,centered:$,target:C,withinPortal:I,zIndex:z,overlayBlur:D,transitionTimingFunction:j,fullScreen:B,unstyled:V,lockScroll:W,withFocusReturn:ne}=t,se=D6(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),ie=lo(h),ze=`${ie}-title`,R=`${ie}-body`,{classes:T,cx:A,theme:k}=I6({size:u,overflow:p,centered:$,zIndex:z,fullScreen:B},{unstyled:V,classNames:_,styles:b,name:"Modal"}),M=Y1(x&&n),G=typeof s=="number"?s:k.colorScheme==="dark"?.85:.75,[,Z]=w2(),De=ae=>{!x&&ae.key==="Escape"&&P&&i()};return g.exports.useEffect(()=>{if(!x)return window.addEventListener("keydown",De),()=>window.removeEventListener("keydown",De)},[x]),B1({opened:n,shouldReturnFocus:x&&ne}),S(Fi,{withinPortal:I,target:C,children:S(oS,{onExited:()=>W&&Z(!1),onEntered:()=>W&&Z(!0),mounted:n,duration:c,exitDuration:c,timingFunction:j,transitions:{modal:{duration:c,transition:y||(B?"fade":"pop")},overlay:{duration:c/2,transition:"fade",timingFunction:"ease"}},children:ae=>S(K,{...z6({id:ie,className:A(T.root,r)},se),children:U("div",{className:T.inner,onKeyDownCapture:Ve=>{var or;((or=Ve.target)==null?void 0:or.getAttribute("data-mantine-stop-propagation"))!=="true"&&Ve.key==="Escape"&&P&&i()},ref:M,children:[U(UR,{className:T.modal,shadow:v,p:w,radius:m,role:"dialog","aria-labelledby":ze,"aria-describedby":R,"aria-modal":!0,tabIndex:-1,style:ae.modal,unstyled:V,children:[(o||a)&&U("div",{className:T.header,children:[S(mt,{id:ze,className:T.title,children:o}),a&&S(ou,{iconSize:16,onClick:i,"aria-label":f,className:T.close})]}),S("div",{id:R,className:T.body,children:l})]}),S("div",{style:ae.overlay,children:S(v4,{className:T.overlay,sx:{position:"fixed"},zIndex:0,onMouseDown:()=>O&&i(),blur:D,color:d||(k.colorScheme==="dark"?k.colors.dark[9]:k.black),opacity:G,unstyled:V})})]})})})})}gu.displayName="@mantine/core/Modal";var M6=Object.defineProperty,us=Object.getOwnPropertySymbols,TS=Object.prototype.hasOwnProperty,MS=Object.prototype.propertyIsEnumerable,Qv=(e,t,r)=>t in e?M6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zv=(e,t)=>{for(var r in t||(t={}))TS.call(t,r)&&Qv(e,r,t[r]);if(us)for(var r of us(t))MS.call(t,r)&&Qv(e,r,t[r]);return e},j6=(e,t)=>{var r={};for(var n in e)TS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&us)for(var n of us(e))t.indexOf(n)<0&&MS.call(e,n)&&(r[n]=e[n]);return r};const L6={xs:14,sm:18,md:20,lg:24,xl:28};function F6(e){var t=e,{size:r,error:n,style:o}=t,i=j6(t,["size","error","style"]);const l=at(),a=l.fn.size({size:r,sizes:L6});return E.createElement("svg",Zv({width:a,height:a,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Zv({color:n?l.colors.red[6]:l.colors.gray[6]},o),"data-chevron":!0},i),E.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function jS({shouldClear:e,clearButtonLabel:t,onClear:r,size:n,error:o,clearButtonTabIndex:i}){return e?E.createElement(ou,{variant:"transparent","aria-label":t,onClick:r,size:n,tabIndex:i}):E.createElement(F6,{error:o,size:n})}jS.displayName="@mantine/core/SelectRightSection";var A6=Object.defineProperty,V6=Object.defineProperties,H6=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,LS=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,Jv=(e,t,r)=>t in e?A6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ic=(e,t)=>{for(var r in t||(t={}))LS.call(t,r)&&Jv(e,r,t[r]);if(cs)for(var r of cs(t))FS.call(t,r)&&Jv(e,r,t[r]);return e},eh=(e,t)=>V6(e,H6(t)),B6=(e,t)=>{var r={};for(var n in e)LS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&cs)for(var n of cs(e))t.indexOf(n)<0&&FS.call(e,n)&&(r[n]=e[n]);return r};const W6={xs:24,sm:30,md:34,lg:44,xl:54};function U6(e){var t=e,{styles:r,rightSection:n,rightSectionWidth:o,theme:i}=t,l=B6(t,["styles","rightSection","rightSectionWidth","theme"]);if(n)return{rightSection:n,rightSectionWidth:o,styles:r};const a=typeof r=="function"?r(i):r;return{rightSectionWidth:i.fn.size({size:l.size,sizes:W6}),rightSection:!l.readOnly&&!(l.disabled&&l.shouldClear)&&E.createElement(jS,ic({},l)),styles:eh(ic({},a),{rightSection:eh(ic({},a?.rightSection),{pointerEvents:l.shouldClear?void 0:"none"})})}}const G6=(e,t,r)=>Number.isInteger(e)&&e>=0&&t===0?"numeric":!Number.isInteger(e)&&e>=0&&t!==0?"decimal":Number.isInteger(e)&&e<0&&t===0||!Number.isInteger(e)&&e<0&&t!==0?r==="ios"?"text":"decimal":"numeric";function th({direction:e,size:t}){return E.createElement("svg",{style:{transform:e==="up"?"rotate(180deg)":void 0},width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}const AS={xs:20,sm:24,md:30,lg:34,xl:36};var Y6=Q((e,{radius:t,size:r})=>({rightSection:{display:"flex",flexDirection:"column",height:"calc(100% - 2px)",margin:1,marginRight:1,overflow:"hidden",borderTopRightRadius:e.fn.radius(t),borderBottomRightRadius:e.fn.radius(t)},control:{margin:0,position:"relative",flex:"0 0 50%",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:e.fn.size({size:r,sizes:AS}),padding:0,WebkitTapHighlightColor:"transparent",borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderLeft:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,borderTop:0,borderRight:0,backgroundColor:"transparent",marginRight:1,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,"&:not(:disabled):hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[0]},"&:disabled":{color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[4]}},controlUp:{},controlDown:{borderBottom:0}})),X6=Y6,K6=Object.defineProperty,q6=Object.defineProperties,Q6=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,VS=Object.prototype.hasOwnProperty,HS=Object.prototype.propertyIsEnumerable,rh=(e,t,r)=>t in e?K6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lc=(e,t)=>{for(var r in t||(t={}))VS.call(t,r)&&rh(e,r,t[r]);if(fs)for(var r of fs(t))HS.call(t,r)&&rh(e,r,t[r]);return e},Z6=(e,t)=>q6(e,Q6(t)),J6=(e,t)=>{var r={};for(var n in e)VS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&fs)for(var n of fs(e))t.indexOf(n)<0&&HS.call(e,n)&&(r[n]=e[n]);return r};const eI={type:"text",size:"sm",__staticSelector:"TextInput"},Tr=g.exports.forwardRef((e,t)=>{const r=E_("TextInput",eI,e),{inputProps:n,wrapperProps:o}=r,i=J6(r,["inputProps","wrapperProps"]);return S(Ua.Wrapper,{...lc({},o),children:S(Ua,{...Z6(lc(lc({},n),i),{ref:t})})})});Tr.displayName="@mantine/core/TextInput";var tI=Object.defineProperty,rI=Object.defineProperties,nI=Object.getOwnPropertyDescriptors,ds=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,nh=(e,t,r)=>t in e?tI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oI=(e,t)=>{for(var r in t||(t={}))BS.call(t,r)&&nh(e,r,t[r]);if(ds)for(var r of ds(t))WS.call(t,r)&&nh(e,r,t[r]);return e},iI=(e,t)=>rI(e,nI(t)),lI=(e,t)=>{var r={};for(var n in e)BS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ds)for(var n of ds(e))t.indexOf(n)<0&&WS.call(e,n)&&(r[n]=e[n]);return r};const aI=e=>e||"",sI=e=>{if(e==="-")return e;let t=e;t[0]==="."&&(t=`0${e}`);const r=parseFloat(t);if(!Number.isNaN(r))return e},oh={xs:10,sm:14,md:16,lg:18,xl:20},uI={step:1,hideControls:!1,size:"sm",precision:0,noClampOnBlur:!1,formatter:aI,parser:sI},$i=g.exports.forwardRef((e,t)=>{const r=ee("NumberInput",uI,e),{disabled:n,value:o,onChange:i,decimalSeparator:l,min:a,max:s,startValue:u,step:c,stepHoldInterval:f,stepHoldDelay:d,onBlur:p,onFocus:y,hideControls:w,radius:v,variant:m,precision:h,defaultValue:_,noClampOnBlur:b,handlersRef:O,classNames:x,styles:P,size:$,rightSection:C,rightSectionWidth:I,formatter:z,parser:D,inputMode:j,unstyled:B}=r,V=lI(r,["disabled","value","onChange","decimalSeparator","min","max","startValue","step","stepHoldInterval","stepHoldDelay","onBlur","onFocus","hideControls","radius","variant","precision","defaultValue","noClampOnBlur","handlersRef","classNames","styles","size","rightSection","rightSectionWidth","formatter","parser","inputMode","unstyled"]),{classes:W,cx:ne,theme:se}=X6({radius:v,size:$},{classNames:x,styles:P,unstyled:B,name:"NumberInput"}),[ie,ze]=g.exports.useState(!1),[R,T]=g.exports.useState(typeof o=="number"?o:typeof _=="number"?_:void 0),A=typeof o=="number"?o:R,[k,M]=g.exports.useState(typeof A=="number"?A.toFixed(h):""),G=g.exports.useRef(),Z=H=>{H!==R&&!Number.isNaN(H)&&(typeof i=="function"&&i(H),T(H))},De=(H="")=>{let oe=typeof H=="number"?String(H):H;return l&&(oe=oe.replace(/\./g,l)),z(oe)},ae=H=>{let oe=H;return l&&(oe=oe.replace(new RegExp(`\\${l}`,"g"),".")),D(oe)},Ve=typeof a=="number"?a:-1/0,or=typeof s=="number"?s:1/0,mn=g.exports.useRef();mn.current=()=>{var H,oe,me;if(R===void 0)Z((H=u??a)!=null?H:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const He=Qu(R+c,Ve,or).toFixed(h);Z(parseFloat(He)),M(He)}};const co=g.exports.useRef();co.current=()=>{var H,oe,me;if(R===void 0)Z((H=u??a)!=null?H:0),M((me=(oe=u?.toFixed(h))!=null?oe:a?.toFixed(h))!=null?me:"0");else{const He=Qu(R-c,Ve,or).toFixed(h);Z(parseFloat(He)),M(He)}},X1(O,{increment:mn.current,decrement:co.current}),g.exports.useEffect(()=>{typeof o=="number"&&!ie&&(T(o),M(o.toFixed(h))),_===void 0&&o===void 0&&!ie&&(T(o),M(""))},[o]);const fo=d!==void 0&&f!==void 0,qe=g.exports.useRef(null),po=g.exports.useRef(0),Lt=()=>{qe.current&&window.clearTimeout(qe.current),qe.current=null,po.current=0},Gi=H=>{H?mn.current():co.current(),po.current+=1},Yi=H=>{if(Gi(H),fo){const oe=typeof f=="number"?f:f(po.current);qe.current=window.setTimeout(()=>Yi(H),oe)}},Ee=(H,oe)=>{H.preventDefault(),G.current.focus(),Gi(oe),fo&&(qe.current=window.setTimeout(()=>Yi(oe),d))};g.exports.useEffect(()=>(Lt(),Lt),[]);const Su=U("div",{className:W.rightSection,children:[S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A>=s,className:ne(W.control,W.controlUp),onPointerDown:H=>{Ee(H,!0)},onPointerUp:Lt,onPointerLeave:Lt,children:S(th,{size:se.fn.size({size:$,sizes:oh}),direction:"up"})}),S("button",{type:"button",tabIndex:-1,"aria-hidden":!0,disabled:A<=a,className:ne(W.control,W.controlDown),onPointerDown:H=>{Ee(H,!1)},onPointerUp:Lt,onPointerLeave:Lt,children:S(th,{size:se.fn.size({size:$,sizes:oh}),direction:"down"})})]}),wt=H=>{if(H.nativeEvent.isComposing)return;const me=H.target.value,He=ae(me);M(He),me===""||me==="-"?Z(void 0):me.trim()!==""&&!Number.isNaN(He)&&Z(parseFloat(He))},Te=H=>{var oe;if(H.target.value==="")M(""),Z(void 0);else{let me=H.target.value;(me[0]===`${l}`||me[0]===".")&&(me=`0${me}`);const He=ae(me),mo=Qu(parseFloat(He),Ve,or);Number.isNaN(mo)?M((oe=A?.toFixed(h))!=null?oe:""):b||(M(mo.toFixed(h)),Z(parseFloat(mo.toFixed(h))))}ze(!1),typeof p=="function"&&p(H)},go=H=>{ze(!0),typeof y=="function"&&y(H)},vn=H=>{if(H.repeat&&fo&&(H.key==="ArrowUp"||H.key==="ArrowDown")){H.preventDefault();return}H.key==="ArrowUp"?Ee(H,!0):H.key==="ArrowDown"&&Ee(H,!1)},Xi=H=>{(H.key==="ArrowUp"||H.key==="ArrowDown")&&Lt()};return S(Tr,{...iI(oI({},V),{variant:m,value:De(k),disabled:n,ref:pn(G,t),type:"text",onChange:wt,onBlur:Te,onFocus:go,onKeyDown:vn,onKeyUp:Xi,rightSection:C||(n||w||m==="unstyled"?null:Su),rightSectionWidth:I||se.fn.size({size:$,sizes:AS})+1,radius:v,max:s,min:a,step:c,size:$,styles:P,classNames:x,inputMode:j||G6(c,h,S2()),__staticSelector:"NumberInput",unstyled:B})})});$i.displayName="@mantine/core/NumberInput";var cI=Object.defineProperty,ih=Object.getOwnPropertySymbols,fI=Object.prototype.hasOwnProperty,dI=Object.prototype.propertyIsEnumerable,lh=(e,t,r)=>t in e?cI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pI=(e,t)=>{for(var r in t||(t={}))fI.call(t,r)&&lh(e,r,t[r]);if(ih)for(var r of ih(t))dI.call(t,r)&&lh(e,r,t[r]);return e};function US(e){return E.createElement("svg",pI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z",fill:"currentColor"}))}var gI=Object.defineProperty,ah=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,vI=Object.prototype.propertyIsEnumerable,sh=(e,t,r)=>t in e?gI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hI=(e,t)=>{for(var r in t||(t={}))mI.call(t,r)&&sh(e,r,t[r]);if(ah)for(var r of ah(t))vI.call(t,r)&&sh(e,r,t[r]);return e};function GS(e){return E.createElement("svg",hI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",fill:"currentColor"}))}var yI=Object.defineProperty,uh=Object.getOwnPropertySymbols,wI=Object.prototype.hasOwnProperty,_I=Object.prototype.propertyIsEnumerable,ch=(e,t,r)=>t in e?yI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SI=(e,t)=>{for(var r in t||(t={}))wI.call(t,r)&&ch(e,r,t[r]);if(uh)for(var r of uh(t))_I.call(t,r)&&ch(e,r,t[r]);return e};function YS(e){return E.createElement("svg",SI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",fill:"currentColor"}))}var bI=Object.defineProperty,fh=Object.getOwnPropertySymbols,xI=Object.prototype.hasOwnProperty,PI=Object.prototype.propertyIsEnumerable,dh=(e,t,r)=>t in e?bI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$I=(e,t)=>{for(var r in t||(t={}))xI.call(t,r)&&dh(e,r,t[r]);if(fh)for(var r of fh(t))PI.call(t,r)&&dh(e,r,t[r]);return e};function XS(e){return E.createElement("svg",$I({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",fill:"currentColor"}))}var OI=Object.defineProperty,ph=Object.getOwnPropertySymbols,CI=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,gh=(e,t,r)=>t in e?OI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kI=(e,t)=>{for(var r in t||(t={}))CI.call(t,r)&&gh(e,r,t[r]);if(ph)for(var r of ph(t))EI.call(t,r)&&gh(e,r,t[r]);return e};function KS(e){return E.createElement("svg",kI({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),E.createElement("path",{d:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",fill:"currentColor"}))}var RI=Object.defineProperty,ps=Object.getOwnPropertySymbols,qS=Object.prototype.hasOwnProperty,QS=Object.prototype.propertyIsEnumerable,mh=(e,t,r)=>t in e?RI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,II=(e,t)=>{for(var r in t||(t={}))qS.call(t,r)&&mh(e,r,t[r]);if(ps)for(var r of ps(t))QS.call(t,r)&&mh(e,r,t[r]);return e},NI=(e,t)=>{var r={};for(var n in e)qS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ps)for(var n of ps(e))t.indexOf(n)<0&&QS.call(e,n)&&(r[n]=e[n]);return r};const zI={dots:US,next:GS,prev:YS,first:XS,last:KS},DI={dots:US,prev:GS,next:YS,last:XS,first:KS};function ZS(e){var t=e,{page:r,active:n,onClick:o}=t,i=NI(t,["page","active","onClick"]);const a=(at().dir==="rtl"?DI:zI)[r],s=a?E.createElement(a,null):r;return E.createElement("button",II({type:"button",onClick:o},i),s)}ZS.displayName="@mantine/core/Pagination/DefaultItem";var TI=Object.defineProperty,MI=Object.defineProperties,jI=Object.getOwnPropertyDescriptors,vh=Object.getOwnPropertySymbols,LI=Object.prototype.hasOwnProperty,FI=Object.prototype.propertyIsEnumerable,hh=(e,t,r)=>t in e?TI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,AI=(e,t)=>{for(var r in t||(t={}))LI.call(t,r)&&hh(e,r,t[r]);if(vh)for(var r of vh(t))FI.call(t,r)&&hh(e,r,t[r]);return e},VI=(e,t)=>MI(e,jI(t));const yh={xs:22,sm:26,md:32,lg:38,xl:44};var HI=Q((e,{size:t,radius:r,color:n})=>{const o=e.fn.variant({color:n,variant:"filled"});return{item:VI(AI({},e.fn.focusStyles()),{cursor:"pointer",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[4]}`,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,height:e.fn.size({size:t,sizes:yh}),minWidth:e.fn.size({size:t,sizes:yh}),padding:`0 ${e.fn.size({size:t,sizes:e.spacing})/2}px`,fontSize:e.fn.size({size:t,sizes:e.fontSizes}),borderRadius:e.fn.radius(r),lineHeight:1,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,"&:active:not(:disabled):not([data-dots])":e.activeStyles,"&:disabled":{opacity:.6,cursor:"not-allowed",color:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[5]},"&[data-dots]":{cursor:"default",borderColor:"transparent",backgroundColor:"transparent"},"&[data-active]":{borderColor:"transparent",color:o.color,backgroundColor:o.background}})}}),BI=HI,WI=Object.defineProperty,gs=Object.getOwnPropertySymbols,JS=Object.prototype.hasOwnProperty,eb=Object.prototype.propertyIsEnumerable,wh=(e,t,r)=>t in e?WI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UI=(e,t)=>{for(var r in t||(t={}))JS.call(t,r)&&wh(e,r,t[r]);if(gs)for(var r of gs(t))eb.call(t,r)&&wh(e,r,t[r]);return e},GI=(e,t)=>{var r={};for(var n in e)JS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gs)for(var n of gs(e))t.indexOf(n)<0&&eb.call(e,n)&&(r[n]=e[n]);return r};const YI={itemComponent:ZS,initialPage:1,siblings:1,boundaries:1,size:"md",radius:"sm",withEdges:!1,withControls:!0},tb=g.exports.forwardRef((e,t)=>{const r=ee("Pagination",YI,e),{itemComponent:n,classNames:o,styles:i,page:l,initialPage:a,color:s,total:u,siblings:c,boundaries:f,size:d,radius:p,onChange:y,getItemAriaLabel:w,spacing:v,withEdges:m,withControls:h,sx:_,unstyled:b}=r,O=GI(r,["itemComponent","classNames","styles","page","initialPage","color","total","siblings","boundaries","size","radius","onChange","getItemAriaLabel","spacing","withEdges","withControls","sx","unstyled"]),{classes:x,theme:P}=BI({color:s,size:d,radius:p},{classNames:o,styles:i,unstyled:b,name:"Pagination"}),{range:$,setPage:C,next:I,previous:z,active:D,first:j,last:B}=s2({page:l,siblings:c,total:u,onChange:y,initialPage:a,boundaries:f}),V=$.map((W,ne)=>S(n,{page:W,active:W===D,"aria-current":W===D?"page":void 0,"aria-label":typeof w=="function"?w(W):null,tabIndex:W==="dots"?-1:0,"data-dots":W==="dots"||void 0,"data-active":W===D||void 0,className:x.item,onClick:W!=="dots"?()=>C(W):void 0},ne));return U(jt,{...UI({role:"navigation",spacing:v||P.fn.size({size:d,sizes:P.spacing})/2,ref:t,sx:_,unstyled:b},O),children:[m&&S(n,{page:"first",onClick:j,"aria-label":w?w("first"):void 0,"aria-disabled":D===1,className:x.item,disabled:D===1}),h&&S(n,{page:"prev",onClick:z,"aria-label":w?w("prev"):void 0,"aria-disabled":D===1,className:x.item,disabled:D===1}),V,h&&S(n,{page:"next",onClick:I,"aria-label":w?w("next"):void 0,"aria-disabled":D===u,className:x.item,disabled:D===u}),m&&S(n,{page:"last",onClick:B,"aria-label":w?w("last"):void 0,"aria-disabled":D===u,className:x.item,disabled:D===u})]})});tb.displayName="@mantine/core/Pagination";function XI({data:e,searchable:t,limit:r,searchValue:n,filter:o,value:i,filterDataOnExactSearchMatch:l}){if(!t)return e;const a=i!=null&&e.find(u=>u.value===i)||null;if(a&&!l&&a?.label===n)return e;const s=[];for(let u=0;u=r));u+=1);return s}var KI=Q(()=>({input:{"&:not(:disabled)":{cursor:"pointer","&::selection":{backgroundColor:"transparent"}}}})),qI=KI,QI=Object.defineProperty,ZI=Object.defineProperties,JI=Object.getOwnPropertyDescriptors,ms=Object.getOwnPropertySymbols,rb=Object.prototype.hasOwnProperty,nb=Object.prototype.propertyIsEnumerable,_h=(e,t,r)=>t in e?QI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,To=(e,t)=>{for(var r in t||(t={}))rb.call(t,r)&&_h(e,r,t[r]);if(ms)for(var r of ms(t))nb.call(t,r)&&_h(e,r,t[r]);return e},ac=(e,t)=>ZI(e,JI(t)),e8=(e,t)=>{var r={};for(var n in e)rb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ms)for(var n of ms(e))t.indexOf(n)<0&&nb.call(e,n)&&(r[n]=e[n]);return r};function t8(e,t){return t.label.toLowerCase().trim().includes(e.toLowerCase().trim())}function r8(e,t){return!!e&&!t.some(r=>r.label.toLowerCase()===e.toLowerCase())}const n8={required:!1,size:"sm",shadow:"sm",itemComponent:Ew,transition:"fade",transitionDuration:0,initiallyOpened:!1,filter:t8,maxDropdownHeight:220,searchable:!1,clearable:!1,limit:1/0,disabled:!1,creatable:!1,shouldCreate:r8,selectOnBlur:!1,switchDirectionOnFlip:!1,filterDataOnExactSearchMatch:!1,zIndex:io("popover"),clearButtonTabIndex:0,positionDependencies:[],dropdownPosition:"flip"},Oi=g.exports.forwardRef((e,t)=>{const r=E_("Select",n8,e),{inputProps:n,wrapperProps:o,shadow:i,data:l,value:a,defaultValue:s,onChange:u,itemComponent:c,onKeyDown:f,onBlur:d,onFocus:p,transition:y,transitionDuration:w,initiallyOpened:v,transitionTimingFunction:m,unstyled:h,classNames:_,styles:b,filter:O,maxDropdownHeight:x,searchable:P,clearable:$,nothingFound:C,clearButtonLabel:I,limit:z,disabled:D,onSearchChange:j,rightSection:B,rightSectionWidth:V,creatable:W,getCreateLabel:ne,shouldCreate:se,selectOnBlur:ie,onCreate:ze,dropdownComponent:R,onDropdownClose:T,onDropdownOpen:A,withinPortal:k,switchDirectionOnFlip:M,zIndex:G,name:Z,dropdownPosition:De,allowDeselect:ae,placeholder:Ve,filterDataOnExactSearchMatch:or,clearButtonTabIndex:mn,form:co,positionDependencies:fo,readOnly:qe}=r,po=e8(r,["inputProps","wrapperProps","shadow","data","value","defaultValue","onChange","itemComponent","onKeyDown","onBlur","onFocus","transition","transitionDuration","initiallyOpened","transitionTimingFunction","unstyled","classNames","styles","filter","maxDropdownHeight","searchable","clearable","nothingFound","clearButtonLabel","limit","disabled","onSearchChange","rightSection","rightSectionWidth","creatable","getCreateLabel","shouldCreate","selectOnBlur","onCreate","dropdownComponent","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","name","dropdownPosition","allowDeselect","placeholder","filterDataOnExactSearchMatch","clearButtonTabIndex","form","positionDependencies","readOnly"]),{classes:Lt,cx:Gi,theme:Yi}=qI(),[Ee,Su]=g.exports.useState(v),[wt,Te]=g.exports.useState(-1),go=g.exports.useRef(),vn=g.exports.useRef({}),[Xi,H]=g.exports.useState("column"),oe=Xi==="column",{scrollIntoView:me,targetRef:He,scrollableRef:mo}=p2({duration:0,offset:5,cancelable:!1,isList:!0}),lx=ae===void 0?$:ae,st=F=>{if(Ee!==F){Su(F);const ge=F?A:T;typeof ge=="function"&&ge()}},bu=W&&typeof ne=="function";let xu=null;const ax=l.map(F=>typeof F=="string"?{label:F,value:F}:F),Ki=N$({data:ax}),[_t,hn,dp]=Li({value:a,defaultValue:s,finalValue:null,onChange:u}),Ft=Ki.find(F=>F.value===_t),[Mr,sx]=g.exports.useState(Ft?.label||""),jr=F=>{sx(F),P&&typeof j=="function"&&j(F)},ux=()=>{var F;qe||(hn(null),dp||jr(""),(F=go.current)==null||F.focus())};g.exports.useEffect(()=>{const F=Ki.find(ge=>ge.value===_t);F?jr(F.label):(!bu||!_t)&&jr("")},[_t]),g.exports.useEffect(()=>{Ft&&(!P||!Ee)&&jr(Ft.label)},[Ft?.label]);const qi=F=>{if(!qe)if(lx&&Ft?.value===F.value)hn(null),st(!1);else{if(F.creatable&&typeof ze=="function"){const ge=ze(F.value);hn(typeof ge=="string"?ge:ge.value)}else hn(F.value);dp||jr(F.label),Te(-1),st(!1),go.current.focus()}},xe=XI({data:Ki,searchable:P,limit:z,searchValue:Mr,filter:O,filterDataOnExactSearchMatch:or,value:_t});bu&&se(Mr,xe)&&(xu=ne(Mr),xe.push({label:Mr,value:Mr,creatable:!0}));const pp=(F,ge,Qe)=>{let Ze=F;for(;Qe(Ze);)if(Ze=ge(Ze),!xe[Ze].disabled)return Ze;return F};kr(()=>{Te(-1)},[Mr]);const vo=_t?xe.findIndex(F=>F.value===_t):0,gp=()=>{Te(F=>{var ge;const Qe=pp(F,Ze=>Ze-1,Ze=>Ze>0);return He.current=vn.current[(ge=xe[Qe])==null?void 0:ge.value],me({alignment:oe?"start":"end"}),Qe})},mp=()=>{Te(F=>{var ge;const Qe=pp(F,Ze=>Ze+1,Ze=>Zewindow.setTimeout(()=>{var F;He.current=vn.current[(F=xe[vo])==null?void 0:F.value],me({alignment:oe?"end":"start"})},0),cx=F=>{switch(typeof f=="function"&&f(F),F.key){case"ArrowUp":{F.preventDefault(),Ee?oe?gp():mp():(Te(vo),st(!0),ho());break}case"ArrowDown":{F.preventDefault(),Ee?oe?mp():gp():(Te(vo),st(!0),ho());break}case"Home":{if(!P){F.preventDefault(),Ee||st(!0);const ge=xe.findIndex(Qe=>!Qe.disabled);Te(ge),me({alignment:oe?"end":"start"})}break}case"End":{if(!P){F.preventDefault(),Ee||st(!0);const ge=xe.map(Qe=>!!Qe.disabled).lastIndexOf(!1);Te(ge),me({alignment:oe?"end":"start"})}break}case"Escape":{F.preventDefault(),st(!1),Te(-1);break}case" ":{P||(xe[wt]&&Ee?(F.preventDefault(),qi(xe[wt])):(st(!0),Te(vo),ho()));break}case"Enter":P||F.preventDefault(),xe[wt]&&Ee&&(F.preventDefault(),qi(xe[wt]))}},fx=F=>{typeof d=="function"&&d(F);const ge=Ki.find(Qe=>Qe.value===_t);ie&&xe[wt]&&Ee&&qi(xe[wt]),jr(ge?.label||""),st(!1)},dx=F=>{typeof p=="function"&&p(F),P&&(st(!0),ho())},px=F=>{qe||(jr(F.currentTarget.value),$&&F.currentTarget.value===""&&hn(null),Te(-1),st(!0))},gx=()=>{if(!qe){let F=!0;P||(F=!Ee),st(F),_t&&F&&(Te(vo),ho())}},yo=!qe&&(xe.length>0?Ee:Ee&&!!C);return S(Ua.Wrapper,{...ac(To({},o),{__staticSelector:"Select"}),children:U(ii,{opened:yo,transition:y,transitionDuration:w,shadow:"sm",withinPortal:k,__staticSelector:"Select",onDirectionChange:H,switchDirectionOnFlip:M,zIndex:G,dropdownPosition:De,positionDependencies:fo,classNames:_,styles:b,unstyled:h,children:[S(ii.Target,{children:U("div",{role:"combobox","aria-haspopup":"listbox","aria-owns":yo?`${n.id}-items`:null,"aria-controls":n.id,"aria-expanded":yo,onMouseLeave:()=>Te(-1),tabIndex:-1,children:[S("input",{type:"hidden",name:Z,value:_t||"",form:co,disabled:D}),S(Ua,{...To(ac(To(To({autoComplete:"off",type:"search"},n),po),{ref:pn(t,go),onKeyDown:cx,__staticSelector:"Select",value:Mr,placeholder:Ve,onChange:px,"aria-autocomplete":"list","aria-controls":yo?`${n.id}-items`:null,"aria-activedescendant":wt>=0?`${n.id}-${wt}`:null,onClick:gx,onBlur:fx,onFocus:dx,readOnly:!P||qe,disabled:D,"data-mantine-stop-propagation":yo,name:null,classNames:ac(To({},_),{input:Gi({[Lt.input]:!P},_?.input)})}),U6({theme:Yi,rightSection:B,rightSectionWidth:V,styles:b,size:n.size,shouldClear:$&&!!Ft,clearButtonLabel:I,onClear:ux,error:o.error,clearButtonTabIndex:mn,disabled:D,readOnly:qe}))})]})}),S(ii.Dropdown,{component:R||Wd,maxHeight:x,direction:Xi,id:n.id,innerRef:mo,children:S($w,{data:xe,hovered:wt,classNames:_,styles:b,isItemSelected:F=>F===_t,uuid:n.id,__staticSelector:"Select",onItemHover:Te,onItemSelect:qi,itemsRefs:vn,itemComponent:c,size:n.size,nothingFound:C,creatable:bu&&!!xu,createLabel:xu,"aria-label":o.label,unstyled:h})})]})})});Oi.displayName="@mantine/core/Select";function o8(e,t){if(t.length===0)return t;const r="maxWidth"in t[0]?"maxWidth":"minWidth",n=[...t].sort((o,i)=>e.fn.size({size:i[r],sizes:e.breakpoints})-e.fn.size({size:o[r],sizes:e.breakpoints}));return r==="minWidth"?n.reverse():n}var i8=Object.defineProperty,Sh=Object.getOwnPropertySymbols,l8=Object.prototype.hasOwnProperty,a8=Object.prototype.propertyIsEnumerable,bh=(e,t,r)=>t in e?i8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s8=(e,t)=>{for(var r in t||(t={}))l8.call(t,r)&&bh(e,r,t[r]);if(Sh)for(var r of Sh(t))a8.call(t,r)&&bh(e,r,t[r]);return e},u8=Q((e,{spacing:t,breakpoints:r,cols:n})=>{const o=o8(e,r).reduce((i,l)=>{const a="maxWidth"in l?"max-width":"min-width",s=e.fn.size({size:a==="max-width"?l.maxWidth:l.minWidth,sizes:e.breakpoints});return i[`@media (${a}: ${s+(a==="max-width"?0:1)}px)`]={gridTemplateColumns:`repeat(${l.cols}, minmax(0, 1fr))`,gap:e.fn.size({size:l.spacing||t,sizes:e.spacing})},i},{});return{root:s8({boxSizing:"border-box",display:"grid",gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:e.fn.size({size:t,sizes:e.spacing})},o)}}),c8=u8,f8=Object.defineProperty,vs=Object.getOwnPropertySymbols,ob=Object.prototype.hasOwnProperty,ib=Object.prototype.propertyIsEnumerable,xh=(e,t,r)=>t in e?f8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d8=(e,t)=>{for(var r in t||(t={}))ob.call(t,r)&&xh(e,r,t[r]);if(vs)for(var r of vs(t))ib.call(t,r)&&xh(e,r,t[r]);return e},p8=(e,t)=>{var r={};for(var n in e)ob.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vs)for(var n of vs(e))t.indexOf(n)<0&&ib.call(e,n)&&(r[n]=e[n]);return r};const g8={breakpoints:[],cols:1,spacing:"md"},lb=g.exports.forwardRef((e,t)=>{const r=ee("SimpleGrid",g8,e),{className:n,breakpoints:o,cols:i,spacing:l,children:a,unstyled:s}=r,u=p8(r,["className","breakpoints","cols","spacing","children","unstyled"]),{classes:c,cx:f}=c8({breakpoints:o,cols:i,spacing:l},{unstyled:s,name:"SimpleGrid"});return S(K,{...d8({className:f(c.root,n),ref:t},u),children:a})});lb.displayName="@mantine/core/SimpleGrid";var m8=Object.defineProperty,v8=Object.defineProperties,h8=Object.getOwnPropertyDescriptors,Ph=Object.getOwnPropertySymbols,y8=Object.prototype.hasOwnProperty,w8=Object.prototype.propertyIsEnumerable,$h=(e,t,r)=>t in e?m8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oh=(e,t)=>{for(var r in t||(t={}))y8.call(t,r)&&$h(e,r,t[r]);if(Ph)for(var r of Ph(t))w8.call(t,r)&&$h(e,r,t[r]);return e},Ch=(e,t)=>v8(e,h8(t));const _8={xs:16,sm:20,md:24,lg:30,xl:36},sc={xs:30,sm:38,md:46,lg:56,xl:68},Eh={xs:12,sm:14,md:18,lg:22,xl:28},S8={xs:5,sm:6,md:7,lg:9,xl:11};var b8=Q((e,{size:t,radius:r,color:n,offLabel:o,onLabel:i})=>{const l=e.fn.size({size:t,sizes:Eh}),a=e.fn.size({size:r,sizes:e.radius}),s=e.fn.variant({variant:"filled",color:n});return{root:{display:"flex",alignItems:"center"},input:Ch(Oh({},e.fn.focusStyles()),{overflow:"hidden",WebkitTapHighlightColor:"transparent",position:"relative",borderRadius:a,backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[2],border:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,height:e.fn.size({size:t,sizes:_8}),width:e.fn.size({size:t,sizes:sc}),minWidth:e.fn.size({size:t,sizes:sc}),margin:0,transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:"150ms",boxSizing:"border-box",appearance:"none",display:"flex",alignItems:"center",fontSize:e.fn.size({size:t,sizes:S8}),fontWeight:600,cursor:e.cursorType,"&::before":{zIndex:1,borderRadius:a,boxSizing:"border-box",content:'""',display:"block",backgroundColor:e.white,height:l,width:l,border:`1px solid ${e.colorScheme==="dark"?e.white:e.colors.gray[3]}`,transition:`transform 150ms ${e.transitionTimingFunction}`,transform:`translateX(${t==="xs"?1:2}px)`,"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":!1}},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,right:"10%",transform:"translateX(0)",content:o?`'${o}'`:"''",color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[6],transition:`color 150ms ${e.transitionTimingFunction}`},"&:checked":{backgroundColor:s.background,borderColor:s.background,"&::before":{transform:`translateX(${e.fn.size({size:t,sizes:sc})-e.fn.size({size:t,sizes:Eh})-(t==="xs"?3:4)}px)`,borderColor:e.white},"&::after":{position:"absolute",zIndex:0,display:"flex",height:"100%",alignItems:"center",lineHeight:0,left:"10%",transform:"translateX(0)",content:i?`'${i}'`:"''",color:e.white,transition:`color 150ms ${e.transitionTimingFunction}`}},"&:disabled":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],cursor:"not-allowed","&::before":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[2],backgroundColor:e.colorScheme==="dark"?e.colors.dark[3]:e.colors.gray[0]}}}),label:Ch(Oh({},e.fn.fontStyles()),{WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontFamily:e.fontFamily,paddingLeft:e.spacing.sm,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,cursor:e.cursorType})}}),x8=b8,P8=Object.defineProperty,$8=Object.defineProperties,O8=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertySymbols,ab=Object.prototype.hasOwnProperty,sb=Object.prototype.propertyIsEnumerable,kh=(e,t,r)=>t in e?P8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uc=(e,t)=>{for(var r in t||(t={}))ab.call(t,r)&&kh(e,r,t[r]);if(hs)for(var r of hs(t))sb.call(t,r)&&kh(e,r,t[r]);return e},C8=(e,t)=>$8(e,O8(t)),E8=(e,t)=>{var r={};for(var n in e)ab.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hs)for(var n of hs(e))t.indexOf(n)<0&&sb.call(e,n)&&(r[n]=e[n]);return r};const k8={offLabel:"",onLabel:"",size:"sm",radius:"xl"},rp=g.exports.forwardRef((e,t)=>{const r=ee("Switch",k8,e),{className:n,color:o,label:i,offLabel:l,onLabel:a,id:s,style:u,size:c,radius:f,wrapperProps:d,children:p,unstyled:y,styles:w,classNames:v,sx:m}=r,h=E8(r,["className","color","label","offLabel","onLabel","id","style","size","radius","wrapperProps","children","unstyled","styles","classNames","sx"]),{classes:_,cx:b}=x8({size:c,color:o,radius:f,offLabel:l,onLabel:a},{unstyled:y,styles:w,classNames:v,name:"Switch"}),{systemStyles:O,rest:x}=ru(h),P=lo(s);return U(K,{...uc(uc({className:b(_.root,n),style:u,sx:m},O),d),children:[S("input",{...C8(uc({},x),{id:P,ref:t,type:"checkbox",className:_.input})}),i&&S("label",{className:_.label,htmlFor:P,children:i})]})});rp.displayName="@mantine/core/Switch";var R8=Object.defineProperty,I8=Object.defineProperties,N8=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertySymbols,z8=Object.prototype.hasOwnProperty,D8=Object.prototype.propertyIsEnumerable,Ih=(e,t,r)=>t in e?R8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T8=(e,t)=>{for(var r in t||(t={}))z8.call(t,r)&&Ih(e,r,t[r]);if(Rh)for(var r of Rh(t))D8.call(t,r)&&Ih(e,r,t[r]);return e},M8=(e,t)=>I8(e,N8(t)),j8=Q((e,{captionSide:t,horizontalSpacing:r,verticalSpacing:n,fontSize:o})=>({root:M8(T8({},e.fn.fontStyles()),{width:"100%",borderCollapse:"collapse",captionSide:t,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,"& caption":{marginTop:t==="top"?0:e.spacing.xs,marginBottom:t==="bottom"?0:e.spacing.xs,fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6]},"& thead tr th, & tfoot tr th":{textAlign:"left",fontWeight:"bold",color:e.colorScheme==="dark"?e.colors.dark[0]:e.colors.gray[7],fontSize:e.fn.size({size:o,sizes:e.fontSizes}),padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`},"& thead tr th":{borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tfoot tr th":{borderTop:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`},"& tbody tr td":{padding:`${e.fn.size({size:n,sizes:e.spacing})}px ${e.fn.size({size:r,sizes:e.spacing})}px`,borderBottom:`1px solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,fontSize:e.fn.size({size:o,sizes:e.fontSizes})},"& tbody tr:last-of-type td":{borderBottom:"none"},"&[data-striped] tbody tr:nth-of-type(odd)":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]},"&[data-hover] tbody tr":e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[1]})})})),L8=j8,F8=Object.defineProperty,A8=Object.defineProperties,V8=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,cb=Object.prototype.propertyIsEnumerable,Nh=(e,t,r)=>t in e?F8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H8=(e,t)=>{for(var r in t||(t={}))ub.call(t,r)&&Nh(e,r,t[r]);if(ys)for(var r of ys(t))cb.call(t,r)&&Nh(e,r,t[r]);return e},B8=(e,t)=>A8(e,V8(t)),W8=(e,t)=>{var r={};for(var n in e)ub.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ys)for(var n of ys(e))t.indexOf(n)<0&&cb.call(e,n)&&(r[n]=e[n]);return r};const U8={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7},fb=g.exports.forwardRef((e,t)=>{const r=ee("Table",U8,e),{className:n,children:o,striped:i,highlightOnHover:l,captionSide:a,horizontalSpacing:s,verticalSpacing:u,fontSize:c,unstyled:f}=r,d=W8(r,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled"]),{classes:p,cx:y}=L8({captionSide:a,verticalSpacing:u,horizontalSpacing:s,fontSize:c},{unstyled:f,name:"Table"});return S(K,{...B8(H8({},d),{component:"table",ref:t,className:y(p.root,n),"data-striped":i||void 0,"data-hover":l||void 0}),children:o})});fb.displayName="@mantine/core/Table";const _f={context:"Tabs component was not found in the tree",value:"Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value"},[G8,np]=Rd(_f.context);var Y8=Object.defineProperty,zh=Object.getOwnPropertySymbols,X8=Object.prototype.hasOwnProperty,K8=Object.prototype.propertyIsEnumerable,Dh=(e,t,r)=>t in e?Y8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q8=(e,t)=>{for(var r in t||(t={}))X8.call(t,r)&&Dh(e,r,t[r]);if(zh)for(var r of zh(t))K8.call(t,r)&&Dh(e,r,t[r]);return e};function Q8({variant:e,orientation:t,inverted:r},n){const o=t==="vertical";return e==="default"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`2px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="outline"?{[o?"borderRight":r?"borderTop":"borderBottom"]:`1px solid ${n.colorScheme==="dark"?n.colors.dark[4]:n.colors.gray[3]}`}:e==="pills"?{gap:n.spacing.sm/2}:{}}var Z8=Q((e,t)=>{const r=t.orientation==="vertical";return{tabsList:q8({display:"flex",flexDirection:r?"column":"row",justifyContent:J_[t.position],'& [role="tab"]':{flex:t.grow?1:void 0}},Q8(t,e))}}),J8=Z8,eN=Object.defineProperty,tN=Object.defineProperties,rN=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,pb=Object.prototype.propertyIsEnumerable,Th=(e,t,r)=>t in e?eN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nN=(e,t)=>{for(var r in t||(t={}))db.call(t,r)&&Th(e,r,t[r]);if(ws)for(var r of ws(t))pb.call(t,r)&&Th(e,r,t[r]);return e},oN=(e,t)=>tN(e,rN(t)),iN=(e,t)=>{var r={};for(var n in e)db.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ws)for(var n of ws(e))t.indexOf(n)<0&&pb.call(e,n)&&(r[n]=e[n]);return r};const gb=g.exports.forwardRef((e,t)=>{var r=e,{children:n,className:o,grow:i=!1,position:l="left"}=r,a=iN(r,["children","className","grow","position"]);const{orientation:s,variant:u,color:c,radius:f,inverted:d}=np(),{classNames:p,styles:y,unstyled:w}=dn(),{classes:v,cx:m}=J8({orientation:s,grow:i,variant:u,color:c,position:l,radius:f,inverted:d},{name:"Tabs",unstyled:w,classNames:p,styles:y});return S(K,{...oN(nN({},a),{className:m(v.tabsList,o),ref:t,role:"tablist","aria-orientation":s}),children:n})});gb.displayName="@mantine/core/TabsList";var lN=Q((e,{orientation:t})=>({panel:{flex:t==="vertical"?1:void 0}})),aN=lN,sN=Object.defineProperty,uN=Object.defineProperties,cN=Object.getOwnPropertyDescriptors,_s=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,vb=Object.prototype.propertyIsEnumerable,Mh=(e,t,r)=>t in e?sN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fN=(e,t)=>{for(var r in t||(t={}))mb.call(t,r)&&Mh(e,r,t[r]);if(_s)for(var r of _s(t))vb.call(t,r)&&Mh(e,r,t[r]);return e},dN=(e,t)=>uN(e,cN(t)),pN=(e,t)=>{var r={};for(var n in e)mb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_s)for(var n of _s(e))t.indexOf(n)<0&&vb.call(e,n)&&(r[n]=e[n]);return r};const hb=g.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,sx:i,className:l}=r,a=pN(r,["value","children","sx","className"]);const s=np(),{classNames:u,styles:c,unstyled:f}=dn(),{classes:d,cx:p}=aN({orientation:s.orientation,variant:s.variant,color:s.color,radius:s.radius,inverted:s.inverted},{name:"Tabs",unstyled:f,classNames:u,styles:c});return S(K,{...dN(fN({},a),{ref:t,sx:[{display:s.value!==n?"none":void 0},...Si(i)],className:p(d.panel,l),role:"tabpanel",id:s.getPanelId(n),"aria-labelledby":s.getTabId(n)}),children:o})});hb.displayName="@mantine/core/TabsPanel";var gN=Object.defineProperty,mN=Object.defineProperties,vN=Object.getOwnPropertyDescriptors,jh=Object.getOwnPropertySymbols,hN=Object.prototype.hasOwnProperty,yN=Object.prototype.propertyIsEnumerable,Lh=(e,t,r)=>t in e?gN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,In=(e,t)=>{for(var r in t||(t={}))hN.call(t,r)&&Lh(e,r,t[r]);if(jh)for(var r of jh(t))yN.call(t,r)&&Lh(e,r,t[r]);return e},Fh=(e,t)=>mN(e,vN(t));function wN(e,{variant:t,orientation:r,color:n,radius:o,inverted:i}){const l=r==="vertical",a=e.fn.variant({color:n,variant:"filled"}),s=e.fn.radius(o),u=r==="vertical"?`${s}px 0 0 ${s}px`:i?`0 0 ${s}px ${s}px`:`${s}px ${s}px 0 0`;return t==="default"?Fh(In({[l?"borderRight":i?"borderTop":"borderBottom"]:"2px solid transparent",[l?"marginRight":i?"marginTop":"marginBottom"]:-2,borderRadius:u},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]})),{"&[data-active]":In({borderColor:a.background,color:e.colorScheme==="dark"?e.white:e.black},e.fn.hover({borderColor:a.background}))}):t==="outline"?{borderRadius:u,border:"1px solid transparent",[l?"borderRight":i?"borderTop":"borderBottom"]:"none","&[data-active]":{borderColor:e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],"&::before":{content:'""',backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,position:"absolute",bottom:l?0:i?"unset":-1,top:l?0:i?-1:"unset",[l?"width":"height"]:1,right:l?-1:0,left:l?"unset":0}}}:t==="pills"?Fh(In({borderRadius:e.fn.radius(o)},e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]})),{"&[data-active]":In({backgroundColor:a.background,color:e.white},e.fn.hover({backgroundColor:a.background}))}):{}}var _N=Q((e,t)=>({tabLabel:{},tab:In({position:"relative",padding:`${e.spacing.xs}px ${e.spacing.md}px`,paddingLeft:t.withIcon?e.spacing.xs:void 0,paddingRight:t.withRightSection?e.spacing.xs:void 0,fontSize:e.fontSizes.sm,whiteSpace:"nowrap",zIndex:0,display:"flex",alignItems:"center",justifyContent:t.orientation==="horizontal"?"center":void 0,lineHeight:1,"&:disabled":In({opacity:.5,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"})),"&:focus":{zIndex:1}},wN(e,t)),tabRightSection:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginLeft:7}},tabIcon:{display:"flex",justifyContent:"center",alignItems:"center","&:not(:only-child)":{marginRight:7}}})),SN=_N,bN=Object.defineProperty,xN=Object.defineProperties,PN=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,yb=Object.prototype.hasOwnProperty,wb=Object.prototype.propertyIsEnumerable,Ah=(e,t,r)=>t in e?bN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$N=(e,t)=>{for(var r in t||(t={}))yb.call(t,r)&&Ah(e,r,t[r]);if(Ss)for(var r of Ss(t))wb.call(t,r)&&Ah(e,r,t[r]);return e},ON=(e,t)=>xN(e,PN(t)),CN=(e,t)=>{var r={};for(var n in e)yb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ss)for(var n of Ss(e))t.indexOf(n)<0&&wb.call(e,n)&&(r[n]=e[n]);return r};const _b=g.exports.forwardRef((e,t)=>{var r=e,{value:n,children:o,onKeyDown:i,onClick:l,className:a,icon:s,rightSection:u,color:c}=r,f=CN(r,["value","children","onKeyDown","onClick","className","icon","rightSection","color"]);const d=np(),{classNames:p,styles:y,unstyled:w}=dn(),v=!!s,m=!!u,{theme:h,classes:_,cx:b}=SN({withIcon:v||m&&!o,withRightSection:m||v&&!o,orientation:d.orientation,color:c||d.color,variant:d.variant,radius:d.radius,inverted:d.inverted},{name:"Tabs",unstyled:w,classNames:p,styles:y}),O=n===d.value,x=P=>{d.onTabChange(d.allowTabDeactivation&&n===d.value?null:n),l?.(P)};return U(nu,{...ON($N({},f),{unstyled:w,className:b(_.tab,a),"data-active":O||void 0,ref:t,type:"button",role:"tab",id:d.getTabId(n),"aria-selected":O,tabIndex:O||d.value===null?0:-1,"aria-controls":d.getPanelId(n),onClick:x,onKeyDown:p1({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:d.activateTabWithKeyboard,loop:d.loop,dir:h.dir,orientation:d.orientation,onKeyDown:i})}),children:[s&&S("div",{className:_.tabIcon,children:s}),o&&S("div",{className:_.tabLabel,children:o}),u&&S("div",{className:_.tabRightSection,children:u})]})});_b.displayName="@mantine/core/Tab";function Sb({defaultValue:e,value:t,onTabChange:r,orientation:n,children:o,loop:i,id:l,activateTabWithKeyboard:a,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}){const p=lo(l),[y,w]=Li({value:t,defaultValue:e,finalValue:null,onChange:r});return E.createElement(G8,{value:{value:y,orientation:n,id:p,loop:i,activateTabWithKeyboard:a,getTabId:Dg(`${p}-tab`,_f.value),getPanelId:Dg(`${p}-panel`,_f.value),onTabChange:w,allowTabDeactivation:s,variant:u,color:c,radius:f,inverted:d}},o)}Sb.displayName="@mantine/core/TabsProvider";var EN=Q((e,{orientation:t})=>({root:{display:t==="vertical"?"flex":void 0}})),kN=EN,RN=Object.defineProperty,IN=Object.defineProperties,NN=Object.getOwnPropertyDescriptors,bs=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,xb=Object.prototype.propertyIsEnumerable,Vh=(e,t,r)=>t in e?RN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zN=(e,t)=>{for(var r in t||(t={}))bb.call(t,r)&&Vh(e,r,t[r]);if(bs)for(var r of bs(t))xb.call(t,r)&&Vh(e,r,t[r]);return e},DN=(e,t)=>IN(e,NN(t)),TN=(e,t)=>{var r={};for(var n in e)bb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bs)for(var n of bs(e))t.indexOf(n)<0&&xb.call(e,n)&&(r[n]=e[n]);return r};const MN={orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default"},Je=g.exports.forwardRef((e,t)=>{const r=ee("Tabs",MN,e),{defaultValue:n,value:o,orientation:i,loop:l,activateTabWithKeyboard:a,allowTabDeactivation:s,children:u,id:c,onTabChange:f,variant:d,color:p,className:y,unstyled:w,classNames:v,styles:m,radius:h,inverted:_}=r,b=TN(r,["defaultValue","value","orientation","loop","activateTabWithKeyboard","allowTabDeactivation","children","id","onTabChange","variant","color","className","unstyled","classNames","styles","radius","inverted"]),{classes:O,cx:x}=kN({orientation:i,color:p,variant:d,radius:h,inverted:_},{unstyled:w,name:"Tabs",classNames:v,styles:m});return S(A1,{classNames:v,styles:m,unstyled:w,children:S(Sb,{activateTabWithKeyboard:a,defaultValue:n,orientation:i,onTabChange:f,value:o,id:c,loop:l,allowTabDeactivation:s,color:p,variant:d,radius:h,inverted:_,children:S(K,{...DN(zN({},b),{className:x(O.root,y),id:c,ref:t}),children:u})})})});Je.List=gb;Je.Tab=_b;Je.Panel=hb;Je.displayName="@mantine/core/Tabs";var jN=Object.defineProperty,LN=Object.defineProperties,FN=Object.getOwnPropertyDescriptors,Hh=Object.getOwnPropertySymbols,AN=Object.prototype.hasOwnProperty,VN=Object.prototype.propertyIsEnumerable,Bh=(e,t,r)=>t in e?jN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HN=(e,t)=>{for(var r in t||(t={}))AN.call(t,r)&&Bh(e,r,t[r]);if(Hh)for(var r of Hh(t))VN.call(t,r)&&Bh(e,r,t[r]);return e},BN=(e,t)=>LN(e,FN(t));const WN={xs:16,sm:20,md:26,lg:32,xl:40};var UN=Q((e,{color:t,size:r,radius:n,gradient:o,variant:i})=>{const l=e.fn.variant({variant:i,color:t||e.primaryColor,gradient:o,primaryFallback:!1}),a=e.fn.size({size:r,sizes:WN});return{root:BN(HN({},e.fn.fontStyles()),{display:"inline-flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:a,height:a,minWidth:a,minHeight:a,borderRadius:e.fn.radius(n),backgroundColor:l.background,color:l.color,backgroundImage:i==="gradient"?l.background:void 0,border:`${i==="gradient"?0:1}px solid ${l.border}`})}}),GN=UN,YN=Object.defineProperty,xs=Object.getOwnPropertySymbols,Pb=Object.prototype.hasOwnProperty,$b=Object.prototype.propertyIsEnumerable,Wh=(e,t,r)=>t in e?YN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XN=(e,t)=>{for(var r in t||(t={}))Pb.call(t,r)&&Wh(e,r,t[r]);if(xs)for(var r of xs(t))$b.call(t,r)&&Wh(e,r,t[r]);return e},KN=(e,t)=>{var r={};for(var n in e)Pb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xs)for(var n of xs(e))t.indexOf(n)<0&&$b.call(e,n)&&(r[n]=e[n]);return r};const qN={size:"md",variant:"filled",gradient:{from:"blue",to:"cyan",deg:45}},Sf=g.exports.forwardRef((e,t)=>{const r=ee("ThemeIcon",qN,e),{className:n,size:o,radius:i,variant:l,color:a,children:s,gradient:u,unstyled:c}=r,f=KN(r,["className","size","radius","variant","color","children","gradient","unstyled"]),{classes:d,cx:p}=GN({variant:l,radius:i,color:a,size:o,gradient:u},{name:"ThemeIcon",unstyled:c});return S(K,{...XN({className:p(d.root,n),ref:t},f),children:s})});Sf.displayName="@mantine/core/ThemeIcon";const Ob=g.exports.createContext(!1),QN=Ob.Provider,ZN=()=>g.exports.useContext(Ob);function Cb({children:e,openDelay:t=0,closeDelay:r=0}){return E.createElement(QN,{value:!0},E.createElement(T3,{delay:{open:t,close:r}},e))}Cb.displayName="@mantine/core/TooltipGroup";var JN=Object.defineProperty,ez=Object.defineProperties,tz=Object.getOwnPropertyDescriptors,Uh=Object.getOwnPropertySymbols,rz=Object.prototype.hasOwnProperty,nz=Object.prototype.propertyIsEnumerable,Gh=(e,t,r)=>t in e?JN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yh=(e,t)=>{for(var r in t||(t={}))rz.call(t,r)&&Gh(e,r,t[r]);if(Uh)for(var r of Uh(t))nz.call(t,r)&&Gh(e,r,t[r]);return e},oz=(e,t)=>ez(e,tz(t));function iz(e,t){if(!t)return{backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[9],color:e.white};const r=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:r.background,color:r.color}}var lz=Q((e,{color:t,radius:r,width:n,multiline:o})=>({tooltip:oz(Yh(Yh({},e.fn.fontStyles()),iz(e,t)),{lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(r),padding:`${e.spacing.xs/2}px ${e.spacing.xs}px`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:n}),arrow:{backgroundColor:"inherit",border:0,zIndex:1}})),Eb=lz;const kb={children:"Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported"};function az({offset:e,position:t}){const[r,n]=g.exports.useState(!1),o=g.exports.useRef(),{x:i,y:l,reference:a,floating:s,refs:u,update:c,placement:f}=Kd({placement:t,middleware:[Gd({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=f.includes("right")?e:t.includes("left")?e*-1:0,p=f.includes("bottom")?e:t.includes("top")?e*-1:0,y=g.exports.useCallback(({clientX:w,clientY:v})=>{a({getBoundingClientRect(){return{width:0,height:0,x:w,y:v,left:w+d,top:v+p,right:w,bottom:v}}})},[a]);return g.exports.useEffect(()=>{if(u.floating.current){const w=o.current;w.addEventListener("mousemove",y);const v=ln(u.floating.current);return v.forEach(m=>{m.addEventListener("scroll",c)}),()=>{w.removeEventListener("mousemove",y),v.forEach(m=>{m.removeEventListener("scroll",c)})}}},[a,u.floating,c,y,r]),{handleMouseMove:y,x:i,y:l,opened:r,setOpened:n,boundaryRef:o,floating:s}}var sz=Object.defineProperty,uz=Object.defineProperties,cz=Object.getOwnPropertyDescriptors,Ps=Object.getOwnPropertySymbols,Rb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable,Xh=(e,t,r)=>t in e?sz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cc=(e,t)=>{for(var r in t||(t={}))Rb.call(t,r)&&Xh(e,r,t[r]);if(Ps)for(var r of Ps(t))Ib.call(t,r)&&Xh(e,r,t[r]);return e},fc=(e,t)=>uz(e,cz(t)),fz=(e,t)=>{var r={};for(var n in e)Rb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ps)for(var n of Ps(e))t.indexOf(n)<0&&Ib.call(e,n)&&(r[n]=e[n]);return r};const dz={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:io("popover")};function Nb(e){var t;const r=ee("TooltipFloating",dz,e),{children:n,refProp:o,withinPortal:i,style:l,className:a,classNames:s,styles:u,unstyled:c,radius:f,color:d,label:p,offset:y,position:w,multiline:v,width:m,zIndex:h,disabled:_}=r,b=fz(r,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:O,x,y:P,opened:$,boundaryRef:C,floating:I,setOpened:z}=az({offset:y,position:w}),{classes:D,cx:j}=Eb({radius:f,color:d,multiline:v,width:m},{name:"Tooltip",classNames:s,styles:u,unstyled:c});if(!Ti(n))throw new Error(kb.children);const B=pn(C,n.ref),V=ne=>{var se,ie;(ie=(se=n.props).onMouseEnter)==null||ie.call(se,ne),O(ne),z(!0)},W=ne=>{var se,ie;(ie=(se=n.props).onMouseLeave)==null||ie.call(se,ne),z(!1)};return U(it,{children:[S(Fi,{withinPortal:i,children:S(K,{...fc(cc({},b),{ref:I,className:j(D.tooltip,a),style:fc(cc({},l),{zIndex:h,display:$&&!_?"block":"none",top:P??"",left:(t=Math.round(x))!=null?t:""})}),children:p})}),g.exports.cloneElement(n,fc(cc({},n.props),{[o]:B,onMouseEnter:V,onMouseLeave:W}))]})}Nb.displayName="@mantine/core/TooltipFloating";function pz(e){const[t,r]=g.exports.useState(!1),o=typeof e.opened=="boolean"?e.opened:t,i=ZN(),l=lo(),{delay:a,currentId:s,setCurrentId:u}=s_(),c=g.exports.useCallback(x=>{r(x),x&&u(l)},[u,l]),{x:f,y:d,reference:p,floating:y,context:w,refs:v,update:m,placement:h}=Kd({placement:e.position,open:o,onOpenChange:c,middleware:[qw(e.offset),Gd({padding:8}),Kw()]}),{getReferenceProps:_,getFloatingProps:b}=I3([D3(w,{enabled:e.events.hover,delay:i?a:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),F3(w,{enabled:e.events.focus,keyboardOnly:!0}),j3(w,{role:"tooltip"}),L3(w,{enabled:typeof e.opened===void 0}),M3(w,{id:l})]);return u_({opened:o,positionDependencies:e.positionDependencies,floating:{refs:v,update:m}}),kr(()=>{var x;(x=e.onPositionChange)==null||x.call(e,h)},[h]),{x:f,y:d,reference:p,floating:y,getFloatingProps:b,getReferenceProps:_,isGroupPhase:o&&s&&s!==l,opened:o,placement:h}}var gz=Object.defineProperty,mz=Object.defineProperties,vz=Object.getOwnPropertyDescriptors,$s=Object.getOwnPropertySymbols,zb=Object.prototype.hasOwnProperty,Db=Object.prototype.propertyIsEnumerable,Kh=(e,t,r)=>t in e?gz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mo=(e,t)=>{for(var r in t||(t={}))zb.call(t,r)&&Kh(e,r,t[r]);if($s)for(var r of $s(t))Db.call(t,r)&&Kh(e,r,t[r]);return e},hz=(e,t)=>mz(e,vz(t)),yz=(e,t)=>{var r={};for(var n in e)zb.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&$s)for(var n of $s(e))t.indexOf(n)<0&&Db.call(e,n)&&(r[n]=e[n]);return r};const wz={position:"top",refProp:"ref",withinPortal:!1,arrowSize:4,arrowOffset:5,offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:io("popover"),positionDependencies:[]},mu=g.exports.forwardRef((e,t)=>{const r=ee("Tooltip",wz,e),{children:n,position:o,refProp:i,label:l,openDelay:a,closeDelay:s,onPositionChange:u,opened:c,withinPortal:f,radius:d,color:p,classNames:y,styles:w,unstyled:v,style:m,className:h,withArrow:_,arrowSize:b,arrowOffset:O,offset:x,transition:P,transitionDuration:$,multiline:C,width:I,events:z,zIndex:D,disabled:j,positionDependencies:B,onClick:V,onMouseEnter:W,onMouseLeave:ne}=r,se=yz(r,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave"]),{classes:ie,cx:ze,theme:R}=Eb({radius:d,color:p,width:I,multiline:C},{name:"Tooltip",classNames:y,styles:w,unstyled:v}),T=pz({position:x_(R.dir,o),closeDelay:s,openDelay:a,onPositionChange:u,opened:c,events:z,offset:x+(_?b/2:0),positionDependencies:[...B,n]});if(!Ti(n))throw new Error(kb.children);const A=pn(T.reference,n.ref,t);return U(it,{children:[S(Fi,{withinPortal:f,children:S(du,{mounted:!j&&T.opened,transition:P,duration:T.isGroupPhase?10:$,children:k=>{var M,G;return U(K,{...Mo(Mo({},se),T.getFloatingProps({ref:T.floating,className:ie.tooltip,style:hz(Mo(Mo({},m),k),{zIndex:D,top:(M=T.y)!=null?M:"",left:(G=T.x)!=null?G:""})})),children:[l,S(qd,{visible:_,withBorder:!1,position:T.placement,arrowSize:b,arrowOffset:O,className:ie.arrow})]})}})}),g.exports.cloneElement(n,T.getReferenceProps(Mo({onClick:V,onMouseEnter:W,onMouseLeave:ne,[i]:A,className:ze(h,n.props.className)},n.props)))]})});mu.Group=Cb;mu.Floating=Nb;mu.displayName="@mantine/core/Tooltip";const nt=mu;var Zr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Zr||(Zr={}));var qh=function(e){return e},Qh="beforeunload",_z="hashchange",Sz="popstate";function bz(e){e===void 0&&(e={});var t=e,r=t.window,n=r===void 0?document.defaultView:r,o=n.history;function i(){var $=an(n.location.hash.substr(1)),C=$.pathname,I=C===void 0?"/":C,z=$.search,D=z===void 0?"":z,j=$.hash,B=j===void 0?"":j,V=o.state||{};return[V.idx,qh({pathname:I,search:D,hash:B,state:V.usr||null,key:V.key||"default"})]}var l=null;function a(){if(l)p.call(l),l=null;else{var $=Zr.Pop,C=i(),I=C[0],z=C[1];if(p.length){if(I!=null){var D=c-I;D&&(l={action:$,location:z,retry:function(){x(D*-1)}},x(D))}}else _($)}}n.addEventListener(Sz,a),n.addEventListener(_z,function(){var $=i(),C=$[1];dc(C)!==dc(f)&&a()});var s=Zr.Pop,u=i(),c=u[0],f=u[1],d=Jh(),p=Jh();c==null&&(c=0,o.replaceState(de({},o.state,{idx:c}),""));function y(){var $=document.querySelector("base"),C="";if($&&$.getAttribute("href")){var I=n.location.href,z=I.indexOf("#");C=z===-1?I:I.slice(0,z)}return C}function w($){return y()+"#"+(typeof $=="string"?$:dc($))}function v($,C){return C===void 0&&(C=null),qh(de({pathname:f.pathname,hash:"",search:""},typeof $=="string"?an($):$,{state:C,key:xz()}))}function m($,C){return[{usr:$.state,key:$.key,idx:C},w($)]}function h($,C,I){return!p.length||(p.call({action:$,location:C,retry:I}),!1)}function _($){s=$;var C=i();c=C[0],f=C[1],d.call({action:s,location:f})}function b($,C){var I=Zr.Push,z=v($,C);function D(){b($,C)}if(h(I,z,D)){var j=m(z,c+1),B=j[0],V=j[1];try{o.pushState(B,"",V)}catch{n.location.assign(V)}_(I)}}function O($,C){var I=Zr.Replace,z=v($,C);function D(){O($,C)}if(h(I,z,D)){var j=m(z,c),B=j[0],V=j[1];o.replaceState(B,"",V),_(I)}}function x($){o.go($)}var P={get action(){return s},get location(){return f},createHref:w,push:b,replace:O,go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(C){return d.push(C)},block:function(C){var I=p.push(C);return p.length===1&&n.addEventListener(Qh,Zh),function(){I(),p.length||n.removeEventListener(Qh,Zh)}}};return P}function Zh(e){e.preventDefault(),e.returnValue=""}function Jh(){var e=[];return{get length(){return e.length},push:function(r){return e.push(r),function(){e=e.filter(function(n){return n!==r})}},call:function(r){e.forEach(function(n){return n&&n(r)})}}}function xz(){return Math.random().toString(36).substr(2,8)}function dc(e){var t=e.pathname,r=t===void 0?"/":t,n=e.search,o=n===void 0?"":n,i=e.hash,l=i===void 0?"":i;return o&&o!=="?"&&(r+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(r+=l.charAt(0)==="#"?l:"#"+l),r}function an(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}/**
+ * React Router v6.3.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */const Tb=g.exports.createContext(null),op=g.exports.createContext(null),ip=g.exports.createContext({outlet:null,matches:[]});function Jt(e,t){if(!e)throw new Error(t)}function Pz(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?an(t):t,o=jb(n.pathname||"/",r);if(o==null)return null;let i=Mb(e);$z(i);let l=null;for(let a=0;l==null&&a{let l={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(l.relativePath.startsWith(n)||Jt(!1),l.relativePath=l.relativePath.slice(n.length));let a=tn([n,l.relativePath]),s=r.concat(l);o.children&&o.children.length>0&&(o.index===!0&&Jt(!1),Mb(o.children,t,s,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Nz(a,o.index),routesMeta:s})}),t}function $z(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:zz(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Oz=/^:\w+$/,Cz=3,Ez=2,kz=1,Rz=10,Iz=-2,e0=e=>e==="*";function Nz(e,t){let r=e.split("/"),n=r.length;return r.some(e0)&&(n+=Iz),t&&(n+=Ez),r.filter(o=>!e0(o)).reduce((o,i)=>o+(Oz.test(i)?Cz:i===""?kz:Rz),n)}function zz(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Dz(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let l=0;l{if(c==="*"){let d=a[f]||"";l=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=jz(a[f]||""),u},{}),pathname:i,pathnameBase:l,pattern:e}}function Mz(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(l,a)=>(n.push(a),"([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(o,t?void 0:"i"),n]}function jz(e,t){try{return decodeURIComponent(e)}catch{return e}}function Lz(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?an(e):e;return{pathname:r?r.startsWith("/")?r:Fz(r,t):t,search:Vz(n),hash:Hz(o)}}function Fz(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Az(e,t,r){let n=typeof e=="string"?an(e):e,o=e===""||n.pathname===""?"/":n.pathname,i;if(o==null)i=r;else{let a=t.length-1;if(o.startsWith("..")){let s=o.split("/");for(;s[0]==="..";)s.shift(),a-=1;n.pathname=s.join("/")}i=a>=0?t[a]:"/"}let l=Lz(n,i);return o&&o!=="/"&&o.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function jb(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=e.charAt(t.length);return r&&r!=="/"?null:e.slice(t.length)||"/"}const tn=e=>e.join("/").replace(/\/\/+/g,"/"),Lb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function vu(){return g.exports.useContext(op)!=null}function lp(){return vu()||Jt(!1),g.exports.useContext(op).location}function Bi(){vu()||Jt(!1);let{basename:e,navigator:t}=g.exports.useContext(Tb),{matches:r}=g.exports.useContext(ip),{pathname:n}=lp(),o=JSON.stringify(r.map(a=>a.pathnameBase)),i=g.exports.useRef(!1);return g.exports.useEffect(()=>{i.current=!0}),g.exports.useCallback(function(a,s){if(s===void 0&&(s={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let u=Az(a,JSON.parse(o),n);e!=="/"&&(u.pathname=tn([e,u.pathname])),(s.replace?t.replace:t.push)(u,s.state)},[e,t,o,n])}function Bz(e,t){vu()||Jt(!1);let{matches:r}=g.exports.useContext(ip),n=r[r.length-1],o=n?n.params:{};n&&n.pathname;let i=n?n.pathnameBase:"/";n&&n.route;let l=lp(),a;if(t){var s;let d=typeof t=="string"?an(t):t;i==="/"||((s=d.pathname)==null?void 0:s.startsWith(i))||Jt(!1),a=d}else a=l;let u=a.pathname||"/",c=i==="/"?u:u.slice(i.length)||"/",f=Pz(e,{pathname:c});return Wz(f&&f.map(d=>Object.assign({},d,{params:Object.assign({},o,d.params),pathname:tn([i,d.pathname]),pathnameBase:d.pathnameBase==="/"?i:tn([i,d.pathnameBase])})),r)}function Wz(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((r,n,o)=>g.exports.createElement(ip.Provider,{children:n.route.element!==void 0?n.route.element:r,value:{outlet:r,matches:t.concat(e.slice(0,o+1))}}),null)}function Bt(e){Jt(!1)}function Uz(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Zr.Pop,navigator:i,static:l=!1}=e;vu()&&Jt(!1);let a=Lb(t),s=g.exports.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof n=="string"&&(n=an(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:p="default"}=n,y=g.exports.useMemo(()=>{let w=jb(u,a);return w==null?null:{pathname:w,search:c,hash:f,state:d,key:p}},[a,u,c,f,d,p]);return y==null?null:g.exports.createElement(Tb.Provider,{value:s},g.exports.createElement(op.Provider,{children:r,value:{location:y,navigationType:o}}))}function Fb(e){let{children:t,location:r}=e;return Bz(bf(t),r)}function bf(e){let t=[];return g.exports.Children.forEach(e,r=>{if(!g.exports.isValidElement(r))return;if(r.type===g.exports.Fragment){t.push.apply(t,bf(r.props.children));return}r.type!==Bt&&Jt(!1);let n={caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path};r.props.children&&(n.children=bf(r.props.children)),t.push(n)}),t}/**
+ * React Router DOM v6.3.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function Gz(e){let{basename:t,children:r,window:n}=e,o=g.exports.useRef();o.current==null&&(o.current=bz({window:n}));let i=o.current,[l,a]=g.exports.useState({action:i.action,location:i.location});return g.exports.useLayoutEffect(()=>i.listen(a),[i]),g.exports.createElement(Uz,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i})}const Yz=()=>!window.invokeNative,Ab=()=>{},Sl=(e,t)=>{const r=g.exports.useRef(Ab);g.exports.useEffect(()=>{r.current=t},[t]),g.exports.useEffect(()=>{const n=o=>{const{action:i,data:l}=o.data;r.current&&i===e&&r.current(l)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e])};function Xz(e){let t;const r=new Set,n=(u,c)=>{const f=typeof u=="function"?u(t):u;if(f!==t){const d=t;t=c?f:Object.assign({},t,f),r.forEach(p=>p(t,d))}},o=()=>t,i=(u,c=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=c(t);function p(){const y=c(t);if(!f(d,y)){const w=d;u(d=y,w)}}return r.add(p),()=>r.delete(p)},s={setState:n,getState:o,subscribe:(u,c,f)=>c||f?i(u,c,f):(r.add(u),()=>r.delete(u)),destroy:()=>r.clear()};return t=e(n,o,s),s}const Kz=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),t0=Kz?g.exports.useEffect:g.exports.useLayoutEffect;function uo(e){const t=typeof e=="function"?Xz(e):e,r=(n=t.getState,o=Object.is)=>{const[,i]=g.exports.useReducer(v=>v+1,0),l=t.getState(),a=g.exports.useRef(l),s=g.exports.useRef(n),u=g.exports.useRef(o),c=g.exports.useRef(!1),f=g.exports.useRef();f.current===void 0&&(f.current=n(l));let d,p=!1;(a.current!==l||s.current!==n||u.current!==o||c.current)&&(d=n(l),p=!o(f.current,d)),t0(()=>{p&&(f.current=d),a.current=l,s.current=n,u.current=o,c.current=!1});const y=g.exports.useRef(l);t0(()=>{const v=()=>{try{const h=t.getState(),_=s.current(h);u.current(f.current,_)||(a.current=h,f.current=_,i())}catch{c.current=!0,i()}},m=t.subscribe(v);return t.getState()!==y.current&&v(),m},[]);const w=p?d:f.current;return g.exports.useDebugValue(w),w};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const n=[r,t];return{next(){const o=n.length<=0;return{value:n.shift(),done:o}}}},r}const q=uo(()=>({name:"",passcode:"",autolock:0,items:[{name:"",metadata:"",remove:!1}],characters:[""],groups:[{name:"",grade:void 0}],lockpickDifficulty:[""],maxDistance:0,doorRate:0,lockSound:"",unlockSound:"",auto:!1,state:!1,lockpick:!1,hideUi:!1,doors:!1,holdOpen:!1})),qz=q.getState(),_e=uo((e,t)=>({sounds:[""],setSounds:r=>e({sounds:r}),setLockSound:r=>q.setState({lockSound:r}),setUnlockSound:r=>q.setState({unlockSound:r}),setName:r=>q.setState({name:r}),setPasscode:r=>q.setState({passcode:r}),setAutolock:r=>q.setState({autolock:r}),toggleCheckbox:r=>q.setState(n=>({[r]:!n[r]})),setMaxDistance:r=>q.setState(()=>({maxDistance:r})),setItems:r=>q.setState(({items:n})=>({items:r(n)})),setCharacters:r=>q.setState(({characters:n})=>({characters:r(n)})),setGroups:r=>q.setState(({groups:n})=>({groups:r(n)})),setLockpickDifficulty:r=>q.setState(({lockpickDifficulty:n})=>({lockpickDifficulty:r(n)})),setDoorRate:r=>q.setState({doorRate:r})}));var Vb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r0=E.createContext&&E.createContext(Vb),br=globalThis&&globalThis.__assign||function(){return br=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({visible:!1,setVisible:t=>e({visible:t})}));async function xr(e,t){const r={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},n=window.GetParentResourceName?window.GetParentResourceName():"nui-frame-app";return await(await fetch(`https://${n}/${e}`,r)).json()}function uD(e,t){const[r,n]=g.exports.useState(e);return g.exports.useEffect(()=>{const o=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(o)}},[e,t]),r}const xf=uo(e=>({value:"",debouncedValue:"",setDebouncedValue:t=>e({debouncedValue:t}),setValue:t=>e({value:t})})),cD=()=>{const e=xf(),t=uD(e.value);return g.exports.useEffect(()=>{e.setDebouncedValue(t)},[t]),S(it,{children:S(Tr,{sx:{flex:"1 1 auto",padding:2},icon:S(Wb,{size:20}),placeholder:"Search",value:e.value??"",onChange:r=>e.setValue(r.target.value)})})},fD=Q({main:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:16,paddingBottom:0}}),dD=()=>{const{classes:e}=fD(),t=Bi(),r=yu(n=>n.setVisible);return U(jt,{className:e.main,children:[S(nt,{label:"Create a new door",transition:"pop",children:S($t,{variant:"light",color:"blue",size:"lg",onClick:()=>{q.setState(qz,!0),t("/settings/general")},children:S(Bb,{size:20})})}),S(cD,{}),S(ou,{iconSize:20,size:"lg",onClick:()=>{r(!1),xr("exit")}})]})};/**
+ * react-table
+ *
+ * Copyright (c) TanStack
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ *//**
+ * table-core
+ *
+ * Copyright (c) TanStack
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function dr(e,t){return typeof e=="function"?e(t):e}function vt(e,t){return r=>{t.setState(n=>({...n,[e]:dr(r,n[e])}))}}function Os(e){return e instanceof Function}function pD(e,t){const r=[],n=o=>{o.forEach(i=>{r.push(i);const l=t(i);l!=null&&l.length&&n(l)})};return n(e),r}function X(e,t,r){let n=[],o;return()=>{let i;r.key&&r.debug&&(i=Date.now());const l=e();if(!(l.length!==n.length||l.some((u,c)=>n[c]!==u)))return o;n=l;let s;if(r.key&&r.debug&&(s=Date.now()),o=t(...l),r==null||r.onChange==null||r.onChange(o),r.key&&r.debug&&r!=null&&r.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-s)*100)/100,f=c/16,d=(p,y)=>{for(p=String(p);p.length{let p=d;for(const y of s.split("."))p=p[y];return p}:c=d=>d[a.accessorKey]),!u)throw new Error;let f={id:""+String(u),accessorFn:c,parent:n,depth:r,columnDef:a,columns:[],getFlatColumns:X(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(p=>p.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:X(()=>[e._getOrderColumnsFn()],d=>{var p;if((p=f.columns)!=null&&p.length){let y=f.columns.flatMap(w=>w.getLeafColumns());return d(y)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};return f=e._features.reduce((d,p)=>Object.assign(d,p.createColumn==null?void 0:p.createColumn(f,e)),f),f}function n0(e,t,r){var n;let i={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],a=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(a),l.push(s)};return a(i),l},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(l=>{Object.assign(i,l.createHeader==null?void 0:l.createHeader(i,e))}),i}const mD={createTable:e=>({getHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>{var i,l;const a=(i=n?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?i:[],s=(l=o?.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?l:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(o!=null&&o.includes(f.id)));return bl(t,[...a,...u,...s],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,o)=>(r=r.filter(i=>!(n!=null&&n.includes(i.id))&&!(o!=null&&o.includes(i.id))),bl(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return bl(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:X(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var o;const i=(o=n?.map(l=>r.find(a=>a.id===l)).filter(Boolean))!=null?o:[];return bl(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:X(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:X(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:X(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:X(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:X(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:X(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:X(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:X(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:X(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:X(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:X(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:X(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var o,i,l,a,s,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(l=(a=r[0])==null?void 0:a.headers)!=null?l:[],...(s=(u=n[0])==null?void 0:u.headers)!=null?s:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function bl(e,t,r,n){var o,i;let l=0;const a=function(d,p){p===void 0&&(p=1),l=Math.max(l,p),d.filter(y=>y.getIsVisible()).forEach(y=>{var w;(w=y.columns)!=null&&w.length&&a(y.columns,p+1)},0)};a(e);let s=[];const u=(d,p)=>{const y={depth:p,id:[n,""+p].filter(Boolean).join("_"),headers:[]},w=[];d.forEach(v=>{const m=[...w].reverse()[0],h=v.column.depth===y.depth;let _,b=!1;if(h&&v.column.parent?_=v.column.parent:(_=v.column,b=!0),m&&m?.column===_)m.subHeaders.push(v);else{const O=n0(r,_,{id:[n,p,_.id,v?.id].filter(Boolean).join("_"),isPlaceholder:b,placeholderId:b?""+w.filter(x=>x.column===_).length:void 0,depth:p,index:w.length});O.subHeaders.push(v),w.push(O)}y.headers.push(v),v.headerGroup=y}),s.push(y),p>0&&u(w,p-1)},c=t.map((d,p)=>n0(r,d,{depth:l,index:p}));u(c,l-1),s.reverse();const f=d=>d.filter(y=>y.column.getIsVisible()).map(y=>{let w=0,v=0,m=[0];y.subHeaders&&y.subHeaders.length?(m=[],f(y.subHeaders).forEach(_=>{let{colSpan:b,rowSpan:O}=_;w+=b,m.push(O)})):w=1;const h=Math.min(...m);return v=v+h,y.colSpan=w,y.rowSpan=v,{colSpan:w,rowSpan:v}});return f((o=(i=s[0])==null?void 0:i.headers)!=null?o:[]),s}const xl={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},pc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),vD={getDefaultColumnDef:()=>xl,getInitialState:e=>({columnSizing:{},columnSizingInfo:pc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:vt("columnSizing",e),onColumnSizingInfoChange:vt("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:xl.minSize,(n=i??e.columnDef.size)!=null?n:xl.size),(o=e.columnDef.maxSize)!=null?o:xl.maxSize)},getStart:r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=n.findIndex(i=>i.id===e.id);if(o>0){const i=n[o-1];return i.getStart(r)+i.getSize()}return 0},resetSize:()=>{t.setColumnSizing(r=>{let{[e.id]:n,...o}=r;return o})},getCanResize:()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let r=0;const n=o=>{if(o.subHeaders.length)o.subHeaders.forEach(n);else{var i;r+=(i=o.column.getSize())!=null?i:0}};return n(e),r},getStart:()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},getResizeHandler:()=>{const r=t.getColumn(e.column.id),n=r.getCanResize();return o=>{if(!n||(o.persist==null||o.persist(),gc(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),l=e?e.getLeafHeaders().map(p=>[p.column.id,p.column.getSize()]):[[r.id,r.getSize()]],a=gc(o)?Math.round(o.touches[0].clientX):o.clientX,s=(p,y)=>{if(typeof y!="number")return;let w={};t.setColumnSizingInfo(v=>{var m,h;const _=y-((m=v?.startOffset)!=null?m:0),b=Math.max(_/((h=v?.startSize)!=null?h:0),-.999999);return v.columnSizingStart.forEach(O=>{let[x,P]=O;w[x]=Math.round(Math.max(P+P*b,0)*100)/100}),{...v,deltaOffset:_,deltaPercentage:b}}),(t.options.columnResizeMode==="onChange"||p==="end")&&t.setColumnSizing(v=>({...v,...w}))},u=p=>s("move",p),c=p=>{s("end",p),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f={moveHandler:p=>u(p.clientX),upHandler:p=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),c(p.clientX)}},d=hD()?{passive:!1}:!1;gc(o)||(document.addEventListener("mousemove",f.moveHandler,d),document.addEventListener("mouseup",f.upHandler,d)),t.setColumnSizingInfo(p=>({...p,startOffset:a,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?pc():(r=e.initialState.columnSizingInfo)!=null?r:pc())},getTotalSize:()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,o)=>n+o.getSize(),0))!=null?t:0}})};let Pl=null;function hD(){if(typeof Pl=="boolean")return Pl;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return Pl=e,Pl}function gc(e){return e.type==="touchstart"}const yD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:vt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var o,i;e.setExpanded(n?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(n=>n.getCanExpand()),getToggleAllRowsExpandedHandler:()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(o=>o.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const l=i.split(".");n=Math.max(n,l.length)}),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var o;const i=n===!0?!0:!!(n!=null&&n[e.id]);let l={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{l[a]=!0}):l=n,r=(o=r)!=null?o:!i,!i&&r)return{...l,[e.id]:!0};if(i&&!r){const{[e.id]:a,...s}=l;return s}return n})},getIsExpanded:()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n?.[e.id])},getCanExpand:()=>{var r,n,o;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((o=e.subRows)!=null&&o.length)},getToggleExpandedHandler:()=>{const r=e.getCanExpand();return()=>{!r||e.toggleExpanded()}}})},Ub=(e,t,r)=>{var n;const o=r.toLowerCase();return(n=e.getValue(t))==null?void 0:n.toLowerCase().includes(o)};Ub.autoRemove=e=>Pt(e);const Gb=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};Gb.autoRemove=e=>Pt(e);const Yb=(e,t,r)=>{var n;return((n=e.getValue(t))==null?void 0:n.toLowerCase())===r.toLowerCase()};Yb.autoRemove=e=>Pt(e);const Xb=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};Xb.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const Kb=(e,t,r)=>!r.some(n=>{var o;return!((o=e.getValue(t))!=null&&o.includes(n))});Kb.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const qb=(e,t,r)=>r.some(n=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)});qb.autoRemove=e=>Pt(e)||!(e!=null&&e.length);const Qb=(e,t,r)=>e.getValue(t)===r;Qb.autoRemove=e=>Pt(e);const Zb=(e,t,r)=>e.getValue(t)==r;Zb.autoRemove=e=>Pt(e);const ap=(e,t,r)=>{let[n,o]=r;const i=e.getValue(t);return i>=n&&i<=o};ap.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,o=typeof r!="number"?parseFloat(r):r,i=t===null||Number.isNaN(n)?-1/0:n,l=r===null||Number.isNaN(o)?1/0:o;if(i>l){const a=i;i=l,l=a}return[i,l]};ap.autoRemove=e=>Pt(e)||Pt(e[0])&&Pt(e[1]);const At={includesString:Ub,includesStringSensitive:Gb,equalsString:Yb,arrIncludes:Xb,arrIncludesAll:Kb,arrIncludesSome:qb,equals:Qb,weakEquals:Zb,inNumberRange:ap};function Pt(e){return e==null||e===""}const wD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:vt("columnFilters",e),onGlobalFilterChange:vt("globalFilter",e),filterFromLeafRows:!1,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;const o=(r=e.getCoreRowModel().flatRows[0])==null||(n=r._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);return typeof n=="string"?At.includesString:typeof n=="number"?At.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?At.equals:Array.isArray(n)?At.arrIncludes:At.weakEquals},getFilterFn:()=>{var r,n;return Os(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:At[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,o;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,o,i;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return(r=t.getState().columnFilters)==null||(n=r.find(o=>o.id===e.id))==null?void 0:n.value},getFilterIndex:()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},setFilterValue:r=>{t.setColumnFilters(n=>{const o=e.getFilterFn(),i=n?.find(c=>c.id===e.id),l=dr(r,i?i.value:void 0);if(o0(o,l,e)){var a;return(a=n?.filter(c=>c.id!==e.id))!=null?a:[]}const s={id:e.id,value:l};if(i){var u;return(u=n?.map(c=>c.id===e.id?s:c))!=null?u:[]}return n!=null&&n.length?[...n,s]:[s]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(!!e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>At.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return Os(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:At[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=o=>{var i;return(i=dr(t,o))==null?void 0:i.filter(l=>{const a=r.find(s=>s.id===l.id);if(a){const s=a.getFilterFn();if(o0(s,l.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(!!e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function o0(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const _D=(e,t,r)=>r.reduce((n,o)=>{const i=o.getValue(e);return n+(typeof i=="number"?i:0)},0),SD=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}),n},bD=(e,t,r)=>{let n;return r.forEach(o=>{const i=o.getValue(e);i!=null&&(n=i)&&(n=i)}),n},xD=(e,t,r)=>{let n,o;return r.forEach(i=>{const l=i.getValue(e);l!=null&&(n===void 0?l>=l&&(n=o=l):(n>l&&(n=l),o{let r=0,n=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++r,n+=i)}),r)return n/r},$D=(e,t)=>{if(!t.length)return;let r=0,n=0;return t.forEach(o=>{let i=o.getValue(e);typeof i=="number"&&(r=Math.min(r,i),n=Math.max(n,i))}),(r+n)/2},OD=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),CD=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,ED=(e,t)=>t.length,mc={sum:_D,min:SD,max:bD,extent:xD,mean:PD,median:$D,unique:OD,uniqueCount:CD,count:ED},kD={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:vt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},getCanGroup:()=>{var r,n,o,i;return(r=(n=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},getIsGrouped:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{const r=e.getCanGroup();return()=>{!r||e.toggleGrouping()}},getAutoAggregationFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r?.getValue(e.id);if(typeof n=="number")return mc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return mc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return Os(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:mc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=r.subRows)!=null&&o.length)}})};function RD(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(i=>!t.includes(i.id));return r==="remove"?n:[...t.map(i=>e.find(l=>l.id===i)).filter(Boolean),...n]}const ID={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:vt("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},_getOrderColumnsFn:X(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const l=[...t],a=[...o];for(;a.length&&l.length;){const s=l.shift(),u=a.findIndex(c=>c.id===s);u>-1&&i.push(a.splice(u,1)[0])}i=[...i,...a]}return RD(i,r,n)},{key:!1})})},Pf=0,$f=10,vc=()=>({pageIndex:Pf,pageSize:$f}),ND={getInitialState:e=>({...e,pagination:{...vc(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:vt("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,o;if(!t){e._queue(()=>{t=!0});return}if((n=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:n=>{const o=i=>dr(n,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},resetPagination:n=>{var o;e.setPagination(n?vc():(o=e.initialState.pagination)!=null?o:vc())},setPageIndex:n=>{e.setPagination(o=>{let i=dr(n,o.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.min(Math.max(0,i),l),{...o,pageIndex:i}})},resetPageIndex:n=>{var o,i,l;e.setPageIndex(n?Pf:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageIndex)!=null?o:Pf)},resetPageSize:n=>{var o,i,l;e.setPageSize(n?$f:(o=(i=e.initialState)==null||(l=i.pagination)==null?void 0:l.pageSize)!=null?o:$f)},setPageSize:n=>{e.setPagination(o=>{const i=Math.max(1,dr(n,o.pageSize)),l=o.pageSize*o.pageIndex,a=Math.floor(l/i);return{...o,pageIndex:a,pageSize:i}})},setPageCount:n=>e.setPagination(o=>{var i;let l=dr(n,(i=e.options.pageCount)!=null?i:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...o,pageCount:l}}),getPageOptions:X(()=>[e.getPageCount()],n=>{let o=[];return n&&n>0&&(o=[...new Array(n)].fill(null).map((i,l)=>l)),o},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:ne.setPageIndex(n=>n-1),nextPage:()=>e.setPageIndex(n=>n+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},hc=()=>({left:[],right:[]}),zD={getInitialState:e=>({columnPinning:hc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:vt("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{const n=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,l;if(r==="right"){var a,s;return{left:((a=o?.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((s=o?.right)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=o?.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=o?.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((i=o?.left)!=null?i:[]).filter(f=>!(n!=null&&n.includes(f))),right:((l=o?.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f)))}})},getCanPin:()=>e.getLeafColumns().some(n=>{var o,i;return((o=n.columnDef.enablePinning)!=null?o:!0)&&((i=t.options.enablePinning)!=null?i:!0)}),getIsPinned:()=>{const r=e.getLeafColumns().map(a=>a.id),{left:n,right:o}=t.getState().columnPinning,i=r.some(a=>n?.includes(a)),l=r.some(a=>o?.includes(a));return i?"left":l?"right":!1},getPinnedIndex:()=>{var r,n,o;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(o=n[i])==null?void 0:o.indexOf(e.id))!=null?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:X(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,o)=>{const i=[...n??[],...o??[]];return r.filter(l=>!i.includes(l.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getLeftVisibleCells:X(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getRightVisibleCells:X(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(i=>r.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?hc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:hc())},getIsSomeColumnsPinned:t=>{var r;const n=e.getState().columnPinning;if(!t){var o,i;return Boolean(((o=n.left)==null?void 0:o.length)||((i=n.right)==null?void 0:i.length))}return Boolean((r=n[t])==null?void 0:r.length)},getLeftLeafColumns:X(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:X(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(o=>o.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:X(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const o=[...r??[],...n??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},DD={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:vt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{!i.getCanSelect()||(n[i.id]=!0)}):o.forEach(i=>{delete n[i.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...r};return e.getRowModel().rows.forEach(i=>{Of(o,i.id,n,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:X(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?yc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:X(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?yc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:X(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?yc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=Boolean(t.length&&Object.keys(r).length);return n&&t.some(o=>o.getCanSelect()&&!r[o.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(o=>!r[o.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.some(r=>r.getIsSelected()||r.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{const n=e.getIsSelected();t.setRowSelection(o=>{if(r=typeof r<"u"?r:!n,n===r)return o;const i={...o};return Of(i,e.id,r,t),i})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return sp(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return i0(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return i0(e,r)==="all"},getCanSelect:()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},getCanSelectSubRows:()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},getCanMultiSelect:()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},getToggleSelectedHandler:()=>{const r=e.getCanSelect();return n=>{var o;!r||e.toggleSelected((o=n.target)==null?void 0:o.checked)}}})},Of=(e,t,r,n)=>{var o;const i=n.getRow(t);r?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[t]=!0)):delete e[t],(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>Of(e,l.id,r,n))};function yc(e,t){const r=e.getState().rowSelection,n=[],o={},i=function(l,a){return l.map(s=>{var u;const c=sp(s,r);if(c&&(n.push(s),o[s.id]=s),(u=s.subRows)!=null&&u.length&&(s={...s,subRows:i(s.subRows)}),c)return s}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:o}}function sp(e,t){var r;return(r=t[e.id])!=null?r:!1}function i0(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,o=!1;return e.subRows.forEach(i=>{o&&!n||(sp(i,t)?o=!0:n=!1)}),n?"all":o?"some":!1}return!1}const Cf=/([0-9]+)/gm,TD=(e,t,r)=>Jb(Ir(e.getValue(r)).toLowerCase(),Ir(t.getValue(r)).toLowerCase()),MD=(e,t,r)=>Jb(Ir(e.getValue(r)),Ir(t.getValue(r))),jD=(e,t,r)=>up(Ir(e.getValue(r)).toLowerCase(),Ir(t.getValue(r)).toLowerCase()),LD=(e,t,r)=>up(Ir(e.getValue(r)),Ir(t.getValue(r))),FD=(e,t,r)=>{const n=e.getValue(r),o=t.getValue(r);return n>o?1:nup(e.getValue(r),t.getValue(r));function up(e,t){return e===t?0:e>t?1:-1}function Ir(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Jb(e,t){const r=e.split(Cf).filter(Boolean),n=t.split(Cf).filter(Boolean);for(;r.length&&n.length;){const o=r.shift(),i=n.shift(),l=parseInt(o,10),a=parseInt(i,10),s=[l,a].sort();if(isNaN(s[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(s[1]))return isNaN(l)?-1:1;if(l>a)return 1;if(a>l)return-1}return r.length-n.length}const jo={alphanumeric:TD,alphanumericCaseSensitive:MD,text:jD,textCaseSensitive:LD,datetime:FD,basic:AD},VD={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:vt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const o of r){const i=o?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return jo.datetime;if(typeof i=="string"&&(n=!0,i.split(Cf).length>1))return jo.alphanumeric}return n?jo.text:jo.basic},getAutoSortDir:()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof r?.getValue(e.id)=="string"?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw new Error;return Os(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:jo[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{const o=e.getNextSortingOrder(),i=typeof r<"u"&&r!==null;t.setSorting(l=>{const a=l?.find(p=>p.id===e.id),s=l?.findIndex(p=>p.id===e.id);let u=[],c,f=i?r:o==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&n?a?c="toggle":c="add":l!=null&&l.length&&s!==l.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var d;u=[...l,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=l.map(p=>p.id===e.id?{...p,desc:f}:p):c==="remove"?u=l.filter(p=>p.id!==e.id):u=[{id:e.id,desc:f}];return u})},getFirstSortDir:()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:r=>{var n,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==i&&((n=t.options.enableSortingRemoval)!=null?n:!0)&&(r&&(o=t.options.enableMultiRemove)!=null?o:!0)?!1:l==="desc"?"asc":"desc":i},getCanSort:()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},getIsSorted:()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(o=>o.id===e.id);return n?n.desc?"desc":"asc":!1},getSortIndex:()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(o=>o.id===e.id))!=null?r:-1},clearSorting:()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},getToggleSortingHandler:()=>{const r=e.getCanSort();return n=>{!r||(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},HD={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:vt("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},getCanHide:()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},getToggleVisibilityHandler:()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:X(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getVisibleCells:X(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,o)=>[...r,...n,...o],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>{const t=(r,n)=>X(()=>[n(),n().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:r,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),resetColumnVisibility:r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},toggleAllColumnsVisible:r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:r||!(i.getCanHide!=null&&i.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}}},l0=[mD,HD,ID,zD,wD,VD,kD,yD,ND,DD,vD];function BD(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:l0};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),o=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let l={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;l=(f=c.getInitialState==null?void 0:c.getInitialState(l))!=null?f:l});const a=[];let s=!1;const u={_features:l0,options:{...n,...e},initialState:l,_queue:c=>{a.push(c),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=dr(c,r.options);r.options=o(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,d)=>{var p;return(p=r.options.getRowId==null?void 0:r.options.getRowId(c,f,d))!=null?p:""+(d?[d.id,f].join("."):f)},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:c=>{const f=r.getRowModel().rowsById[c];if(!f)throw new Error;return f},_getDefaultColumnDef:X(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:d=>{const p=d.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:d=>{var p,y;return(p=(y=d.renderValue())==null||y.toString==null?void 0:y.toString())!=null?p:null},...r._features.reduce((d,p)=>Object.assign(d,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:X(()=>[r._getColumnDefs()],c=>{const f=function(d,p,y){return y===void 0&&(y=0),d.map(w=>{const v=gD(r,w,y,p),m=w;return v.columns=m.columns?f(m.columns,v,y+1):[],v})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:X(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:X(()=>[r.getAllFlatColumns()],c=>c.reduce((f,d)=>(f[d.id]=d,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:X(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let d=c.flatMap(p=>p.getLeafColumns());return f(d)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>{const f=r._getAllFlatColumnsById()[c];if(!f)throw new Error;return f}};return Object.assign(r,u),r._features.forEach(c=>Object.assign(r,c.createTable==null?void 0:c.createTable(r))),r}function WD(e,t,r,n){const o=()=>{var l;return(l=i.getValue())!=null?l:e.options.renderFallbackValue},i={id:t.id+"_"+r.id,row:t,column:r,getValue:()=>t.getValue(n),renderValue:o,getContext:()=>({table:e,column:r,row:t,cell:i,getValue:i.getValue,renderValue:i.renderValue})};return e._features.forEach(l=>{Object.assign(i,l.createCell==null?void 0:l.createCell(i,r,t,e))},{}),i}const cp=(e,t,r,n,o,i)=>{let l={id:t,index:n,original:r,depth:o,_valuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const s=e.getColumn(a);if(!!s.accessorFn)return l._valuesCache[a]=s.accessorFn(l.original,n),l._valuesCache[a]},renderValue:a=>{var s;return(s=l.getValue(a))!=null?s:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>pD(l.subRows,a=>a.subRows),getAllCells:X(()=>[e.getAllLeafColumns()],a=>a.map(s=>WD(e,l,s,s.id)),{key:!1,debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}}),_getAllCellsByColumnId:X(()=>[l.getAllCells()],a=>a.reduce((s,u)=>(s[u.column.id]=u,s),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}})};for(let a=0;aX(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(o,i,l){i===void 0&&(i=0);const a=[];for(let u=0;u{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function GD(e,t,r){return r.options.filterFromLeafRows?YD(e,t,r):XD(e,t,r)}function YD(e,t,r){const n=[],o={},i=function(l,a){const s=[];for(let c=0;cX(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let d=0;d{var p;const w=e.getColumn(d.id).getFilterFn();!w||o.push({id:d.id,filterFn:w,resolvedValue:(p=w.resolveFilterValue==null?void 0:w.resolveFilterValue(d.value))!=null?p:d.value})});const l=r.map(d=>d.id),a=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&a&&s.length&&(l.push("__global__"),s.forEach(d=>{var p;i.push({id:d.id,filterFn:a,resolvedValue:(p=a.resolveFilterValue==null?void 0:a.resolveFilterValue(n))!=null?p:n})}));let u,c;for(let d=0;d{p.columnFiltersMeta[w]=v})}if(i.length){for(let y=0;y{p.columnFiltersMeta[w]=v})){p.columnFilters.__global__=!0;break}}p.columnFilters.__global__!==!0&&(p.columnFilters.__global__=!1)}}const f=d=>{for(let p=0;p{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function qD(){return e=>X(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,o=[],i=n.filter(s=>e.getColumn(s.id).getCanSort()),l={};i.forEach(s=>{const u=e.getColumn(s.id);l[s.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()}});const a=s=>{const u=s.slice();return u.sort((c,f)=>{for(let p=0;p"u",O=typeof _>"u";if(b||O)return b&&O?0:b?w.sortUndefined:-w.sortUndefined}let m=w.sortingFn(c,f,y.id);if(m!==0)return v&&(m*=-1),w.invertSorting&&(m*=-1),m}return c.index-f.index}),u.forEach(c=>{o.push(c),!(!c.subRows||c.subRows.length<=1)&&(c.subRows=a(c.subRows))}),u};return{rows:a(r.rows),flatRows:o,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function QD(e){const t=[],r=n=>{var o;t.push(n),(o=n.subRows)!=null&&o.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function ZD(e){return t=>X(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:o,pageIndex:i}=r;let{rows:l,flatRows:a,rowsById:s}=n;const u=o*i,c=u+o;l=l.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:l,flatRows:a,rowsById:s}:f=QD({rows:l,flatRows:a,rowsById:s}),f.flatRows=[];const d=p=>{f.flatRows.push(p),p.subRows.length&&p.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}function a0(e,t){return e?JD(e)?g.exports.createElement(e,t):e:null}function JD(e){return eT(e)||typeof e=="function"||tT(e)}function eT(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function tT(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function rT(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=g.exports.useState(()=>({current:BD(t)})),[n,o]=g.exports.useState(()=>r.current.initialState);return r.current.setOptions(i=>({...i,...e,state:{...n,...e.state},onStateChange:l=>{o(l),e.onStateChange==null||e.onStateChange(l)}})),r.current}const Ef=uo(e=>({doors:[],setDoors:t=>e({doors:t})}));function nT(e){return be({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M249.334 22.717c-18.64 2.424-35.677 23.574-37.043 51.49v.02c-.057 1.186-.097 2.38-.097 3.59 0 16.362 5.658 30.827 13.942 40.818l10.127 12.213-15.592 2.933c-10.75 2.025-18.622 7.702-25.373 16.978-2.285 3.14-4.384 6.707-6.31 10.62-57.54-6.44-97.91-21.06-97.91-37.952 0-17.363 42.647-31.983 102.75-37.97-.213-2.51-.323-5.057-.323-7.636v-.002c0-.84.024-1.674.047-2.51-96.43 6.77-167.298 29.15-167.3 55.71-.002 25.33 64.462 46.86 154.074 54.67-.19.742-.394 1.465-.576 2.216-2.36 9.72-4.05 20.22-5.268 31.03-.01 0-.02 0-.03.002-.418 3.653-.78 7.34-1.095 11.046l.05-.005c-1.316 15.777-1.772 31.88-1.893 46.95h35.894l2.115 28.4c-68.24-4.994-118.444-21.004-118.444-39.843 0-13.243 24.83-24.89 63.27-32.33.3-4.056.66-8.115 1.076-12.162-76.42 9.353-129.17 29.168-129.172 52.086-.002 28.17 79.71 51.643 185.098 56.768l5.94 79.77c10.5 2.648 24.84 4.162 39.017 4.068 13.79-.092 27.235-1.71 36.45-4l5.263-79.846c105.308-5.14 184.935-28.605 184.935-56.76 0-23.013-53.196-42.895-130.13-52.2.304 4.02.557 8.047.755 12.07 38.883 7.43 63.965 19.17 63.965 32.536 0 18.84-49.804 34.85-117.908 39.844l1.87-28.402h34.18c-.012-15.113-.127-31.27-1.033-47.094.01 0 .02.002.032.004-.214-3.687-.472-7.352-.782-10.986l-.02-.002c-.94-11.157-2.367-21.984-4.546-31.967-.09-.405-.184-.803-.275-1.206 89.518-7.826 153.893-29.344 153.893-54.656 0-26.787-72.076-49.332-169.77-55.887.025.895.053 1.788.053 2.688 0 2.5-.104 4.97-.304 7.407 61.19 5.836 104.61 20.61 104.61 38.2 0 16.805-39.633 31.355-96.524 37.848-2.01-4.283-4.26-8.15-6.762-11.505-6.83-9.167-15.063-14.81-27.14-16.682l-15.913-2.47 10.037-12.59c6.928-8.69 11.912-20.715 13.057-34.268h.002c.163-1.95.25-3.93.25-5.938 0-.77-.022-1.532-.048-2.29-.015-.48-.033-.958-.057-1.434h-.002c-1.48-29.745-20.507-51.3-41.076-51.3-2.528 0-3.966-.087-4.03-.08h-.003zM194.54 355.822c-97.11 6.655-168.573 29.11-168.573 55.8 0 31.932 102.243 57.815 228.367 57.815S482.7 443.555 482.7 411.623c0-26.608-71.02-49.004-167.67-55.736l-.655 9.93c60.363 6.055 103.074 20.956 103.074 38.394 0 22.81-73.032 41.298-163.12 41.298-90.088 0-163.12-18.49-163.12-41.297 0-17.533 43.18-32.502 104.07-38.493l-.74-9.895z"}}]})(e)}function kf(e){return be({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"}}]})(e)}function oT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}}]})(e)}function iT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3"}}]})(e)}function lT(e){return be({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}}]})(e)}const Rf=e=>{let t=[];if(e.groups){const r=Object.entries(e.groups);for(let n=0;n({clipboard:!1,setClipboard:t=>e({clipboard:t})})),fp=g.exports.createContext(null);fp.displayName="@mantine/modals/ModalsContext";function aT(){const e=g.exports.useContext(fp);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}var sT=Object.defineProperty,uT=Object.defineProperties,cT=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertySymbols,fT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,u0=(e,t,r)=>t in e?sT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wc=(e,t)=>{for(var r in t||(t={}))fT.call(t,r)&&u0(e,r,t[r]);if(s0)for(var r of s0(t))dT.call(t,r)&&u0(e,r,t[r]);return e},c0=(e,t)=>uT(e,cT(t));function pT({id:e,cancelProps:t,confirmProps:r,labels:n={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:i=!0,groupProps:l,onCancel:a,onConfirm:s,children:u}){const{cancel:c,confirm:f}=n,d=aT(),p=w=>{typeof t?.onClick=="function"&&t?.onClick(w),typeof a=="function"&&a(),i&&d.closeModal(e)},y=w=>{typeof r?.onClick=="function"&&r?.onClick(w),typeof s=="function"&&s(),o&&d.closeModal(e)};return E.createElement(E.Fragment,null,u&&E.createElement(K,{mb:"md"},u),E.createElement(jt,wc({position:"right"},l),E.createElement(qn,c0(wc({variant:"default"},t),{onClick:p}),t?.children||c),E.createElement(qn,c0(wc({},r),{onClick:y}),r?.children||f)))}function gT(e,t){switch(t.type){case"OPEN":return{current:t.payload,modals:[...e.modals,t.payload]};case"CLOSE":return{current:e.modals[e.modals.length-2]||null,modals:e.modals.filter(r=>r.id!==t.payload)};case"CLOSE_ALL":return{current:e.current,modals:[]};default:return e}}const[mT,Ui]=T$("mantine-modals");Ui("openModal");Ui("closeModal");Ui("closeAllModals");const tx=Ui("openConfirmModal");Ui("openContextModal");var vT=Object.defineProperty,hT=Object.defineProperties,yT=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,rx=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,f0=(e,t,r)=>t in e?vT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hl=(e,t)=>{for(var r in t||(t={}))rx.call(t,r)&&f0(e,r,t[r]);if(Cs)for(var r of Cs(t))nx.call(t,r)&&f0(e,r,t[r]);return e},d0=(e,t)=>hT(e,yT(t)),Wr=(e,t)=>{var r={};for(var n in e)rx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Cs)for(var n of Cs(e))t.indexOf(n)<0&&nx.call(e,n)&&(r[n]=e[n]);return r};function wT(e){if(!e)return{confirmProps:{},modalProps:{}};const t=e,{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f}=t,d=Wr(t,["id","children","onCancel","onConfirm","closeOnConfirm","closeOnCancel","cancelProps","confirmProps","groupProps","labels"]);return{confirmProps:{id:r,children:n,onCancel:o,onConfirm:i,closeOnConfirm:l,closeOnCancel:a,cancelProps:s,confirmProps:u,groupProps:c,labels:f},modalProps:Hl({id:r},d)}}function _T({children:e,modalProps:t,labels:r,modals:n}){const[o,i]=g.exports.useReducer(gT,{modals:[],current:null}),l=w=>{o.modals.forEach(v=>{var m,h,_,b;v.type==="confirm"&&w&&((h=(m=v.props)==null?void 0:m.onCancel)==null||h.call(m)),(b=(_=v.props)==null?void 0:_.onClose)==null||b.call(_)}),i({type:"CLOSE_ALL"})},a=w=>{var v=w,{modalId:m}=v,h=Wr(v,["modalId"]);const _=m||Al();return i({type:"OPEN",payload:{id:_,type:"content",props:h}}),_},s=w=>{var v=w,{modalId:m}=v,h=Wr(v,["modalId"]);const _=m||Al();return i({type:"OPEN",payload:{id:_,type:"confirm",props:h}}),_},u=(w,v)=>{var m=v,{modalId:h}=m,_=Wr(m,["modalId"]);const b=h||Al();return i({type:"OPEN",payload:{id:b,type:"context",props:_,ctx:w}}),b},c=(w,v)=>{var m,h,_,b;if(o.modals.length<=1){l(v);return}const O=o.modals.find(x=>x.id===w);O?.type==="confirm"&&v&&((h=(m=O.props)==null?void 0:m.onCancel)==null||h.call(m)),(b=(_=O?.props)==null?void 0:_.onClose)==null||b.call(_),i({type:"CLOSE",payload:O.id})};mT({openModal:a,openConfirmModal:s,openContextModal:w=>{var v=w,{modal:m}=v,h=Wr(v,["modal"]);return u(m,h)},closeModal:c,closeAllModals:l});const f={modals:o.modals,openModal:a,openConfirmModal:s,openContextModal:u,closeModal:c,closeAll:l},d=()=>{var w;switch((w=o.current)==null?void 0:w.type){case"context":{const v=o.current.props,{innerProps:m}=v,h=Wr(v,["innerProps"]),_=n[o.current.ctx];return{modalProps:h,content:S(_,{innerProps:m,context:f,id:o.current.id})}}case"confirm":{const{modalProps:v,confirmProps:m}=wT(o.current.props);return{modalProps:v,content:S(pT,{...d0(Hl({},m),{id:o.current.id,labels:o.current.props.labels||r})})}}case"content":{const v=o.current.props,{children:m}=v;return{modalProps:Wr(v,["children"]),content:S(it,{children:m})}}default:return{modalProps:{},content:null}}},{modalProps:p,content:y}=d();return U(fp.Provider,{value:f,children:[S(gu,{...d0(Hl(Hl({},t),p),{opened:o.modals.length>0,onClose:()=>c(o.current.id)}),children:y}),e]})}const ST=({data:e})=>{const t=Bi(),r=ex(o=>o.setClipboard),n=yu(o=>o.setVisible);return U(et,{position:"right-start",width:200,children:[S(et.Target,{children:S(nt,{label:"Door actions",children:S($t,{color:"blue.4",variant:"transparent",children:S(iD,{size:24})})})}),U(et.Dropdown,{children:[S(et.Item,{icon:S(hu,{size:18}),onClick:()=>{q.setState(Rf(e.row.original),!0),t("/settings/general")},children:"Settings"}),S(et.Item,{icon:S(iT,{size:18}),onClick:()=>{r(Rf(e.row.original)),xr("notify","Settings copied")},children:"Copy settings"}),S(et.Item,{icon:S(nT,{size:18}),onClick:()=>{n(!1),xr("teleportToDoor",e.row.getValue("id"))},children:"Teleport to door"}),S(et.Item,{color:"red",icon:S(Wi,{size:18}),onClick:()=>tx({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:U(mt,{children:["Are you sure you want to delete",S(mt,{component:"span",weight:700,children:` ${e.row.getValue("name")}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{xr("deleteDoor",e.row.getValue("id"))}}),children:"Delete door"})]})]})},bT=()=>{const[e,t]=g.exports.useState([]),[r,n]=g.exports.useState(1),o=xf(s=>s.debouncedValue),i=Ef(s=>s.doors),l=g.exports.useMemo(()=>[{id:"id",header:"ID",accessorKey:"id",cell:s=>s.getValue(),enableHiding:!1,enableGlobalFilter:!1},{id:"name",header:"Name",accessorKey:"name",cell:s=>s.getValue(),enableHiding:!1},{id:"zone",header:"Zone",accessorKey:"zone",cell:s=>s.getValue(),enableHiding:!1},{id:"options-menu",cell:s=>S(ST,{data:s})}],[]),a=rT({data:i,columns:l,initialState:{pagination:{pageSize:8,pageIndex:0}},state:{sorting:e,globalFilter:o},onGlobalFilterChange:xf(s=>s.setValue),onSortingChange:t,getCoreRowModel:UD(),getSortedRowModel:qD(),getFilteredRowModel:KD(),getPaginationRowModel:ZD()});return g.exports.useEffect(()=>{a.setPageIndex(r-1)},[r,i]),U(Tt,{justify:"space-between",align:"center",sx:{height:"100%",paddingBottom:16},spacing:0,children:[a.getFilteredRowModel().rows.length>0?U(fb,{children:[S("thead",{children:a.getHeaderGroups().map(s=>S("tr",{children:s.headers.map(u=>S("th",{children:S(nu,{onClick:u.column.getToggleSortingHandler(),children:U(jt,{children:[S(mt,{children:a0(u.column.columnDef.header,u.getContext())}),u.column.getIsSorted()==="desc"?S(nD,{}):u.column.getIsSorted()==="asc"?S(oD,{}):u.column.getCanHide()?S(it,{}):S(aD,{})]})})},u.id))},s.id))}),S("tbody",{children:a.getRowModel().rows.map(s=>S("tr",{children:s.getAllCells().map(u=>S("td",{children:a0(u.column.columnDef.cell,u.getContext())},u.id))},s.id))})]}):S(Z_,{sx:{height:"100%"},children:U(Tt,{align:"center",children:[S(Wb,{size:48}),S(mt,{size:"lg",children:"No results found"})]})}),a.getPageCount()>1&&S(tb,{page:r,total:a.getPageCount(),onChange:s=>n(s)})]})},xT=()=>U(Tt,{sx:{height:"100%"},children:[S(dD,{}),S(bT,{})]}),Lo=({label:e,type:t,infoCircle:r,span:n,value:o,setValue:i})=>S(pu.Col,{span:n||1,children:S(K,{children:t==="text"?S(Tr,{value:o,onChange:l=>i(l.target.value),label:e,rightSection:r&&S(nt,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Sf,{variant:"light",mr:10,children:S(kf,{size:18})})})}):S($i,{label:e,step:.1,precision:1,value:typeof o=="number"?o:void 0,onChange:l=>i(l),hideControls:!0,rightSection:r&&S(nt,{label:r,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(Sf,{variant:"light",mr:10,children:S(kf,{size:18})})})})})}),PT=()=>{const e=q(c=>c.name),t=q(c=>c.passcode),r=q(c=>c.autolock),n=q(c=>c.maxDistance),o=q(c=>c.doorRate),i=_e(c=>c.setName),l=_e(c=>c.setPasscode),a=_e(c=>c.setAutolock),s=_e(c=>c.setMaxDistance),u=_e(c=>c.setDoorRate);return S(it,{children:U(pu,{columns:2,sx:{fontSize:16},children:[S(Lo,{label:"Door name",type:"text",value:e||"",setValue:c=>i(c)}),S(Lo,{label:"Passcode",type:"text",value:t||"",setValue:c=>l(c)}),S(Lo,{label:"Autolock Interval",type:"number",value:r||0,setValue:c=>a(c),infoCircle:"Time in seconds after which the door will be locked"}),S(Lo,{label:"Interact Distance",type:"number",value:n||0,setValue:c=>s(c),infoCircle:"Controls the distance from which the player can interact with the door"}),S(Lo,{label:"Door Rate",type:"number",span:2,value:o||0,setValue:c=>u(c),infoCircle:"Speed the automatic door will move at"})]})})},_n=({infoCircle:e,label:t,value:r,toggle:n})=>U(jt,{spacing:8,align:"center",children:[S(rp,{label:t,checked:r,onChange:()=>n()}),S(nt,{label:e,withArrow:!0,arrowSize:10,multiline:!0,width:200,children:S(K,{sx:{display:"flex"},children:S(kf,{size:18})})})]}),$T=()=>{const e=q(a=>a.state),t=q(a=>a.doors),r=q(a=>a.auto),n=q(a=>a.lockpick),o=q(a=>a.hideUi),i=q(a=>a.holdOpen),l=_e(a=>a.toggleCheckbox);return S(it,{children:U(lb,{cols:2,pt:16,children:[S(_n,{label:"Locked",infoCircle:"Sets whether the targeting door is locked by default",value:e||!1,toggle:()=>l("state")}),S(_n,{label:"Double",infoCircle:"Enable if the targeting door is a double door",value:t||!1,toggle:()=>l("doors")}),S(_n,{label:"Automatic",infoCircle:"Enable if the targeting door is moving automatically (Garage, poles, etc...)",value:r||!1,toggle:()=>l("auto")}),S(_n,{label:"Lockpick",infoCircle:"Enables the targeting door to be lockpicked. Can define skill check difficulties in Lockpick tab, otherwise uses config defaults",value:n||!1,toggle:()=>l("lockpick")}),S(_n,{label:"Hide UI",infoCircle:"Hides UI indicators for the targeting door",value:o||!1,toggle:()=>l("hideUi")}),S(_n,{label:"Hold Open",infoCircle:"Sets whether the targeting door(s) should stay open while unlocked",value:i||!1,toggle:()=>l("holdOpen")})]})})},OT=()=>S(Tt,{justify:"space-between",sx:{height:"100%"},children:U(K,{children:[S(PT,{}),S($T,{})]})}),CT=()=>{const e=q(o=>o.characters),t=_e(o=>o.setCharacters),r=(o,i)=>{t(l=>l.map((a,s)=>i===s?o:a))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(it,{children:e.map((o,i)=>U(jt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Tr,{sx:{width:"100%"},placeholder:"Character Id",value:o,onChange:l=>r(l.target.value,i)}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Wi,{size:24})})})]},`group-${i}`))})},wu=({children:e,setter:t})=>S(Tt,{justify:"space-between",align:"center",sx:{height:"100%"},children:U(K,{sx:{width:"100%",overflowY:"auto",height:410},children:[e,S(nt,{label:"Create a new row",withArrow:!0,arrowSize:10,children:S(qn,{mt:16,fullWidth:!0,variant:"light",onClick:t,children:S(Bb,{size:24})})})]})}),ET=()=>{const e=_e(t=>t.setCharacters);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r!==""||n===0))},[]),S(wu,{setter:()=>e(t=>[...t,""]),children:S(CT,{})})},kT=()=>{const e=q(o=>o.groups),t=_e(o=>o.setGroups),r=(o,i,l)=>{t(a=>a.map((s,u)=>i===u?{...s,[l]:o}:s))},n=o=>{t(i=>i.filter((l,a)=>a!==o))};return S(it,{children:e.map((o,i)=>U(jt,{position:"center",mt:i===0?0:16,noWrap:!0,spacing:16,sx:{fontSize:16},children:[S(Tr,{sx:{width:"100%"},placeholder:"Group",value:o.name,onChange:l=>r(l.target.value,i,"name")}),S($i,{sx:{width:"100%"},placeholder:"Grade",value:o.grade,onChange:l=>r(l,i,"grade")}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>n(i),children:S(Wi,{size:24})})})]},`group-${i}`))})},RT=()=>{const e=_e(t=>t.setGroups);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>r.name!==""||r.grade!==null||n===0))},[]),S(wu,{setter:()=>e(t=>[...t,{name:"",grade:null}]),children:S(kT,{})})};var p0=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var l=i[o];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r};function If(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&n!==!1&&(t[r]=n),t},{})}var IT=Object.defineProperty,g0=Object.getOwnPropertySymbols,NT=Object.prototype.hasOwnProperty,zT=Object.prototype.propertyIsEnumerable,m0=(e,t,r)=>t in e?IT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DT=(e,t)=>{for(var r in t||(t={}))NT.call(t,r)&&m0(e,r,t[r]);if(g0)for(var r of g0(t))zT.call(t,r)&&m0(e,r,t[r]);return e};function v0(e,t){if(t===null||typeof t!="object")return{};const r=DT({},t);return Object.keys(t).forEach(n=>{n.includes(`${String(e)}.`)&&delete r[n]}),r}const TT="__MANTINE_FORM_INDEX__";function h0(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]/g,`.${TT}`)):!1:!1}function Vt(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=Vt(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Vt(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=Vt(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=Vt(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(o){r.add(Vt(o))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(o,i){r.set(Vt(i),Vt(o))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(Vt(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function ox(e){return typeof e!="string"?[]:e.split(".")}function _u(e,t,r){const n=ox(e);if(n.length===0)return r;const o=Vt(r);if(n.length===1)return o[n[0]]=t,o;let i=o[n[0]];for(let l=1;l0,errors:t}}function Nf(e,t,r="",n={}){return typeof e!="object"||e===null?n:Object.keys(e).reduce((o,i)=>{const l=e[i],a=`${r===""?"":`${r}.`}${i}`,s=pr(a,t);let u=!1;return typeof l=="function"&&(o[a]=l(s,t,a)),typeof l=="object"&&Array.isArray(s)&&(u=!0,s.forEach((c,f)=>Nf(l,t,`${a}.${f}`,o))),typeof l=="object"&&typeof s=="object"&&s!==null&&(u||Nf(l,t,a,o)),o},n)}function zf(e,t){return y0(typeof e=="function"?e(t):Nf(e,t))}function $l(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};const n=zf(t,r),o=Object.keys(n.errors).find(i=>e.split(".").every((l,a)=>l===i.split(".")[a]));return{hasError:!!o,error:o?n.errors[o]:null}}function MT(e,{from:t,to:r},n){const o=pr(e,n);if(!Array.isArray(o))return n;const i=[...o],l=o[t];return i.splice(t,1),i.splice(r,0,l),_u(e,i,n)}function jT(e,t,r){const n=pr(e,r);return Array.isArray(n)?_u(e,n.filter((o,i)=>i!==t),r):r}function LT(e,t,r,n){const o=pr(e,n);if(!Array.isArray(o))return n;const i=[...o];return i.splice(typeof r=="number"?r:i.length,0,t),_u(e,i,n)}function w0(e,t){const r=Object.keys(e);if(typeof t=="string"){const n=r.filter(o=>o.includes(`${t}.`));return e[t]||n.some(o=>e[o])||!1}return r.some(n=>e[n])}function FT(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}var AT=Object.defineProperty,VT=Object.defineProperties,HT=Object.getOwnPropertyDescriptors,_0=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,WT=Object.prototype.propertyIsEnumerable,S0=(e,t,r)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sn=(e,t)=>{for(var r in t||(t={}))BT.call(t,r)&&S0(e,r,t[r]);if(_0)for(var r of _0(t))WT.call(t,r)&&S0(e,r,t[r]);return e},_c=(e,t)=>VT(e,HT(t));function ix({initialValues:e={},initialErrors:t={},initialDirty:r={},initialTouched:n={},clearInputErrorOnChange:o=!0,validateInputOnChange:i=!1,validateInputOnBlur:l=!1,transformValues:a=u=>u,validate:s}={}){const[u,c]=g.exports.useState(n),[f,d]=g.exports.useState(r),[p,y]=g.exports.useState(e),[w,v]=g.exports.useState(If(t)),m=g.exports.useRef(e),h=k=>{m.current=k},_=g.exports.useCallback(()=>c({}),[]),b=k=>{h(k||p),d({})},O=g.exports.useCallback(k=>v(M=>If(typeof k=="function"?k(M):k)),[]),x=g.exports.useCallback(()=>v({}),[]),P=g.exports.useCallback(()=>{y(e),x(),b(e),_()},[]),$=g.exports.useCallback((k,M)=>O(G=>_c(Sn({},G),{[k]:M})),[]),C=g.exports.useCallback(k=>O(M=>{if(typeof k!="string")return M;const G=Sn({},M);return delete G[k],G}),[]),I=g.exports.useCallback(k=>d(M=>{if(typeof k!="string")return M;const G=v0(k,M);return delete G[k],G}),[]),z=g.exports.useCallback((k,M)=>{const G=h0(k,i);I(k),c(Z=>_c(Sn({},Z),{[k]:!0})),y(Z=>{const De=_u(k,M,Z);if(G){const ae=$l(k,s,De);ae.hasError?$(k,ae.error):C(k)}return De}),!G&&o&&$(k,null)},[]),D=g.exports.useCallback(k=>{y(M=>{const G=typeof k=="function"?k(M):k;return Sn(Sn({},M),G)}),o&&x()},[]),j=g.exports.useCallback((k,M)=>{I(k),y(G=>MT(k,M,G))},[]),B=g.exports.useCallback((k,M)=>{I(k),y(G=>jT(k,M,G)),v(G=>v0(k,G))},[]),V=g.exports.useCallback((k,M,G)=>{I(k),y(Z=>LT(k,M,G,Z))},[]),W=g.exports.useCallback(()=>{const k=zf(s,p);return v(k.errors),k},[p,s]),ne=g.exports.useCallback(k=>{const M=$l(k,s,p);return M.hasError?$(k,M.error):C(k),M},[p,s]),se=(k,{type:M="input",withError:G=M==="input",withFocus:Z=!0}={})=>{const ae={onChange:FT(Ve=>z(k,Ve))};return G&&(ae.error=w[k]),M==="checkbox"?ae.checked=pr(k,p):ae.value=pr(k,p),Z&&(ae.onFocus=()=>c(Ve=>_c(Sn({},Ve),{[k]:!0})),ae.onBlur=()=>{if(h0(k,l)){const Ve=$l(k,s,p);Ve.hasError?$(k,Ve.error):C(k)}}),ae},ie=(k,M)=>G=>{G?.preventDefault();const Z=W();Z.hasErrors?M?.(Z.errors,p,G):k(a(p),G)},ze=g.exports.useCallback(k=>{k.preventDefault(),P()},[]),R=k=>{if(Object.keys(f).length>0)return w0(f,k);if(k){const G=pr(k,p),Z=pr(k,m.current);return!p0(G,Z)}return!p0(p,m.current)},T=g.exports.useCallback(k=>w0(u,k),[u]),A=g.exports.useCallback(k=>k?!$l(k,s,p).hasError:!zf(s,p).hasErrors,[p,s]);return{values:p,errors:w,setValues:D,setErrors:O,setFieldValue:z,setFieldError:$,clearFieldError:C,clearErrors:x,reset:P,validate:W,validateField:ne,reorderListItem:j,removeListItem:B,insertListItem:V,getInputProps:se,onSubmit:ie,onReset:ze,isDirty:R,isTouched:T,setTouched:c,setDirty:d,resetTouched:_,resetDirty:b,isValid:A}}const UT=({modal:e,setModal:t})=>{const r=q(a=>a.items),n=_e(a=>a.setItems),o=g.exports.useMemo(()=>r[e.index],[e,r]),i=ix({initialValues:{metadata:o.metadata,remove:o.remove}}),l=a=>{t(s=>({...s,opened:!1})),n(s=>s.map((u,c)=>c===e.index?{...u,metadata:a.metadata,remove:a.remove}:u))};return S("form",{onSubmit:i.onSubmit(a=>l(a)),children:U(Tt,{children:[S(Tr,{label:"Metadata type",defaultValue:o.metadata,...i.getInputProps("metadata")}),S(rp,{label:"Remove on use",defaultChecked:o.remove,...i.getInputProps("remove")}),S(qn,{uppercase:!0,variant:"light",type:"submit",children:"Confirm"})]})})},GT=()=>{const e=q(l=>l.items),t=_e(l=>l.setItems),[r,n]=g.exports.useState({opened:!1,index:0}),o=(l,a)=>{const s=[...e];switch(l.target.id){case"name":s[a].name=l.target.value;break}t(()=>s)},i=l=>{t(a=>a.filter((s,u)=>u!==l))};return U(K,{children:[e.length>0&&S(it,{children:e.map((l,a)=>U(jt,{sx:{width:"100%"},position:"apart",spacing:16,mt:a===0?void 0:16,children:[S(Tr,{sx:{width:"80%"},value:l.name||"",id:"name",placeholder:"Item",onChange:s=>o(s,a)}),S(nt,{label:"Item options",children:S($t,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:a}),children:S(hu,{size:24})})}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>i(a),children:S(Wi,{size:24})})})]},`item-field-${a}`))}),S(gu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Item options",centered:!0,size:"xs",withCloseButton:!1,children:S(UT,{modal:r,setModal:n})})]})},YT=()=>{const e=_e(t=>t.setItems);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r.name!==""))},[]),S(wu,{setter:()=>e(t=>[...t,{name:"",metadata:"",remove:!1}]),children:S(GT,{})})},XT=()=>{const e=_e(i=>i.sounds),t=q(i=>i.lockSound),r=q(i=>i.unlockSound),n=_e(i=>i.setLockSound),o=_e(i=>i.setUnlockSound);return U(Tt,{children:[S(Oi,{data:e,label:"Lock sound",value:t||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>n(i)}),S(Oi,{data:e,label:"Unlock sound",value:r||"",searchable:!0,clearable:!0,nothingFound:"No such sound",onChange:i=>o(i)})]})},KT=()=>{const e=Bi(),t=ex(o=>o.clipboard),r=yu(o=>o.setVisible),n=()=>{const o={...q.getState()};if(o.name===""&&(o.name=null),o.passcode===""&&(o.passcode=null),o.lockSound===""&&(o.lockSound=null),o.unlockSound===""&&(o.unlockSound=null),o.autolock=o.autolock||null,o.maxDistance=o.maxDistance||2,o.doorRate=o.doorRate?o.doorRate+0:null,o.auto=o.auto||null,o.lockpick=o.lockpick||null,o.hideUi=o.hideUi||null,o.holdOpen=o.holdOpen||null,o.items&&o.items.length>0){const i=[];for(let l=0;l0){const i=[];for(let l=0;l0){const i={};for(let l=0;l0){const i=[];for(let l=0;ln(),fullWidth:!0,children:"Confirm door"}),S(nt,{label:t?"Apply copied settings":"No door settings copied",withArrow:!0,arrowSize:10,children:S($t,{variant:"outline",disabled:!t,size:"lg",ml:16,sx:{width:36,height:36},color:"blue",onClick:()=>{q.setState({name:"",passcode:t.passcode,autolock:t.autolock,items:t.items,characters:t.characters,groups:t.groups,maxDistance:t.maxDistance,doorRate:t.doorRate,lockSound:t.lockSound,unlockSound:t.unlockSound,auto:t.auto,state:t.state,lockpick:t.lockpick,hideUi:t.hideUi,doors:t.doors,lockpickDifficulty:t.lockpickDifficulty,holdOpen:t.holdOpen},!0),xr("notify","Settings applied")},children:S(oT,{size:20})})}),S($t,{variant:"outline",size:"lg",ml:16,sx:{width:36,height:36},color:"red",disabled:!q.getState().id,onClick:()=>tx({title:"Confirm deletion",centered:!0,withCloseButton:!1,children:U(mt,{children:["Are you sure you want to delete",S(mt,{component:"span",weight:700,children:` ${q.getState().name}`}),"?"]}),labels:{confirm:"Confirm",cancel:"Cancel"},confirmProps:{color:"red"},onConfirm:()=>{xr("deleteDoor",q.getState().id),e("/")}}),children:S(lT,{size:20})})]})},qT=({selectData:e,setModal:t,modal:r})=>{const[n,o]=g.exports.useState(null),i=q(c=>c.lockpickDifficulty),l=_e(c=>c.setLockpickDifficulty),a=g.exports.useMemo(()=>i[r.index],[r,i]);g.exports.useEffect(()=>o(typeof a=="string"?a:"custom"),[a]);const s=ix({initialValues:{select:n,areaSize:typeof a=="string"?null:a.areaSize,speedMultiplier:typeof a=="string"?null:a.speedMultiplier},validate:{select:c=>c===null?"Difficulty is required":null,areaSize:(c,f)=>c===null&&f.select==="custom"?"Area size is required":null,speedMultiplier:(c,f)=>c===null&&f.select==="custom"?"Speed multiplier is required":null}});g.exports.useEffect(()=>s.setFieldValue("select",n),[n]);const u=c=>{t(d=>({...d,opened:!1}));const f=c.select==="custom"?{areaSize:c.areaSize,speedMultiplier:c.speedMultiplier}:c.select;!f||l(d=>{const p=[...d];return f&&(p[r.index]=f),p})};return S("form",{onSubmit:s.onSubmit(c=>u(c)),children:U(Tt,{children:[S(Oi,{data:e,placeholder:"Difficulty",...s.getInputProps("select"),value:n,onChange:o,required:!0}),S($i,{label:"Area size",defaultValue:typeof a=="object"?a.areaSize:null,description:"Skill check area size in degrees",disabled:n!=="custom",max:360,hideControls:!0,required:n==="custom",...s.getInputProps("areaSize")}),S($i,{label:"Speed multiplier",description:"Number the indicator speed will be multiplied by",disabled:n!=="custom",defaultValue:typeof a=="object"?a.speedMultiplier:null,hideControls:!0,precision:2,required:n==="custom",...s.getInputProps("speedMultiplier")}),S(qn,{type:"submit",uppercase:!0,variant:"light",children:"Confirm"})]})})},b0=[{label:"Easy",value:"easy"},{label:"Medium",value:"medium"},{label:"Hard",value:"hard"},{label:"Custom",value:"custom"}],QT=()=>{const e=q(i=>i.lockpickDifficulty),t=_e(i=>i.setLockpickDifficulty),[r,n]=g.exports.useState({opened:!1,index:0}),o=i=>{t(l=>l.filter((a,s)=>s!==i))};return U(it,{children:[e.map((i,l)=>U(jt,{sx:{width:"100%"},spacing:16,mt:l===0?void 0:16,position:"apart",children:[S(Oi,{data:b0,value:typeof i=="string"?i:"custom",readOnly:!0,placeholder:"Edit row to select value",sx:{width:"80%"}}),S(nt,{label:"Edit row",children:S($t,{color:"blue.4",variant:"transparent",onClick:()=>n({opened:!0,index:l}),children:S(hu,{size:24})})}),S(nt,{label:"Delete row",children:S($t,{color:"red.4",variant:"transparent",onClick:()=>o(l),children:S(Wi,{size:24})})})]},`${typeof i=="string"?i:i.areaSize}-${l}`)),S(gu,{opened:r.opened,onClose:()=>n({...r,opened:!1}),transition:"fade",title:"Lockpick difficulty",centered:!0,size:"xs",withCloseButton:!1,children:S(qT,{selectData:b0,setModal:n,modal:r})})]})},ZT=()=>{const e=_e(t=>t.setLockpickDifficulty);return g.exports.useEffect(()=>()=>{e(t=>t.filter((r,n)=>n===0||r!==""))},[]),S(wu,{setter:()=>e(t=>[...t,""]),children:S(QT,{})})},JT=()=>{const e=Bi(),t=lp(),r=q(n=>n.lockpick);return S(it,{children:U(K,{sx:{height:"100%",display:"flex"},children:[S(Je,{orientation:"vertical",color:"blue",sx:{height:"100%"},value:t.pathname.substring(10),onTabChange:n=>e(`/settings/${n}`),children:U(Je.List,{children:[S(Je.Tab,{value:"back",onClick:()=>e("/"),icon:S(Jz,{size:20}),children:"Doors"}),S(Je.Tab,{value:"general",icon:S(hu,{size:20}),children:"General"}),S(Je.Tab,{value:"characters",icon:S(sD,{size:20}),children:"Characters"}),S(Je.Tab,{value:"groups",icon:S(rD,{size:20}),children:"Groups"}),S(Je.Tab,{value:"items",icon:S(tD,{size:20}),children:"Items"}),S(Je.Tab,{value:"lockpick",disabled:!r,icon:S(lD,{size:20}),children:"Lockpick"}),S(Je.Tab,{value:"sound",icon:S(eD,{size:20}),children:"Sound"})]})}),U(Tt,{p:16,sx:{width:"100%"},justify:"space-between",children:[U(Fb,{children:[S(Bt,{path:"/general",element:S(OT,{})}),S(Bt,{path:"/characters",element:S(ET,{})}),S(Bt,{path:"/groups",element:S(RT,{})}),S(Bt,{path:"/items",element:S(YT,{})}),S(Bt,{path:"/sound",element:S(XT,{})}),S(Bt,{path:"/lockpick",element:S(ZT,{})})]}),S(KT,{})]})]})})},e7=["Escape"],t7=(e,t)=>{const r=g.exports.useRef(Ab);g.exports.useEffect(()=>{r.current=e},[e]),g.exports.useEffect(()=>{const n=o=>{e7.includes(o.code)&&(r.current(!1),t&&t(),xr("exit"))};return window.addEventListener("keyup",n),()=>window.removeEventListener("keyup",n)},[])},r7=Q(e=>({container:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},main:{width:700,height:500,backgroundColor:e.colors.dark[8],borderRadius:e.radius.sm},search:{width:"40%",transition:"300ms","&:focus-within":{width:"50%"}}})),n7=()=>{const{classes:e}=r7(),t=_e(a=>a.setSounds),[r,n]=yu(a=>[a.visible,a.setVisible]),o=Ef(a=>a.doors),i=Ef(a=>a.setDoors),l=Bi();return Sl("playSound",async a=>{const s=new Audio(`./sounds/${a.sound}.ogg`);s.volume=a.volume,await s.play()}),Sl("setSoundFiles",a=>t(a)),Sl("setVisible",a=>{if(n(!0),a===void 0)return l("/");for(let s=0;s{if(typeof a=="number")return i(o.filter(s=>s.id!==a));if(a.hasOwnProperty("id")){let s=o.length;for(let u=0;uS(K,{className:e.main,style:a,children:U(Fb,{children:[S(Bt,{path:"/",element:S(xT,{})}),S(Bt,{path:"/settings/*",element:S(JT,{})})]})})})})},o7={colorScheme:"dark",fontFamily:"Roboto",components:{Tooltip:{defaultProps:{transition:"pop"}}}};if(Yz()){const e=document.getElementById("root");e.style.backgroundImage='url("https://i.imgur.com/3pzRj9n.png")',e.style.backgroundSize="cover",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center"}_$.render(S(E.StrictMode,{children:S(L1,{withNormalizeCSS:!0,withGlobalStyles:!0,theme:o7,children:S(_T,{modalProps:{transition:"slide-up"},children:S(Gz,{children:S(n7,{})})})})}),document.getElementById("root"));
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html
new file mode 100644
index 000000000..d5098d668
--- /dev/null
+++ b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+ NUI React Boilerplate
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/button-remote.ogg b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/button-remote.ogg
new file mode 100644
index 000000000..46570236b
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/button-remote.ogg differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/door-bolt-4.ogg b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/door-bolt-4.ogg
new file mode 100644
index 000000000..61a43bbd0
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/door-bolt-4.ogg differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/metal-locker.ogg b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/metal-locker.ogg
new file mode 100644
index 000000000..deea9def3
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/metal-locker.ogg differ
diff --git a/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/metallic-creak.ogg b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/metallic-creak.ogg
new file mode 100644
index 000000000..9c6623319
Binary files /dev/null and b/server-data/resources/[bpt_addons]/bpt_doorlock/web/build/sounds/metallic-creak.ogg differ