From 421eb6be1bbe6f954ebd0f1d8831e7ede1fe74fc Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Tue, 23 Jul 2024 21:39:57 -0400 Subject: [PATCH 01/32] LEAF 4425 update by name_body, restrict IDs > 1, res feedback --- .../admin/templates/mod_workflow.tpl | 13 ++++-- LEAF_Request_Portal/sources/Workflow.php | 46 +++++++++---------- 2 files changed, 31 insertions(+), 28 deletions(-) diff --git a/LEAF_Request_Portal/admin/templates/mod_workflow.tpl b/LEAF_Request_Portal/admin/templates/mod_workflow.tpl index 6de024a42..a35c60f27 100644 --- a/LEAF_Request_Portal/admin/templates/mod_workflow.tpl +++ b/LEAF_Request_Portal/admin/templates/mod_workflow.tpl @@ -456,8 +456,12 @@ url: '../api/workflow/events', data: ajaxData, cache: false - }).done(function() { - alert('Event was successfully created.'); + }).done(function(res) { + if(+res === 1) { + alert('Event was successfully created.'); + } else { + alert(res); + } listEvents(); }).fail(function(error) { alert(error); @@ -681,7 +685,10 @@ url: '../api/workflow/editEvent/_' + event, data: ajaxData, cache: false - }).done(function() { + }).done(function(res) { + if(+res !== 1) { + alert(res); + } listEvents(); }).fail(function(error) { alert(error); diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index bcd11cc86..d5ce7a9ba 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -521,13 +521,8 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul return 'Event not found, please try again.'; } - $vars = array(':eventID' => $name); - - $strSQL = 'SELECT eventDescription FROM events WHERE eventID=:eventID'; - - $oldLabel = $this->db->prepared_query($strSQL, $vars); - - $vars = array(':eventID' => $name, + $vars = array( + ':eventID' => $name, ':eventDescription' => $desc, ':newEventID' => $newName, ':eventType' => $type, @@ -538,20 +533,28 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul 'DateSelected' => $data['Date Selected'], 'DaysSelected' => $data['Days Selected'], 'AdditionalDaysSelected' => $data['Additional Days Selected'] - ))); + )) + ); - $strSQL = 'UPDATE events SET eventID=:newEventID, eventDescription=:eventDescription, eventType=:eventType, eventData=:eventData WHERE eventID=:eventID'; + //Update events record + $strSQL = "UPDATE events + SET eventID=:newEventID, eventDescription=:eventDescription, eventType=:eventType, eventData=:eventData + WHERE eventID=:eventID"; $this->db->prepared_query($strSQL, $vars); - $vars = array(':label' => $oldLabel[0]['eventDescription'], + $vars = array( ':emailTo' => "{$newName}_emailTo.tpl", ':emailCc' => "{$newName}_emailCc.tpl", ':subject' => "{$newName}_subject.tpl", + ':oldBody' => "{$name}_body.tpl", ':body' => "{$newName}_body.tpl", ':newLabel' => $desc); - $strSQL = 'UPDATE email_templates SET label=:newLabel, emailTo=:emailTo, emailCc=:emailCc, subject=:subject, body=:body WHERE label=:label'; + //Update corresponding email_templates record + $strSQL = "UPDATE email_templates + SET label=:newLabel, emailTo=:emailTo, emailCc=:emailCc, subject=:subject, body=:body + WHERE body=:oldBody AND emailTemplateID > 1"; $this->db->prepared_query($strSQL, $vars); @@ -563,7 +566,7 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul } $this->dataActionLogger->logAction(DataActions::MODIFY, LoggableTypes::EVENTS, [ - new LogItem("events", "eventDescription", $_POST['description']), + new LogItem("events", "eventDescription", $desc), new LogItem("events", "eventID", $name) ]); @@ -1054,25 +1057,18 @@ public function removeEvent($event) if (file_exists("../templates/email/custom_override/{$event}_emailCc.tpl")) unlink("../templates/email/custom_override/{$event}_emailCc.tpl"); + //Delete events record $vars = array(':eventID' => $event); - - $strSQL = 'SELECT eventDescription FROM events WHERE eventID=:eventID'; - - $label = $this->db->prepared_query($strSQL, $vars); - $strSQL = 'DELETE FROM events WHERE eventID=:eventID'; + $this->db->prepared_query($strSQL, $vars); - $this->db->prepared_query($strSQL, $vars); // Delete Event + //Delete corresponding email_templates record + $vars = array(':body' => $event."_body.tpl"); + $strSQL = 'DELETE FROM email_templates WHERE body=:body AND emailTemplateID > 1'; + $this->db->prepared_query($strSQL, $vars); $event = str_replace('CustomEvent_', '', $event); $event = str_replace('_', ' ', $event); - - $vars = array(':label' => $label[0]['eventDescription']); - - $strSQL = 'DELETE FROM email_templates WHERE label=:label'; - - $this->db->prepared_query($strSQL, $vars); // Delete Email Event - $this->dataActionLogger->logAction(DataActions::DELETE, LoggableTypes::EVENTS, [ new LogItem("events", "eventID", $event) ]); From 05e4752d5afdae99e41d5b5cdf6f70ce2fd4e0cc Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Wed, 24 Jul 2024 14:29:01 -0400 Subject: [PATCH 02/32] LEAF 4425 updates from master and move comment --- LEAF_Request_Portal/sources/Workflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index d5ce7a9ba..389e0a32d 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -543,6 +543,7 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul $this->db->prepared_query($strSQL, $vars); + //Update corresponding email_templates record $vars = array( ':emailTo' => "{$newName}_emailTo.tpl", ':emailCc' => "{$newName}_emailCc.tpl", @@ -551,7 +552,6 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul ':body' => "{$newName}_body.tpl", ':newLabel' => $desc); - //Update corresponding email_templates record $strSQL = "UPDATE email_templates SET label=:newLabel, emailTo=:emailTo, emailCc=:emailCc, subject=:subject, body=:body WHERE body=:oldBody AND emailTemplateID > 1"; From e5820d9b222b2dd2651fb06ce0874d48cb50752e Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Thu, 25 Jul 2024 11:00:09 -0400 Subject: [PATCH 03/32] LEAF 4425 add check for existing label and trim desc --- LEAF_Request_Portal/sources/Workflow.php | 30 +++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index 389e0a32d..2e7e18f07 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -520,7 +520,21 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul if ($name === null || $newName === null || $type === null) { return 'Event not found, please try again.'; } + $desc = trim($desc); + //Check for an existing email_templates record with a label that matches desc to avoid inconsistencies. + //Return information for user if a match is found. Trim for back compat. + $vars = array( + ':label' => $desc, + ':body' => $name . "_body.tpl", + ); + $strSQL = "SELECT `label` FROM `email_templates` WHERE TRIM(`label`) = :label AND `body` != :body"; + $res = $this->db->prepared_query($strSQL, $vars); + if(count($res) > 0) { + return 'Please use a different description.'; + } + + //Update events record $vars = array( ':eventID' => $name, ':eventDescription' => $desc, @@ -536,7 +550,6 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul )) ); - //Update events record $strSQL = "UPDATE events SET eventID=:newEventID, eventDescription=:eventDescription, eventType=:eventType, eventData=:eventData WHERE eventID=:eventID"; @@ -996,7 +1009,21 @@ public function createEvent($name = null, $desc = '', $type = null, $data = arra if ($name === null || $type === null) { return 'Error creating event, please try again.'; } + $desc = trim($desc); + + //Check for an existing email_templates record with a label that matches desc to avoid inconsistencies. + //Return information for user if a match is found. Trim for back compat. + $vars = array( + ':label' => $desc, + ':body' => $name . "_body.tpl", + ); + $strSQL = "SELECT `label` FROM `email_templates` WHERE TRIM(`label`) = :label AND `body` != :body"; + $res = $this->db->prepared_query($strSQL, $vars); + if(count($res) > 0) { + return 'Please use a different description.'; + } + //insert events record $vars = array(':eventID' => $name, ':description' => $desc, ':eventType' => $type, @@ -1011,6 +1038,7 @@ public function createEvent($name = null, $desc = '', $type = null, $data = arra $this->db->prepared_query($strSQL, $vars); + //insert email_templates record $vars = array(':description' => $desc, ':emailTo' => $name . '_emailTo.tpl', ':emailCc' => $name . '_emailCc.tpl', From 72c546b69ab3fade47a2739bb5a62d3d6a7ebf7d Mon Sep 17 00:00:00 2001 From: Carrie Date: Mon, 29 Jul 2024 17:19:40 -0400 Subject: [PATCH 04/32] LEAF 4425 events and email template editing feedback 1. Use prefixes to check system events. remove success alert, update verbiage of desc alert. refactor checking for modifiable email_temp record. --- .../admin/templates/mod_workflow.tpl | 7 +- LEAF_Request_Portal/sources/Workflow.php | 127 ++++++++++-------- 2 files changed, 74 insertions(+), 60 deletions(-) diff --git a/LEAF_Request_Portal/admin/templates/mod_workflow.tpl b/LEAF_Request_Portal/admin/templates/mod_workflow.tpl index a35c60f27..d6b383e2e 100644 --- a/LEAF_Request_Portal/admin/templates/mod_workflow.tpl +++ b/LEAF_Request_Portal/admin/templates/mod_workflow.tpl @@ -457,11 +457,10 @@ data: ajaxData, cache: false }).done(function(res) { - if(+res === 1) { - alert('Event was successfully created.'); - } else { + if(+res !== 1) { alert(res); } + //TODO: add and reopen stepInfo instead of events list. listEvents(); }).fail(function(error) { alert(error); @@ -2433,7 +2432,7 @@ } function buildRoutesList(stepID, workflowID) { - let allRoutes = [...routes]; + let allRoutes = structuredClone(routes); let hasSubmit = false; allRoutes.forEach(r => { if(r.actionType === "sendback") { diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index 2e7e18f07..794059b47 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -377,7 +377,10 @@ public function createAction($stepID, $nextStepID, $action) return 'Restricted command.'; } - if ($action == 'sendback') { + if ($action === 'sendback') { + if ($nextStepID !== 0) { //correct for potential copy issue. requestor is sometimes referred to by -1 in the editor + $nextStepID = 0; + } $required = json_encode(array ('required' => false)); } else { $required = ''; @@ -496,7 +499,7 @@ public function getEvent($event = null) return $res; } - /** + /** //NOTE: needs automated test * Purpose: Edit event information * @param string $name Name of event being passed through * @param string $newName New Name of event being passed through @@ -510,10 +513,7 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul if (!$this->login->checkGroup(1)) { return 'Admin access required'; } - - $systemEvent = array('std_email_notify_completed', 'std_email_notify_next_approver', 'LeafSecure_DeveloperConsole', 'LeafSecure_Certified'); - - if (in_array($name, $systemEvent)) { + if ($this->isSystemEventName($name)) { return 'System Events Cannot Be Modified.'; } @@ -531,7 +531,7 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul $strSQL = "SELECT `label` FROM `email_templates` WHERE TRIM(`label`) = :label AND `body` != :body"; $res = $this->db->prepared_query($strSQL, $vars); if(count($res) > 0) { - return 'Please use a different description.'; + return 'This description has already been used, please use another one.'; } //Update events record @@ -549,40 +549,46 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul 'AdditionalDaysSelected' => $data['Additional Days Selected'] )) ); - $strSQL = "UPDATE events SET eventID=:newEventID, eventDescription=:eventDescription, eventType=:eventType, eventData=:eventData WHERE eventID=:eventID"; - $this->db->prepared_query($strSQL, $vars); - //Update corresponding email_templates record + //check for an existing corresponding non-system email template record before doing anything further $vars = array( - ':emailTo' => "{$newName}_emailTo.tpl", - ':emailCc' => "{$newName}_emailCc.tpl", - ':subject' => "{$newName}_subject.tpl", ':oldBody' => "{$name}_body.tpl", - ':body' => "{$newName}_body.tpl", - ':newLabel' => $desc); + ); + $strSQL = "SELECT email_templateID FROM `email_templates` WHERE body=:oldBody AND emailTemplateID > 1"; + $res = $this->db->prepared_query($strSQL, $vars); - $strSQL = "UPDATE email_templates - SET label=:newLabel, emailTo=:emailTo, emailCc=:emailCc, subject=:subject, body=:body - WHERE body=:oldBody AND emailTemplateID > 1"; + if(count($res) === 1) { + //update corresponding email_templates record, update file names, log data action + $vars = array( + ':emailTo' => "{$newName}_emailTo.tpl", + ':emailCc' => "{$newName}_emailCc.tpl", + ':subject' => "{$newName}_subject.tpl", + ':oldBody' => "{$name}_body.tpl", + ':body' => "{$newName}_body.tpl", + ':newLabel' => $desc); - $this->db->prepared_query($strSQL, $vars); + $strSQL = "UPDATE email_templates + SET label=:newLabel, emailTo=:emailTo, emailCc=:emailCc, subject=:subject, body=:body + WHERE body=:oldBody AND emailTemplateID > 1"; - if (file_exists("../templates/email/custom_override/{$name}_body.tpl")) { - rename("../templates/email/custom_override/{$name}_body.tpl", "../templates/email/custom_override/{$newName}_body.tpl"); - rename("../templates/email/custom_override/{$name}_subject.tpl", "../templates/email/custom_override/{$newName}_subject.tpl"); - rename("../templates/email/custom_override/{$name}_emailTo.tpl", "../templates/email/custom_override/{$newName}_emailTo.tpl"); - rename("../templates/email/custom_override/{$name}_emailCc.tpl", "../templates/email/custom_override/{$newName}_emailCc.tpl"); - } + $this->db->prepared_query($strSQL, $vars); - $this->dataActionLogger->logAction(DataActions::MODIFY, LoggableTypes::EVENTS, [ - new LogItem("events", "eventDescription", $desc), - new LogItem("events", "eventID", $name) - ]); + if (file_exists("../templates/email/custom_override/{$name}_body.tpl")) { + rename("../templates/email/custom_override/{$name}_body.tpl", "../templates/email/custom_override/{$newName}_body.tpl"); + rename("../templates/email/custom_override/{$name}_subject.tpl", "../templates/email/custom_override/{$newName}_subject.tpl"); + rename("../templates/email/custom_override/{$name}_emailTo.tpl", "../templates/email/custom_override/{$newName}_emailTo.tpl"); + rename("../templates/email/custom_override/{$name}_emailCc.tpl", "../templates/email/custom_override/{$newName}_emailCc.tpl"); + } + $this->dataActionLogger->logAction(DataActions::MODIFY, LoggableTypes::EVENTS, [ + new LogItem("events", "eventDescription", $desc), + new LogItem("events", "eventID", $name) + ]); + } return 1; } @@ -984,6 +990,12 @@ public function revokeDependencyPrivs($dependencyID, $groupID) return true; } + private function isSystemEventName(?string $name) :bool + { + $txt = $name ?? ''; + return preg_match("/^std_email/i", $txt) || preg_match("/^LeafSecure/i", $txt); + } + /** * Purpose: Create a new Custom Event * @param string $name Custom Event Name @@ -999,10 +1011,7 @@ public function createEvent($name = null, $desc = '', $type = null, $data = arra return 'Admin access required.'; } - $systemEvent = array('std_email_notify_completed','std_email_notify_next_approver','LeafSecure_DeveloperConsole','LeafSecure_Certified'); - - if (in_array($name, $systemEvent)) - { + if ($this->isSystemEventName($name)) { return 'Event Already Exists.'; } @@ -1020,7 +1029,7 @@ public function createEvent($name = null, $desc = '', $type = null, $data = arra $strSQL = "SELECT `label` FROM `email_templates` WHERE TRIM(`label`) = :label AND `body` != :body"; $res = $this->db->prepared_query($strSQL, $vars); if(count($res) > 0) { - return 'Please use a different description.'; + return 'This description has already been used, please use another one.'; } //insert events record @@ -1068,39 +1077,45 @@ public function removeEvent($event) { return 'Admin access required'; } - $systemEvent = array('std_email_notify_completed','std_email_notify_next_approver','LeafSecure_DeveloperConsole','LeafSecure_Certified'); - if (in_array($event, $systemEvent)) - { + if ($this->isSystemEventName($event)) { return 'System Events cannot be removed.'; } - // Delete Custom Emails - if (file_exists("../templates/email/custom_override/{$event}_body.tpl")) - unlink("../templates/email/custom_override/{$event}_body.tpl"); - if (file_exists("../templates/email/custom_override/{$event}_subject.tpl")) - unlink("../templates/email/custom_override/{$event}_subject.tpl"); - if (file_exists("../templates/email/custom_override/{$event}_emailTo.tpl")) - unlink("../templates/email/custom_override/{$event}_emailTo.tpl"); - if (file_exists("../templates/email/custom_override/{$event}_emailCc.tpl")) - unlink("../templates/email/custom_override/{$event}_emailCc.tpl"); - //Delete events record $vars = array(':eventID' => $event); $strSQL = 'DELETE FROM events WHERE eventID=:eventID'; $this->db->prepared_query($strSQL, $vars); - //Delete corresponding email_templates record - $vars = array(':body' => $event."_body.tpl"); - $strSQL = 'DELETE FROM email_templates WHERE body=:body AND emailTemplateID > 1'; - $this->db->prepared_query($strSQL, $vars); + //check for an existing corresponding non-system email template record before doing anything further + $vars = array( + ':oldBody' => $event . "_body.tpl", + ); + $strSQL = "SELECT email_templateID FROM `email_templates` WHERE body=:oldBody AND emailTemplateID > 1"; + $res = $this->db->prepared_query($strSQL, $vars); - $event = str_replace('CustomEvent_', '', $event); - $event = str_replace('_', ' ', $event); - $this->dataActionLogger->logAction(DataActions::DELETE, LoggableTypes::EVENTS, [ - new LogItem("events", "eventID", $event) - ]); + if(count($res) === 1) { + //Delete corresponding email_templates record + $vars = array(':body' => $event."_body.tpl"); + $strSQL = 'DELETE FROM email_templates WHERE body=:body AND emailTemplateID > 1'; + $this->db->prepared_query($strSQL, $vars); + // Delete Custom Emails + if (file_exists("../templates/email/custom_override/{$event}_body.tpl")) + unlink("../templates/email/custom_override/{$event}_body.tpl"); + if (file_exists("../templates/email/custom_override/{$event}_subject.tpl")) + unlink("../templates/email/custom_override/{$event}_subject.tpl"); + if (file_exists("../templates/email/custom_override/{$event}_emailTo.tpl")) + unlink("../templates/email/custom_override/{$event}_emailTo.tpl"); + if (file_exists("../templates/email/custom_override/{$event}_emailCc.tpl")) + unlink("../templates/email/custom_override/{$event}_emailCc.tpl"); + + $event = str_replace('CustomEvent_', '', $event); + $event = str_replace('_', ' ', $event); + $this->dataActionLogger->logAction(DataActions::DELETE, LoggableTypes::EVENTS, [ + new LogItem("events", "eventID", $event) + ]); + } return 1; } From 794f1be8c528a59776d0a83eae8e1f521053548a Mon Sep 17 00:00:00 2001 From: Carrie Date: Tue, 30 Jul 2024 10:57:25 -0400 Subject: [PATCH 05/32] LEAF 4425 organize edit and removeEvent methods --- LEAF_Request_Portal/sources/Workflow.php | 40 +++++++++++------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index 794059b47..d4fba71ea 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -499,7 +499,7 @@ public function getEvent($event = null) return $res; } - /** //NOTE: needs automated test + /** * Purpose: Edit event information * @param string $name Name of event being passed through * @param string $newName New Name of event being passed through @@ -554,15 +554,18 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul WHERE eventID=:eventID"; $this->db->prepared_query($strSQL, $vars); - //check for an existing corresponding non-system email template record before doing anything further - $vars = array( - ':oldBody' => "{$name}_body.tpl", - ); + $this->dataActionLogger->logAction(DataActions::MODIFY, LoggableTypes::EVENTS, [ + new LogItem("events", "eventDescription", $desc), + new LogItem("events", "eventID", $name) + ]); + + //check for corresponding non-system email template record before updating and renaming files + $vars = array(':oldBody' => $name . "_body.tpl"); $strSQL = "SELECT email_templateID FROM `email_templates` WHERE body=:oldBody AND emailTemplateID > 1"; $res = $this->db->prepared_query($strSQL, $vars); if(count($res) === 1) { - //update corresponding email_templates record, update file names, log data action + //update email_templates record $vars = array( ':emailTo' => "{$newName}_emailTo.tpl", ':emailCc' => "{$newName}_emailCc.tpl", @@ -577,17 +580,13 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul $this->db->prepared_query($strSQL, $vars); + //rename files if (file_exists("../templates/email/custom_override/{$name}_body.tpl")) { rename("../templates/email/custom_override/{$name}_body.tpl", "../templates/email/custom_override/{$newName}_body.tpl"); rename("../templates/email/custom_override/{$name}_subject.tpl", "../templates/email/custom_override/{$newName}_subject.tpl"); rename("../templates/email/custom_override/{$name}_emailTo.tpl", "../templates/email/custom_override/{$newName}_emailTo.tpl"); rename("../templates/email/custom_override/{$name}_emailCc.tpl", "../templates/email/custom_override/{$newName}_emailCc.tpl"); } - - $this->dataActionLogger->logAction(DataActions::MODIFY, LoggableTypes::EVENTS, [ - new LogItem("events", "eventDescription", $desc), - new LogItem("events", "eventID", $name) - ]); } return 1; } @@ -1087,10 +1086,12 @@ public function removeEvent($event) $strSQL = 'DELETE FROM events WHERE eventID=:eventID'; $this->db->prepared_query($strSQL, $vars); - //check for an existing corresponding non-system email template record before doing anything further - $vars = array( - ':oldBody' => $event . "_body.tpl", - ); + $this->dataActionLogger->logAction(DataActions::DELETE, LoggableTypes::EVENTS, [ + new LogItem("events", "eventID", $event) + ]); + + //check for corresponding non-system email template record before deleting email_templates record and unlinking templates + $vars = array(':oldBody' => $event . "_body.tpl"); $strSQL = "SELECT email_templateID FROM `email_templates` WHERE body=:oldBody AND emailTemplateID > 1"; $res = $this->db->prepared_query($strSQL, $vars); @@ -1100,7 +1101,7 @@ public function removeEvent($event) $strSQL = 'DELETE FROM email_templates WHERE body=:body AND emailTemplateID > 1'; $this->db->prepared_query($strSQL, $vars); - // Delete Custom Emails + // Delete Custom Email Templates if (file_exists("../templates/email/custom_override/{$event}_body.tpl")) unlink("../templates/email/custom_override/{$event}_body.tpl"); if (file_exists("../templates/email/custom_override/{$event}_subject.tpl")) @@ -1109,13 +1110,8 @@ public function removeEvent($event) unlink("../templates/email/custom_override/{$event}_emailTo.tpl"); if (file_exists("../templates/email/custom_override/{$event}_emailCc.tpl")) unlink("../templates/email/custom_override/{$event}_emailCc.tpl"); - - $event = str_replace('CustomEvent_', '', $event); - $event = str_replace('_', ' ', $event); - $this->dataActionLogger->logAction(DataActions::DELETE, LoggableTypes::EVENTS, [ - new LogItem("events", "eventID", $event) - ]); } + return 1; } From e1c052a9dd37d2886d88b19b8c6f3ae85107900f Mon Sep 17 00:00:00 2001 From: Carrie Date: Tue, 30 Jul 2024 13:24:26 -0400 Subject: [PATCH 06/32] LEAF 4425 add go tests, valid event, dup desc --- x-test/API-tests/events.go | 10 ++++ x-test/API-tests/events_test.go | 81 +++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 x-test/API-tests/events.go create mode 100644 x-test/API-tests/events_test.go diff --git a/x-test/API-tests/events.go b/x-test/API-tests/events.go new file mode 100644 index 000000000..ed14d1866 --- /dev/null +++ b/x-test/API-tests/events.go @@ -0,0 +1,10 @@ +package main + +type WorkflowEventsResponse []WorkflowEvent + +type WorkflowEvent struct{ + EventID string `json:"eventID"` + EventDescription string `json:"eventDescription"` + EventType string `json:"eventType"` + EventData string `json:"eventData"` +} \ No newline at end of file diff --git a/x-test/API-tests/events_test.go b/x-test/API-tests/events_test.go new file mode 100644 index 000000000..47b569420 --- /dev/null +++ b/x-test/API-tests/events_test.go @@ -0,0 +1,81 @@ +package main + +import ( + "testing" + "github.com/google/go-cmp/cmp" + "encoding/json" + "io" + "net/url" +) + +func getEvent(url string) (WorkflowEventsResponse, error) { + res, _ := client.Get(url) + b, _ := io.ReadAll(res.Body) + + var m WorkflowEventsResponse + err := json.Unmarshal(b, &m) + if err != nil { + return nil, err + } + return m, err +} + +func postEvent(postUrl string, event WorkflowEvent) (string, error) { + postData := url.Values{} + postData.Set("name", event.EventID) + postData.Set("description", event.EventDescription) + postData.Set("type", event.EventType) + //postData.Set("data", event.EventData) + postData.Set("CSRFToken", CsrfToken) + + res, err := client.PostForm(postUrl, postData) + if err != nil { + return "", err + } + + bodyBytes, err := io.ReadAll(res.Body) + if err != nil { + return "", err + } + return string(bodyBytes), nil +} + + +func TestEvents_NewValidEmailEvent(t *testing.T) { + ev_valid := WorkflowEvent{ + EventID: "CustomEvent_event_valid", + EventDescription: "test event description", + EventType: "Email", + EventData: "", + } + + res, err := postEvent(RootURL+`api/workflow/events`, ev_valid) + if err != nil { + t.Error(err) + } + + got := res + want := `"1"` + if !cmp.Equal(got, want) { + t.Errorf("event should have saved because name and descr are valid. got = %v, want = %v", got, want) + } +} + +func TestEvents_DuplicateDescriptionEmailEvent(t *testing.T) { + ev_desc_dup := WorkflowEvent{ + EventID: "CustomEvent_event_desc_dup", + EventDescription: "test event description", + EventType: "Email", + EventData: "", + } + + res, err := postEvent(RootURL+`api/workflow/events`, ev_desc_dup) + if err != nil { + t.Error(err) + } + got := res + want := `"This description has already been used, please use another one."` + if !cmp.Equal(got, want) { + t.Errorf("string for alert should be returned because description is not unique. got = %v, want = %v", got, want) + } +} \ No newline at end of file From 2c9eeef32f7fa6e9c0135435b69701ce3a1756b1 Mon Sep 17 00:00:00 2001 From: Carrie Date: Thu, 1 Aug 2024 13:38:36 -0400 Subject: [PATCH 07/32] LEAF 4425 remove unused event data properties, add tests --- LEAF_Request_Portal/sources/Workflow.php | 32 +++++---- x-test/API-tests/events_test.go | 87 ++++++++++++++++++++---- 2 files changed, 90 insertions(+), 29 deletions(-) diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index d4fba71ea..e6961fb54 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -540,14 +540,13 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul ':eventDescription' => $desc, ':newEventID' => $newName, ':eventType' => $type, - ':eventData' => json_encode(array('NotifyRequestor' => $data['Notify Requestor'], - 'NotifyNext' => $data['Notify Next'], - 'NotifyGroup' => $data['Notify Group'], - 'AutomateEmailGroup' => $data['Automate Email Group'], - 'DateSelected' => $data['Date Selected'], - 'DaysSelected' => $data['Days Selected'], - 'AdditionalDaysSelected' => $data['Additional Days Selected'] - )) + ':eventData' => json_encode( + array( + 'NotifyRequestor' => $data['Notify Requestor'], + 'NotifyNext' => $data['Notify Next'], + 'NotifyGroup' => $data['Notify Group'], + ) + ) ); $strSQL = "UPDATE events SET eventID=:newEventID, eventDescription=:eventDescription, eventType=:eventType, eventData=:eventData @@ -1032,15 +1031,18 @@ public function createEvent($name = null, $desc = '', $type = null, $data = arra } //insert events record - $vars = array(':eventID' => $name, + $vars = array( + ':eventID' => $name, ':description' => $desc, ':eventType' => $type, - ':eventData' => json_encode(array('NotifyRequestor' => $data['Notify Requestor'], - 'NotifyNext' => $data['Notify Next'], - 'NotifyGroup' => $data['Notify Group'], - 'AutomateEmailGroup' => $data['Automate Email Group'], - 'DateSelected' => $data['Date Selected'], - 'DaysSelected'=> $data['Days Selected']))); + ':eventData' => json_encode( + array( + 'NotifyRequestor' => $data['Notify Requestor'], + 'NotifyNext' => $data['Notify Next'], + 'NotifyGroup' => $data['Notify Group'], + ) + ) + ); $strSQL = "INSERT INTO events (eventID, eventDescription, eventType, eventData) VALUES (:eventID, :description, :eventType, :eventData)"; diff --git a/x-test/API-tests/events_test.go b/x-test/API-tests/events_test.go index 47b569420..10530cc49 100644 --- a/x-test/API-tests/events_test.go +++ b/x-test/API-tests/events_test.go @@ -12,27 +12,31 @@ func getEvent(url string) (WorkflowEventsResponse, error) { res, _ := client.Get(url) b, _ := io.ReadAll(res.Body) - var m WorkflowEventsResponse - err := json.Unmarshal(b, &m) + var ev WorkflowEventsResponse + err := json.Unmarshal(b, &ev) if err != nil { return nil, err } - return m, err + return ev, err } -func postEvent(postUrl string, event WorkflowEvent) (string, error) { +func postEvent(postUrl string, event WorkflowEvent, addOptions bool) (string, error) { postData := url.Values{} postData.Set("name", event.EventID) postData.Set("description", event.EventDescription) postData.Set("type", event.EventType) - //postData.Set("data", event.EventData) + if(addOptions == true) { + //revisit: more ideal as a struct, but there are key and type differences that complicate this + postData.Set("data[Notify Requestor]", "true") + postData.Set("data[Notify Next]", "true") + postData.Set("data[Notify Group]", "203") + } postData.Set("CSRFToken", CsrfToken) res, err := client.PostForm(postUrl, postData) if err != nil { return "", err } - bodyBytes, err := io.ReadAll(res.Body) if err != nil { return "", err @@ -40,16 +44,14 @@ func postEvent(postUrl string, event WorkflowEvent) (string, error) { return string(bodyBytes), nil } - func TestEvents_NewValidEmailEvent(t *testing.T) { + eventName := "CustomEvent_event_valid" ev_valid := WorkflowEvent{ - EventID: "CustomEvent_event_valid", + EventID: eventName, EventDescription: "test event description", EventType: "Email", - EventData: "", } - - res, err := postEvent(RootURL+`api/workflow/events`, ev_valid) + res, err := postEvent(RootURL+`api/workflow/events`, ev_valid, true) if err != nil { t.Error(err) } @@ -59,6 +61,64 @@ func TestEvents_NewValidEmailEvent(t *testing.T) { if !cmp.Equal(got, want) { t.Errorf("event should have saved because name and descr are valid. got = %v, want = %v", got, want) } + event, err := getEvent(RootURL + `api/workflow/event/_` + eventName) + if err != nil { + t.Error(err) + } + got = event[0].EventID + want = ev_valid.EventID + if !cmp.Equal(got, want) { + t.Errorf("EventID not as expected. got = %v, want = %v", got, want) + } + got = event[0].EventDescription + want = ev_valid.EventDescription + if !cmp.Equal(got, want) { + t.Errorf("EventDescription not as expected. got = %v, want = %v", got, want) + } + got = event[0].EventType + want = ev_valid.EventType + if !cmp.Equal(got, want) { + t.Errorf("EventType not as expected. got = %v, want = %v", got, want) + } + got = event[0].EventData + want = `{"NotifyRequestor":"true","NotifyNext":"true","NotifyGroup":"203"}` + if !cmp.Equal(got, want) { + t.Errorf("EventData not as expected. got = %v, want = %v", got, want) + } +} + + +func TestEvents_ReservedPrefixes(t *testing.T) { + ev_leafsecure := WorkflowEvent{ + EventID: "LeafSecure_prefix", + EventDescription: "prefix is reserved 1", + EventType: "Email", + } + ev_std_email := WorkflowEvent{ + EventID: "std_email_prefix", + EventDescription: "prefix is reserved 2", + EventType: "Email", + } + + res, err := postEvent(RootURL+`api/workflow/events`, ev_leafsecure, false) + if err != nil { + t.Error(err) + } + got := res + want := `"Event Already Exists."` + if !cmp.Equal(got, want) { + t.Errorf("event should not post because leafsecure prefix is reserved. got = %v, want = %v", got, want) + } + + res, err = postEvent(RootURL+`api/workflow/events`, ev_std_email, false) + if err != nil { + t.Error(err) + } + got = res + want = `"Event Already Exists."` + if !cmp.Equal(got, want) { + t.Errorf("event should not post because std_email prefix is reserved. got = %v, want = %v", got, want) + } } func TestEvents_DuplicateDescriptionEmailEvent(t *testing.T) { @@ -66,16 +126,15 @@ func TestEvents_DuplicateDescriptionEmailEvent(t *testing.T) { EventID: "CustomEvent_event_desc_dup", EventDescription: "test event description", EventType: "Email", - EventData: "", } - res, err := postEvent(RootURL+`api/workflow/events`, ev_desc_dup) + res, err := postEvent(RootURL+`api/workflow/events`, ev_desc_dup, false) if err != nil { t.Error(err) } got := res want := `"This description has already been used, please use another one."` if !cmp.Equal(got, want) { - t.Errorf("string for alert should be returned because description is not unique. got = %v, want = %v", got, want) + t.Errorf("alert text should be returned because description is not unique. got = %v, want = %v", got, want) } } \ No newline at end of file From 22f06ec41aaf43b8636f500a1388c94366080ac2 Mon Sep 17 00:00:00 2001 From: Carrie Date: Fri, 2 Aug 2024 12:39:02 -0400 Subject: [PATCH 08/32] LEAF 4425 add info to reopen action modal. rm accidental include --- .../admin/templates/mod_workflow.tpl | 56 ++++++++++++++----- LEAF_Request_Portal/sources/Workflow.php | 3 - 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/LEAF_Request_Portal/admin/templates/mod_workflow.tpl b/LEAF_Request_Portal/admin/templates/mod_workflow.tpl index d6b383e2e..b55623f35 100644 --- a/LEAF_Request_Portal/admin/templates/mod_workflow.tpl +++ b/LEAF_Request_Portal/admin/templates/mod_workflow.tpl @@ -388,7 +388,7 @@ * Purpose: Create new custom event * @events Custom Event List */ - function newEvent(events) { + function newEvent(events, params = null) { $('.workflowStepInfo').css('display', 'none'); dialog.clear(); dialog.setTitle('Create Event'); @@ -459,9 +459,24 @@ }).done(function(res) { if(+res !== 1) { alert(res); + listEvents(); + + } else { + if(params !== null) { + const { stepID, action } = params; + const postEventData = { eventID: eventName, CSRFToken: CSRFToken }; + const workflowID = currentWorkflow; + postEvent(stepID, action, workflowID, postEventData, function(res) { + if (+res === 1) { + dialog.hide(); + loadWorkflow(workflowID, null, params); + } + }); + } else { + listEvents(); + } } - //TODO: add and reopen stepInfo instead of events list. - listEvents(); + }).fail(function(error) { alert(error); }); @@ -502,10 +517,11 @@ /** * Purpose: Dialog for adding events * @workdflowID Current Workflow ID for email reminder - * @stepID Step ID holding the action for email reminder - * @actionType Action type for email reminder + * @params jsplumb params including action, stepID, nextStepID */ - function addEventDialog(workflowID, stepID, actionType) { + function addEventDialog(workflowID, params) { + const actionType = params.action; + const stepID = params.stepID; $('.workflowStepInfo').css('display', 'none'); dialog.setTitle('Add Event'); let eventDialogContent = @@ -523,7 +539,7 @@ dialog.indicateIdle(); $('#addEventDialog').html(addEventContent(res)); $('#createEvent').on('click', function() { - newEvent(res); + newEvent(res, params); }); $('#eventID').chosen({disable_search_threshold: 5}); $('#xhrDialog').css('overflow', 'visible'); @@ -535,7 +551,7 @@ CSRFToken: CSRFToken}; postEvent(stepID, actionType, workflowID, ajaxData, function (res) { - loadWorkflow(workflowID); + loadWorkflow(workflowID, null, params); }); dialog.hide(); @@ -1530,7 +1546,7 @@ } output += `
  • `; output += ''; @@ -1541,8 +1557,8 @@ $('#stepInfo_' + stepID).show('slide', 200, () => modalSetup(stepID)); }); $('#stepInfo_' + stepID).css({ - left: evt.pageX || 200 + 'px', - top: evt.pageY || 300 + 'px' + left: (evt?.pageX || 200) + 'px', + top: (evt?.pageY || 300) + 'px' }); } @@ -2194,13 +2210,14 @@ } }, error: (err) => console.log(err), - cache: false + cache: false, + async: false }); } var currentWorkflow = 0; - function loadWorkflow(workflowID, stepID = null) { + function loadWorkflow(workflowID, stepID = null, params = null) { currentWorkflow = workflowID; jsPlumb.reset(); endPoints = []; @@ -2303,6 +2320,16 @@ $('#workflow').css('height', 300 + maxY + 'px'); drawRoutes(workflowID, stepID); buildStepList(steps); + if(params !== null) { + const elAction = document.querySelector(`div[class*="action-${params?.stepID}-${params?.action}-"]`); + let position = { pageX: 200, pageY: 300 }; + if(elAction !== null) { + const rect = elAction.getBoundingClientRect(); + position.pageX = Number.parseInt(rect?.left || 200); + position.pageY = Number.parseInt(rect?.bottom || 300); + } + showActionInfo(params, position); + } if(window.location.href.indexOf(`?a=workflow&workflowID=${workflowID}`) == -1) { window.history.pushState('', '', `?a=workflow&workflowID=${workflowID}`); @@ -2985,10 +3012,11 @@ } /** + * add a routing event to a specific workflow action * @param int stepID * @param string action * @param int workflowID - * @param string event + * @param object event, eg { eventID: 'event id', CSRFToken: 'token' } * @param closure callback * * @return array diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index e6961fb54..7844a42d2 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -378,9 +378,6 @@ public function createAction($stepID, $nextStepID, $action) } if ($action === 'sendback') { - if ($nextStepID !== 0) { //correct for potential copy issue. requestor is sometimes referred to by -1 in the editor - $nextStepID = 0; - } $required = json_encode(array ('required' => false)); } else { $required = ''; From 3d72f6712c966393e0a1f6d7ed9ebc3565175ca2 Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Tue, 13 Aug 2024 11:23:27 -0400 Subject: [PATCH 09/32] LEAF 4464 improve portal nav link text and order consistency --- LEAF_Request_Portal/admin/templates/menu.tpl | 10 +++++----- LEAF_Request_Portal/templates/menu.tpl | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/LEAF_Request_Portal/admin/templates/menu.tpl b/LEAF_Request_Portal/admin/templates/menu.tpl index cfe54a41d..b8facc6bd 100644 --- a/LEAF_Request_Portal/admin/templates/menu.tpl +++ b/LEAF_Request_Portal/admin/templates/menu.tpl @@ -14,7 +14,7 @@ @@ -99,11 +99,11 @@
  • -
      -
    • User:
      {$name}
    • -
    • Primary Admin:
    • +
    • User:
      {$name}
    • +
    • For help contact your
      Primary Admin:
    • Sign Out
  • @@ -227,7 +227,7 @@ $('li:has(ul)').on('mouseover click mouseleave focusout', function(e) { url: "../api/system/primaryadmin", dataType: "json", success: function(response) { - var emailString = response['Email'] != '' ? " - " + response['Email'] : ''; + const emailString = response['Email'] != '' ? ' -
    ' + response['Email'] + '' : ''; if(response["Fname"] !== undefined) { $('#primary-admin').html(response['Fname'] + " " + response['Lname'] + emailString); diff --git a/LEAF_Request_Portal/templates/menu.tpl b/LEAF_Request_Portal/templates/menu.tpl index a25570fa3..e7e6748d4 100644 --- a/LEAF_Request_Portal/templates/menu.tpl +++ b/LEAF_Request_Portal/templates/menu.tpl @@ -2,18 +2,21 @@
      {if $action != ''}
    • - Main Page + Home
    • {/if}
    • + {if $is_admin == true} +
    • Admin Panel
    • + {/if}
    • - {if $is_admin == true} -
    • Admin Panel
    • - {/if}
    From 695b24d8d6bf08e7db9cbd1b531d0621eedc11e4 Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Tue, 13 Aug 2024 15:29:53 -0400 Subject: [PATCH 10/32] LEAF 4464 address page title inconsistencies --- LEAF_Request_Portal/admin/index.php | 10 +++++----- LEAF_Request_Portal/admin/templates/main.tpl | 8 ++++---- LEAF_Request_Portal/index.php | 1 + LEAF_Request_Portal/report.php | 1 + LEAF_Request_Portal/templates/main.tpl | 4 ++-- .../templates/reports/LEAF_National_Distribution.tpl | 8 ++------ .../templates/reports/LEAF_Sitemap_Search.tpl | 5 +++-- .../templates/reports/LEAF_Timeline_Explorer.tpl | 1 + .../templates/reports/LEAF_import_data.tpl | 2 +- .../templates/reports/LEAF_mass_action.tpl | 7 ++++++- .../templates/reports/LEAF_sitemaps_template.tpl | 1 + .../templates/reports/LEAF_table_input_report.tpl | 1 + 12 files changed, 28 insertions(+), 21 deletions(-) diff --git a/LEAF_Request_Portal/admin/index.php b/LEAF_Request_Portal/admin/index.php index 93ec5b0bc..fff8b7213 100644 --- a/LEAF_Request_Portal/admin/index.php +++ b/LEAF_Request_Portal/admin/index.php @@ -320,7 +320,7 @@ function hasDevConsoleAccess($login, $oc_db) break; case 'mod_templates_reports': $main->assign('body', $t_form->fetch('mod_templates_reports.tpl')); - $tabText = 'Report Template Editor'; + $tabText = 'LEAF Programmer'; break; case 'mod_templates_email': @@ -347,7 +347,7 @@ function hasDevConsoleAccess($login, $oc_db) $main->assign('body', 'You require System Administrator level access to view this section.'); } - $tabText = 'System Administration'; + $tabText = 'Update Database'; break; case 'admin_sync_services': @@ -364,7 +364,7 @@ function hasDevConsoleAccess($login, $oc_db) $main->assign('body', 'You require System Administrator level access to view this section.'); } - $tabText = 'System Administration'; + $tabText = 'Sync Services'; break; case 'formLibrary': @@ -386,7 +386,7 @@ function hasDevConsoleAccess($login, $oc_db) $main->assign('body', 'You require System Administrator level access to view this section.'); } - $tabText = 'Form Library'; + $tabText = 'LEAF Library'; break; case 'importForm': @@ -522,7 +522,7 @@ function hasDevConsoleAccess($login, $oc_db) $t_form->assign('APIroot', '../api/'); $main->assign('body', $t_form->fetch(customTemplate('mod_account_updater.tpl'))); - $tabText = 'Account Updater'; + $tabText = 'New Account Updater'; break; case 'access_matrix': $t_form = new Smarty; diff --git a/LEAF_Request_Portal/admin/templates/main.tpl b/LEAF_Request_Portal/admin/templates/main.tpl index 755027128..d964c5105 100644 --- a/LEAF_Request_Portal/admin/templates/main.tpl +++ b/LEAF_Request_Portal/admin/templates/main.tpl @@ -8,9 +8,9 @@ {if $tabText != ''} - {$tabText} - {$title} | {$city} + {$tabText} - {$title}, {$city} {else} - {$title} | {$city} + {$title}, {$city} {/if} +

    Loading...

    @@ -29,7 +25,7 @@ li { var sites; $(function() { - + document.querySelector('title').innerText = 'National Distribution - '; $('#prepare').on('click', function() { $.ajax({ url: './utils/LEAF_exportStandardConfig.php', diff --git a/LEAF_Request_Portal/templates/reports/LEAF_Sitemap_Search.tpl b/LEAF_Request_Portal/templates/reports/LEAF_Sitemap_Search.tpl index 1ad25eb7e..f48ed746f 100644 --- a/LEAF_Request_Portal/templates/reports/LEAF_Sitemap_Search.tpl +++ b/LEAF_Request_Portal/templates/reports/LEAF_Sitemap_Search.tpl @@ -1032,8 +1032,9 @@ var clicked = false; var newRecordID = 0; var subordinateSites = []; $(async function() { - dialog = new dialogController('xhrDialog', 'xhr', 'loadIndicator', 'button_save', 'button_cancelchange'); - dialog_confirm = new dialogController('confirm_xhrDialog', 'confirm_xhr', 'confirm_loadIndicator', 'confirm_button_save', 'confirm_button_cancelchange'); + document.querySelector('title').innerText = 'Sitemap Search - '; + dialog = new dialogController('xhrDialog', 'xhr', 'loadIndicator', 'button_save', 'button_cancelchange'); + dialog_confirm = new dialogController('confirm_xhrDialog', 'confirm_xhr', 'confirm_loadIndicator', 'confirm_button_save', 'confirm_button_cancelchange'); dialog_message = new dialogController('genericDialog', 'genericDialogxhr', 'genericDialogloadIndicator', 'genericDialogbutton_save', 'genericDialogbutton_cancelchange'); leafSearch = new LeafFormSearchMultisite('searchContainer'); leafSearch.setJsPath(''); diff --git a/LEAF_Request_Portal/templates/reports/LEAF_Timeline_Explorer.tpl b/LEAF_Request_Portal/templates/reports/LEAF_Timeline_Explorer.tpl index 01ea1821f..abd9e546c 100644 --- a/LEAF_Request_Portal/templates/reports/LEAF_Timeline_Explorer.tpl +++ b/LEAF_Request_Portal/templates/reports/LEAF_Timeline_Explorer.tpl @@ -1202,6 +1202,7 @@ function start() { let numTotalCategories = Infinity; $(function() { + document.querySelector('title').innerText = 'Timeline Explorer - '; queryFirstDateSubmitted = $('#showDateSubmitted').val(); $.ajax({ diff --git a/LEAF_Request_Portal/templates/reports/LEAF_import_data.tpl b/LEAF_Request_Portal/templates/reports/LEAF_import_data.tpl index fbc382d21..9cbf83009 100644 --- a/LEAF_Request_Portal/templates/reports/LEAF_import_data.tpl +++ b/LEAF_Request_Portal/templates/reports/LEAF_import_data.tpl @@ -425,7 +425,7 @@ } $(function () { - + document.querySelector('title').innerText = 'Import Spreadsheet - '; $("body").prepend($("#modal-background")); var progressTimer; var progressbar = $( "#progressbar" ); diff --git a/LEAF_Request_Portal/templates/reports/LEAF_mass_action.tpl b/LEAF_Request_Portal/templates/reports/LEAF_mass_action.tpl index 474606dc9..56a210479 100644 --- a/LEAF_Request_Portal/templates/reports/LEAF_mass_action.tpl +++ b/LEAF_Request_Portal/templates/reports/LEAF_mass_action.tpl @@ -78,4 +78,9 @@
    - \ No newline at end of file + + \ No newline at end of file diff --git a/LEAF_Request_Portal/templates/reports/LEAF_sitemaps_template.tpl b/LEAF_Request_Portal/templates/reports/LEAF_sitemaps_template.tpl index b5b1a8a64..f0ee4c9a7 100644 --- a/LEAF_Request_Portal/templates/reports/LEAF_sitemaps_template.tpl +++ b/LEAF_Request_Portal/templates/reports/LEAF_sitemaps_template.tpl @@ -29,6 +29,7 @@ var sitemapOBJ; var dialog = new dialogController('xhrDialog', 'xhr', 'loadIndicator', 'button_save', 'button_cancelchange'); $(function() { + document.querySelector('title').innerText = 'Sitemap Editor - '; //load existing sitemap on page load parseSitemapJSON(); // hide alert diff --git a/LEAF_Request_Portal/templates/reports/LEAF_table_input_report.tpl b/LEAF_Request_Portal/templates/reports/LEAF_table_input_report.tpl index ff4be7068..fc22fa5e2 100644 --- a/LEAF_Request_Portal/templates/reports/LEAF_table_input_report.tpl +++ b/LEAF_Request_Portal/templates/reports/LEAF_table_input_report.tpl @@ -194,6 +194,7 @@ async function queryIndicator(catID='', indicatorID=0) { } function main() { + document.querySelector('title').innerText = 'Grid Splitter - '; //populate dropdown for forms $.ajax({ type: 'GET', From 008ee9c2815d34a7c6c2eb0fe5f79d390feea9c9 Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Wed, 14 Aug 2024 08:28:51 -0400 Subject: [PATCH 11/32] LEAF 4464 contrast fix on validation text --- LEAF_Request_Portal/templates/subindicators.tpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/LEAF_Request_Portal/templates/subindicators.tpl b/LEAF_Request_Portal/templates/subindicators.tpl index d370fb2dd..4f273abd7 100644 --- a/LEAF_Request_Portal/templates/subindicators.tpl +++ b/LEAF_Request_Portal/templates/subindicators.tpl @@ -397,7 +397,7 @@ - + - +

    Loading...

    diff --git a/app/Leaf/Logger/Formatters/FormFormatter.php b/app/Leaf/Logger/Formatters/FormFormatter.php index 2b9f6df93..372f965f2 100644 --- a/app/Leaf/Logger/Formatters/FormFormatter.php +++ b/app/Leaf/Logger/Formatters/FormFormatter.php @@ -23,7 +23,7 @@ class FormFormatter{ "variables"=> "indicatorID,".FormatOptions::READ_COLUMN_NAMES.",".FormatOptions::DISPLAY, "key"=>"indicatorID", "displayColumns"=>"description,name", - "loggableColumns"=>"name,format,description,default,parentID,required,is_sensitive,disabled,sort,html,htmlPrint" + "loggableColumns"=>"name,format,description,default,parentID,required,is_sensitive,disabled,sort,html,htmlPrint,conditions" ] ]; diff --git a/app/libs/css/leaf.css b/app/libs/css/leaf.css index 3e33cf126..7d8bcda0b 100644 --- a/app/libs/css/leaf.css +++ b/app/libs/css/leaf.css @@ -1,9 +1,9 @@ /*! - * Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com + * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2024 Fonticons, Inc. - */.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa,.fa-classic,.fa-sharp,.fas,.fa-solid,.far,.fa-regular,.fab,.fa-brands{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fas,.fa-classic,.fa-solid,.far,.fa-regular{font-family:"Font Awesome 6 Free"}.fab,.fa-brands{font-family:"Font Awesome 6 Brands"}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.0833333337em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.0714285718em;vertical-align:.0535714295em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.0416666682em;vertical-align:-0.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-0.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em)*-1);position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-color:var(--fa-border-color, #eee);border-radius:var(--fa-border-radius, 0.1em);border-style:var(--fa-border-style, solid);border-width:var(--fa-border-width, 0.08em);padding:var(--fa-border-padding, 0.2em 0.25em 0.15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, 0.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, 0.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 2s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, steps(8))}@media(prefers-reduced-motion: reduce){.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{animation-delay:-1ms;animation-duration:1ms;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-bounce{0%{transform:scale(1, 1) translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0)}57%{transform:scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em))}64%{transform:scale(1, 1) translateY(0)}100%{transform:scale(1, 1) translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, 0.4)}}@keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity, 0.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,100%{transform:rotate(0deg)}}@keyframes fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scale(-1, 1)}.fa-flip-vertical{transform:scale(1, -1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1, -1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle, 0))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0::before{content:"\30 "}.fa-1::before{content:"\31 "}.fa-2::before{content:"\32 "}.fa-3::before{content:"\33 "}.fa-4::before{content:"\34 "}.fa-5::before{content:"\35 "}.fa-6::before{content:"\36 "}.fa-7::before{content:"\37 "}.fa-8::before{content:"\38 "}.fa-9::before{content:"\39 "}.fa-fill-drip::before{content:""}.fa-arrows-to-circle::before{content:""}.fa-circle-chevron-right::before{content:""}.fa-chevron-circle-right::before{content:""}.fa-at::before{content:"\@"}.fa-trash-can::before{content:""}.fa-trash-alt::before{content:""}.fa-text-height::before{content:""}.fa-user-xmark::before{content:""}.fa-user-times::before{content:""}.fa-stethoscope::before{content:""}.fa-message::before{content:""}.fa-comment-alt::before{content:""}.fa-info::before{content:""}.fa-down-left-and-up-right-to-center::before{content:""}.fa-compress-alt::before{content:""}.fa-explosion::before{content:""}.fa-file-lines::before{content:""}.fa-file-alt::before{content:""}.fa-file-text::before{content:""}.fa-wave-square::before{content:""}.fa-ring::before{content:""}.fa-building-un::before{content:""}.fa-dice-three::before{content:""}.fa-calendar-days::before{content:""}.fa-calendar-alt::before{content:""}.fa-anchor-circle-check::before{content:""}.fa-building-circle-arrow-right::before{content:""}.fa-volleyball::before{content:""}.fa-volleyball-ball::before{content:""}.fa-arrows-up-to-line::before{content:""}.fa-sort-down::before{content:""}.fa-sort-desc::before{content:""}.fa-circle-minus::before{content:""}.fa-minus-circle::before{content:""}.fa-door-open::before{content:""}.fa-right-from-bracket::before{content:""}.fa-sign-out-alt::before{content:""}.fa-atom::before{content:""}.fa-soap::before{content:""}.fa-icons::before{content:""}.fa-heart-music-camera-bolt::before{content:""}.fa-microphone-lines-slash::before{content:""}.fa-microphone-alt-slash::before{content:""}.fa-bridge-circle-check::before{content:""}.fa-pump-medical::before{content:""}.fa-fingerprint::before{content:""}.fa-hand-point-right::before{content:""}.fa-magnifying-glass-location::before{content:""}.fa-search-location::before{content:""}.fa-forward-step::before{content:""}.fa-step-forward::before{content:""}.fa-face-smile-beam::before{content:""}.fa-smile-beam::before{content:""}.fa-flag-checkered::before{content:""}.fa-football::before{content:""}.fa-football-ball::before{content:""}.fa-school-circle-exclamation::before{content:""}.fa-crop::before{content:""}.fa-angles-down::before{content:""}.fa-angle-double-down::before{content:""}.fa-users-rectangle::before{content:""}.fa-people-roof::before{content:""}.fa-people-line::before{content:""}.fa-beer-mug-empty::before{content:""}.fa-beer::before{content:""}.fa-diagram-predecessor::before{content:""}.fa-arrow-up-long::before{content:""}.fa-long-arrow-up::before{content:""}.fa-fire-flame-simple::before{content:""}.fa-burn::before{content:""}.fa-person::before{content:""}.fa-male::before{content:""}.fa-laptop::before{content:""}.fa-file-csv::before{content:""}.fa-menorah::before{content:""}.fa-truck-plane::before{content:""}.fa-record-vinyl::before{content:""}.fa-face-grin-stars::before{content:""}.fa-grin-stars::before{content:""}.fa-bong::before{content:""}.fa-spaghetti-monster-flying::before{content:""}.fa-pastafarianism::before{content:""}.fa-arrow-down-up-across-line::before{content:""}.fa-spoon::before{content:""}.fa-utensil-spoon::before{content:""}.fa-jar-wheat::before{content:""}.fa-envelopes-bulk::before{content:""}.fa-mail-bulk::before{content:""}.fa-file-circle-exclamation::before{content:""}.fa-circle-h::before{content:""}.fa-hospital-symbol::before{content:""}.fa-pager::before{content:""}.fa-address-book::before{content:""}.fa-contact-book::before{content:""}.fa-strikethrough::before{content:""}.fa-k::before{content:"K"}.fa-landmark-flag::before{content:""}.fa-pencil::before{content:""}.fa-pencil-alt::before{content:""}.fa-backward::before{content:""}.fa-caret-right::before{content:""}.fa-comments::before{content:""}.fa-paste::before{content:""}.fa-file-clipboard::before{content:""}.fa-code-pull-request::before{content:""}.fa-clipboard-list::before{content:""}.fa-truck-ramp-box::before{content:""}.fa-truck-loading::before{content:""}.fa-user-check::before{content:""}.fa-vial-virus::before{content:""}.fa-sheet-plastic::before{content:""}.fa-blog::before{content:""}.fa-user-ninja::before{content:""}.fa-person-arrow-up-from-line::before{content:""}.fa-scroll-torah::before{content:""}.fa-torah::before{content:""}.fa-broom-ball::before{content:""}.fa-quidditch::before{content:""}.fa-quidditch-broom-ball::before{content:""}.fa-toggle-off::before{content:""}.fa-box-archive::before{content:""}.fa-archive::before{content:""}.fa-person-drowning::before{content:""}.fa-arrow-down-9-1::before{content:""}.fa-sort-numeric-desc::before{content:""}.fa-sort-numeric-down-alt::before{content:""}.fa-face-grin-tongue-squint::before{content:""}.fa-grin-tongue-squint::before{content:""}.fa-spray-can::before{content:""}.fa-truck-monster::before{content:""}.fa-w::before{content:"W"}.fa-earth-africa::before{content:""}.fa-globe-africa::before{content:""}.fa-rainbow::before{content:""}.fa-circle-notch::before{content:""}.fa-tablet-screen-button::before{content:""}.fa-tablet-alt::before{content:""}.fa-paw::before{content:""}.fa-cloud::before{content:""}.fa-trowel-bricks::before{content:""}.fa-face-flushed::before{content:""}.fa-flushed::before{content:""}.fa-hospital-user::before{content:""}.fa-tent-arrow-left-right::before{content:""}.fa-gavel::before{content:""}.fa-legal::before{content:""}.fa-binoculars::before{content:""}.fa-microphone-slash::before{content:""}.fa-box-tissue::before{content:""}.fa-motorcycle::before{content:""}.fa-bell-concierge::before{content:""}.fa-concierge-bell::before{content:""}.fa-pen-ruler::before{content:""}.fa-pencil-ruler::before{content:""}.fa-people-arrows::before{content:""}.fa-people-arrows-left-right::before{content:""}.fa-mars-and-venus-burst::before{content:""}.fa-square-caret-right::before{content:""}.fa-caret-square-right::before{content:""}.fa-scissors::before{content:""}.fa-cut::before{content:""}.fa-sun-plant-wilt::before{content:""}.fa-toilets-portable::before{content:""}.fa-hockey-puck::before{content:""}.fa-table::before{content:""}.fa-magnifying-glass-arrow-right::before{content:""}.fa-tachograph-digital::before{content:""}.fa-digital-tachograph::before{content:""}.fa-users-slash::before{content:""}.fa-clover::before{content:""}.fa-reply::before{content:""}.fa-mail-reply::before{content:""}.fa-star-and-crescent::before{content:""}.fa-house-fire::before{content:""}.fa-square-minus::before{content:""}.fa-minus-square::before{content:""}.fa-helicopter::before{content:""}.fa-compass::before{content:""}.fa-square-caret-down::before{content:""}.fa-caret-square-down::before{content:""}.fa-file-circle-question::before{content:""}.fa-laptop-code::before{content:""}.fa-swatchbook::before{content:""}.fa-prescription-bottle::before{content:""}.fa-bars::before{content:""}.fa-navicon::before{content:""}.fa-people-group::before{content:""}.fa-hourglass-end::before{content:""}.fa-hourglass-3::before{content:""}.fa-heart-crack::before{content:""}.fa-heart-broken::before{content:""}.fa-square-up-right::before{content:""}.fa-external-link-square-alt::before{content:""}.fa-face-kiss-beam::before{content:""}.fa-kiss-beam::before{content:""}.fa-film::before{content:""}.fa-ruler-horizontal::before{content:""}.fa-people-robbery::before{content:""}.fa-lightbulb::before{content:""}.fa-caret-left::before{content:""}.fa-circle-exclamation::before{content:""}.fa-exclamation-circle::before{content:""}.fa-school-circle-xmark::before{content:""}.fa-arrow-right-from-bracket::before{content:""}.fa-sign-out::before{content:""}.fa-circle-chevron-down::before{content:""}.fa-chevron-circle-down::before{content:""}.fa-unlock-keyhole::before{content:""}.fa-unlock-alt::before{content:""}.fa-cloud-showers-heavy::before{content:""}.fa-headphones-simple::before{content:""}.fa-headphones-alt::before{content:""}.fa-sitemap::before{content:""}.fa-circle-dollar-to-slot::before{content:""}.fa-donate::before{content:""}.fa-memory::before{content:""}.fa-road-spikes::before{content:""}.fa-fire-burner::before{content:""}.fa-flag::before{content:""}.fa-hanukiah::before{content:""}.fa-feather::before{content:""}.fa-volume-low::before{content:""}.fa-volume-down::before{content:""}.fa-comment-slash::before{content:""}.fa-cloud-sun-rain::before{content:""}.fa-compress::before{content:""}.fa-wheat-awn::before{content:""}.fa-wheat-alt::before{content:""}.fa-ankh::before{content:""}.fa-hands-holding-child::before{content:""}.fa-asterisk::before{content:"\*"}.fa-square-check::before{content:""}.fa-check-square::before{content:""}.fa-peseta-sign::before{content:""}.fa-heading::before{content:""}.fa-header::before{content:""}.fa-ghost::before{content:""}.fa-list::before{content:""}.fa-list-squares::before{content:""}.fa-square-phone-flip::before{content:""}.fa-phone-square-alt::before{content:""}.fa-cart-plus::before{content:""}.fa-gamepad::before{content:""}.fa-circle-dot::before{content:""}.fa-dot-circle::before{content:""}.fa-face-dizzy::before{content:""}.fa-dizzy::before{content:""}.fa-egg::before{content:""}.fa-house-medical-circle-xmark::before{content:""}.fa-campground::before{content:""}.fa-folder-plus::before{content:""}.fa-futbol::before{content:""}.fa-futbol-ball::before{content:""}.fa-soccer-ball::before{content:""}.fa-paintbrush::before{content:""}.fa-paint-brush::before{content:""}.fa-lock::before{content:""}.fa-gas-pump::before{content:""}.fa-hot-tub-person::before{content:""}.fa-hot-tub::before{content:""}.fa-map-location::before{content:""}.fa-map-marked::before{content:""}.fa-house-flood-water::before{content:""}.fa-tree::before{content:""}.fa-bridge-lock::before{content:""}.fa-sack-dollar::before{content:""}.fa-pen-to-square::before{content:""}.fa-edit::before{content:""}.fa-car-side::before{content:""}.fa-share-nodes::before{content:""}.fa-share-alt::before{content:""}.fa-heart-circle-minus::before{content:""}.fa-hourglass-half::before{content:""}.fa-hourglass-2::before{content:""}.fa-microscope::before{content:""}.fa-sink::before{content:""}.fa-bag-shopping::before{content:""}.fa-shopping-bag::before{content:""}.fa-arrow-down-z-a::before{content:""}.fa-sort-alpha-desc::before{content:""}.fa-sort-alpha-down-alt::before{content:""}.fa-mitten::before{content:""}.fa-person-rays::before{content:""}.fa-users::before{content:""}.fa-eye-slash::before{content:""}.fa-flask-vial::before{content:""}.fa-hand::before{content:""}.fa-hand-paper::before{content:""}.fa-om::before{content:""}.fa-worm::before{content:""}.fa-house-circle-xmark::before{content:""}.fa-plug::before{content:""}.fa-chevron-up::before{content:""}.fa-hand-spock::before{content:""}.fa-stopwatch::before{content:""}.fa-face-kiss::before{content:""}.fa-kiss::before{content:""}.fa-bridge-circle-xmark::before{content:""}.fa-face-grin-tongue::before{content:""}.fa-grin-tongue::before{content:""}.fa-chess-bishop::before{content:""}.fa-face-grin-wink::before{content:""}.fa-grin-wink::before{content:""}.fa-ear-deaf::before{content:""}.fa-deaf::before{content:""}.fa-deafness::before{content:""}.fa-hard-of-hearing::before{content:""}.fa-road-circle-check::before{content:""}.fa-dice-five::before{content:""}.fa-square-rss::before{content:""}.fa-rss-square::before{content:""}.fa-land-mine-on::before{content:""}.fa-i-cursor::before{content:""}.fa-stamp::before{content:""}.fa-stairs::before{content:""}.fa-i::before{content:"I"}.fa-hryvnia-sign::before{content:""}.fa-hryvnia::before{content:""}.fa-pills::before{content:""}.fa-face-grin-wide::before{content:""}.fa-grin-alt::before{content:""}.fa-tooth::before{content:""}.fa-v::before{content:"V"}.fa-bangladeshi-taka-sign::before{content:""}.fa-bicycle::before{content:""}.fa-staff-snake::before{content:""}.fa-rod-asclepius::before{content:""}.fa-rod-snake::before{content:""}.fa-staff-aesculapius::before{content:""}.fa-head-side-cough-slash::before{content:""}.fa-truck-medical::before{content:""}.fa-ambulance::before{content:""}.fa-wheat-awn-circle-exclamation::before{content:""}.fa-snowman::before{content:""}.fa-mortar-pestle::before{content:""}.fa-road-barrier::before{content:""}.fa-school::before{content:""}.fa-igloo::before{content:""}.fa-joint::before{content:""}.fa-angle-right::before{content:""}.fa-horse::before{content:""}.fa-q::before{content:"Q"}.fa-g::before{content:"G"}.fa-notes-medical::before{content:""}.fa-temperature-half::before{content:""}.fa-temperature-2::before{content:""}.fa-thermometer-2::before{content:""}.fa-thermometer-half::before{content:""}.fa-dong-sign::before{content:""}.fa-capsules::before{content:""}.fa-poo-storm::before{content:""}.fa-poo-bolt::before{content:""}.fa-face-frown-open::before{content:""}.fa-frown-open::before{content:""}.fa-hand-point-up::before{content:""}.fa-money-bill::before{content:""}.fa-bookmark::before{content:""}.fa-align-justify::before{content:""}.fa-umbrella-beach::before{content:""}.fa-helmet-un::before{content:""}.fa-bullseye::before{content:""}.fa-bacon::before{content:""}.fa-hand-point-down::before{content:""}.fa-arrow-up-from-bracket::before{content:""}.fa-folder::before{content:""}.fa-folder-blank::before{content:""}.fa-file-waveform::before{content:""}.fa-file-medical-alt::before{content:""}.fa-radiation::before{content:""}.fa-chart-simple::before{content:""}.fa-mars-stroke::before{content:""}.fa-vial::before{content:""}.fa-gauge::before{content:""}.fa-dashboard::before{content:""}.fa-gauge-med::before{content:""}.fa-tachometer-alt-average::before{content:""}.fa-wand-magic-sparkles::before{content:""}.fa-magic-wand-sparkles::before{content:""}.fa-e::before{content:"E"}.fa-pen-clip::before{content:""}.fa-pen-alt::before{content:""}.fa-bridge-circle-exclamation::before{content:""}.fa-user::before{content:""}.fa-school-circle-check::before{content:""}.fa-dumpster::before{content:""}.fa-van-shuttle::before{content:""}.fa-shuttle-van::before{content:""}.fa-building-user::before{content:""}.fa-square-caret-left::before{content:""}.fa-caret-square-left::before{content:""}.fa-highlighter::before{content:""}.fa-key::before{content:""}.fa-bullhorn::before{content:""}.fa-globe::before{content:""}.fa-synagogue::before{content:""}.fa-person-half-dress::before{content:""}.fa-road-bridge::before{content:""}.fa-location-arrow::before{content:""}.fa-c::before{content:"C"}.fa-tablet-button::before{content:""}.fa-building-lock::before{content:""}.fa-pizza-slice::before{content:""}.fa-money-bill-wave::before{content:""}.fa-chart-area::before{content:""}.fa-area-chart::before{content:""}.fa-house-flag::before{content:""}.fa-person-circle-minus::before{content:""}.fa-ban::before{content:""}.fa-cancel::before{content:""}.fa-camera-rotate::before{content:""}.fa-spray-can-sparkles::before{content:""}.fa-air-freshener::before{content:""}.fa-star::before{content:""}.fa-repeat::before{content:""}.fa-cross::before{content:""}.fa-box::before{content:""}.fa-venus-mars::before{content:""}.fa-arrow-pointer::before{content:""}.fa-mouse-pointer::before{content:""}.fa-maximize::before{content:""}.fa-expand-arrows-alt::before{content:""}.fa-charging-station::before{content:""}.fa-shapes::before{content:""}.fa-triangle-circle-square::before{content:""}.fa-shuffle::before{content:""}.fa-random::before{content:""}.fa-person-running::before{content:""}.fa-running::before{content:""}.fa-mobile-retro::before{content:""}.fa-grip-lines-vertical::before{content:""}.fa-spider::before{content:""}.fa-hands-bound::before{content:""}.fa-file-invoice-dollar::before{content:""}.fa-plane-circle-exclamation::before{content:""}.fa-x-ray::before{content:""}.fa-spell-check::before{content:""}.fa-slash::before{content:""}.fa-computer-mouse::before{content:""}.fa-mouse::before{content:""}.fa-arrow-right-to-bracket::before{content:""}.fa-sign-in::before{content:""}.fa-shop-slash::before{content:""}.fa-store-alt-slash::before{content:""}.fa-server::before{content:""}.fa-virus-covid-slash::before{content:""}.fa-shop-lock::before{content:""}.fa-hourglass-start::before{content:""}.fa-hourglass-1::before{content:""}.fa-blender-phone::before{content:""}.fa-building-wheat::before{content:""}.fa-person-breastfeeding::before{content:""}.fa-right-to-bracket::before{content:""}.fa-sign-in-alt::before{content:""}.fa-venus::before{content:""}.fa-passport::before{content:""}.fa-heart-pulse::before{content:""}.fa-heartbeat::before{content:""}.fa-people-carry-box::before{content:""}.fa-people-carry::before{content:""}.fa-temperature-high::before{content:""}.fa-microchip::before{content:""}.fa-crown::before{content:""}.fa-weight-hanging::before{content:""}.fa-xmarks-lines::before{content:""}.fa-file-prescription::before{content:""}.fa-weight-scale::before{content:""}.fa-weight::before{content:""}.fa-user-group::before{content:""}.fa-user-friends::before{content:""}.fa-arrow-up-a-z::before{content:""}.fa-sort-alpha-up::before{content:""}.fa-chess-knight::before{content:""}.fa-face-laugh-squint::before{content:""}.fa-laugh-squint::before{content:""}.fa-wheelchair::before{content:""}.fa-circle-arrow-up::before{content:""}.fa-arrow-circle-up::before{content:""}.fa-toggle-on::before{content:""}.fa-person-walking::before{content:""}.fa-walking::before{content:""}.fa-l::before{content:"L"}.fa-fire::before{content:""}.fa-bed-pulse::before{content:""}.fa-procedures::before{content:""}.fa-shuttle-space::before{content:""}.fa-space-shuttle::before{content:""}.fa-face-laugh::before{content:""}.fa-laugh::before{content:""}.fa-folder-open::before{content:""}.fa-heart-circle-plus::before{content:""}.fa-code-fork::before{content:""}.fa-city::before{content:""}.fa-microphone-lines::before{content:""}.fa-microphone-alt::before{content:""}.fa-pepper-hot::before{content:""}.fa-unlock::before{content:""}.fa-colon-sign::before{content:""}.fa-headset::before{content:""}.fa-store-slash::before{content:""}.fa-road-circle-xmark::before{content:""}.fa-user-minus::before{content:""}.fa-mars-stroke-up::before{content:""}.fa-mars-stroke-v::before{content:""}.fa-champagne-glasses::before{content:""}.fa-glass-cheers::before{content:""}.fa-clipboard::before{content:""}.fa-house-circle-exclamation::before{content:""}.fa-file-arrow-up::before{content:""}.fa-file-upload::before{content:""}.fa-wifi::before{content:""}.fa-wifi-3::before{content:""}.fa-wifi-strong::before{content:""}.fa-bath::before{content:""}.fa-bathtub::before{content:""}.fa-underline::before{content:""}.fa-user-pen::before{content:""}.fa-user-edit::before{content:""}.fa-signature::before{content:""}.fa-stroopwafel::before{content:""}.fa-bold::before{content:""}.fa-anchor-lock::before{content:""}.fa-building-ngo::before{content:""}.fa-manat-sign::before{content:""}.fa-not-equal::before{content:""}.fa-border-top-left::before{content:""}.fa-border-style::before{content:""}.fa-map-location-dot::before{content:""}.fa-map-marked-alt::before{content:""}.fa-jedi::before{content:""}.fa-square-poll-vertical::before{content:""}.fa-poll::before{content:""}.fa-mug-hot::before{content:""}.fa-car-battery::before{content:""}.fa-battery-car::before{content:""}.fa-gift::before{content:""}.fa-dice-two::before{content:""}.fa-chess-queen::before{content:""}.fa-glasses::before{content:""}.fa-chess-board::before{content:""}.fa-building-circle-check::before{content:""}.fa-person-chalkboard::before{content:""}.fa-mars-stroke-right::before{content:""}.fa-mars-stroke-h::before{content:""}.fa-hand-back-fist::before{content:""}.fa-hand-rock::before{content:""}.fa-square-caret-up::before{content:""}.fa-caret-square-up::before{content:""}.fa-cloud-showers-water::before{content:""}.fa-chart-bar::before{content:""}.fa-bar-chart::before{content:""}.fa-hands-bubbles::before{content:""}.fa-hands-wash::before{content:""}.fa-less-than-equal::before{content:""}.fa-train::before{content:""}.fa-eye-low-vision::before{content:""}.fa-low-vision::before{content:""}.fa-crow::before{content:""}.fa-sailboat::before{content:""}.fa-window-restore::before{content:""}.fa-square-plus::before{content:""}.fa-plus-square::before{content:""}.fa-torii-gate::before{content:""}.fa-frog::before{content:""}.fa-bucket::before{content:""}.fa-image::before{content:""}.fa-microphone::before{content:""}.fa-cow::before{content:""}.fa-caret-up::before{content:""}.fa-screwdriver::before{content:""}.fa-folder-closed::before{content:""}.fa-house-tsunami::before{content:""}.fa-square-nfi::before{content:""}.fa-arrow-up-from-ground-water::before{content:""}.fa-martini-glass::before{content:""}.fa-glass-martini-alt::before{content:""}.fa-rotate-left::before{content:""}.fa-rotate-back::before{content:""}.fa-rotate-backward::before{content:""}.fa-undo-alt::before{content:""}.fa-table-columns::before{content:""}.fa-columns::before{content:""}.fa-lemon::before{content:""}.fa-head-side-mask::before{content:""}.fa-handshake::before{content:""}.fa-gem::before{content:""}.fa-dolly::before{content:""}.fa-dolly-box::before{content:""}.fa-smoking::before{content:""}.fa-minimize::before{content:""}.fa-compress-arrows-alt::before{content:""}.fa-monument::before{content:""}.fa-snowplow::before{content:""}.fa-angles-right::before{content:""}.fa-angle-double-right::before{content:""}.fa-cannabis::before{content:""}.fa-circle-play::before{content:""}.fa-play-circle::before{content:""}.fa-tablets::before{content:""}.fa-ethernet::before{content:""}.fa-euro-sign::before{content:""}.fa-eur::before{content:""}.fa-euro::before{content:""}.fa-chair::before{content:""}.fa-circle-check::before{content:""}.fa-check-circle::before{content:""}.fa-circle-stop::before{content:""}.fa-stop-circle::before{content:""}.fa-compass-drafting::before{content:""}.fa-drafting-compass::before{content:""}.fa-plate-wheat::before{content:""}.fa-icicles::before{content:""}.fa-person-shelter::before{content:""}.fa-neuter::before{content:""}.fa-id-badge::before{content:""}.fa-marker::before{content:""}.fa-face-laugh-beam::before{content:""}.fa-laugh-beam::before{content:""}.fa-helicopter-symbol::before{content:""}.fa-universal-access::before{content:""}.fa-circle-chevron-up::before{content:""}.fa-chevron-circle-up::before{content:""}.fa-lari-sign::before{content:""}.fa-volcano::before{content:""}.fa-person-walking-dashed-line-arrow-right::before{content:""}.fa-sterling-sign::before{content:""}.fa-gbp::before{content:""}.fa-pound-sign::before{content:""}.fa-viruses::before{content:""}.fa-square-person-confined::before{content:""}.fa-user-tie::before{content:""}.fa-arrow-down-long::before{content:""}.fa-long-arrow-down::before{content:""}.fa-tent-arrow-down-to-line::before{content:""}.fa-certificate::before{content:""}.fa-reply-all::before{content:""}.fa-mail-reply-all::before{content:""}.fa-suitcase::before{content:""}.fa-person-skating::before{content:""}.fa-skating::before{content:""}.fa-filter-circle-dollar::before{content:""}.fa-funnel-dollar::before{content:""}.fa-camera-retro::before{content:""}.fa-circle-arrow-down::before{content:""}.fa-arrow-circle-down::before{content:""}.fa-file-import::before{content:""}.fa-arrow-right-to-file::before{content:""}.fa-square-arrow-up-right::before{content:""}.fa-external-link-square::before{content:""}.fa-box-open::before{content:""}.fa-scroll::before{content:""}.fa-spa::before{content:""}.fa-location-pin-lock::before{content:""}.fa-pause::before{content:""}.fa-hill-avalanche::before{content:""}.fa-temperature-empty::before{content:""}.fa-temperature-0::before{content:""}.fa-thermometer-0::before{content:""}.fa-thermometer-empty::before{content:""}.fa-bomb::before{content:""}.fa-registered::before{content:""}.fa-address-card::before{content:""}.fa-contact-card::before{content:""}.fa-vcard::before{content:""}.fa-scale-unbalanced-flip::before{content:""}.fa-balance-scale-right::before{content:""}.fa-subscript::before{content:""}.fa-diamond-turn-right::before{content:""}.fa-directions::before{content:""}.fa-burst::before{content:""}.fa-house-laptop::before{content:""}.fa-laptop-house::before{content:""}.fa-face-tired::before{content:""}.fa-tired::before{content:""}.fa-money-bills::before{content:""}.fa-smog::before{content:""}.fa-crutch::before{content:""}.fa-cloud-arrow-up::before{content:""}.fa-cloud-upload::before{content:""}.fa-cloud-upload-alt::before{content:""}.fa-palette::before{content:""}.fa-arrows-turn-right::before{content:""}.fa-vest::before{content:""}.fa-ferry::before{content:""}.fa-arrows-down-to-people::before{content:""}.fa-seedling::before{content:""}.fa-sprout::before{content:""}.fa-left-right::before{content:""}.fa-arrows-alt-h::before{content:""}.fa-boxes-packing::before{content:""}.fa-circle-arrow-left::before{content:""}.fa-arrow-circle-left::before{content:""}.fa-group-arrows-rotate::before{content:""}.fa-bowl-food::before{content:""}.fa-candy-cane::before{content:""}.fa-arrow-down-wide-short::before{content:""}.fa-sort-amount-asc::before{content:""}.fa-sort-amount-down::before{content:""}.fa-cloud-bolt::before{content:""}.fa-thunderstorm::before{content:""}.fa-text-slash::before{content:""}.fa-remove-format::before{content:""}.fa-face-smile-wink::before{content:""}.fa-smile-wink::before{content:""}.fa-file-word::before{content:""}.fa-file-powerpoint::before{content:""}.fa-arrows-left-right::before{content:""}.fa-arrows-h::before{content:""}.fa-house-lock::before{content:""}.fa-cloud-arrow-down::before{content:""}.fa-cloud-download::before{content:""}.fa-cloud-download-alt::before{content:""}.fa-children::before{content:""}.fa-chalkboard::before{content:""}.fa-blackboard::before{content:""}.fa-user-large-slash::before{content:""}.fa-user-alt-slash::before{content:""}.fa-envelope-open::before{content:""}.fa-handshake-simple-slash::before{content:""}.fa-handshake-alt-slash::before{content:""}.fa-mattress-pillow::before{content:""}.fa-guarani-sign::before{content:""}.fa-arrows-rotate::before{content:""}.fa-refresh::before{content:""}.fa-sync::before{content:""}.fa-fire-extinguisher::before{content:""}.fa-cruzeiro-sign::before{content:""}.fa-greater-than-equal::before{content:""}.fa-shield-halved::before{content:""}.fa-shield-alt::before{content:""}.fa-book-atlas::before{content:""}.fa-atlas::before{content:""}.fa-virus::before{content:""}.fa-envelope-circle-check::before{content:""}.fa-layer-group::before{content:""}.fa-arrows-to-dot::before{content:""}.fa-archway::before{content:""}.fa-heart-circle-check::before{content:""}.fa-house-chimney-crack::before{content:""}.fa-house-damage::before{content:""}.fa-file-zipper::before{content:""}.fa-file-archive::before{content:""}.fa-square::before{content:""}.fa-martini-glass-empty::before{content:""}.fa-glass-martini::before{content:""}.fa-couch::before{content:""}.fa-cedi-sign::before{content:""}.fa-italic::before{content:""}.fa-table-cells-column-lock::before{content:""}.fa-church::before{content:""}.fa-comments-dollar::before{content:""}.fa-democrat::before{content:""}.fa-z::before{content:"Z"}.fa-person-skiing::before{content:""}.fa-skiing::before{content:""}.fa-road-lock::before{content:""}.fa-a::before{content:"A"}.fa-temperature-arrow-down::before{content:""}.fa-temperature-down::before{content:""}.fa-feather-pointed::before{content:""}.fa-feather-alt::before{content:""}.fa-p::before{content:"P"}.fa-snowflake::before{content:""}.fa-newspaper::before{content:""}.fa-rectangle-ad::before{content:""}.fa-ad::before{content:""}.fa-circle-arrow-right::before{content:""}.fa-arrow-circle-right::before{content:""}.fa-filter-circle-xmark::before{content:""}.fa-locust::before{content:""}.fa-sort::before{content:""}.fa-unsorted::before{content:""}.fa-list-ol::before{content:""}.fa-list-1-2::before{content:""}.fa-list-numeric::before{content:""}.fa-person-dress-burst::before{content:""}.fa-money-check-dollar::before{content:""}.fa-money-check-alt::before{content:""}.fa-vector-square::before{content:""}.fa-bread-slice::before{content:""}.fa-language::before{content:""}.fa-face-kiss-wink-heart::before{content:""}.fa-kiss-wink-heart::before{content:""}.fa-filter::before{content:""}.fa-question::before{content:"\?"}.fa-file-signature::before{content:""}.fa-up-down-left-right::before{content:""}.fa-arrows-alt::before{content:""}.fa-house-chimney-user::before{content:""}.fa-hand-holding-heart::before{content:""}.fa-puzzle-piece::before{content:""}.fa-money-check::before{content:""}.fa-star-half-stroke::before{content:""}.fa-star-half-alt::before{content:""}.fa-code::before{content:""}.fa-whiskey-glass::before{content:""}.fa-glass-whiskey::before{content:""}.fa-building-circle-exclamation::before{content:""}.fa-magnifying-glass-chart::before{content:""}.fa-arrow-up-right-from-square::before{content:""}.fa-external-link::before{content:""}.fa-cubes-stacked::before{content:""}.fa-won-sign::before{content:""}.fa-krw::before{content:""}.fa-won::before{content:""}.fa-virus-covid::before{content:""}.fa-austral-sign::before{content:""}.fa-f::before{content:"F"}.fa-leaf::before{content:""}.fa-road::before{content:""}.fa-taxi::before{content:""}.fa-cab::before{content:""}.fa-person-circle-plus::before{content:""}.fa-chart-pie::before{content:""}.fa-pie-chart::before{content:""}.fa-bolt-lightning::before{content:""}.fa-sack-xmark::before{content:""}.fa-file-excel::before{content:""}.fa-file-contract::before{content:""}.fa-fish-fins::before{content:""}.fa-building-flag::before{content:""}.fa-face-grin-beam::before{content:""}.fa-grin-beam::before{content:""}.fa-object-ungroup::before{content:""}.fa-poop::before{content:""}.fa-location-pin::before{content:""}.fa-map-marker::before{content:""}.fa-kaaba::before{content:""}.fa-toilet-paper::before{content:""}.fa-helmet-safety::before{content:""}.fa-hard-hat::before{content:""}.fa-hat-hard::before{content:""}.fa-eject::before{content:""}.fa-circle-right::before{content:""}.fa-arrow-alt-circle-right::before{content:""}.fa-plane-circle-check::before{content:""}.fa-face-rolling-eyes::before{content:""}.fa-meh-rolling-eyes::before{content:""}.fa-object-group::before{content:""}.fa-chart-line::before{content:""}.fa-line-chart::before{content:""}.fa-mask-ventilator::before{content:""}.fa-arrow-right::before{content:""}.fa-signs-post::before{content:""}.fa-map-signs::before{content:""}.fa-cash-register::before{content:""}.fa-person-circle-question::before{content:""}.fa-h::before{content:"H"}.fa-tarp::before{content:""}.fa-screwdriver-wrench::before{content:""}.fa-tools::before{content:""}.fa-arrows-to-eye::before{content:""}.fa-plug-circle-bolt::before{content:""}.fa-heart::before{content:""}.fa-mars-and-venus::before{content:""}.fa-house-user::before{content:""}.fa-home-user::before{content:""}.fa-dumpster-fire::before{content:""}.fa-house-crack::before{content:""}.fa-martini-glass-citrus::before{content:""}.fa-cocktail::before{content:""}.fa-face-surprise::before{content:""}.fa-surprise::before{content:""}.fa-bottle-water::before{content:""}.fa-circle-pause::before{content:""}.fa-pause-circle::before{content:""}.fa-toilet-paper-slash::before{content:""}.fa-apple-whole::before{content:""}.fa-apple-alt::before{content:""}.fa-kitchen-set::before{content:""}.fa-r::before{content:"R"}.fa-temperature-quarter::before{content:""}.fa-temperature-1::before{content:""}.fa-thermometer-1::before{content:""}.fa-thermometer-quarter::before{content:""}.fa-cube::before{content:""}.fa-bitcoin-sign::before{content:""}.fa-shield-dog::before{content:""}.fa-solar-panel::before{content:""}.fa-lock-open::before{content:""}.fa-elevator::before{content:""}.fa-money-bill-transfer::before{content:""}.fa-money-bill-trend-up::before{content:""}.fa-house-flood-water-circle-arrow-right::before{content:""}.fa-square-poll-horizontal::before{content:""}.fa-poll-h::before{content:""}.fa-circle::before{content:""}.fa-backward-fast::before{content:""}.fa-fast-backward::before{content:""}.fa-recycle::before{content:""}.fa-user-astronaut::before{content:""}.fa-plane-slash::before{content:""}.fa-trademark::before{content:""}.fa-basketball::before{content:""}.fa-basketball-ball::before{content:""}.fa-satellite-dish::before{content:""}.fa-circle-up::before{content:""}.fa-arrow-alt-circle-up::before{content:""}.fa-mobile-screen-button::before{content:""}.fa-mobile-alt::before{content:""}.fa-volume-high::before{content:""}.fa-volume-up::before{content:""}.fa-users-rays::before{content:""}.fa-wallet::before{content:""}.fa-clipboard-check::before{content:""}.fa-file-audio::before{content:""}.fa-burger::before{content:""}.fa-hamburger::before{content:""}.fa-wrench::before{content:""}.fa-bugs::before{content:""}.fa-rupee-sign::before{content:""}.fa-rupee::before{content:""}.fa-file-image::before{content:""}.fa-circle-question::before{content:""}.fa-question-circle::before{content:""}.fa-plane-departure::before{content:""}.fa-handshake-slash::before{content:""}.fa-book-bookmark::before{content:""}.fa-code-branch::before{content:""}.fa-hat-cowboy::before{content:""}.fa-bridge::before{content:""}.fa-phone-flip::before{content:""}.fa-phone-alt::before{content:""}.fa-truck-front::before{content:""}.fa-cat::before{content:""}.fa-anchor-circle-exclamation::before{content:""}.fa-truck-field::before{content:""}.fa-route::before{content:""}.fa-clipboard-question::before{content:""}.fa-panorama::before{content:""}.fa-comment-medical::before{content:""}.fa-teeth-open::before{content:""}.fa-file-circle-minus::before{content:""}.fa-tags::before{content:""}.fa-wine-glass::before{content:""}.fa-forward-fast::before{content:""}.fa-fast-forward::before{content:""}.fa-face-meh-blank::before{content:""}.fa-meh-blank::before{content:""}.fa-square-parking::before{content:""}.fa-parking::before{content:""}.fa-house-signal::before{content:""}.fa-bars-progress::before{content:""}.fa-tasks-alt::before{content:""}.fa-faucet-drip::before{content:""}.fa-cart-flatbed::before{content:""}.fa-dolly-flatbed::before{content:""}.fa-ban-smoking::before{content:""}.fa-smoking-ban::before{content:""}.fa-terminal::before{content:""}.fa-mobile-button::before{content:""}.fa-house-medical-flag::before{content:""}.fa-basket-shopping::before{content:""}.fa-shopping-basket::before{content:""}.fa-tape::before{content:""}.fa-bus-simple::before{content:""}.fa-bus-alt::before{content:""}.fa-eye::before{content:""}.fa-face-sad-cry::before{content:""}.fa-sad-cry::before{content:""}.fa-audio-description::before{content:""}.fa-person-military-to-person::before{content:""}.fa-file-shield::before{content:""}.fa-user-slash::before{content:""}.fa-pen::before{content:""}.fa-tower-observation::before{content:""}.fa-file-code::before{content:""}.fa-signal::before{content:""}.fa-signal-5::before{content:""}.fa-signal-perfect::before{content:""}.fa-bus::before{content:""}.fa-heart-circle-xmark::before{content:""}.fa-house-chimney::before{content:""}.fa-home-lg::before{content:""}.fa-window-maximize::before{content:""}.fa-face-frown::before{content:""}.fa-frown::before{content:""}.fa-prescription::before{content:""}.fa-shop::before{content:""}.fa-store-alt::before{content:""}.fa-floppy-disk::before{content:""}.fa-save::before{content:""}.fa-vihara::before{content:""}.fa-scale-unbalanced::before{content:""}.fa-balance-scale-left::before{content:""}.fa-sort-up::before{content:""}.fa-sort-asc::before{content:""}.fa-comment-dots::before{content:""}.fa-commenting::before{content:""}.fa-plant-wilt::before{content:""}.fa-diamond::before{content:""}.fa-face-grin-squint::before{content:""}.fa-grin-squint::before{content:""}.fa-hand-holding-dollar::before{content:""}.fa-hand-holding-usd::before{content:""}.fa-bacterium::before{content:""}.fa-hand-pointer::before{content:""}.fa-drum-steelpan::before{content:""}.fa-hand-scissors::before{content:""}.fa-hands-praying::before{content:""}.fa-praying-hands::before{content:""}.fa-arrow-rotate-right::before{content:""}.fa-arrow-right-rotate::before{content:""}.fa-arrow-rotate-forward::before{content:""}.fa-redo::before{content:""}.fa-biohazard::before{content:""}.fa-location-crosshairs::before{content:""}.fa-location::before{content:""}.fa-mars-double::before{content:""}.fa-child-dress::before{content:""}.fa-users-between-lines::before{content:""}.fa-lungs-virus::before{content:""}.fa-face-grin-tears::before{content:""}.fa-grin-tears::before{content:""}.fa-phone::before{content:""}.fa-calendar-xmark::before{content:""}.fa-calendar-times::before{content:""}.fa-child-reaching::before{content:""}.fa-head-side-virus::before{content:""}.fa-user-gear::before{content:""}.fa-user-cog::before{content:""}.fa-arrow-up-1-9::before{content:""}.fa-sort-numeric-up::before{content:""}.fa-door-closed::before{content:""}.fa-shield-virus::before{content:""}.fa-dice-six::before{content:""}.fa-mosquito-net::before{content:""}.fa-bridge-water::before{content:""}.fa-person-booth::before{content:""}.fa-text-width::before{content:""}.fa-hat-wizard::before{content:""}.fa-pen-fancy::before{content:""}.fa-person-digging::before{content:""}.fa-digging::before{content:""}.fa-trash::before{content:""}.fa-gauge-simple::before{content:""}.fa-gauge-simple-med::before{content:""}.fa-tachometer-average::before{content:""}.fa-book-medical::before{content:""}.fa-poo::before{content:""}.fa-quote-right::before{content:""}.fa-quote-right-alt::before{content:""}.fa-shirt::before{content:""}.fa-t-shirt::before{content:""}.fa-tshirt::before{content:""}.fa-cubes::before{content:""}.fa-divide::before{content:""}.fa-tenge-sign::before{content:""}.fa-tenge::before{content:""}.fa-headphones::before{content:""}.fa-hands-holding::before{content:""}.fa-hands-clapping::before{content:""}.fa-republican::before{content:""}.fa-arrow-left::before{content:""}.fa-person-circle-xmark::before{content:""}.fa-ruler::before{content:""}.fa-align-left::before{content:""}.fa-dice-d6::before{content:""}.fa-restroom::before{content:""}.fa-j::before{content:"J"}.fa-users-viewfinder::before{content:""}.fa-file-video::before{content:""}.fa-up-right-from-square::before{content:""}.fa-external-link-alt::before{content:""}.fa-table-cells::before{content:""}.fa-th::before{content:""}.fa-file-pdf::before{content:""}.fa-book-bible::before{content:""}.fa-bible::before{content:""}.fa-o::before{content:"O"}.fa-suitcase-medical::before{content:""}.fa-medkit::before{content:""}.fa-user-secret::before{content:""}.fa-otter::before{content:""}.fa-person-dress::before{content:""}.fa-female::before{content:""}.fa-comment-dollar::before{content:""}.fa-business-time::before{content:""}.fa-briefcase-clock::before{content:""}.fa-table-cells-large::before{content:""}.fa-th-large::before{content:""}.fa-book-tanakh::before{content:""}.fa-tanakh::before{content:""}.fa-phone-volume::before{content:""}.fa-volume-control-phone::before{content:""}.fa-hat-cowboy-side::before{content:""}.fa-clipboard-user::before{content:""}.fa-child::before{content:""}.fa-lira-sign::before{content:""}.fa-satellite::before{content:""}.fa-plane-lock::before{content:""}.fa-tag::before{content:""}.fa-comment::before{content:""}.fa-cake-candles::before{content:""}.fa-birthday-cake::before{content:""}.fa-cake::before{content:""}.fa-envelope::before{content:""}.fa-angles-up::before{content:""}.fa-angle-double-up::before{content:""}.fa-paperclip::before{content:""}.fa-arrow-right-to-city::before{content:""}.fa-ribbon::before{content:""}.fa-lungs::before{content:""}.fa-arrow-up-9-1::before{content:""}.fa-sort-numeric-up-alt::before{content:""}.fa-litecoin-sign::before{content:""}.fa-border-none::before{content:""}.fa-circle-nodes::before{content:""}.fa-parachute-box::before{content:""}.fa-indent::before{content:""}.fa-truck-field-un::before{content:""}.fa-hourglass::before{content:""}.fa-hourglass-empty::before{content:""}.fa-mountain::before{content:""}.fa-user-doctor::before{content:""}.fa-user-md::before{content:""}.fa-circle-info::before{content:""}.fa-info-circle::before{content:""}.fa-cloud-meatball::before{content:""}.fa-camera::before{content:""}.fa-camera-alt::before{content:""}.fa-square-virus::before{content:""}.fa-meteor::before{content:""}.fa-car-on::before{content:""}.fa-sleigh::before{content:""}.fa-arrow-down-1-9::before{content:""}.fa-sort-numeric-asc::before{content:""}.fa-sort-numeric-down::before{content:""}.fa-hand-holding-droplet::before{content:""}.fa-hand-holding-water::before{content:""}.fa-water::before{content:""}.fa-calendar-check::before{content:""}.fa-braille::before{content:""}.fa-prescription-bottle-medical::before{content:""}.fa-prescription-bottle-alt::before{content:""}.fa-landmark::before{content:""}.fa-truck::before{content:""}.fa-crosshairs::before{content:""}.fa-person-cane::before{content:""}.fa-tent::before{content:""}.fa-vest-patches::before{content:""}.fa-check-double::before{content:""}.fa-arrow-down-a-z::before{content:""}.fa-sort-alpha-asc::before{content:""}.fa-sort-alpha-down::before{content:""}.fa-money-bill-wheat::before{content:""}.fa-cookie::before{content:""}.fa-arrow-rotate-left::before{content:""}.fa-arrow-left-rotate::before{content:""}.fa-arrow-rotate-back::before{content:""}.fa-arrow-rotate-backward::before{content:""}.fa-undo::before{content:""}.fa-hard-drive::before{content:""}.fa-hdd::before{content:""}.fa-face-grin-squint-tears::before{content:""}.fa-grin-squint-tears::before{content:""}.fa-dumbbell::before{content:""}.fa-rectangle-list::before{content:""}.fa-list-alt::before{content:""}.fa-tarp-droplet::before{content:""}.fa-house-medical-circle-check::before{content:""}.fa-person-skiing-nordic::before{content:""}.fa-skiing-nordic::before{content:""}.fa-calendar-plus::before{content:""}.fa-plane-arrival::before{content:""}.fa-circle-left::before{content:""}.fa-arrow-alt-circle-left::before{content:""}.fa-train-subway::before{content:""}.fa-subway::before{content:""}.fa-chart-gantt::before{content:""}.fa-indian-rupee-sign::before{content:""}.fa-indian-rupee::before{content:""}.fa-inr::before{content:""}.fa-crop-simple::before{content:""}.fa-crop-alt::before{content:""}.fa-money-bill-1::before{content:""}.fa-money-bill-alt::before{content:""}.fa-left-long::before{content:""}.fa-long-arrow-alt-left::before{content:""}.fa-dna::before{content:""}.fa-virus-slash::before{content:""}.fa-minus::before{content:""}.fa-subtract::before{content:""}.fa-chess::before{content:""}.fa-arrow-left-long::before{content:""}.fa-long-arrow-left::before{content:""}.fa-plug-circle-check::before{content:""}.fa-street-view::before{content:""}.fa-franc-sign::before{content:""}.fa-volume-off::before{content:""}.fa-hands-asl-interpreting::before{content:""}.fa-american-sign-language-interpreting::before{content:""}.fa-asl-interpreting::before{content:""}.fa-hands-american-sign-language-interpreting::before{content:""}.fa-gear::before{content:""}.fa-cog::before{content:""}.fa-droplet-slash::before{content:""}.fa-tint-slash::before{content:""}.fa-mosque::before{content:""}.fa-mosquito::before{content:""}.fa-star-of-david::before{content:""}.fa-person-military-rifle::before{content:""}.fa-cart-shopping::before{content:""}.fa-shopping-cart::before{content:""}.fa-vials::before{content:""}.fa-plug-circle-plus::before{content:""}.fa-place-of-worship::before{content:""}.fa-grip-vertical::before{content:""}.fa-arrow-turn-up::before{content:""}.fa-level-up::before{content:""}.fa-u::before{content:"U"}.fa-square-root-variable::before{content:""}.fa-square-root-alt::before{content:""}.fa-clock::before{content:""}.fa-clock-four::before{content:""}.fa-backward-step::before{content:""}.fa-step-backward::before{content:""}.fa-pallet::before{content:""}.fa-faucet::before{content:""}.fa-baseball-bat-ball::before{content:""}.fa-s::before{content:"S"}.fa-timeline::before{content:""}.fa-keyboard::before{content:""}.fa-caret-down::before{content:""}.fa-house-chimney-medical::before{content:""}.fa-clinic-medical::before{content:""}.fa-temperature-three-quarters::before{content:""}.fa-temperature-3::before{content:""}.fa-thermometer-3::before{content:""}.fa-thermometer-three-quarters::before{content:""}.fa-mobile-screen::before{content:""}.fa-mobile-android-alt::before{content:""}.fa-plane-up::before{content:""}.fa-piggy-bank::before{content:""}.fa-battery-half::before{content:""}.fa-battery-3::before{content:""}.fa-mountain-city::before{content:""}.fa-coins::before{content:""}.fa-khanda::before{content:""}.fa-sliders::before{content:""}.fa-sliders-h::before{content:""}.fa-folder-tree::before{content:""}.fa-network-wired::before{content:""}.fa-map-pin::before{content:""}.fa-hamsa::before{content:""}.fa-cent-sign::before{content:""}.fa-flask::before{content:""}.fa-person-pregnant::before{content:""}.fa-wand-sparkles::before{content:""}.fa-ellipsis-vertical::before{content:""}.fa-ellipsis-v::before{content:""}.fa-ticket::before{content:""}.fa-power-off::before{content:""}.fa-right-long::before{content:""}.fa-long-arrow-alt-right::before{content:""}.fa-flag-usa::before{content:""}.fa-laptop-file::before{content:""}.fa-tty::before{content:""}.fa-teletype::before{content:""}.fa-diagram-next::before{content:""}.fa-person-rifle::before{content:""}.fa-house-medical-circle-exclamation::before{content:""}.fa-closed-captioning::before{content:""}.fa-person-hiking::before{content:""}.fa-hiking::before{content:""}.fa-venus-double::before{content:""}.fa-images::before{content:""}.fa-calculator::before{content:""}.fa-people-pulling::before{content:""}.fa-n::before{content:"N"}.fa-cable-car::before{content:""}.fa-tram::before{content:""}.fa-cloud-rain::before{content:""}.fa-building-circle-xmark::before{content:""}.fa-ship::before{content:""}.fa-arrows-down-to-line::before{content:""}.fa-download::before{content:""}.fa-face-grin::before{content:""}.fa-grin::before{content:""}.fa-delete-left::before{content:""}.fa-backspace::before{content:""}.fa-eye-dropper::before{content:""}.fa-eye-dropper-empty::before{content:""}.fa-eyedropper::before{content:""}.fa-file-circle-check::before{content:""}.fa-forward::before{content:""}.fa-mobile::before{content:""}.fa-mobile-android::before{content:""}.fa-mobile-phone::before{content:""}.fa-face-meh::before{content:""}.fa-meh::before{content:""}.fa-align-center::before{content:""}.fa-book-skull::before{content:""}.fa-book-dead::before{content:""}.fa-id-card::before{content:""}.fa-drivers-license::before{content:""}.fa-outdent::before{content:""}.fa-dedent::before{content:""}.fa-heart-circle-exclamation::before{content:""}.fa-house::before{content:""}.fa-home::before{content:""}.fa-home-alt::before{content:""}.fa-home-lg-alt::before{content:""}.fa-calendar-week::before{content:""}.fa-laptop-medical::before{content:""}.fa-b::before{content:"B"}.fa-file-medical::before{content:""}.fa-dice-one::before{content:""}.fa-kiwi-bird::before{content:""}.fa-arrow-right-arrow-left::before{content:""}.fa-exchange::before{content:""}.fa-rotate-right::before{content:""}.fa-redo-alt::before{content:""}.fa-rotate-forward::before{content:""}.fa-utensils::before{content:""}.fa-cutlery::before{content:""}.fa-arrow-up-wide-short::before{content:""}.fa-sort-amount-up::before{content:""}.fa-mill-sign::before{content:""}.fa-bowl-rice::before{content:""}.fa-skull::before{content:""}.fa-tower-broadcast::before{content:""}.fa-broadcast-tower::before{content:""}.fa-truck-pickup::before{content:""}.fa-up-long::before{content:""}.fa-long-arrow-alt-up::before{content:""}.fa-stop::before{content:""}.fa-code-merge::before{content:""}.fa-upload::before{content:""}.fa-hurricane::before{content:""}.fa-mound::before{content:""}.fa-toilet-portable::before{content:""}.fa-compact-disc::before{content:""}.fa-file-arrow-down::before{content:""}.fa-file-download::before{content:""}.fa-caravan::before{content:""}.fa-shield-cat::before{content:""}.fa-bolt::before{content:""}.fa-zap::before{content:""}.fa-glass-water::before{content:""}.fa-oil-well::before{content:""}.fa-vault::before{content:""}.fa-mars::before{content:""}.fa-toilet::before{content:""}.fa-plane-circle-xmark::before{content:""}.fa-yen-sign::before{content:""}.fa-cny::before{content:""}.fa-jpy::before{content:""}.fa-rmb::before{content:""}.fa-yen::before{content:""}.fa-ruble-sign::before{content:""}.fa-rouble::before{content:""}.fa-rub::before{content:""}.fa-ruble::before{content:""}.fa-sun::before{content:""}.fa-guitar::before{content:""}.fa-face-laugh-wink::before{content:""}.fa-laugh-wink::before{content:""}.fa-horse-head::before{content:""}.fa-bore-hole::before{content:""}.fa-industry::before{content:""}.fa-circle-down::before{content:""}.fa-arrow-alt-circle-down::before{content:""}.fa-arrows-turn-to-dots::before{content:""}.fa-florin-sign::before{content:""}.fa-arrow-down-short-wide::before{content:""}.fa-sort-amount-desc::before{content:""}.fa-sort-amount-down-alt::before{content:""}.fa-less-than::before{content:"\<"}.fa-angle-down::before{content:""}.fa-car-tunnel::before{content:""}.fa-head-side-cough::before{content:""}.fa-grip-lines::before{content:""}.fa-thumbs-down::before{content:""}.fa-user-lock::before{content:""}.fa-arrow-right-long::before{content:""}.fa-long-arrow-right::before{content:""}.fa-anchor-circle-xmark::before{content:""}.fa-ellipsis::before{content:""}.fa-ellipsis-h::before{content:""}.fa-chess-pawn::before{content:""}.fa-kit-medical::before{content:""}.fa-first-aid::before{content:""}.fa-person-through-window::before{content:""}.fa-toolbox::before{content:""}.fa-hands-holding-circle::before{content:""}.fa-bug::before{content:""}.fa-credit-card::before{content:""}.fa-credit-card-alt::before{content:""}.fa-car::before{content:""}.fa-automobile::before{content:""}.fa-hand-holding-hand::before{content:""}.fa-book-open-reader::before{content:""}.fa-book-reader::before{content:""}.fa-mountain-sun::before{content:""}.fa-arrows-left-right-to-line::before{content:""}.fa-dice-d20::before{content:""}.fa-truck-droplet::before{content:""}.fa-file-circle-xmark::before{content:""}.fa-temperature-arrow-up::before{content:""}.fa-temperature-up::before{content:""}.fa-medal::before{content:""}.fa-bed::before{content:""}.fa-square-h::before{content:""}.fa-h-square::before{content:""}.fa-podcast::before{content:""}.fa-temperature-full::before{content:""}.fa-temperature-4::before{content:""}.fa-thermometer-4::before{content:""}.fa-thermometer-full::before{content:""}.fa-bell::before{content:""}.fa-superscript::before{content:""}.fa-plug-circle-xmark::before{content:""}.fa-star-of-life::before{content:""}.fa-phone-slash::before{content:""}.fa-paint-roller::before{content:""}.fa-handshake-angle::before{content:""}.fa-hands-helping::before{content:""}.fa-location-dot::before{content:""}.fa-map-marker-alt::before{content:""}.fa-file::before{content:""}.fa-greater-than::before{content:"\>"}.fa-person-swimming::before{content:""}.fa-swimmer::before{content:""}.fa-arrow-down::before{content:""}.fa-droplet::before{content:""}.fa-tint::before{content:""}.fa-eraser::before{content:""}.fa-earth-americas::before{content:""}.fa-earth::before{content:""}.fa-earth-america::before{content:""}.fa-globe-americas::before{content:""}.fa-person-burst::before{content:""}.fa-dove::before{content:""}.fa-battery-empty::before{content:""}.fa-battery-0::before{content:""}.fa-socks::before{content:""}.fa-inbox::before{content:""}.fa-section::before{content:""}.fa-gauge-high::before{content:""}.fa-tachometer-alt::before{content:""}.fa-tachometer-alt-fast::before{content:""}.fa-envelope-open-text::before{content:""}.fa-hospital::before{content:""}.fa-hospital-alt::before{content:""}.fa-hospital-wide::before{content:""}.fa-wine-bottle::before{content:""}.fa-chess-rook::before{content:""}.fa-bars-staggered::before{content:""}.fa-reorder::before{content:""}.fa-stream::before{content:""}.fa-dharmachakra::before{content:""}.fa-hotdog::before{content:""}.fa-person-walking-with-cane::before{content:""}.fa-blind::before{content:""}.fa-drum::before{content:""}.fa-ice-cream::before{content:""}.fa-heart-circle-bolt::before{content:""}.fa-fax::before{content:""}.fa-paragraph::before{content:""}.fa-check-to-slot::before{content:""}.fa-vote-yea::before{content:""}.fa-star-half::before{content:""}.fa-boxes-stacked::before{content:""}.fa-boxes::before{content:""}.fa-boxes-alt::before{content:""}.fa-link::before{content:""}.fa-chain::before{content:""}.fa-ear-listen::before{content:""}.fa-assistive-listening-systems::before{content:""}.fa-tree-city::before{content:""}.fa-play::before{content:""}.fa-font::before{content:""}.fa-table-cells-row-lock::before{content:""}.fa-rupiah-sign::before{content:""}.fa-magnifying-glass::before{content:""}.fa-search::before{content:""}.fa-table-tennis-paddle-ball::before{content:""}.fa-ping-pong-paddle-ball::before{content:""}.fa-table-tennis::before{content:""}.fa-person-dots-from-line::before{content:""}.fa-diagnoses::before{content:""}.fa-trash-can-arrow-up::before{content:""}.fa-trash-restore-alt::before{content:""}.fa-naira-sign::before{content:""}.fa-cart-arrow-down::before{content:""}.fa-walkie-talkie::before{content:""}.fa-file-pen::before{content:""}.fa-file-edit::before{content:""}.fa-receipt::before{content:""}.fa-square-pen::before{content:""}.fa-pen-square::before{content:""}.fa-pencil-square::before{content:""}.fa-suitcase-rolling::before{content:""}.fa-person-circle-exclamation::before{content:""}.fa-chevron-down::before{content:""}.fa-battery-full::before{content:""}.fa-battery::before{content:""}.fa-battery-5::before{content:""}.fa-skull-crossbones::before{content:""}.fa-code-compare::before{content:""}.fa-list-ul::before{content:""}.fa-list-dots::before{content:""}.fa-school-lock::before{content:""}.fa-tower-cell::before{content:""}.fa-down-long::before{content:""}.fa-long-arrow-alt-down::before{content:""}.fa-ranking-star::before{content:""}.fa-chess-king::before{content:""}.fa-person-harassing::before{content:""}.fa-brazilian-real-sign::before{content:""}.fa-landmark-dome::before{content:""}.fa-landmark-alt::before{content:""}.fa-arrow-up::before{content:""}.fa-tv::before{content:""}.fa-television::before{content:""}.fa-tv-alt::before{content:""}.fa-shrimp::before{content:""}.fa-list-check::before{content:""}.fa-tasks::before{content:""}.fa-jug-detergent::before{content:""}.fa-circle-user::before{content:""}.fa-user-circle::before{content:""}.fa-user-shield::before{content:""}.fa-wind::before{content:""}.fa-car-burst::before{content:""}.fa-car-crash::before{content:""}.fa-y::before{content:"Y"}.fa-person-snowboarding::before{content:""}.fa-snowboarding::before{content:""}.fa-truck-fast::before{content:""}.fa-shipping-fast::before{content:""}.fa-fish::before{content:""}.fa-user-graduate::before{content:""}.fa-circle-half-stroke::before{content:""}.fa-adjust::before{content:""}.fa-clapperboard::before{content:""}.fa-circle-radiation::before{content:""}.fa-radiation-alt::before{content:""}.fa-baseball::before{content:""}.fa-baseball-ball::before{content:""}.fa-jet-fighter-up::before{content:""}.fa-diagram-project::before{content:""}.fa-project-diagram::before{content:""}.fa-copy::before{content:""}.fa-volume-xmark::before{content:""}.fa-volume-mute::before{content:""}.fa-volume-times::before{content:""}.fa-hand-sparkles::before{content:""}.fa-grip::before{content:""}.fa-grip-horizontal::before{content:""}.fa-share-from-square::before{content:""}.fa-share-square::before{content:""}.fa-child-combatant::before{content:""}.fa-child-rifle::before{content:""}.fa-gun::before{content:""}.fa-square-phone::before{content:""}.fa-phone-square::before{content:""}.fa-plus::before{content:"\+"}.fa-add::before{content:"\+"}.fa-expand::before{content:""}.fa-computer::before{content:""}.fa-xmark::before{content:""}.fa-close::before{content:""}.fa-multiply::before{content:""}.fa-remove::before{content:""}.fa-times::before{content:""}.fa-arrows-up-down-left-right::before{content:""}.fa-arrows::before{content:""}.fa-chalkboard-user::before{content:""}.fa-chalkboard-teacher::before{content:""}.fa-peso-sign::before{content:""}.fa-building-shield::before{content:""}.fa-baby::before{content:""}.fa-users-line::before{content:""}.fa-quote-left::before{content:""}.fa-quote-left-alt::before{content:""}.fa-tractor::before{content:""}.fa-trash-arrow-up::before{content:""}.fa-trash-restore::before{content:""}.fa-arrow-down-up-lock::before{content:""}.fa-lines-leaning::before{content:""}.fa-ruler-combined::before{content:""}.fa-copyright::before{content:""}.fa-equals::before{content:"\="}.fa-blender::before{content:""}.fa-teeth::before{content:""}.fa-shekel-sign::before{content:""}.fa-ils::before{content:""}.fa-shekel::before{content:""}.fa-sheqel::before{content:""}.fa-sheqel-sign::before{content:""}.fa-map::before{content:""}.fa-rocket::before{content:""}.fa-photo-film::before{content:""}.fa-photo-video::before{content:""}.fa-folder-minus::before{content:""}.fa-store::before{content:""}.fa-arrow-trend-up::before{content:""}.fa-plug-circle-minus::before{content:""}.fa-sign-hanging::before{content:""}.fa-sign::before{content:""}.fa-bezier-curve::before{content:""}.fa-bell-slash::before{content:""}.fa-tablet::before{content:""}.fa-tablet-android::before{content:""}.fa-school-flag::before{content:""}.fa-fill::before{content:""}.fa-angle-up::before{content:""}.fa-drumstick-bite::before{content:""}.fa-holly-berry::before{content:""}.fa-chevron-left::before{content:""}.fa-bacteria::before{content:""}.fa-hand-lizard::before{content:""}.fa-notdef::before{content:""}.fa-disease::before{content:""}.fa-briefcase-medical::before{content:""}.fa-genderless::before{content:""}.fa-chevron-right::before{content:""}.fa-retweet::before{content:""}.fa-car-rear::before{content:""}.fa-car-alt::before{content:""}.fa-pump-soap::before{content:""}.fa-video-slash::before{content:""}.fa-battery-quarter::before{content:""}.fa-battery-2::before{content:""}.fa-radio::before{content:""}.fa-baby-carriage::before{content:""}.fa-carriage-baby::before{content:""}.fa-traffic-light::before{content:""}.fa-thermometer::before{content:""}.fa-vr-cardboard::before{content:""}.fa-hand-middle-finger::before{content:""}.fa-percent::before{content:"\%"}.fa-percentage::before{content:"\%"}.fa-truck-moving::before{content:""}.fa-glass-water-droplet::before{content:""}.fa-display::before{content:""}.fa-face-smile::before{content:""}.fa-smile::before{content:""}.fa-thumbtack::before{content:""}.fa-thumb-tack::before{content:""}.fa-trophy::before{content:""}.fa-person-praying::before{content:""}.fa-pray::before{content:""}.fa-hammer::before{content:""}.fa-hand-peace::before{content:""}.fa-rotate::before{content:""}.fa-sync-alt::before{content:""}.fa-spinner::before{content:""}.fa-robot::before{content:""}.fa-peace::before{content:""}.fa-gears::before{content:""}.fa-cogs::before{content:""}.fa-warehouse::before{content:""}.fa-arrow-up-right-dots::before{content:""}.fa-splotch::before{content:""}.fa-face-grin-hearts::before{content:""}.fa-grin-hearts::before{content:""}.fa-dice-four::before{content:""}.fa-sim-card::before{content:""}.fa-transgender::before{content:""}.fa-transgender-alt::before{content:""}.fa-mercury::before{content:""}.fa-arrow-turn-down::before{content:""}.fa-level-down::before{content:""}.fa-person-falling-burst::before{content:""}.fa-award::before{content:""}.fa-ticket-simple::before{content:""}.fa-ticket-alt::before{content:""}.fa-building::before{content:""}.fa-angles-left::before{content:""}.fa-angle-double-left::before{content:""}.fa-qrcode::before{content:""}.fa-clock-rotate-left::before{content:""}.fa-history::before{content:""}.fa-face-grin-beam-sweat::before{content:""}.fa-grin-beam-sweat::before{content:""}.fa-file-export::before{content:""}.fa-arrow-right-from-file::before{content:""}.fa-shield::before{content:""}.fa-shield-blank::before{content:""}.fa-arrow-up-short-wide::before{content:""}.fa-sort-amount-up-alt::before{content:""}.fa-house-medical::before{content:""}.fa-golf-ball-tee::before{content:""}.fa-golf-ball::before{content:""}.fa-circle-chevron-left::before{content:""}.fa-chevron-circle-left::before{content:""}.fa-house-chimney-window::before{content:""}.fa-pen-nib::before{content:""}.fa-tent-arrow-turn-left::before{content:""}.fa-tents::before{content:""}.fa-wand-magic::before{content:""}.fa-magic::before{content:""}.fa-dog::before{content:""}.fa-carrot::before{content:""}.fa-moon::before{content:""}.fa-wine-glass-empty::before{content:""}.fa-wine-glass-alt::before{content:""}.fa-cheese::before{content:""}.fa-yin-yang::before{content:""}.fa-music::before{content:""}.fa-code-commit::before{content:""}.fa-temperature-low::before{content:""}.fa-person-biking::before{content:""}.fa-biking::before{content:""}.fa-broom::before{content:""}.fa-shield-heart::before{content:""}.fa-gopuram::before{content:""}.fa-earth-oceania::before{content:""}.fa-globe-oceania::before{content:""}.fa-square-xmark::before{content:""}.fa-times-square::before{content:""}.fa-xmark-square::before{content:""}.fa-hashtag::before{content:"\#"}.fa-up-right-and-down-left-from-center::before{content:""}.fa-expand-alt::before{content:""}.fa-oil-can::before{content:""}.fa-t::before{content:"T"}.fa-hippo::before{content:""}.fa-chart-column::before{content:""}.fa-infinity::before{content:""}.fa-vial-circle-check::before{content:""}.fa-person-arrow-down-to-line::before{content:""}.fa-voicemail::before{content:""}.fa-fan::before{content:""}.fa-person-walking-luggage::before{content:""}.fa-up-down::before{content:""}.fa-arrows-alt-v::before{content:""}.fa-cloud-moon-rain::before{content:""}.fa-calendar::before{content:""}.fa-trailer::before{content:""}.fa-bahai::before{content:""}.fa-haykal::before{content:""}.fa-sd-card::before{content:""}.fa-dragon::before{content:""}.fa-shoe-prints::before{content:""}.fa-circle-plus::before{content:""}.fa-plus-circle::before{content:""}.fa-face-grin-tongue-wink::before{content:""}.fa-grin-tongue-wink::before{content:""}.fa-hand-holding::before{content:""}.fa-plug-circle-exclamation::before{content:""}.fa-link-slash::before{content:""}.fa-chain-broken::before{content:""}.fa-chain-slash::before{content:""}.fa-unlink::before{content:""}.fa-clone::before{content:""}.fa-person-walking-arrow-loop-left::before{content:""}.fa-arrow-up-z-a::before{content:""}.fa-sort-alpha-up-alt::before{content:""}.fa-fire-flame-curved::before{content:""}.fa-fire-alt::before{content:""}.fa-tornado::before{content:""}.fa-file-circle-plus::before{content:""}.fa-book-quran::before{content:""}.fa-quran::before{content:""}.fa-anchor::before{content:""}.fa-border-all::before{content:""}.fa-face-angry::before{content:""}.fa-angry::before{content:""}.fa-cookie-bite::before{content:""}.fa-arrow-trend-down::before{content:""}.fa-rss::before{content:""}.fa-feed::before{content:""}.fa-draw-polygon::before{content:""}.fa-scale-balanced::before{content:""}.fa-balance-scale::before{content:""}.fa-gauge-simple-high::before{content:""}.fa-tachometer::before{content:""}.fa-tachometer-fast::before{content:""}.fa-shower::before{content:""}.fa-desktop::before{content:""}.fa-desktop-alt::before{content:""}.fa-m::before{content:"M"}.fa-table-list::before{content:""}.fa-th-list::before{content:""}.fa-comment-sms::before{content:""}.fa-sms::before{content:""}.fa-book::before{content:""}.fa-user-plus::before{content:""}.fa-check::before{content:""}.fa-battery-three-quarters::before{content:""}.fa-battery-4::before{content:""}.fa-house-circle-check::before{content:""}.fa-angle-left::before{content:""}.fa-diagram-successor::before{content:""}.fa-truck-arrow-right::before{content:""}.fa-arrows-split-up-and-left::before{content:""}.fa-hand-fist::before{content:""}.fa-fist-raised::before{content:""}.fa-cloud-moon::before{content:""}.fa-briefcase::before{content:""}.fa-person-falling::before{content:""}.fa-image-portrait::before{content:""}.fa-portrait::before{content:""}.fa-user-tag::before{content:""}.fa-rug::before{content:""}.fa-earth-europe::before{content:""}.fa-globe-europe::before{content:""}.fa-cart-flatbed-suitcase::before{content:""}.fa-luggage-cart::before{content:""}.fa-rectangle-xmark::before{content:""}.fa-rectangle-times::before{content:""}.fa-times-rectangle::before{content:""}.fa-window-close::before{content:""}.fa-baht-sign::before{content:""}.fa-book-open::before{content:""}.fa-book-journal-whills::before{content:""}.fa-journal-whills::before{content:""}.fa-handcuffs::before{content:""}.fa-triangle-exclamation::before{content:""}.fa-exclamation-triangle::before{content:""}.fa-warning::before{content:""}.fa-database::before{content:""}.fa-share::before{content:""}.fa-mail-forward::before{content:""}.fa-bottle-droplet::before{content:""}.fa-mask-face::before{content:""}.fa-hill-rockslide::before{content:""}.fa-right-left::before{content:""}.fa-exchange-alt::before{content:""}.fa-paper-plane::before{content:""}.fa-road-circle-exclamation::before{content:""}.fa-dungeon::before{content:""}.fa-align-right::before{content:""}.fa-money-bill-1-wave::before{content:""}.fa-money-bill-wave-alt::before{content:""}.fa-life-ring::before{content:""}.fa-hands::before{content:""}.fa-sign-language::before{content:""}.fa-signing::before{content:""}.fa-calendar-day::before{content:""}.fa-water-ladder::before{content:""}.fa-ladder-water::before{content:""}.fa-swimming-pool::before{content:""}.fa-arrows-up-down::before{content:""}.fa-arrows-v::before{content:""}.fa-face-grimace::before{content:""}.fa-grimace::before{content:""}.fa-wheelchair-move::before{content:""}.fa-wheelchair-alt::before{content:""}.fa-turn-down::before{content:""}.fa-level-down-alt::before{content:""}.fa-person-walking-arrow-right::before{content:""}.fa-square-envelope::before{content:""}.fa-envelope-square::before{content:""}.fa-dice::before{content:""}.fa-bowling-ball::before{content:""}.fa-brain::before{content:""}.fa-bandage::before{content:""}.fa-band-aid::before{content:""}.fa-calendar-minus::before{content:""}.fa-circle-xmark::before{content:""}.fa-times-circle::before{content:""}.fa-xmark-circle::before{content:""}.fa-gifts::before{content:""}.fa-hotel::before{content:""}.fa-earth-asia::before{content:""}.fa-globe-asia::before{content:""}.fa-id-card-clip::before{content:""}.fa-id-card-alt::before{content:""}.fa-magnifying-glass-plus::before{content:""}.fa-search-plus::before{content:""}.fa-thumbs-up::before{content:""}.fa-user-clock::before{content:""}.fa-hand-dots::before{content:""}.fa-allergies::before{content:""}.fa-file-invoice::before{content:""}.fa-window-minimize::before{content:""}.fa-mug-saucer::before{content:""}.fa-coffee::before{content:""}.fa-brush::before{content:""}.fa-mask::before{content:""}.fa-magnifying-glass-minus::before{content:""}.fa-search-minus::before{content:""}.fa-ruler-vertical::before{content:""}.fa-user-large::before{content:""}.fa-user-alt::before{content:""}.fa-train-tram::before{content:""}.fa-user-nurse::before{content:""}.fa-syringe::before{content:""}.fa-cloud-sun::before{content:""}.fa-stopwatch-20::before{content:""}.fa-square-full::before{content:""}.fa-magnet::before{content:""}.fa-jar::before{content:""}.fa-note-sticky::before{content:""}.fa-sticky-note::before{content:""}.fa-bug-slash::before{content:""}.fa-arrow-up-from-water-pump::before{content:""}.fa-bone::before{content:""}.fa-user-injured::before{content:""}.fa-face-sad-tear::before{content:""}.fa-sad-tear::before{content:""}.fa-plane::before{content:""}.fa-tent-arrows-down::before{content:""}.fa-exclamation::before{content:"\!"}.fa-arrows-spin::before{content:""}.fa-print::before{content:""}.fa-turkish-lira-sign::before{content:""}.fa-try::before{content:""}.fa-turkish-lira::before{content:""}.fa-dollar-sign::before{content:"\$"}.fa-dollar::before{content:"\$"}.fa-usd::before{content:"\$"}.fa-x::before{content:"X"}.fa-magnifying-glass-dollar::before{content:""}.fa-search-dollar::before{content:""}.fa-users-gear::before{content:""}.fa-users-cog::before{content:""}.fa-person-military-pointing::before{content:""}.fa-building-columns::before{content:""}.fa-bank::before{content:""}.fa-institution::before{content:""}.fa-museum::before{content:""}.fa-university::before{content:""}.fa-umbrella::before{content:""}.fa-trowel::before{content:""}.fa-d::before{content:"D"}.fa-stapler::before{content:""}.fa-masks-theater::before{content:""}.fa-theater-masks::before{content:""}.fa-kip-sign::before{content:""}.fa-hand-point-left::before{content:""}.fa-handshake-simple::before{content:""}.fa-handshake-alt::before{content:""}.fa-jet-fighter::before{content:""}.fa-fighter-jet::before{content:""}.fa-square-share-nodes::before{content:""}.fa-share-alt-square::before{content:""}.fa-barcode::before{content:""}.fa-plus-minus::before{content:""}.fa-video::before{content:""}.fa-video-camera::before{content:""}.fa-graduation-cap::before{content:""}.fa-mortar-board::before{content:""}.fa-hand-holding-medical::before{content:""}.fa-person-circle-check::before{content:""}.fa-turn-up::before{content:""}.fa-level-up-alt::before{content:""}.sr-only,.fa-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*! - * Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com + */.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa-solid,.fa-regular,.fa-brands,.fas,.far,.fab,.fa-sharp-solid,.fa-classic,.fa{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fas,.fa-classic,.fa-solid,.far,.fa-regular{font-family:"Font Awesome 6 Free"}.fab,.fa-brands{font-family:"Font Awesome 6 Brands"}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.0833333337em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.0714285718em;vertical-align:.0535714295em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.0416666682em;vertical-align:-0.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-0.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(-1*var(--fa-li-width, 2em));position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-color:var(--fa-border-color, #eee);border-radius:var(--fa-border-radius, 0.1em);border-style:var(--fa-border-style, solid);border-width:var(--fa-border-width, 0.08em);padding:var(--fa-border-padding, 0.2em 0.25em 0.15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, 0.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, 0.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1))}.fa-fade{animation-name:fa-fade;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1))}.fa-beat-fade{animation-name:fa-beat-fade;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{animation-name:fa-shake;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin{animation-name:fa-spin;animation-delay:var(--fa-animation-delay, 0s);animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 2s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction, normal);animation-duration:var(--fa-animation-duration, 1s);animation-iteration-count:var(--fa-animation-iteration-count, infinite);animation-timing-function:var(--fa-animation-timing, steps(8))}@media(prefers-reduced-motion: reduce){.fa-beat,.fa-bounce,.fa-fade,.fa-beat-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{animation-delay:-1ms;animation-duration:1ms;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-bounce{0%{transform:scale(1, 1) translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0)}57%{transform:scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em))}64%{transform:scale(1, 1) translateY(0)}100%{transform:scale(1, 1) translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, 0.4)}}@keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity, 0.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,100%{transform:rotate(0deg)}}@keyframes fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scale(-1, 1)}.fa-flip-vertical{transform:scale(1, -1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1, -1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle, 0))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0::before{content:"\30 "}.fa-1::before{content:"\31 "}.fa-2::before{content:"\32 "}.fa-3::before{content:"\33 "}.fa-4::before{content:"\34 "}.fa-5::before{content:"\35 "}.fa-6::before{content:"\36 "}.fa-7::before{content:"\37 "}.fa-8::before{content:"\38 "}.fa-9::before{content:"\39 "}.fa-fill-drip::before{content:""}.fa-arrows-to-circle::before{content:""}.fa-circle-chevron-right::before{content:""}.fa-chevron-circle-right::before{content:""}.fa-at::before{content:"\@"}.fa-trash-can::before{content:""}.fa-trash-alt::before{content:""}.fa-text-height::before{content:""}.fa-user-xmark::before{content:""}.fa-user-times::before{content:""}.fa-stethoscope::before{content:""}.fa-message::before{content:""}.fa-comment-alt::before{content:""}.fa-info::before{content:""}.fa-down-left-and-up-right-to-center::before{content:""}.fa-compress-alt::before{content:""}.fa-explosion::before{content:""}.fa-file-lines::before{content:""}.fa-file-alt::before{content:""}.fa-file-text::before{content:""}.fa-wave-square::before{content:""}.fa-ring::before{content:""}.fa-building-un::before{content:""}.fa-dice-three::before{content:""}.fa-calendar-days::before{content:""}.fa-calendar-alt::before{content:""}.fa-anchor-circle-check::before{content:""}.fa-building-circle-arrow-right::before{content:""}.fa-volleyball::before{content:""}.fa-volleyball-ball::before{content:""}.fa-arrows-up-to-line::before{content:""}.fa-sort-down::before{content:""}.fa-sort-desc::before{content:""}.fa-circle-minus::before{content:""}.fa-minus-circle::before{content:""}.fa-door-open::before{content:""}.fa-right-from-bracket::before{content:""}.fa-sign-out-alt::before{content:""}.fa-atom::before{content:""}.fa-soap::before{content:""}.fa-icons::before{content:""}.fa-heart-music-camera-bolt::before{content:""}.fa-microphone-lines-slash::before{content:""}.fa-microphone-alt-slash::before{content:""}.fa-bridge-circle-check::before{content:""}.fa-pump-medical::before{content:""}.fa-fingerprint::before{content:""}.fa-hand-point-right::before{content:""}.fa-magnifying-glass-location::before{content:""}.fa-search-location::before{content:""}.fa-forward-step::before{content:""}.fa-step-forward::before{content:""}.fa-face-smile-beam::before{content:""}.fa-smile-beam::before{content:""}.fa-flag-checkered::before{content:""}.fa-football::before{content:""}.fa-football-ball::before{content:""}.fa-school-circle-exclamation::before{content:""}.fa-crop::before{content:""}.fa-angles-down::before{content:""}.fa-angle-double-down::before{content:""}.fa-users-rectangle::before{content:""}.fa-people-roof::before{content:""}.fa-people-line::before{content:""}.fa-beer-mug-empty::before{content:""}.fa-beer::before{content:""}.fa-diagram-predecessor::before{content:""}.fa-arrow-up-long::before{content:""}.fa-long-arrow-up::before{content:""}.fa-fire-flame-simple::before{content:""}.fa-burn::before{content:""}.fa-person::before{content:""}.fa-male::before{content:""}.fa-laptop::before{content:""}.fa-file-csv::before{content:""}.fa-menorah::before{content:""}.fa-truck-plane::before{content:""}.fa-record-vinyl::before{content:""}.fa-face-grin-stars::before{content:""}.fa-grin-stars::before{content:""}.fa-bong::before{content:""}.fa-spaghetti-monster-flying::before{content:""}.fa-pastafarianism::before{content:""}.fa-arrow-down-up-across-line::before{content:""}.fa-spoon::before{content:""}.fa-utensil-spoon::before{content:""}.fa-jar-wheat::before{content:""}.fa-envelopes-bulk::before{content:""}.fa-mail-bulk::before{content:""}.fa-file-circle-exclamation::before{content:""}.fa-circle-h::before{content:""}.fa-hospital-symbol::before{content:""}.fa-pager::before{content:""}.fa-address-book::before{content:""}.fa-contact-book::before{content:""}.fa-strikethrough::before{content:""}.fa-k::before{content:"K"}.fa-landmark-flag::before{content:""}.fa-pencil::before{content:""}.fa-pencil-alt::before{content:""}.fa-backward::before{content:""}.fa-caret-right::before{content:""}.fa-comments::before{content:""}.fa-paste::before{content:""}.fa-file-clipboard::before{content:""}.fa-code-pull-request::before{content:""}.fa-clipboard-list::before{content:""}.fa-truck-ramp-box::before{content:""}.fa-truck-loading::before{content:""}.fa-user-check::before{content:""}.fa-vial-virus::before{content:""}.fa-sheet-plastic::before{content:""}.fa-blog::before{content:""}.fa-user-ninja::before{content:""}.fa-person-arrow-up-from-line::before{content:""}.fa-scroll-torah::before{content:""}.fa-torah::before{content:""}.fa-broom-ball::before{content:""}.fa-quidditch::before{content:""}.fa-quidditch-broom-ball::before{content:""}.fa-toggle-off::before{content:""}.fa-box-archive::before{content:""}.fa-archive::before{content:""}.fa-person-drowning::before{content:""}.fa-arrow-down-9-1::before{content:""}.fa-sort-numeric-desc::before{content:""}.fa-sort-numeric-down-alt::before{content:""}.fa-face-grin-tongue-squint::before{content:""}.fa-grin-tongue-squint::before{content:""}.fa-spray-can::before{content:""}.fa-truck-monster::before{content:""}.fa-w::before{content:"W"}.fa-earth-africa::before{content:""}.fa-globe-africa::before{content:""}.fa-rainbow::before{content:""}.fa-circle-notch::before{content:""}.fa-tablet-screen-button::before{content:""}.fa-tablet-alt::before{content:""}.fa-paw::before{content:""}.fa-cloud::before{content:""}.fa-trowel-bricks::before{content:""}.fa-face-flushed::before{content:""}.fa-flushed::before{content:""}.fa-hospital-user::before{content:""}.fa-tent-arrow-left-right::before{content:""}.fa-gavel::before{content:""}.fa-legal::before{content:""}.fa-binoculars::before{content:""}.fa-microphone-slash::before{content:""}.fa-box-tissue::before{content:""}.fa-motorcycle::before{content:""}.fa-bell-concierge::before{content:""}.fa-concierge-bell::before{content:""}.fa-pen-ruler::before{content:""}.fa-pencil-ruler::before{content:""}.fa-people-arrows::before{content:""}.fa-people-arrows-left-right::before{content:""}.fa-mars-and-venus-burst::before{content:""}.fa-square-caret-right::before{content:""}.fa-caret-square-right::before{content:""}.fa-scissors::before{content:""}.fa-cut::before{content:""}.fa-sun-plant-wilt::before{content:""}.fa-toilets-portable::before{content:""}.fa-hockey-puck::before{content:""}.fa-table::before{content:""}.fa-magnifying-glass-arrow-right::before{content:""}.fa-tachograph-digital::before{content:""}.fa-digital-tachograph::before{content:""}.fa-users-slash::before{content:""}.fa-clover::before{content:""}.fa-reply::before{content:""}.fa-mail-reply::before{content:""}.fa-star-and-crescent::before{content:""}.fa-house-fire::before{content:""}.fa-square-minus::before{content:""}.fa-minus-square::before{content:""}.fa-helicopter::before{content:""}.fa-compass::before{content:""}.fa-square-caret-down::before{content:""}.fa-caret-square-down::before{content:""}.fa-file-circle-question::before{content:""}.fa-laptop-code::before{content:""}.fa-swatchbook::before{content:""}.fa-prescription-bottle::before{content:""}.fa-bars::before{content:""}.fa-navicon::before{content:""}.fa-people-group::before{content:""}.fa-hourglass-end::before{content:""}.fa-hourglass-3::before{content:""}.fa-heart-crack::before{content:""}.fa-heart-broken::before{content:""}.fa-square-up-right::before{content:""}.fa-external-link-square-alt::before{content:""}.fa-face-kiss-beam::before{content:""}.fa-kiss-beam::before{content:""}.fa-film::before{content:""}.fa-ruler-horizontal::before{content:""}.fa-people-robbery::before{content:""}.fa-lightbulb::before{content:""}.fa-caret-left::before{content:""}.fa-circle-exclamation::before{content:""}.fa-exclamation-circle::before{content:""}.fa-school-circle-xmark::before{content:""}.fa-arrow-right-from-bracket::before{content:""}.fa-sign-out::before{content:""}.fa-circle-chevron-down::before{content:""}.fa-chevron-circle-down::before{content:""}.fa-unlock-keyhole::before{content:""}.fa-unlock-alt::before{content:""}.fa-cloud-showers-heavy::before{content:""}.fa-headphones-simple::before{content:""}.fa-headphones-alt::before{content:""}.fa-sitemap::before{content:""}.fa-circle-dollar-to-slot::before{content:""}.fa-donate::before{content:""}.fa-memory::before{content:""}.fa-road-spikes::before{content:""}.fa-fire-burner::before{content:""}.fa-flag::before{content:""}.fa-hanukiah::before{content:""}.fa-feather::before{content:""}.fa-volume-low::before{content:""}.fa-volume-down::before{content:""}.fa-comment-slash::before{content:""}.fa-cloud-sun-rain::before{content:""}.fa-compress::before{content:""}.fa-wheat-awn::before{content:""}.fa-wheat-alt::before{content:""}.fa-ankh::before{content:""}.fa-hands-holding-child::before{content:""}.fa-asterisk::before{content:"\*"}.fa-square-check::before{content:""}.fa-check-square::before{content:""}.fa-peseta-sign::before{content:""}.fa-heading::before{content:""}.fa-header::before{content:""}.fa-ghost::before{content:""}.fa-list::before{content:""}.fa-list-squares::before{content:""}.fa-square-phone-flip::before{content:""}.fa-phone-square-alt::before{content:""}.fa-cart-plus::before{content:""}.fa-gamepad::before{content:""}.fa-circle-dot::before{content:""}.fa-dot-circle::before{content:""}.fa-face-dizzy::before{content:""}.fa-dizzy::before{content:""}.fa-egg::before{content:""}.fa-house-medical-circle-xmark::before{content:""}.fa-campground::before{content:""}.fa-folder-plus::before{content:""}.fa-futbol::before{content:""}.fa-futbol-ball::before{content:""}.fa-soccer-ball::before{content:""}.fa-paintbrush::before{content:""}.fa-paint-brush::before{content:""}.fa-lock::before{content:""}.fa-gas-pump::before{content:""}.fa-hot-tub-person::before{content:""}.fa-hot-tub::before{content:""}.fa-map-location::before{content:""}.fa-map-marked::before{content:""}.fa-house-flood-water::before{content:""}.fa-tree::before{content:""}.fa-bridge-lock::before{content:""}.fa-sack-dollar::before{content:""}.fa-pen-to-square::before{content:""}.fa-edit::before{content:""}.fa-car-side::before{content:""}.fa-share-nodes::before{content:""}.fa-share-alt::before{content:""}.fa-heart-circle-minus::before{content:""}.fa-hourglass-half::before{content:""}.fa-hourglass-2::before{content:""}.fa-microscope::before{content:""}.fa-sink::before{content:""}.fa-bag-shopping::before{content:""}.fa-shopping-bag::before{content:""}.fa-arrow-down-z-a::before{content:""}.fa-sort-alpha-desc::before{content:""}.fa-sort-alpha-down-alt::before{content:""}.fa-mitten::before{content:""}.fa-person-rays::before{content:""}.fa-users::before{content:""}.fa-eye-slash::before{content:""}.fa-flask-vial::before{content:""}.fa-hand::before{content:""}.fa-hand-paper::before{content:""}.fa-om::before{content:""}.fa-worm::before{content:""}.fa-house-circle-xmark::before{content:""}.fa-plug::before{content:""}.fa-chevron-up::before{content:""}.fa-hand-spock::before{content:""}.fa-stopwatch::before{content:""}.fa-face-kiss::before{content:""}.fa-kiss::before{content:""}.fa-bridge-circle-xmark::before{content:""}.fa-face-grin-tongue::before{content:""}.fa-grin-tongue::before{content:""}.fa-chess-bishop::before{content:""}.fa-face-grin-wink::before{content:""}.fa-grin-wink::before{content:""}.fa-ear-deaf::before{content:""}.fa-deaf::before{content:""}.fa-deafness::before{content:""}.fa-hard-of-hearing::before{content:""}.fa-road-circle-check::before{content:""}.fa-dice-five::before{content:""}.fa-square-rss::before{content:""}.fa-rss-square::before{content:""}.fa-land-mine-on::before{content:""}.fa-i-cursor::before{content:""}.fa-stamp::before{content:""}.fa-stairs::before{content:""}.fa-i::before{content:"I"}.fa-hryvnia-sign::before{content:""}.fa-hryvnia::before{content:""}.fa-pills::before{content:""}.fa-face-grin-wide::before{content:""}.fa-grin-alt::before{content:""}.fa-tooth::before{content:""}.fa-v::before{content:"V"}.fa-bangladeshi-taka-sign::before{content:""}.fa-bicycle::before{content:""}.fa-staff-snake::before{content:""}.fa-rod-asclepius::before{content:""}.fa-rod-snake::before{content:""}.fa-staff-aesculapius::before{content:""}.fa-head-side-cough-slash::before{content:""}.fa-truck-medical::before{content:""}.fa-ambulance::before{content:""}.fa-wheat-awn-circle-exclamation::before{content:""}.fa-snowman::before{content:""}.fa-mortar-pestle::before{content:""}.fa-road-barrier::before{content:""}.fa-school::before{content:""}.fa-igloo::before{content:""}.fa-joint::before{content:""}.fa-angle-right::before{content:""}.fa-horse::before{content:""}.fa-q::before{content:"Q"}.fa-g::before{content:"G"}.fa-notes-medical::before{content:""}.fa-temperature-half::before{content:""}.fa-temperature-2::before{content:""}.fa-thermometer-2::before{content:""}.fa-thermometer-half::before{content:""}.fa-dong-sign::before{content:""}.fa-capsules::before{content:""}.fa-poo-storm::before{content:""}.fa-poo-bolt::before{content:""}.fa-face-frown-open::before{content:""}.fa-frown-open::before{content:""}.fa-hand-point-up::before{content:""}.fa-money-bill::before{content:""}.fa-bookmark::before{content:""}.fa-align-justify::before{content:""}.fa-umbrella-beach::before{content:""}.fa-helmet-un::before{content:""}.fa-bullseye::before{content:""}.fa-bacon::before{content:""}.fa-hand-point-down::before{content:""}.fa-arrow-up-from-bracket::before{content:""}.fa-folder::before{content:""}.fa-folder-blank::before{content:""}.fa-file-waveform::before{content:""}.fa-file-medical-alt::before{content:""}.fa-radiation::before{content:""}.fa-chart-simple::before{content:""}.fa-mars-stroke::before{content:""}.fa-vial::before{content:""}.fa-gauge::before{content:""}.fa-dashboard::before{content:""}.fa-gauge-med::before{content:""}.fa-tachometer-alt-average::before{content:""}.fa-wand-magic-sparkles::before{content:""}.fa-magic-wand-sparkles::before{content:""}.fa-e::before{content:"E"}.fa-pen-clip::before{content:""}.fa-pen-alt::before{content:""}.fa-bridge-circle-exclamation::before{content:""}.fa-user::before{content:""}.fa-school-circle-check::before{content:""}.fa-dumpster::before{content:""}.fa-van-shuttle::before{content:""}.fa-shuttle-van::before{content:""}.fa-building-user::before{content:""}.fa-square-caret-left::before{content:""}.fa-caret-square-left::before{content:""}.fa-highlighter::before{content:""}.fa-key::before{content:""}.fa-bullhorn::before{content:""}.fa-globe::before{content:""}.fa-synagogue::before{content:""}.fa-person-half-dress::before{content:""}.fa-road-bridge::before{content:""}.fa-location-arrow::before{content:""}.fa-c::before{content:"C"}.fa-tablet-button::before{content:""}.fa-building-lock::before{content:""}.fa-pizza-slice::before{content:""}.fa-money-bill-wave::before{content:""}.fa-chart-area::before{content:""}.fa-area-chart::before{content:""}.fa-house-flag::before{content:""}.fa-person-circle-minus::before{content:""}.fa-ban::before{content:""}.fa-cancel::before{content:""}.fa-camera-rotate::before{content:""}.fa-spray-can-sparkles::before{content:""}.fa-air-freshener::before{content:""}.fa-star::before{content:""}.fa-repeat::before{content:""}.fa-cross::before{content:""}.fa-box::before{content:""}.fa-venus-mars::before{content:""}.fa-arrow-pointer::before{content:""}.fa-mouse-pointer::before{content:""}.fa-maximize::before{content:""}.fa-expand-arrows-alt::before{content:""}.fa-charging-station::before{content:""}.fa-shapes::before{content:""}.fa-triangle-circle-square::before{content:""}.fa-shuffle::before{content:""}.fa-random::before{content:""}.fa-person-running::before{content:""}.fa-running::before{content:""}.fa-mobile-retro::before{content:""}.fa-grip-lines-vertical::before{content:""}.fa-spider::before{content:""}.fa-hands-bound::before{content:""}.fa-file-invoice-dollar::before{content:""}.fa-plane-circle-exclamation::before{content:""}.fa-x-ray::before{content:""}.fa-spell-check::before{content:""}.fa-slash::before{content:""}.fa-computer-mouse::before{content:""}.fa-mouse::before{content:""}.fa-arrow-right-to-bracket::before{content:""}.fa-sign-in::before{content:""}.fa-shop-slash::before{content:""}.fa-store-alt-slash::before{content:""}.fa-server::before{content:""}.fa-virus-covid-slash::before{content:""}.fa-shop-lock::before{content:""}.fa-hourglass-start::before{content:""}.fa-hourglass-1::before{content:""}.fa-blender-phone::before{content:""}.fa-building-wheat::before{content:""}.fa-person-breastfeeding::before{content:""}.fa-right-to-bracket::before{content:""}.fa-sign-in-alt::before{content:""}.fa-venus::before{content:""}.fa-passport::before{content:""}.fa-thumbtack-slash::before{content:""}.fa-thumb-tack-slash::before{content:""}.fa-heart-pulse::before{content:""}.fa-heartbeat::before{content:""}.fa-people-carry-box::before{content:""}.fa-people-carry::before{content:""}.fa-temperature-high::before{content:""}.fa-microchip::before{content:""}.fa-crown::before{content:""}.fa-weight-hanging::before{content:""}.fa-xmarks-lines::before{content:""}.fa-file-prescription::before{content:""}.fa-weight-scale::before{content:""}.fa-weight::before{content:""}.fa-user-group::before{content:""}.fa-user-friends::before{content:""}.fa-arrow-up-a-z::before{content:""}.fa-sort-alpha-up::before{content:""}.fa-chess-knight::before{content:""}.fa-face-laugh-squint::before{content:""}.fa-laugh-squint::before{content:""}.fa-wheelchair::before{content:""}.fa-circle-arrow-up::before{content:""}.fa-arrow-circle-up::before{content:""}.fa-toggle-on::before{content:""}.fa-person-walking::before{content:""}.fa-walking::before{content:""}.fa-l::before{content:"L"}.fa-fire::before{content:""}.fa-bed-pulse::before{content:""}.fa-procedures::before{content:""}.fa-shuttle-space::before{content:""}.fa-space-shuttle::before{content:""}.fa-face-laugh::before{content:""}.fa-laugh::before{content:""}.fa-folder-open::before{content:""}.fa-heart-circle-plus::before{content:""}.fa-code-fork::before{content:""}.fa-city::before{content:""}.fa-microphone-lines::before{content:""}.fa-microphone-alt::before{content:""}.fa-pepper-hot::before{content:""}.fa-unlock::before{content:""}.fa-colon-sign::before{content:""}.fa-headset::before{content:""}.fa-store-slash::before{content:""}.fa-road-circle-xmark::before{content:""}.fa-user-minus::before{content:""}.fa-mars-stroke-up::before{content:""}.fa-mars-stroke-v::before{content:""}.fa-champagne-glasses::before{content:""}.fa-glass-cheers::before{content:""}.fa-clipboard::before{content:""}.fa-house-circle-exclamation::before{content:""}.fa-file-arrow-up::before{content:""}.fa-file-upload::before{content:""}.fa-wifi::before{content:""}.fa-wifi-3::before{content:""}.fa-wifi-strong::before{content:""}.fa-bath::before{content:""}.fa-bathtub::before{content:""}.fa-underline::before{content:""}.fa-user-pen::before{content:""}.fa-user-edit::before{content:""}.fa-signature::before{content:""}.fa-stroopwafel::before{content:""}.fa-bold::before{content:""}.fa-anchor-lock::before{content:""}.fa-building-ngo::before{content:""}.fa-manat-sign::before{content:""}.fa-not-equal::before{content:""}.fa-border-top-left::before{content:""}.fa-border-style::before{content:""}.fa-map-location-dot::before{content:""}.fa-map-marked-alt::before{content:""}.fa-jedi::before{content:""}.fa-square-poll-vertical::before{content:""}.fa-poll::before{content:""}.fa-mug-hot::before{content:""}.fa-car-battery::before{content:""}.fa-battery-car::before{content:""}.fa-gift::before{content:""}.fa-dice-two::before{content:""}.fa-chess-queen::before{content:""}.fa-glasses::before{content:""}.fa-chess-board::before{content:""}.fa-building-circle-check::before{content:""}.fa-person-chalkboard::before{content:""}.fa-mars-stroke-right::before{content:""}.fa-mars-stroke-h::before{content:""}.fa-hand-back-fist::before{content:""}.fa-hand-rock::before{content:""}.fa-square-caret-up::before{content:""}.fa-caret-square-up::before{content:""}.fa-cloud-showers-water::before{content:""}.fa-chart-bar::before{content:""}.fa-bar-chart::before{content:""}.fa-hands-bubbles::before{content:""}.fa-hands-wash::before{content:""}.fa-less-than-equal::before{content:""}.fa-train::before{content:""}.fa-eye-low-vision::before{content:""}.fa-low-vision::before{content:""}.fa-crow::before{content:""}.fa-sailboat::before{content:""}.fa-window-restore::before{content:""}.fa-square-plus::before{content:""}.fa-plus-square::before{content:""}.fa-torii-gate::before{content:""}.fa-frog::before{content:""}.fa-bucket::before{content:""}.fa-image::before{content:""}.fa-microphone::before{content:""}.fa-cow::before{content:""}.fa-caret-up::before{content:""}.fa-screwdriver::before{content:""}.fa-folder-closed::before{content:""}.fa-house-tsunami::before{content:""}.fa-square-nfi::before{content:""}.fa-arrow-up-from-ground-water::before{content:""}.fa-martini-glass::before{content:""}.fa-glass-martini-alt::before{content:""}.fa-rotate-left::before{content:""}.fa-rotate-back::before{content:""}.fa-rotate-backward::before{content:""}.fa-undo-alt::before{content:""}.fa-table-columns::before{content:""}.fa-columns::before{content:""}.fa-lemon::before{content:""}.fa-head-side-mask::before{content:""}.fa-handshake::before{content:""}.fa-gem::before{content:""}.fa-dolly::before{content:""}.fa-dolly-box::before{content:""}.fa-smoking::before{content:""}.fa-minimize::before{content:""}.fa-compress-arrows-alt::before{content:""}.fa-monument::before{content:""}.fa-snowplow::before{content:""}.fa-angles-right::before{content:""}.fa-angle-double-right::before{content:""}.fa-cannabis::before{content:""}.fa-circle-play::before{content:""}.fa-play-circle::before{content:""}.fa-tablets::before{content:""}.fa-ethernet::before{content:""}.fa-euro-sign::before{content:""}.fa-eur::before{content:""}.fa-euro::before{content:""}.fa-chair::before{content:""}.fa-circle-check::before{content:""}.fa-check-circle::before{content:""}.fa-circle-stop::before{content:""}.fa-stop-circle::before{content:""}.fa-compass-drafting::before{content:""}.fa-drafting-compass::before{content:""}.fa-plate-wheat::before{content:""}.fa-icicles::before{content:""}.fa-person-shelter::before{content:""}.fa-neuter::before{content:""}.fa-id-badge::before{content:""}.fa-marker::before{content:""}.fa-face-laugh-beam::before{content:""}.fa-laugh-beam::before{content:""}.fa-helicopter-symbol::before{content:""}.fa-universal-access::before{content:""}.fa-circle-chevron-up::before{content:""}.fa-chevron-circle-up::before{content:""}.fa-lari-sign::before{content:""}.fa-volcano::before{content:""}.fa-person-walking-dashed-line-arrow-right::before{content:""}.fa-sterling-sign::before{content:""}.fa-gbp::before{content:""}.fa-pound-sign::before{content:""}.fa-viruses::before{content:""}.fa-square-person-confined::before{content:""}.fa-user-tie::before{content:""}.fa-arrow-down-long::before{content:""}.fa-long-arrow-down::before{content:""}.fa-tent-arrow-down-to-line::before{content:""}.fa-certificate::before{content:""}.fa-reply-all::before{content:""}.fa-mail-reply-all::before{content:""}.fa-suitcase::before{content:""}.fa-person-skating::before{content:""}.fa-skating::before{content:""}.fa-filter-circle-dollar::before{content:""}.fa-funnel-dollar::before{content:""}.fa-camera-retro::before{content:""}.fa-circle-arrow-down::before{content:""}.fa-arrow-circle-down::before{content:""}.fa-file-import::before{content:""}.fa-arrow-right-to-file::before{content:""}.fa-square-arrow-up-right::before{content:""}.fa-external-link-square::before{content:""}.fa-box-open::before{content:""}.fa-scroll::before{content:""}.fa-spa::before{content:""}.fa-location-pin-lock::before{content:""}.fa-pause::before{content:""}.fa-hill-avalanche::before{content:""}.fa-temperature-empty::before{content:""}.fa-temperature-0::before{content:""}.fa-thermometer-0::before{content:""}.fa-thermometer-empty::before{content:""}.fa-bomb::before{content:""}.fa-registered::before{content:""}.fa-address-card::before{content:""}.fa-contact-card::before{content:""}.fa-vcard::before{content:""}.fa-scale-unbalanced-flip::before{content:""}.fa-balance-scale-right::before{content:""}.fa-subscript::before{content:""}.fa-diamond-turn-right::before{content:""}.fa-directions::before{content:""}.fa-burst::before{content:""}.fa-house-laptop::before{content:""}.fa-laptop-house::before{content:""}.fa-face-tired::before{content:""}.fa-tired::before{content:""}.fa-money-bills::before{content:""}.fa-smog::before{content:""}.fa-crutch::before{content:""}.fa-cloud-arrow-up::before{content:""}.fa-cloud-upload::before{content:""}.fa-cloud-upload-alt::before{content:""}.fa-palette::before{content:""}.fa-arrows-turn-right::before{content:""}.fa-vest::before{content:""}.fa-ferry::before{content:""}.fa-arrows-down-to-people::before{content:""}.fa-seedling::before{content:""}.fa-sprout::before{content:""}.fa-left-right::before{content:""}.fa-arrows-alt-h::before{content:""}.fa-boxes-packing::before{content:""}.fa-circle-arrow-left::before{content:""}.fa-arrow-circle-left::before{content:""}.fa-group-arrows-rotate::before{content:""}.fa-bowl-food::before{content:""}.fa-candy-cane::before{content:""}.fa-arrow-down-wide-short::before{content:""}.fa-sort-amount-asc::before{content:""}.fa-sort-amount-down::before{content:""}.fa-cloud-bolt::before{content:""}.fa-thunderstorm::before{content:""}.fa-text-slash::before{content:""}.fa-remove-format::before{content:""}.fa-face-smile-wink::before{content:""}.fa-smile-wink::before{content:""}.fa-file-word::before{content:""}.fa-file-powerpoint::before{content:""}.fa-arrows-left-right::before{content:""}.fa-arrows-h::before{content:""}.fa-house-lock::before{content:""}.fa-cloud-arrow-down::before{content:""}.fa-cloud-download::before{content:""}.fa-cloud-download-alt::before{content:""}.fa-children::before{content:""}.fa-chalkboard::before{content:""}.fa-blackboard::before{content:""}.fa-user-large-slash::before{content:""}.fa-user-alt-slash::before{content:""}.fa-envelope-open::before{content:""}.fa-handshake-simple-slash::before{content:""}.fa-handshake-alt-slash::before{content:""}.fa-mattress-pillow::before{content:""}.fa-guarani-sign::before{content:""}.fa-arrows-rotate::before{content:""}.fa-refresh::before{content:""}.fa-sync::before{content:""}.fa-fire-extinguisher::before{content:""}.fa-cruzeiro-sign::before{content:""}.fa-greater-than-equal::before{content:""}.fa-shield-halved::before{content:""}.fa-shield-alt::before{content:""}.fa-book-atlas::before{content:""}.fa-atlas::before{content:""}.fa-virus::before{content:""}.fa-envelope-circle-check::before{content:""}.fa-layer-group::before{content:""}.fa-arrows-to-dot::before{content:""}.fa-archway::before{content:""}.fa-heart-circle-check::before{content:""}.fa-house-chimney-crack::before{content:""}.fa-house-damage::before{content:""}.fa-file-zipper::before{content:""}.fa-file-archive::before{content:""}.fa-square::before{content:""}.fa-martini-glass-empty::before{content:""}.fa-glass-martini::before{content:""}.fa-couch::before{content:""}.fa-cedi-sign::before{content:""}.fa-italic::before{content:""}.fa-table-cells-column-lock::before{content:""}.fa-church::before{content:""}.fa-comments-dollar::before{content:""}.fa-democrat::before{content:""}.fa-z::before{content:"Z"}.fa-person-skiing::before{content:""}.fa-skiing::before{content:""}.fa-road-lock::before{content:""}.fa-a::before{content:"A"}.fa-temperature-arrow-down::before{content:""}.fa-temperature-down::before{content:""}.fa-feather-pointed::before{content:""}.fa-feather-alt::before{content:""}.fa-p::before{content:"P"}.fa-snowflake::before{content:""}.fa-newspaper::before{content:""}.fa-rectangle-ad::before{content:""}.fa-ad::before{content:""}.fa-circle-arrow-right::before{content:""}.fa-arrow-circle-right::before{content:""}.fa-filter-circle-xmark::before{content:""}.fa-locust::before{content:""}.fa-sort::before{content:""}.fa-unsorted::before{content:""}.fa-list-ol::before{content:""}.fa-list-1-2::before{content:""}.fa-list-numeric::before{content:""}.fa-person-dress-burst::before{content:""}.fa-money-check-dollar::before{content:""}.fa-money-check-alt::before{content:""}.fa-vector-square::before{content:""}.fa-bread-slice::before{content:""}.fa-language::before{content:""}.fa-face-kiss-wink-heart::before{content:""}.fa-kiss-wink-heart::before{content:""}.fa-filter::before{content:""}.fa-question::before{content:"\?"}.fa-file-signature::before{content:""}.fa-up-down-left-right::before{content:""}.fa-arrows-alt::before{content:""}.fa-house-chimney-user::before{content:""}.fa-hand-holding-heart::before{content:""}.fa-puzzle-piece::before{content:""}.fa-money-check::before{content:""}.fa-star-half-stroke::before{content:""}.fa-star-half-alt::before{content:""}.fa-code::before{content:""}.fa-whiskey-glass::before{content:""}.fa-glass-whiskey::before{content:""}.fa-building-circle-exclamation::before{content:""}.fa-magnifying-glass-chart::before{content:""}.fa-arrow-up-right-from-square::before{content:""}.fa-external-link::before{content:""}.fa-cubes-stacked::before{content:""}.fa-won-sign::before{content:""}.fa-krw::before{content:""}.fa-won::before{content:""}.fa-virus-covid::before{content:""}.fa-austral-sign::before{content:""}.fa-f::before{content:"F"}.fa-leaf::before{content:""}.fa-road::before{content:""}.fa-taxi::before{content:""}.fa-cab::before{content:""}.fa-person-circle-plus::before{content:""}.fa-chart-pie::before{content:""}.fa-pie-chart::before{content:""}.fa-bolt-lightning::before{content:""}.fa-sack-xmark::before{content:""}.fa-file-excel::before{content:""}.fa-file-contract::before{content:""}.fa-fish-fins::before{content:""}.fa-building-flag::before{content:""}.fa-face-grin-beam::before{content:""}.fa-grin-beam::before{content:""}.fa-object-ungroup::before{content:""}.fa-poop::before{content:""}.fa-location-pin::before{content:""}.fa-map-marker::before{content:""}.fa-kaaba::before{content:""}.fa-toilet-paper::before{content:""}.fa-helmet-safety::before{content:""}.fa-hard-hat::before{content:""}.fa-hat-hard::before{content:""}.fa-eject::before{content:""}.fa-circle-right::before{content:""}.fa-arrow-alt-circle-right::before{content:""}.fa-plane-circle-check::before{content:""}.fa-face-rolling-eyes::before{content:""}.fa-meh-rolling-eyes::before{content:""}.fa-object-group::before{content:""}.fa-chart-line::before{content:""}.fa-line-chart::before{content:""}.fa-mask-ventilator::before{content:""}.fa-arrow-right::before{content:""}.fa-signs-post::before{content:""}.fa-map-signs::before{content:""}.fa-cash-register::before{content:""}.fa-person-circle-question::before{content:""}.fa-h::before{content:"H"}.fa-tarp::before{content:""}.fa-screwdriver-wrench::before{content:""}.fa-tools::before{content:""}.fa-arrows-to-eye::before{content:""}.fa-plug-circle-bolt::before{content:""}.fa-heart::before{content:""}.fa-mars-and-venus::before{content:""}.fa-house-user::before{content:""}.fa-home-user::before{content:""}.fa-dumpster-fire::before{content:""}.fa-house-crack::before{content:""}.fa-martini-glass-citrus::before{content:""}.fa-cocktail::before{content:""}.fa-face-surprise::before{content:""}.fa-surprise::before{content:""}.fa-bottle-water::before{content:""}.fa-circle-pause::before{content:""}.fa-pause-circle::before{content:""}.fa-toilet-paper-slash::before{content:""}.fa-apple-whole::before{content:""}.fa-apple-alt::before{content:""}.fa-kitchen-set::before{content:""}.fa-r::before{content:"R"}.fa-temperature-quarter::before{content:""}.fa-temperature-1::before{content:""}.fa-thermometer-1::before{content:""}.fa-thermometer-quarter::before{content:""}.fa-cube::before{content:""}.fa-bitcoin-sign::before{content:""}.fa-shield-dog::before{content:""}.fa-solar-panel::before{content:""}.fa-lock-open::before{content:""}.fa-elevator::before{content:""}.fa-money-bill-transfer::before{content:""}.fa-money-bill-trend-up::before{content:""}.fa-house-flood-water-circle-arrow-right::before{content:""}.fa-square-poll-horizontal::before{content:""}.fa-poll-h::before{content:""}.fa-circle::before{content:""}.fa-backward-fast::before{content:""}.fa-fast-backward::before{content:""}.fa-recycle::before{content:""}.fa-user-astronaut::before{content:""}.fa-plane-slash::before{content:""}.fa-trademark::before{content:""}.fa-basketball::before{content:""}.fa-basketball-ball::before{content:""}.fa-satellite-dish::before{content:""}.fa-circle-up::before{content:""}.fa-arrow-alt-circle-up::before{content:""}.fa-mobile-screen-button::before{content:""}.fa-mobile-alt::before{content:""}.fa-volume-high::before{content:""}.fa-volume-up::before{content:""}.fa-users-rays::before{content:""}.fa-wallet::before{content:""}.fa-clipboard-check::before{content:""}.fa-file-audio::before{content:""}.fa-burger::before{content:""}.fa-hamburger::before{content:""}.fa-wrench::before{content:""}.fa-bugs::before{content:""}.fa-rupee-sign::before{content:""}.fa-rupee::before{content:""}.fa-file-image::before{content:""}.fa-circle-question::before{content:""}.fa-question-circle::before{content:""}.fa-plane-departure::before{content:""}.fa-handshake-slash::before{content:""}.fa-book-bookmark::before{content:""}.fa-code-branch::before{content:""}.fa-hat-cowboy::before{content:""}.fa-bridge::before{content:""}.fa-phone-flip::before{content:""}.fa-phone-alt::before{content:""}.fa-truck-front::before{content:""}.fa-cat::before{content:""}.fa-anchor-circle-exclamation::before{content:""}.fa-truck-field::before{content:""}.fa-route::before{content:""}.fa-clipboard-question::before{content:""}.fa-panorama::before{content:""}.fa-comment-medical::before{content:""}.fa-teeth-open::before{content:""}.fa-file-circle-minus::before{content:""}.fa-tags::before{content:""}.fa-wine-glass::before{content:""}.fa-forward-fast::before{content:""}.fa-fast-forward::before{content:""}.fa-face-meh-blank::before{content:""}.fa-meh-blank::before{content:""}.fa-square-parking::before{content:""}.fa-parking::before{content:""}.fa-house-signal::before{content:""}.fa-bars-progress::before{content:""}.fa-tasks-alt::before{content:""}.fa-faucet-drip::before{content:""}.fa-cart-flatbed::before{content:""}.fa-dolly-flatbed::before{content:""}.fa-ban-smoking::before{content:""}.fa-smoking-ban::before{content:""}.fa-terminal::before{content:""}.fa-mobile-button::before{content:""}.fa-house-medical-flag::before{content:""}.fa-basket-shopping::before{content:""}.fa-shopping-basket::before{content:""}.fa-tape::before{content:""}.fa-bus-simple::before{content:""}.fa-bus-alt::before{content:""}.fa-eye::before{content:""}.fa-face-sad-cry::before{content:""}.fa-sad-cry::before{content:""}.fa-audio-description::before{content:""}.fa-person-military-to-person::before{content:""}.fa-file-shield::before{content:""}.fa-user-slash::before{content:""}.fa-pen::before{content:""}.fa-tower-observation::before{content:""}.fa-file-code::before{content:""}.fa-signal::before{content:""}.fa-signal-5::before{content:""}.fa-signal-perfect::before{content:""}.fa-bus::before{content:""}.fa-heart-circle-xmark::before{content:""}.fa-house-chimney::before{content:""}.fa-home-lg::before{content:""}.fa-window-maximize::before{content:""}.fa-face-frown::before{content:""}.fa-frown::before{content:""}.fa-prescription::before{content:""}.fa-shop::before{content:""}.fa-store-alt::before{content:""}.fa-floppy-disk::before{content:""}.fa-save::before{content:""}.fa-vihara::before{content:""}.fa-scale-unbalanced::before{content:""}.fa-balance-scale-left::before{content:""}.fa-sort-up::before{content:""}.fa-sort-asc::before{content:""}.fa-comment-dots::before{content:""}.fa-commenting::before{content:""}.fa-plant-wilt::before{content:""}.fa-diamond::before{content:""}.fa-face-grin-squint::before{content:""}.fa-grin-squint::before{content:""}.fa-hand-holding-dollar::before{content:""}.fa-hand-holding-usd::before{content:""}.fa-bacterium::before{content:""}.fa-hand-pointer::before{content:""}.fa-drum-steelpan::before{content:""}.fa-hand-scissors::before{content:""}.fa-hands-praying::before{content:""}.fa-praying-hands::before{content:""}.fa-arrow-rotate-right::before{content:""}.fa-arrow-right-rotate::before{content:""}.fa-arrow-rotate-forward::before{content:""}.fa-redo::before{content:""}.fa-biohazard::before{content:""}.fa-location-crosshairs::before{content:""}.fa-location::before{content:""}.fa-mars-double::before{content:""}.fa-child-dress::before{content:""}.fa-users-between-lines::before{content:""}.fa-lungs-virus::before{content:""}.fa-face-grin-tears::before{content:""}.fa-grin-tears::before{content:""}.fa-phone::before{content:""}.fa-calendar-xmark::before{content:""}.fa-calendar-times::before{content:""}.fa-child-reaching::before{content:""}.fa-head-side-virus::before{content:""}.fa-user-gear::before{content:""}.fa-user-cog::before{content:""}.fa-arrow-up-1-9::before{content:""}.fa-sort-numeric-up::before{content:""}.fa-door-closed::before{content:""}.fa-shield-virus::before{content:""}.fa-dice-six::before{content:""}.fa-mosquito-net::before{content:""}.fa-bridge-water::before{content:""}.fa-person-booth::before{content:""}.fa-text-width::before{content:""}.fa-hat-wizard::before{content:""}.fa-pen-fancy::before{content:""}.fa-person-digging::before{content:""}.fa-digging::before{content:""}.fa-trash::before{content:""}.fa-gauge-simple::before{content:""}.fa-gauge-simple-med::before{content:""}.fa-tachometer-average::before{content:""}.fa-book-medical::before{content:""}.fa-poo::before{content:""}.fa-quote-right::before{content:""}.fa-quote-right-alt::before{content:""}.fa-shirt::before{content:""}.fa-t-shirt::before{content:""}.fa-tshirt::before{content:""}.fa-cubes::before{content:""}.fa-divide::before{content:""}.fa-tenge-sign::before{content:""}.fa-tenge::before{content:""}.fa-headphones::before{content:""}.fa-hands-holding::before{content:""}.fa-hands-clapping::before{content:""}.fa-republican::before{content:""}.fa-arrow-left::before{content:""}.fa-person-circle-xmark::before{content:""}.fa-ruler::before{content:""}.fa-align-left::before{content:""}.fa-dice-d6::before{content:""}.fa-restroom::before{content:""}.fa-j::before{content:"J"}.fa-users-viewfinder::before{content:""}.fa-file-video::before{content:""}.fa-up-right-from-square::before{content:""}.fa-external-link-alt::before{content:""}.fa-table-cells::before{content:""}.fa-th::before{content:""}.fa-file-pdf::before{content:""}.fa-book-bible::before{content:""}.fa-bible::before{content:""}.fa-o::before{content:"O"}.fa-suitcase-medical::before{content:""}.fa-medkit::before{content:""}.fa-user-secret::before{content:""}.fa-otter::before{content:""}.fa-person-dress::before{content:""}.fa-female::before{content:""}.fa-comment-dollar::before{content:""}.fa-business-time::before{content:""}.fa-briefcase-clock::before{content:""}.fa-table-cells-large::before{content:""}.fa-th-large::before{content:""}.fa-book-tanakh::before{content:""}.fa-tanakh::before{content:""}.fa-phone-volume::before{content:""}.fa-volume-control-phone::before{content:""}.fa-hat-cowboy-side::before{content:""}.fa-clipboard-user::before{content:""}.fa-child::before{content:""}.fa-lira-sign::before{content:""}.fa-satellite::before{content:""}.fa-plane-lock::before{content:""}.fa-tag::before{content:""}.fa-comment::before{content:""}.fa-cake-candles::before{content:""}.fa-birthday-cake::before{content:""}.fa-cake::before{content:""}.fa-envelope::before{content:""}.fa-angles-up::before{content:""}.fa-angle-double-up::before{content:""}.fa-paperclip::before{content:""}.fa-arrow-right-to-city::before{content:""}.fa-ribbon::before{content:""}.fa-lungs::before{content:""}.fa-arrow-up-9-1::before{content:""}.fa-sort-numeric-up-alt::before{content:""}.fa-litecoin-sign::before{content:""}.fa-border-none::before{content:""}.fa-circle-nodes::before{content:""}.fa-parachute-box::before{content:""}.fa-indent::before{content:""}.fa-truck-field-un::before{content:""}.fa-hourglass::before{content:""}.fa-hourglass-empty::before{content:""}.fa-mountain::before{content:""}.fa-user-doctor::before{content:""}.fa-user-md::before{content:""}.fa-circle-info::before{content:""}.fa-info-circle::before{content:""}.fa-cloud-meatball::before{content:""}.fa-camera::before{content:""}.fa-camera-alt::before{content:""}.fa-square-virus::before{content:""}.fa-meteor::before{content:""}.fa-car-on::before{content:""}.fa-sleigh::before{content:""}.fa-arrow-down-1-9::before{content:""}.fa-sort-numeric-asc::before{content:""}.fa-sort-numeric-down::before{content:""}.fa-hand-holding-droplet::before{content:""}.fa-hand-holding-water::before{content:""}.fa-water::before{content:""}.fa-calendar-check::before{content:""}.fa-braille::before{content:""}.fa-prescription-bottle-medical::before{content:""}.fa-prescription-bottle-alt::before{content:""}.fa-landmark::before{content:""}.fa-truck::before{content:""}.fa-crosshairs::before{content:""}.fa-person-cane::before{content:""}.fa-tent::before{content:""}.fa-vest-patches::before{content:""}.fa-check-double::before{content:""}.fa-arrow-down-a-z::before{content:""}.fa-sort-alpha-asc::before{content:""}.fa-sort-alpha-down::before{content:""}.fa-money-bill-wheat::before{content:""}.fa-cookie::before{content:""}.fa-arrow-rotate-left::before{content:""}.fa-arrow-left-rotate::before{content:""}.fa-arrow-rotate-back::before{content:""}.fa-arrow-rotate-backward::before{content:""}.fa-undo::before{content:""}.fa-hard-drive::before{content:""}.fa-hdd::before{content:""}.fa-face-grin-squint-tears::before{content:""}.fa-grin-squint-tears::before{content:""}.fa-dumbbell::before{content:""}.fa-rectangle-list::before{content:""}.fa-list-alt::before{content:""}.fa-tarp-droplet::before{content:""}.fa-house-medical-circle-check::before{content:""}.fa-person-skiing-nordic::before{content:""}.fa-skiing-nordic::before{content:""}.fa-calendar-plus::before{content:""}.fa-plane-arrival::before{content:""}.fa-circle-left::before{content:""}.fa-arrow-alt-circle-left::before{content:""}.fa-train-subway::before{content:""}.fa-subway::before{content:""}.fa-chart-gantt::before{content:""}.fa-indian-rupee-sign::before{content:""}.fa-indian-rupee::before{content:""}.fa-inr::before{content:""}.fa-crop-simple::before{content:""}.fa-crop-alt::before{content:""}.fa-money-bill-1::before{content:""}.fa-money-bill-alt::before{content:""}.fa-left-long::before{content:""}.fa-long-arrow-alt-left::before{content:""}.fa-dna::before{content:""}.fa-virus-slash::before{content:""}.fa-minus::before{content:""}.fa-subtract::before{content:""}.fa-chess::before{content:""}.fa-arrow-left-long::before{content:""}.fa-long-arrow-left::before{content:""}.fa-plug-circle-check::before{content:""}.fa-street-view::before{content:""}.fa-franc-sign::before{content:""}.fa-volume-off::before{content:""}.fa-hands-asl-interpreting::before{content:""}.fa-american-sign-language-interpreting::before{content:""}.fa-asl-interpreting::before{content:""}.fa-hands-american-sign-language-interpreting::before{content:""}.fa-gear::before{content:""}.fa-cog::before{content:""}.fa-droplet-slash::before{content:""}.fa-tint-slash::before{content:""}.fa-mosque::before{content:""}.fa-mosquito::before{content:""}.fa-star-of-david::before{content:""}.fa-person-military-rifle::before{content:""}.fa-cart-shopping::before{content:""}.fa-shopping-cart::before{content:""}.fa-vials::before{content:""}.fa-plug-circle-plus::before{content:""}.fa-place-of-worship::before{content:""}.fa-grip-vertical::before{content:""}.fa-arrow-turn-up::before{content:""}.fa-level-up::before{content:""}.fa-u::before{content:"U"}.fa-square-root-variable::before{content:""}.fa-square-root-alt::before{content:""}.fa-clock::before{content:""}.fa-clock-four::before{content:""}.fa-backward-step::before{content:""}.fa-step-backward::before{content:""}.fa-pallet::before{content:""}.fa-faucet::before{content:""}.fa-baseball-bat-ball::before{content:""}.fa-s::before{content:"S"}.fa-timeline::before{content:""}.fa-keyboard::before{content:""}.fa-caret-down::before{content:""}.fa-house-chimney-medical::before{content:""}.fa-clinic-medical::before{content:""}.fa-temperature-three-quarters::before{content:""}.fa-temperature-3::before{content:""}.fa-thermometer-3::before{content:""}.fa-thermometer-three-quarters::before{content:""}.fa-mobile-screen::before{content:""}.fa-mobile-android-alt::before{content:""}.fa-plane-up::before{content:""}.fa-piggy-bank::before{content:""}.fa-battery-half::before{content:""}.fa-battery-3::before{content:""}.fa-mountain-city::before{content:""}.fa-coins::before{content:""}.fa-khanda::before{content:""}.fa-sliders::before{content:""}.fa-sliders-h::before{content:""}.fa-folder-tree::before{content:""}.fa-network-wired::before{content:""}.fa-map-pin::before{content:""}.fa-hamsa::before{content:""}.fa-cent-sign::before{content:""}.fa-flask::before{content:""}.fa-person-pregnant::before{content:""}.fa-wand-sparkles::before{content:""}.fa-ellipsis-vertical::before{content:""}.fa-ellipsis-v::before{content:""}.fa-ticket::before{content:""}.fa-power-off::before{content:""}.fa-right-long::before{content:""}.fa-long-arrow-alt-right::before{content:""}.fa-flag-usa::before{content:""}.fa-laptop-file::before{content:""}.fa-tty::before{content:""}.fa-teletype::before{content:""}.fa-diagram-next::before{content:""}.fa-person-rifle::before{content:""}.fa-house-medical-circle-exclamation::before{content:""}.fa-closed-captioning::before{content:""}.fa-person-hiking::before{content:""}.fa-hiking::before{content:""}.fa-venus-double::before{content:""}.fa-images::before{content:""}.fa-calculator::before{content:""}.fa-people-pulling::before{content:""}.fa-n::before{content:"N"}.fa-cable-car::before{content:""}.fa-tram::before{content:""}.fa-cloud-rain::before{content:""}.fa-building-circle-xmark::before{content:""}.fa-ship::before{content:""}.fa-arrows-down-to-line::before{content:""}.fa-download::before{content:""}.fa-face-grin::before{content:""}.fa-grin::before{content:""}.fa-delete-left::before{content:""}.fa-backspace::before{content:""}.fa-eye-dropper::before{content:""}.fa-eye-dropper-empty::before{content:""}.fa-eyedropper::before{content:""}.fa-file-circle-check::before{content:""}.fa-forward::before{content:""}.fa-mobile::before{content:""}.fa-mobile-android::before{content:""}.fa-mobile-phone::before{content:""}.fa-face-meh::before{content:""}.fa-meh::before{content:""}.fa-align-center::before{content:""}.fa-book-skull::before{content:""}.fa-book-dead::before{content:""}.fa-id-card::before{content:""}.fa-drivers-license::before{content:""}.fa-outdent::before{content:""}.fa-dedent::before{content:""}.fa-heart-circle-exclamation::before{content:""}.fa-house::before{content:""}.fa-home::before{content:""}.fa-home-alt::before{content:""}.fa-home-lg-alt::before{content:""}.fa-calendar-week::before{content:""}.fa-laptop-medical::before{content:""}.fa-b::before{content:"B"}.fa-file-medical::before{content:""}.fa-dice-one::before{content:""}.fa-kiwi-bird::before{content:""}.fa-arrow-right-arrow-left::before{content:""}.fa-exchange::before{content:""}.fa-rotate-right::before{content:""}.fa-redo-alt::before{content:""}.fa-rotate-forward::before{content:""}.fa-utensils::before{content:""}.fa-cutlery::before{content:""}.fa-arrow-up-wide-short::before{content:""}.fa-sort-amount-up::before{content:""}.fa-mill-sign::before{content:""}.fa-bowl-rice::before{content:""}.fa-skull::before{content:""}.fa-tower-broadcast::before{content:""}.fa-broadcast-tower::before{content:""}.fa-truck-pickup::before{content:""}.fa-up-long::before{content:""}.fa-long-arrow-alt-up::before{content:""}.fa-stop::before{content:""}.fa-code-merge::before{content:""}.fa-upload::before{content:""}.fa-hurricane::before{content:""}.fa-mound::before{content:""}.fa-toilet-portable::before{content:""}.fa-compact-disc::before{content:""}.fa-file-arrow-down::before{content:""}.fa-file-download::before{content:""}.fa-caravan::before{content:""}.fa-shield-cat::before{content:""}.fa-bolt::before{content:""}.fa-zap::before{content:""}.fa-glass-water::before{content:""}.fa-oil-well::before{content:""}.fa-vault::before{content:""}.fa-mars::before{content:""}.fa-toilet::before{content:""}.fa-plane-circle-xmark::before{content:""}.fa-yen-sign::before{content:""}.fa-cny::before{content:""}.fa-jpy::before{content:""}.fa-rmb::before{content:""}.fa-yen::before{content:""}.fa-ruble-sign::before{content:""}.fa-rouble::before{content:""}.fa-rub::before{content:""}.fa-ruble::before{content:""}.fa-sun::before{content:""}.fa-guitar::before{content:""}.fa-face-laugh-wink::before{content:""}.fa-laugh-wink::before{content:""}.fa-horse-head::before{content:""}.fa-bore-hole::before{content:""}.fa-industry::before{content:""}.fa-circle-down::before{content:""}.fa-arrow-alt-circle-down::before{content:""}.fa-arrows-turn-to-dots::before{content:""}.fa-florin-sign::before{content:""}.fa-arrow-down-short-wide::before{content:""}.fa-sort-amount-desc::before{content:""}.fa-sort-amount-down-alt::before{content:""}.fa-less-than::before{content:"\<"}.fa-angle-down::before{content:""}.fa-car-tunnel::before{content:""}.fa-head-side-cough::before{content:""}.fa-grip-lines::before{content:""}.fa-thumbs-down::before{content:""}.fa-user-lock::before{content:""}.fa-arrow-right-long::before{content:""}.fa-long-arrow-right::before{content:""}.fa-anchor-circle-xmark::before{content:""}.fa-ellipsis::before{content:""}.fa-ellipsis-h::before{content:""}.fa-chess-pawn::before{content:""}.fa-kit-medical::before{content:""}.fa-first-aid::before{content:""}.fa-person-through-window::before{content:""}.fa-toolbox::before{content:""}.fa-hands-holding-circle::before{content:""}.fa-bug::before{content:""}.fa-credit-card::before{content:""}.fa-credit-card-alt::before{content:""}.fa-car::before{content:""}.fa-automobile::before{content:""}.fa-hand-holding-hand::before{content:""}.fa-book-open-reader::before{content:""}.fa-book-reader::before{content:""}.fa-mountain-sun::before{content:""}.fa-arrows-left-right-to-line::before{content:""}.fa-dice-d20::before{content:""}.fa-truck-droplet::before{content:""}.fa-file-circle-xmark::before{content:""}.fa-temperature-arrow-up::before{content:""}.fa-temperature-up::before{content:""}.fa-medal::before{content:""}.fa-bed::before{content:""}.fa-square-h::before{content:""}.fa-h-square::before{content:""}.fa-podcast::before{content:""}.fa-temperature-full::before{content:""}.fa-temperature-4::before{content:""}.fa-thermometer-4::before{content:""}.fa-thermometer-full::before{content:""}.fa-bell::before{content:""}.fa-superscript::before{content:""}.fa-plug-circle-xmark::before{content:""}.fa-star-of-life::before{content:""}.fa-phone-slash::before{content:""}.fa-paint-roller::before{content:""}.fa-handshake-angle::before{content:""}.fa-hands-helping::before{content:""}.fa-location-dot::before{content:""}.fa-map-marker-alt::before{content:""}.fa-file::before{content:""}.fa-greater-than::before{content:"\>"}.fa-person-swimming::before{content:""}.fa-swimmer::before{content:""}.fa-arrow-down::before{content:""}.fa-droplet::before{content:""}.fa-tint::before{content:""}.fa-eraser::before{content:""}.fa-earth-americas::before{content:""}.fa-earth::before{content:""}.fa-earth-america::before{content:""}.fa-globe-americas::before{content:""}.fa-person-burst::before{content:""}.fa-dove::before{content:""}.fa-battery-empty::before{content:""}.fa-battery-0::before{content:""}.fa-socks::before{content:""}.fa-inbox::before{content:""}.fa-section::before{content:""}.fa-gauge-high::before{content:""}.fa-tachometer-alt::before{content:""}.fa-tachometer-alt-fast::before{content:""}.fa-envelope-open-text::before{content:""}.fa-hospital::before{content:""}.fa-hospital-alt::before{content:""}.fa-hospital-wide::before{content:""}.fa-wine-bottle::before{content:""}.fa-chess-rook::before{content:""}.fa-bars-staggered::before{content:""}.fa-reorder::before{content:""}.fa-stream::before{content:""}.fa-dharmachakra::before{content:""}.fa-hotdog::before{content:""}.fa-person-walking-with-cane::before{content:""}.fa-blind::before{content:""}.fa-drum::before{content:""}.fa-ice-cream::before{content:""}.fa-heart-circle-bolt::before{content:""}.fa-fax::before{content:""}.fa-paragraph::before{content:""}.fa-check-to-slot::before{content:""}.fa-vote-yea::before{content:""}.fa-star-half::before{content:""}.fa-boxes-stacked::before{content:""}.fa-boxes::before{content:""}.fa-boxes-alt::before{content:""}.fa-link::before{content:""}.fa-chain::before{content:""}.fa-ear-listen::before{content:""}.fa-assistive-listening-systems::before{content:""}.fa-tree-city::before{content:""}.fa-play::before{content:""}.fa-font::before{content:""}.fa-table-cells-row-lock::before{content:""}.fa-rupiah-sign::before{content:""}.fa-magnifying-glass::before{content:""}.fa-search::before{content:""}.fa-table-tennis-paddle-ball::before{content:""}.fa-ping-pong-paddle-ball::before{content:""}.fa-table-tennis::before{content:""}.fa-person-dots-from-line::before{content:""}.fa-diagnoses::before{content:""}.fa-trash-can-arrow-up::before{content:""}.fa-trash-restore-alt::before{content:""}.fa-naira-sign::before{content:""}.fa-cart-arrow-down::before{content:""}.fa-walkie-talkie::before{content:""}.fa-file-pen::before{content:""}.fa-file-edit::before{content:""}.fa-receipt::before{content:""}.fa-square-pen::before{content:""}.fa-pen-square::before{content:""}.fa-pencil-square::before{content:""}.fa-suitcase-rolling::before{content:""}.fa-person-circle-exclamation::before{content:""}.fa-chevron-down::before{content:""}.fa-battery-full::before{content:""}.fa-battery::before{content:""}.fa-battery-5::before{content:""}.fa-skull-crossbones::before{content:""}.fa-code-compare::before{content:""}.fa-list-ul::before{content:""}.fa-list-dots::before{content:""}.fa-school-lock::before{content:""}.fa-tower-cell::before{content:""}.fa-down-long::before{content:""}.fa-long-arrow-alt-down::before{content:""}.fa-ranking-star::before{content:""}.fa-chess-king::before{content:""}.fa-person-harassing::before{content:""}.fa-brazilian-real-sign::before{content:""}.fa-landmark-dome::before{content:""}.fa-landmark-alt::before{content:""}.fa-arrow-up::before{content:""}.fa-tv::before{content:""}.fa-television::before{content:""}.fa-tv-alt::before{content:""}.fa-shrimp::before{content:""}.fa-list-check::before{content:""}.fa-tasks::before{content:""}.fa-jug-detergent::before{content:""}.fa-circle-user::before{content:""}.fa-user-circle::before{content:""}.fa-user-shield::before{content:""}.fa-wind::before{content:""}.fa-car-burst::before{content:""}.fa-car-crash::before{content:""}.fa-y::before{content:"Y"}.fa-person-snowboarding::before{content:""}.fa-snowboarding::before{content:""}.fa-truck-fast::before{content:""}.fa-shipping-fast::before{content:""}.fa-fish::before{content:""}.fa-user-graduate::before{content:""}.fa-circle-half-stroke::before{content:""}.fa-adjust::before{content:""}.fa-clapperboard::before{content:""}.fa-circle-radiation::before{content:""}.fa-radiation-alt::before{content:""}.fa-baseball::before{content:""}.fa-baseball-ball::before{content:""}.fa-jet-fighter-up::before{content:""}.fa-diagram-project::before{content:""}.fa-project-diagram::before{content:""}.fa-copy::before{content:""}.fa-volume-xmark::before{content:""}.fa-volume-mute::before{content:""}.fa-volume-times::before{content:""}.fa-hand-sparkles::before{content:""}.fa-grip::before{content:""}.fa-grip-horizontal::before{content:""}.fa-share-from-square::before{content:""}.fa-share-square::before{content:""}.fa-child-combatant::before{content:""}.fa-child-rifle::before{content:""}.fa-gun::before{content:""}.fa-square-phone::before{content:""}.fa-phone-square::before{content:""}.fa-plus::before{content:"\+"}.fa-add::before{content:"\+"}.fa-expand::before{content:""}.fa-computer::before{content:""}.fa-xmark::before{content:""}.fa-close::before{content:""}.fa-multiply::before{content:""}.fa-remove::before{content:""}.fa-times::before{content:""}.fa-arrows-up-down-left-right::before{content:""}.fa-arrows::before{content:""}.fa-chalkboard-user::before{content:""}.fa-chalkboard-teacher::before{content:""}.fa-peso-sign::before{content:""}.fa-building-shield::before{content:""}.fa-baby::before{content:""}.fa-users-line::before{content:""}.fa-quote-left::before{content:""}.fa-quote-left-alt::before{content:""}.fa-tractor::before{content:""}.fa-trash-arrow-up::before{content:""}.fa-trash-restore::before{content:""}.fa-arrow-down-up-lock::before{content:""}.fa-lines-leaning::before{content:""}.fa-ruler-combined::before{content:""}.fa-copyright::before{content:""}.fa-equals::before{content:"\="}.fa-blender::before{content:""}.fa-teeth::before{content:""}.fa-shekel-sign::before{content:""}.fa-ils::before{content:""}.fa-shekel::before{content:""}.fa-sheqel::before{content:""}.fa-sheqel-sign::before{content:""}.fa-map::before{content:""}.fa-rocket::before{content:""}.fa-photo-film::before{content:""}.fa-photo-video::before{content:""}.fa-folder-minus::before{content:""}.fa-store::before{content:""}.fa-arrow-trend-up::before{content:""}.fa-plug-circle-minus::before{content:""}.fa-sign-hanging::before{content:""}.fa-sign::before{content:""}.fa-bezier-curve::before{content:""}.fa-bell-slash::before{content:""}.fa-tablet::before{content:""}.fa-tablet-android::before{content:""}.fa-school-flag::before{content:""}.fa-fill::before{content:""}.fa-angle-up::before{content:""}.fa-drumstick-bite::before{content:""}.fa-holly-berry::before{content:""}.fa-chevron-left::before{content:""}.fa-bacteria::before{content:""}.fa-hand-lizard::before{content:""}.fa-notdef::before{content:""}.fa-disease::before{content:""}.fa-briefcase-medical::before{content:""}.fa-genderless::before{content:""}.fa-chevron-right::before{content:""}.fa-retweet::before{content:""}.fa-car-rear::before{content:""}.fa-car-alt::before{content:""}.fa-pump-soap::before{content:""}.fa-video-slash::before{content:""}.fa-battery-quarter::before{content:""}.fa-battery-2::before{content:""}.fa-radio::before{content:""}.fa-baby-carriage::before{content:""}.fa-carriage-baby::before{content:""}.fa-traffic-light::before{content:""}.fa-thermometer::before{content:""}.fa-vr-cardboard::before{content:""}.fa-hand-middle-finger::before{content:""}.fa-percent::before{content:"\%"}.fa-percentage::before{content:"\%"}.fa-truck-moving::before{content:""}.fa-glass-water-droplet::before{content:""}.fa-display::before{content:""}.fa-face-smile::before{content:""}.fa-smile::before{content:""}.fa-thumbtack::before{content:""}.fa-thumb-tack::before{content:""}.fa-trophy::before{content:""}.fa-person-praying::before{content:""}.fa-pray::before{content:""}.fa-hammer::before{content:""}.fa-hand-peace::before{content:""}.fa-rotate::before{content:""}.fa-sync-alt::before{content:""}.fa-spinner::before{content:""}.fa-robot::before{content:""}.fa-peace::before{content:""}.fa-gears::before{content:""}.fa-cogs::before{content:""}.fa-warehouse::before{content:""}.fa-arrow-up-right-dots::before{content:""}.fa-splotch::before{content:""}.fa-face-grin-hearts::before{content:""}.fa-grin-hearts::before{content:""}.fa-dice-four::before{content:""}.fa-sim-card::before{content:""}.fa-transgender::before{content:""}.fa-transgender-alt::before{content:""}.fa-mercury::before{content:""}.fa-arrow-turn-down::before{content:""}.fa-level-down::before{content:""}.fa-person-falling-burst::before{content:""}.fa-award::before{content:""}.fa-ticket-simple::before{content:""}.fa-ticket-alt::before{content:""}.fa-building::before{content:""}.fa-angles-left::before{content:""}.fa-angle-double-left::before{content:""}.fa-qrcode::before{content:""}.fa-clock-rotate-left::before{content:""}.fa-history::before{content:""}.fa-face-grin-beam-sweat::before{content:""}.fa-grin-beam-sweat::before{content:""}.fa-file-export::before{content:""}.fa-arrow-right-from-file::before{content:""}.fa-shield::before{content:""}.fa-shield-blank::before{content:""}.fa-arrow-up-short-wide::before{content:""}.fa-sort-amount-up-alt::before{content:""}.fa-house-medical::before{content:""}.fa-golf-ball-tee::before{content:""}.fa-golf-ball::before{content:""}.fa-circle-chevron-left::before{content:""}.fa-chevron-circle-left::before{content:""}.fa-house-chimney-window::before{content:""}.fa-pen-nib::before{content:""}.fa-tent-arrow-turn-left::before{content:""}.fa-tents::before{content:""}.fa-wand-magic::before{content:""}.fa-magic::before{content:""}.fa-dog::before{content:""}.fa-carrot::before{content:""}.fa-moon::before{content:""}.fa-wine-glass-empty::before{content:""}.fa-wine-glass-alt::before{content:""}.fa-cheese::before{content:""}.fa-yin-yang::before{content:""}.fa-music::before{content:""}.fa-code-commit::before{content:""}.fa-temperature-low::before{content:""}.fa-person-biking::before{content:""}.fa-biking::before{content:""}.fa-broom::before{content:""}.fa-shield-heart::before{content:""}.fa-gopuram::before{content:""}.fa-earth-oceania::before{content:""}.fa-globe-oceania::before{content:""}.fa-square-xmark::before{content:""}.fa-times-square::before{content:""}.fa-xmark-square::before{content:""}.fa-hashtag::before{content:"\#"}.fa-up-right-and-down-left-from-center::before{content:""}.fa-expand-alt::before{content:""}.fa-oil-can::before{content:""}.fa-t::before{content:"T"}.fa-hippo::before{content:""}.fa-chart-column::before{content:""}.fa-infinity::before{content:""}.fa-vial-circle-check::before{content:""}.fa-person-arrow-down-to-line::before{content:""}.fa-voicemail::before{content:""}.fa-fan::before{content:""}.fa-person-walking-luggage::before{content:""}.fa-up-down::before{content:""}.fa-arrows-alt-v::before{content:""}.fa-cloud-moon-rain::before{content:""}.fa-calendar::before{content:""}.fa-trailer::before{content:""}.fa-bahai::before{content:""}.fa-haykal::before{content:""}.fa-sd-card::before{content:""}.fa-dragon::before{content:""}.fa-shoe-prints::before{content:""}.fa-circle-plus::before{content:""}.fa-plus-circle::before{content:""}.fa-face-grin-tongue-wink::before{content:""}.fa-grin-tongue-wink::before{content:""}.fa-hand-holding::before{content:""}.fa-plug-circle-exclamation::before{content:""}.fa-link-slash::before{content:""}.fa-chain-broken::before{content:""}.fa-chain-slash::before{content:""}.fa-unlink::before{content:""}.fa-clone::before{content:""}.fa-person-walking-arrow-loop-left::before{content:""}.fa-arrow-up-z-a::before{content:""}.fa-sort-alpha-up-alt::before{content:""}.fa-fire-flame-curved::before{content:""}.fa-fire-alt::before{content:""}.fa-tornado::before{content:""}.fa-file-circle-plus::before{content:""}.fa-book-quran::before{content:""}.fa-quran::before{content:""}.fa-anchor::before{content:""}.fa-border-all::before{content:""}.fa-face-angry::before{content:""}.fa-angry::before{content:""}.fa-cookie-bite::before{content:""}.fa-arrow-trend-down::before{content:""}.fa-rss::before{content:""}.fa-feed::before{content:""}.fa-draw-polygon::before{content:""}.fa-scale-balanced::before{content:""}.fa-balance-scale::before{content:""}.fa-gauge-simple-high::before{content:""}.fa-tachometer::before{content:""}.fa-tachometer-fast::before{content:""}.fa-shower::before{content:""}.fa-desktop::before{content:""}.fa-desktop-alt::before{content:""}.fa-m::before{content:"M"}.fa-table-list::before{content:""}.fa-th-list::before{content:""}.fa-comment-sms::before{content:""}.fa-sms::before{content:""}.fa-book::before{content:""}.fa-user-plus::before{content:""}.fa-check::before{content:""}.fa-battery-three-quarters::before{content:""}.fa-battery-4::before{content:""}.fa-house-circle-check::before{content:""}.fa-angle-left::before{content:""}.fa-diagram-successor::before{content:""}.fa-truck-arrow-right::before{content:""}.fa-arrows-split-up-and-left::before{content:""}.fa-hand-fist::before{content:""}.fa-fist-raised::before{content:""}.fa-cloud-moon::before{content:""}.fa-briefcase::before{content:""}.fa-person-falling::before{content:""}.fa-image-portrait::before{content:""}.fa-portrait::before{content:""}.fa-user-tag::before{content:""}.fa-rug::before{content:""}.fa-earth-europe::before{content:""}.fa-globe-europe::before{content:""}.fa-cart-flatbed-suitcase::before{content:""}.fa-luggage-cart::before{content:""}.fa-rectangle-xmark::before{content:""}.fa-rectangle-times::before{content:""}.fa-times-rectangle::before{content:""}.fa-window-close::before{content:""}.fa-baht-sign::before{content:""}.fa-book-open::before{content:""}.fa-book-journal-whills::before{content:""}.fa-journal-whills::before{content:""}.fa-handcuffs::before{content:""}.fa-triangle-exclamation::before{content:""}.fa-exclamation-triangle::before{content:""}.fa-warning::before{content:""}.fa-database::before{content:""}.fa-share::before{content:""}.fa-mail-forward::before{content:""}.fa-bottle-droplet::before{content:""}.fa-mask-face::before{content:""}.fa-hill-rockslide::before{content:""}.fa-right-left::before{content:""}.fa-exchange-alt::before{content:""}.fa-paper-plane::before{content:""}.fa-road-circle-exclamation::before{content:""}.fa-dungeon::before{content:""}.fa-align-right::before{content:""}.fa-money-bill-1-wave::before{content:""}.fa-money-bill-wave-alt::before{content:""}.fa-life-ring::before{content:""}.fa-hands::before{content:""}.fa-sign-language::before{content:""}.fa-signing::before{content:""}.fa-calendar-day::before{content:""}.fa-water-ladder::before{content:""}.fa-ladder-water::before{content:""}.fa-swimming-pool::before{content:""}.fa-arrows-up-down::before{content:""}.fa-arrows-v::before{content:""}.fa-face-grimace::before{content:""}.fa-grimace::before{content:""}.fa-wheelchair-move::before{content:""}.fa-wheelchair-alt::before{content:""}.fa-turn-down::before{content:""}.fa-level-down-alt::before{content:""}.fa-person-walking-arrow-right::before{content:""}.fa-square-envelope::before{content:""}.fa-envelope-square::before{content:""}.fa-dice::before{content:""}.fa-bowling-ball::before{content:""}.fa-brain::before{content:""}.fa-bandage::before{content:""}.fa-band-aid::before{content:""}.fa-calendar-minus::before{content:""}.fa-circle-xmark::before{content:""}.fa-times-circle::before{content:""}.fa-xmark-circle::before{content:""}.fa-gifts::before{content:""}.fa-hotel::before{content:""}.fa-earth-asia::before{content:""}.fa-globe-asia::before{content:""}.fa-id-card-clip::before{content:""}.fa-id-card-alt::before{content:""}.fa-magnifying-glass-plus::before{content:""}.fa-search-plus::before{content:""}.fa-thumbs-up::before{content:""}.fa-user-clock::before{content:""}.fa-hand-dots::before{content:""}.fa-allergies::before{content:""}.fa-file-invoice::before{content:""}.fa-window-minimize::before{content:""}.fa-mug-saucer::before{content:""}.fa-coffee::before{content:""}.fa-brush::before{content:""}.fa-mask::before{content:""}.fa-magnifying-glass-minus::before{content:""}.fa-search-minus::before{content:""}.fa-ruler-vertical::before{content:""}.fa-user-large::before{content:""}.fa-user-alt::before{content:""}.fa-train-tram::before{content:""}.fa-user-nurse::before{content:""}.fa-syringe::before{content:""}.fa-cloud-sun::before{content:""}.fa-stopwatch-20::before{content:""}.fa-square-full::before{content:""}.fa-magnet::before{content:""}.fa-jar::before{content:""}.fa-note-sticky::before{content:""}.fa-sticky-note::before{content:""}.fa-bug-slash::before{content:""}.fa-arrow-up-from-water-pump::before{content:""}.fa-bone::before{content:""}.fa-table-cells-row-unlock::before{content:""}.fa-user-injured::before{content:""}.fa-face-sad-tear::before{content:""}.fa-sad-tear::before{content:""}.fa-plane::before{content:""}.fa-tent-arrows-down::before{content:""}.fa-exclamation::before{content:"\!"}.fa-arrows-spin::before{content:""}.fa-print::before{content:""}.fa-turkish-lira-sign::before{content:""}.fa-try::before{content:""}.fa-turkish-lira::before{content:""}.fa-dollar-sign::before{content:"\$"}.fa-dollar::before{content:"\$"}.fa-usd::before{content:"\$"}.fa-x::before{content:"X"}.fa-magnifying-glass-dollar::before{content:""}.fa-search-dollar::before{content:""}.fa-users-gear::before{content:""}.fa-users-cog::before{content:""}.fa-person-military-pointing::before{content:""}.fa-building-columns::before{content:""}.fa-bank::before{content:""}.fa-institution::before{content:""}.fa-museum::before{content:""}.fa-university::before{content:""}.fa-umbrella::before{content:""}.fa-trowel::before{content:""}.fa-d::before{content:"D"}.fa-stapler::before{content:""}.fa-masks-theater::before{content:""}.fa-theater-masks::before{content:""}.fa-kip-sign::before{content:""}.fa-hand-point-left::before{content:""}.fa-handshake-simple::before{content:""}.fa-handshake-alt::before{content:""}.fa-jet-fighter::before{content:""}.fa-fighter-jet::before{content:""}.fa-square-share-nodes::before{content:""}.fa-share-alt-square::before{content:""}.fa-barcode::before{content:""}.fa-plus-minus::before{content:""}.fa-video::before{content:""}.fa-video-camera::before{content:""}.fa-graduation-cap::before{content:""}.fa-mortar-board::before{content:""}.fa-hand-holding-medical::before{content:""}.fa-person-circle-check::before{content:""}.fa-turn-up::before{content:""}.fa-level-up-alt::before{content:""}.sr-only,.fa-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.sr-only-focusable:not(:focus),.fa-sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*! + * Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2024 Fonticons, Inc. */:root,:host{--fa-style-family-classic: "Font Awesome 6 Free";--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(fonts/fontawesome/fa-solid-900.woff2) format("woff2"),url(fonts/fontawesome/fa-solid-900.ttf) format("truetype")}.fas,.fa-solid{font-weight:900}@font-face{font-family:"fa-solid";src:url(fonts/fontawesome/fa-solid-900.woff2) format("woff2"),url(fonts/fontawesome/fa-solid-900.woff) format("woff")}@font-face{font-family:"PublicSans-Thin";src:url(fonts/public-sans/PublicSans-Thin.woff2) format("woff2"),url(fonts/public-sans/PublicSans-Thin.woff) format("woff")}@font-face{font-family:"PublicSans-Light";src:url(fonts/public-sans/PublicSans-Light.woff2) format("woff2"),url(fonts/public-sans/PublicSans-Light.woff) format("woff")}@font-face{font-family:"PublicSans-Regular";src:url(fonts/public-sans/PublicSans-Regular.woff2) format("woff2"),url(fonts/public-sans/PublicSans-Regular.woff) format("woff")}@font-face{font-family:"PublicSans-Medium";src:url(fonts/public-sans/PublicSans-Medium.woff2) format("woff2"),url(fonts/public-sans/PublicSans-Medium.woff) format("woff")}@font-face{font-family:"PublicSans-Bold";src:url(fonts/public-sans/PublicSans-Bold.woff2) format("woff2"),url(fonts/public-sans/PublicSans-Bold.woff) format("woff")}@font-face{font-family:"Source Sans Pro Web";src:url(fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2) format("woff2"),url(fonts/source-sans-pro/sourcesanspro-regular-webfont.woff) format("woff")}@font-face{font-family:"Source Sans Pro Web-Bold";src:url(fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2) format("woff2"),url(fonts/source-sans-pro/sourcesanspro-bold-webfont.woff) format("woff")}.fas{font-family:"fa-solid"}html{box-sizing:border-box;line-height:1.15;font-family:"Source Sans Pro Web","Helvetica Neue",Helvetica,Arial,sans-serif}*,::after,::before{box-sizing:inherit}body{margin:0;background-color:#dcdee0;overflow-x:auto;overflow-y:auto;overscroll-behavior-y:none}h1,h2,h3,h4,h5,h6{font-family:"PublicSans-Bold",sans-serif;color:#3d4551}h1{margin:0rem .2rem .9rem 0rem}h2,h3{margin:.75rem 0}h3.navhead{font-family:"PublicSans-Medium",sans-serif;font-weight:normal;margin:0 0 1rem 0;font-size:1.2rem}p{margin:.7rem .2rem .7rem 0rem;margin-block-start:0}label{font-family:"PublicSans-Bold",sans-serif;font-size:.9rem}hr{border:1px solid #dfe1e2}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15}button:not(:disabled):focus,input:not(:disabled):focus,optgroup:not(:disabled):focus,select:not(:disabled):focus,textarea:not(:disabled):focus{outline:3px solid #2491ff}legend{color:inherit}#header.site-header{background-color:#252f3e;padding:0 .5em;height:4.5rem;box-shadow:0px 4px 6px rgba(0,0,0,.2);color:#fff}#header.site-header .usa-navbar{width:100%;height:100%;display:flex}#header.site-header .usa-navbar .usa-logo a{position:relative;height:100%;text-decoration:none}#header.site-header .usa-navbar .usa-logo a span.leaf-logo{display:flex;align-items:center;width:56px;height:100%;margin-right:.5rem}#header.site-header .usa-navbar .usa-logo a span.leaf-logo img{width:56px;height:56px}#header.site-header .usa-navbar .usa-logo a .leaf-site-title,#header.site-header .usa-navbar .usa-logo a .leaf-header-description{position:absolute;left:62px;font-family:"PublicSans-Bold",sans-serif;font-style:normal;white-space:nowrap}#header.site-header .usa-navbar .usa-logo a .leaf-site-title{top:17%;font-size:1.2rem}#header.site-header .usa-navbar .usa-logo a .leaf-header-description{top:calc(17% + 1.2rem + 5px);font-size:1rem;font-family:"PublicSans-Regular",sans-serif}#header.site-header .usa-navbar .leaf-header-right{margin:auto .5rem 0 auto;font-family:"PublicSans-Regular",sans-serif;text-align:right;display:flex;width:fit-content;height:100%}#header.site-header .usa-navbar .leaf-header-right #nav{margin:auto 0 0 0;height:auto}#header.site-header .usa-navbar .leaf-header-right #nav li#toggleMenu{margin-bottom:12px}#header.site-header .usa-navbar .leaf-header-right #nav li#toggleMenu.js-open{margin-top:1.5rem;margin-bottom:0}#header.site-header .usa-navbar .leaf-header-right #nav li#toggleMenu i{text-align:center}.usa-banner__header.bg-orange-topbanner{background-color:#d04000}.usa-banner__header p.usa-banner__header-text{margin:0;padding:.25em;font-size:.75rem;letter-spacing:.02rem}.lf-alert{padding:.25em;background-color:#d00d2d;color:#f6f6f2;font-family:"PublicSans-Medium",sans-serif}.usa-sidenav{font-family:"PublicSans-Regular",sans-serif;font-size:.9rem}.usa-sidenav__item{width:14.5rem}.usa-header{line-height:1.5;z-index:300}.usa-button{cursor:pointer;padding:.75rem;width:auto;min-width:6rem;font-family:"PublicSans-Bold",sans-serif;font-size:1.06rem;font-weight:700;white-space:nowrap;text-decoration:none;text-align:center;line-height:.9;color:#fff;background-color:#005ea2;border-radius:4px;background-clip:padding-box;border:2px solid rgba(0,0,0,0)}.usa-button.usa-button--secondary{background-color:#d83933}.usa-button.usa-button--base{background-color:#71767a}.usa-button.usa-button--outline{color:#005ea2;box-shadow:0 0 0 2px #005ea2 inset;background-color:rgba(0,0,0,0)}.usa-button:hover,.usa-button:focus,.usa-button:active{border:2px solid #000}.usa-button a{text-decoration:none}table.usa-table{font-size:.9rem;line-height:1.5;border-collapse:collapse;border-spacing:0;color:#1b1b1b;margin:1.25rem 0}table.usa-table caption{font-family:"Source Sans Pro Web","Helvetica Neue",Arial,Helvetica,sans-serif;text-align:left}table.usa-table th,table.usa-table td{background-color:#fff;border:1px solid #1b1b1b;font-weight:400;padding:.5em 1em}table.usa-table th{font-weight:bold;background-color:#dfe1e2}table.usa-table.usa-table--borderless th,table.usa-table.usa-table--borderless td{border:0;border-bottom:1px solid #1b1b1b;background-color:rgba(0,0,0,0)}ul.usa-sidenav{margin:0;padding-left:0;line-height:1.3;border-bottom:1px solid #dfe1e2;list-style-type:none;font-family:"PublicSans-Regular",sans-serif;font-size:1rem}ul.usa-sidenav li.usa-sidenav__item{border-top:1px solid #dfe1e2}ul.usa-sidenav li.usa-sidenav__item a:not(.usa-button){display:block;padding:.5em 1em;text-decoration:none}ul.usa-sidenav li.usa-sidenav__item a:not(.usa-button):hover,ul.usa-sidenav li.usa-sidenav__item a:not(.usa-button):focus,ul.usa-sidenav li.usa-sidenav__item a:not(.usa-button):active{color:#005ea2 !important;background-color:#f0f0f0}ul.usa-sidenav li.usa-sidenav__item a:not(.usa-button):not(.usa-current){color:#565c65}ul.usa-sidenav li.usa-sidenav__item a:not(.usa-button).usa-current{position:relative;color:#005ea2;font-weight:700}ul.usa-sidenav li.usa-sidenav__item a:not(.usa-button).usa-current::after{position:absolute;bottom:4px;top:4px;left:4px;width:4px;display:block;content:"";border-radius:4px;background-color:#005ea2}form.usa-form{max-width:320px;line-height:1.3}form.usa-form a,form.usa-form a:hover,form.usa-form a:focus,form.usa-form a:active,form.usa-form a:visited{color:#445}form.usa-form .usa-label{font-size:1.06rem}form.usa-form .usa-select{appearance:none;background:#fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTEyIDUuODNMMTUuMTcgOWwxLjQxLTEuNDFMMTIgMyA3LjQxIDcuNTkgOC44MyA5IDEyIDUuODN6bTAgMTIuMzRMOC44MyAxNWwtMS40MSAxLjQxTDEyIDIxbDQuNTktNC41OUwxNS4xNyAxNSAxMiAxOC4xN3oiLz48L3N2Zz4=) no-repeat right .25rem center;background-size:1.25rem}.usa-label{display:block;max-width:30rem;margin-top:1.5rem;font-weight:400;font-family:"Source Sans Pro Web","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:.9rem}.usa-input,.usa-input-group,.usa-range,.usa-select,.usa-textarea,.usa-combo-box__input,.usa-combo-box__list{display:block;color:#1b1b1b;margin-top:.25rem;padding:.5rem;width:100%;height:2.5rem;border:1px solid #565c65;font-size:1.06rem}.usa-input#siteType,.usa-input-group#siteType,.usa-range#siteType,.usa-select#siteType,.usa-textarea#siteType,.usa-combo-box__input#siteType,.usa-combo-box__list#siteType{margin-bottom:2rem}.usa-textarea{height:10rem}.grid-container{margin:0 auto;padding:1rem;max-width:1024px}.grid-container .grid-row{display:flex;flex-wrap:wrap}.site-button-outline-secondary{-webkit-box-shadow:inset 0 0 0 2px rgba(255,255,255,.7);box-shadow:inset 0 0 0 2px rgba(255,255,255,.7);background-color:rgba(0,0,0,0);color:rgba(255,255,255,.7);padding:.7rem 1rem;font-size:.9rem;font-family:"PublicSans-Medium",sans-serif}.site-button-outline-secondary:hover{background-color:rgba(0,0,0,0);color:#fff;box-shadow:inset 0 0 0 2px #fff;text-decoration:none !important}.leaf-btn-icon{margin-right:.5rem}.leaf-btn-small{padding:.5rem}.leaf-btn-med{padding:.7rem;font-size:.9rem}.leaf-side-btn{width:14.5rem;display:block;margin:1rem 0 .5rem 0}.leaf-btn-green{background-color:#008a17}.leaf-btn-green:hover,.leaf-btn-green :focus,.leaf-btn-green :active{background-color:#007b14}.leaf-dialog-loader{text-align:center}.ui-sortable-placeholder{border:2px dashed #a9aeb1 !important;visibility:visible !important;background-color:#dcdee0 !important;box-shadow:0px 0px 0px #a7a9aa !important}.ui-dialog .ui-dialog-title{margin:0;font-family:"PublicSans-Bold",sans-serif}.ui-dialog .ui-dialog-titlebar{padding:.4em .75em}.ui-dialog .ui-dialog-content{padding:.75em;min-width:325px;min-height:280px}.sidenav,.sidenav-right{padding:1rem;background-color:#fff;border-radius:4px;box-shadow:0px 1px 3px rgba(0,0,0,.2);max-width:16.5rem;align-self:flex-start}.sidenav:hidden{background:none;background-color:rgba(0,0,0,0);box-shadow:none}.sidenav:empty{background:none;background-color:rgba(0,0,0,0);box-shadow:none;min-height:1px}.sidenav-right:hidden{background:none;background-color:rgba(0,0,0,0);box-shadow:none}.sidenav-right:empty{background:none;background-color:rgba(0,0,0,0);box-shadow:none;min-height:1px}.leaf-show-opts{font-size:.9rem;margin-top:1.2rem;cursor:pointer}.leaf-uag-nav{min-width:16.5rem;margin:.6rem 1rem}.leaf-code-container{padding:8px;border-radius:4px;display:none;resize:both;overflow:auto;box-shadow:0 2px 6px #8e8e8e;background-color:#fff}.leaf-left-nav{flex:20%;margin:.6rem 1rem .6rem 1rem}.leaf-right-nav{flex:20%;margin:.6rem 1rem .6rem 1rem}.main-content{position:relative;flex:60%;margin:.6rem 1rem;min-height:27rem}.main-content>h2:first-child{margin-top:0}.leaf-center-content{display:flex;margin:.6rem auto;font-family:"PublicSans-Regular",sans-serif}.main-content-noRight{display:inline-block;position:relative;width:70%;margin:0 1rem 1rem 2rem;min-height:27rem}h3.groupHeaders,#groupList>h2,#groupList>h3{margin-bottom:.5rem}#groupList>div.leaf-displayFlexRow{margin-bottom:1.25rem}.leaf-bold{font-family:"PublicSans-Bold",sans-serif}.leaf-font-normal{font-family:"PublicSans-Regular",sans-serif}.leaf-textLeft{text-align:left}.leaf-cursor-pointer{cursor:pointer}.leaf-clear-both{clear:both}.leaf-clearBoth{clear:both}.leaf-float-right{float:right}.leaf-float-left{float:left}.leaf-display-block{display:block}.leaf-displayFlexRow{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:left;align-items:stretch}.leaf-position-relative{position:relative}.leaf-ul{list-style-type:none;margin:.5rem 0;padding-inline-start:5px}.leaf-ul li{margin:0;font-size:.7rem;line-height:1.2rem}.leaf-border-bottom{border-bottom:1px solid #dfe1e2 !important}.leaf-row-space{height:1rem;margin:.2rem 0;clear:both}.leaf-crumb-link{font-weight:normal;color:#005ea2;font-family:"PublicSans-Medium",sans-serif !important}.leaf-crumb-caret{font-size:1.1rem;margin:0 .4rem 0 .5rem;color:#0c60a0}.leaf-buttonBar{text-align:center;margin:1.5rem 0 0 0}.leaf-content-show{display:block}.leaf-content-hide{display:none}.leaf-grey-box{padding:1rem;background-color:#e6e6e6}.groupUser{display:none}.leaf-user-search{display:flex;flex-direction:column}.leaf-user-search p{margin:.3rem 0 0 0;font-size:.9rem}.leaf-user-search input.leaf-user-search-input{padding:.5rem;font-family:"PublicSans-Regular",sans-serif;margin:.2rem 0;flex:auto;min-width:0;border-radius:0;color:#1b1b1b;border:1px solid #1b1b1b;display:block}.leaf-no-results{display:none;height:auto;margin-top:.5rem;padding:.5rem;background-color:#f4e3db;border-left:6px solid #d54309}.leaf-no-results i{margin-right:.5rem;font-size:1.72rem;vertical-align:sub}.leaf-no-results p{margin:0}.edit-card{cursor:move}.leaf-sitemap-card{flex:0 1 30%;min-width:20rem;max-width:23rem;margin:.5rem 1rem .5rem 0;padding:1.3rem;box-shadow:0px 2px 3px #a7a9aa;border:1px solid #ccc;height:5.8rem;background-color:#fff;border-radius:5px;transition:box-shadow .4s ease;white-space:wrap}.leaf-sitemap-card:hover,.leaf-sitemap-card:focus{box-shadow:0px 12px 9px #949191}.active{background-color:#faf3d1}.leaf-sitemap-card h3{margin:0rem 0 .5rem 0;font-size:1.2rem}.leaf-sitemap-card h3 a{text-decoration:none;color:#252f3e;font-family:"PublicSans-Medium",sans-serif}.leaf-sitemap-card h3 a:hover{text-decoration:underline;color:#004b76}.leaf-sitemap-card p{margin:.2rem 0;font-size:.84rem;line-height:1rem;font-family:"PublicSans-Light",sans-serif;word-break:break-word;white-space:normal}.leaf-delete-card{color:#2672de;font-size:1rem;vertical-align:middle;float:right;margin:0rem;cursor:pointer;white-space:normal}.leaf-sitemap-alert{padding:.4rem;border-radius:4px;box-shadow:1px 1px 5px #aaa;font-size:.8rem;font-family:"PublicSans-Regular",sans-serif;background-color:#aeedb4;color:#137d1d;border:1px solid #41aa4b;margin:0 0 0 1.3rem}.leaf-sitemap-flex-container{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start}.leaf-sitemap-flex-container>div{width:33%;box-sizing:border-box}div.groupBlock>h2,div.groupBlockWhite>h2{font-weight:400}.leaf-admin-content{padding:1em;margin:0 auto;min-width:325px;max-width:1088px}.leaf-admin-button{color:#3d4551;display:inline-block;width:19.4rem;height:3.4rem;cursor:pointer;margin:.6rem .6rem;box-shadow:2px 2px 2px rgba(0,0,20,.2);border-radius:4px;padding:.5rem .5rem .4rem .1rem;text-decoration:none;transition:box-shadow .4s ease,background-color 1.4s ease}.leaf-admin-button:hover,.leaf-admin-button:focus,.leaf-admin-button:active{box-shadow:2px 2px 4px rgba(0,0,20,.4)}.leaf-admin-button.lf-trans-blue:hover{background-color:#cfe8ff}.leaf-admin-button.lf-trans-green:hover{background-color:#b7f5bd}.leaf-admin-button.lf-trans-orange:hover{background-color:#f1d5b4}.leaf-admin-button.lf-trans-yellow:hover{background-color:#f2e5a4}.leaf-admin-button .leaf-admin-btnicon{font-size:1.7rem;float:left;margin:.3rem .4rem;text-align:center}.leaf-admin-button .leaf-icn-narrow2{padding-left:.2rem}.leaf-admin-button .leaf-icn-narrow4{padding-left:.4rem}.leaf-admin-button .leaf-admin-btntitle{font-size:1rem;line-height:1.4rem;font-family:"PublicSans-Bold",sans-serif;display:block;margin-left:2.9rem}.leaf-admin-button .leaf-admin-btndesc{font-size:.8rem;display:block;margin-left:2.9rem}.leaf-footer{font-size:.7rem;font-family:"PublicSans-Thin",sans-serif;padding:0rem .6rem;border-top:1px solid #a9aeb1;width:calc(100% - 5rem);margin:1rem auto 0 auto;text-align:right;clear:both}.leaf-footer a{text-decoration:none;color:#565c65}.leaf-footer a:hover{text-decoration:underline}ul.leaf-progress-bar{list-style-type:none;margin:0;padding-inline-start:0}ul.leaf-progress-bar li{float:left;width:10rem;height:3rem;margin-right:1.6rem;position:relative}ul.leaf-progress-bar li span.right{width:0;height:0;position:absolute;display:block;top:0;right:-1.5rem}ul.leaf-progress-bar li span.left{width:0;height:0;position:absolute;display:block;top:0;left:0rem}ul.leaf-progress-bar li h6{font-size:.9rem;margin:1rem 0rem 0rem 2rem}ul.leaf-progress-bar li.current{background-color:#d9e8f6}ul.leaf-progress-bar li.current span.right{border-top:1.5rem solid rgba(0,0,0,0);border-left:1.5rem solid #d9e8f6;border-bottom:1.5rem solid rgba(0,0,0,0)}ul.leaf-progress-bar li.current span.left{border-top:1.5rem solid rgba(0,0,0,0);border-left:1.5rem solid #fff;border-bottom:1.5rem solid rgba(0,0,0,0)}ul.leaf-progress-bar li.next{background-color:#dfe1e2}ul.leaf-progress-bar li.next span.right{border-top:1.5rem solid rgba(0,0,0,0);border-left:1.5rem solid #dfe1e2;border-bottom:1.5rem solid rgba(0,0,0,0)}ul.leaf-progress-bar li.next span.left{border-top:1.5rem solid rgba(0,0,0,0);border-left:1.5rem solid #fff;border-bottom:1.5rem solid rgba(0,0,0,0)}ul.leaf-progress-bar li.complete{background-color:#b8d293}ul.leaf-progress-bar li.complete span.right{border-top:1.5rem solid rgba(0,0,0,0);border-left:1.5rem solid #b8d293;border-bottom:1.5rem solid rgba(0,0,0,0)}ul.leaf-progress-bar li.complete span.left{border-top:1.5rem solid rgba(0,0,0,0);border-left:1.5rem solid #fff;border-bottom:1.5rem solid rgba(0,0,0,0)}.leaf-width-1rem{width:1rem}.leaf-width-2rem{width:2rem}.leaf-width-3rem{width:3rem}.leaf-width-4rem{width:4rem}.leaf-width-5rem{width:5rem}.leaf-width-6rem{width:6rem}.leaf-width-7rem{width:7rem}.leaf-width-8rem{width:8rem}.leaf-width-9rem{width:9rem}.leaf-width-10rem{width:10rem}.leaf-width-11rem{width:11rem}.leaf-width-12rem{width:12rem}.leaf-width-13rem{width:13rem}.leaf-width-14rem{width:14rem}.leaf-width-24rem{width:24rem}.leaf-padAll1rem{padding:1rem}.leaf-marginAll-1rem{margin:1rem}.leaf-marginTop-qtrRem{margin-top:.25rem}.leaf-marginTop-halfRem{margin-top:.5rem}.leaf-marginTopBot-halfRem{margin-top:.5rem;margin-bottom:.5rem}.leaf-marginTop-1rem{margin-top:1rem}.leaf-marginTop-2rem{margin-top:2rem}.leaf-marginBot-1rem{margin-bottom:1rem}.leaf-marginBot-halfRem{margin-bottom:.5rem}.leaf-marginTopBot-1rem{margin-bottom:1rem;margin-top:1rem}.leaf-marginLeft-qtrRem{margin-left:.25rem}.leaf-marginLeft-halfRem{margin-left:.5rem}.leaf-marginLeft-1rem{margin-left:1rem}.leaf-width10pct{width:10%}.leaf-width20pct{width:20%}.leaf-width25pct{width:25%}.leaf-width30pct{width:30%}.leaf-width40pct{width:40%}.leaf-width50pct{width:50%}.leaf-width60pct{width:60%}.leaf-width70pct{width:70%}.leaf-width75pct{width:75%}.leaf-width80pct{width:80%}.leaf-width90pct{width:90%}.leaf-width100pct{width:100%}.leaf-font0-5rem{font-size:.5rem}.leaf-font0-6rem{font-size:.6rem}.leaf-font0-7rem{font-size:.7rem}.leaf-font0-8rem{font-size:.8rem}.leaf-font0-9rem{font-size:.9rem}.leaf-font1rem{font-size:1rem}a.leaf-user-link{text-decoration:none}a.leaf-user-link:hover{text-decoration:underline}a.leaf-group-link:hover{text-decoration:none}a.leaf-remove-button:hover{text-decoration:none}.loading-modal{display:none;position:fixed;height:100%;width:100%;top:0;bottom:0;background:rgba(96,96,96,.8)}#body.loading .loading-modal{display:block}.loading-image{margin:15% auto;height:248px;width:250px;border-radius:50px;background:url(assets/loading_spinner.083c03ba8b4973b81e64.gif) no-repeat}.load-text{margin:auto;text-align:center;padding-top:10%;color:#fff}.load-cancel{margin:auto;left:0;bottom:0;text-align:center;padding-top:63%;padding-left:5%}.load-cancel button{width:50%}.load-cancel .usa-button--outline:hover{background-color:red}@media(max-width: 30rem){.usa-button{width:100%}.leaf-center-content{flex-direction:column}.main-content{margin:1rem}.leaf-admin-button{width:99%}}@media(min-width: 1025px){.main-content{margin-left:2rem}.usa-form{max-width:24rem}.ui-dialog .ui-dialog-content{min-width:500px}.ui-dialog .ui-dialog-title{font-size:1.25rem}.leaf-dialog-content{min-height:300px;max-width:54rem;min-width:27rem}}.bg-red-10{background-color:#f8e1de}.bg-red-cool-20{background-color:#ecbec6}.bg-red-50{background-color:#d83933}.bg-orange-10{background-color:#f2e4d4}.bg-orange-10v{background-color:#fce2c5}.bg-orange-warm-10v{background-color:#ffe2d1}.bg-orange-20{background-color:#f3bf90}.bg-orange-40{background-color:#e66f0e}.bg-orange-50{background-color:#a86437}.bg-gold-5v{background-color:#fef0c8}.bg-gold-10{background-color:#f1e5cd}.bg-gold-10v{background-color:#ffe396}.bg-yellow-5{background-color:#faf3d1}.bg-yellow-5v{background-color:#fff5c2}.bg-yellow-10{background-color:#f5e6af}.bg-yellow-10v{background-color:#fee685}.bg-green-warm-5v{background-color:#f5fbc1}.bg-green-10{background-color:#dfeacd}.bg-green-cool-10{background-color:#dbebde}.bg-mint-cool-5v{background-color:#d5fbf3}.bg-mint-10{background-color:#c7efe2}.bg-mint-cool-10{background-color:#c4eeeb}.bg-mint-cool-10v{background-color:#7efbe1}.bg-cyan-10{background-color:#ccecf2}.bg-cyan-20{background-color:#99deea}.bg-cyan-10v{background-color:#a8f2ff}.bg-cyan-20v{background-color:#52daf2}.bg-blue-5v{background-color:#e8f5ff}.bg-blue-10{background-color:#d9e8f6}.bg-blue-20{background-color:#aacdec}.bg-blue-warm-10{background-color:#e1e7f1}.bg-blue-warm-20{background-color:#bbcae4}.bg-blue-warm-10v{background-color:#d4e5ff}.bg-blue-warm-20v{background-color:#adcdff}.bg-blue-10v{background-color:#cfe8ff}.bg-blue-20v{background-color:#a1d3ff}.bg-blue-cool-10{background-color:#dae9ee}.bg-blue-cool-20{background-color:#adcfdc}.bg-blue-cool-10v{background-color:#c3ebfa}.bg-blue-cool-20v{background-color:#97d4ea}.bg-blue-50{background-color:#2378c3}.bg-indigo-cool-10{background-color:#e1e6f9}.bg-indigo-warm-10v{background-color:#e4deff}.bg-indigo-10{background-color:#e5e4fa}.bg-violet-10{background-color:#ebe3f9}.bg-magenta-10{background-color:#f6e1e8}.bg-gray-10{background-color:#e6e6e6}.text-white{color:#fff}.primary{color:#005ea2}.secondary{color:#d83933}.text-red-10{color:#f8e1de}.text-red-50{color:#d83933 !important}.text-secondary-darker{color:#8b0a03 !important}.text-orange-10{color:#f2e4d4}.text-orange-10v{color:#fce2c5}.text-orange-warm-40{color:#e17141}.text-orange-warm-40v{color:#ff580a}.text-orange-50{color:#a86437}.text-gold-40v{color:#c2850c}.text-gold-10{color:#f1e5cd}.text-gold-50{color:#8e704f}.text-yellow-10{color:#f5e6af}.text-yellow-40{color:#a88f48}.text-yellow-40v{color:#b38c00}.text-yellow-50{color:#8a7237}.text-green-warm-5v{color:#f5fbc1}.text-green-10{color:#dfeacd}.text-green-50{color:#607f35}.text-green-cool-50{color:#4d8055}.text-mint-cool-50{color:#40807e}.text-mint-cool-50v{color:#008480}.text-mint-50{color:#2e8367}.text-cyan-50{color:#168092}.text-cyan-50v{color:#0081a1}.text-blue-50{color:#2378c3}.text-blue-50v{color:#0076d6}.text-blue-cool-50{color:#3a7d95}.text-blue-warm-50{color:#4a77b4}.text-blue-warm-50v{color:#2672de}.text-blue-cool-50v{color:#0d7ea2}.text-indigo-40{color:#8889db}.text-indigo-cool-50{color:#496fd8}.text-violet-50{color:#8168b3}.text-magenta-10{color:#f6e1e8}.text-gray-10{color:#e6e6e6}.leaf-nav-icon{float:right;margin:.2rem .3rem .2rem 0;color:#00bde3}.lev3>a>i.fa-angle-down{display:none}.leaf-nav-icon-space{float:left;margin:0}.leaf-user-menu-name{white-space:normal;word-break:break-all;font-family:"PublicSans-Medium",sans-serif}#nav ul,#nav li{margin:0;padding:0;border:0;list-style:none;box-sizing:border-box;padding-inline-start:0}#nav>ul>li{text-align:left;font-family:"PublicSans-Regular",sans-serif}#nav>ul>li>ul>li>ul>li>a:hover,#nav>ul>li>ul>li>ul>li>a:focus{background-color:#2378c3;font-family:"PublicSans-Bold",sans-serif}#nav .js-hideElement{display:none}#nav .js-showElement{display:block}html.no-js li:hover>a+ul,html.no-js li:focus>a+ul{display:block}@media screen and (max-width: 60rem){#nav ul{position:relative;z-index:9999}#nav>ul>li.leaf-mob-menu{width:12.8rem;padding:.2rem 0;margin-left:-10rem}#nav>ul>li:not(#toggleMenu)>a{text-decoration:none;color:#f0f0ec;margin:.2rem .5rem}a+ul{position:relative}a+ul:not(.js-hideElement){display:block}#nav>ul>li:not(#toggleMenu){background-color:#274863;font-size:.8rem;padding:.3rem 0}#nav>ul>li:not(#toggleMenu)>a>i{margin-right:.6rem}#nav>ul>li:not(#toggleMenu):not(.js-showElement){display:none}#toggleMenu{margin-bottom:1rem}#toggleMenu a{text-decoration:none}#toggleMenu .leaf-menu{cursor:pointer;color:#fff;background-color:#252f3e;font-size:11px;font-family:"PublicSans-Regular",sans-serif;border:1px outset #fff;border-radius:3px;padding:.2rem;text-align:center}#nav #toggleMenu.js-open{margin:2rem .5rem 0 0}#nav #toggleMenu.js-open .fa-times{display:block;color:#fff;font-size:1.25rem}#nav #toggleMenu.js-open .leaf-menu{display:none}#nav #toggleMenu.js-open a{display:block;text-decoration:none;margin-bottom:.8rem}#nav #toggleMenu:not(.js-open) .fa-times{display:none}#nav #toggleMenu:not(.js-open) .leaf-menu{display:block;color:#fff;text-decoration:none}span#toggleMenu-text{position:absolute;opacity:0}#nav>ul>li>ul{background-color:#1d5689;z-index:9999;margin:.3rem 0rem 0rem 0rem}.lev3>a>i.fa-angle-left{display:none}.lev3>a>i.fa-angle-down{display:block}#nav>ul>li>ul:not(.js-showElement){display:none}#nav>ul>li>ul>li{padding:.2rem .2rem;width:12rem}#nav>ul>li>ul>li>a{color:#f0f0ec;text-decoration:none;padding:.3rem .4rem .3rem .4rem}#nav>ul>li>ul>li>ul{width:100%;z-index:9999;background-color:#2378c3;margin:.2rem .4rem .2rem .4rem}#nav>ul>li>ul>li>ul>li{padding:.3rem 0}#nav>ul>li>ul>li>ul:not(.js-showElement){display:none}#nav>ul>li>ul>li>ul>li>a{background-color:#2378c3;color:#f0f0ec;padding:.2rem .2rem .2rem .4rem;text-decoration:none}html.no-js #nav:hover>ul>li:not(#toggleMenu),html.no-js #nav:focus>ul>li:not(#toggleMenu){display:block}html.no-js #nav:hover li:hover>a+ul,html.no-js #nav:hover li:focus>a+ul,html.no-js #nav:focus li:hover>a+ul,html.no-js #nav:focus li:focus>a+ul{display:block}}@media screen and (min-width: 961px){#nav ul{z-index:9999}#nav li{position:relative;margin-right:.9rem}#nav ul li a{text-decoration:none;display:block;padding:.4rem .7rem .4rem .7rem;color:#f0f0ec}a+ul{position:absolute}a+ul:not(.js-showElement){display:none}#nav>ul>li{position:relative;float:left;font-size:.8rem;margin-left:.2rem}.leaf-usericon{font-size:1.1rem;line-height:.9rem}#nav>ul>li>a{background-color:#252f3e}#nav>ul>li>a:hover,#nav>ul>li>a:focus,#nav>ul>li>a.js-openSubMenu{background-color:#274863;font-family:"PublicSans-Bold",sans-serif}#nav>ul>li:hover>a,#nav>ul>li:focus>a{background-color:#274863}#nav>ul>li:not(:last-child){border:0}#nav>ul>li:not(#toggleMenu):not(.js-showElement){display:inline-block}#nav #toggleMenu{display:none}#nav>ul>li>ul{background-color:#274863;left:-4rem;width:12rem;font-size:.8rem;box-shadow:-2px 4px 4px rgba(0,0,0,.2)}#nav>ul>li>ul.leaf-usernavmenu{left:-8rem}#nav>ul>li>ul>li{padding:.2rem;width:12rem}#nav>ul>li>ul>li>a{padding:.2rem}#nav>ul>li>ul>li:hover,#nav>ul>li>ul>li>a:hover,#nav>ul>li>ul>li>a:focus,#nav>ul>li>ul>li>a:focus-within{background-color:#2378c3;font-family:"PublicSans-Bold",sans-serif}#nav>ul>li>ul>li>ul{top:0;left:-12rem;width:12rem;font-family:"PublicSans-Regular",sans-serif;z-index:9999;box-shadow:-2px 2px 4px rgba(0,0,0,.2);background-color:#2378c3}#nav>ul>li>ul>li>ul>li>a{color:#f0f0ec;padding:.3rem;text-decoration:none;margin-left:.1rem}} diff --git a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css index b37e79eb6..f8c24db1a 100644 --- a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css +++ b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css @@ -1 +1 @@ -body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}nav#top-menu-nav{width:100%}nav#top-menu-nav ul{display:flex;justify-content:center;align-items:center;justify-content:flex-start;color:#252f3e;background-color:#e8f2ff;border-bottom:1px solid #252f3e;position:relative;z-index:10;margin-bottom:1rem}nav#top-menu-nav li{display:flex;justify-content:center;align-items:center;position:relative;height:32px;font-size:14px;font-weight:bolder}nav#top-menu-nav li:not(:last-child)::after{content:"";position:absolute;right:0;display:block;height:50%;border-radius:2px;width:2px;background-color:#000}nav#top-menu-nav li button,nav#top-menu-nav li a{margin:0;padding-right:.4rem;display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;text-decoration:inherit;color:inherit;width:100%;height:100%;border:2px solid rgba(0,0,0,0)}nav#top-menu-nav li button:hover,nav#top-menu-nav li button:focus,nav#top-menu-nav li button:active,nav#top-menu-nav li a:hover,nav#top-menu-nav li a:focus,nav#top-menu-nav li a:active{border:2px solid #2491ff;outline:none !important;background-color:#005ea2;color:#fff}nav#top-menu-nav li span[role=img]{margin-left:.25rem}#page_breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:.125rem}#form_browser_tables h3{color:#000}#form_browser_tables table{width:100%;background-color:#fff;border-collapse:collapse;border:1px solid #252f3e;border-radius:2px;margin-bottom:2rem}#form_browser_tables table td,#form_browser_tables table th{padding:.25rem .5rem;border:1px solid #252f3e}#form_browser_tables table td a,#form_browser_tables table th a{padding:.25rem .5rem;display:flex;height:100%;align-items:center;color:inherit;border:2px solid rgba(0,0,0,0)}#form_browser_tables table td a:hover,#form_browser_tables table td a:focus,#form_browser_tables table td a:active,#form_browser_tables table th a:hover,#form_browser_tables table th a:focus,#form_browser_tables table th a:active{background-color:#e8f2ff;border:2px solid #2491ff !important}#form_browser_tables table td.form-name{padding:0}#form_browser_tables table th{background-color:#252f3e;color:#fff;border:1px solid #000}#form_browser_tables table tr:not(.header-row){color:#000;border-bottom:1px solid #252f3e}#form_browser_tables table tr.sub-row{color:#333;background-color:#f6f6ff;font-size:85%}#form_browser_tables table tr.sub-row .form-name{padding-left:.75rem}#form_browser_tables table .need-to-know-enabled{display:flex;justify-content:center;align-items:center;color:#c00;font-size:12px}div[class$=SelectorBorder]{display:flex}div[class$=SelectorBorder] div{display:flex;justify-content:center;align-items:center}div[class$=SelectorBorder] input{width:100%;border:1px solid #bbb}table[class$=SelectorTable] th{color:#252f3e}#advanced_options_dialog_content{min-height:50px}#advanced_options_dialog_content fieldset{min-width:700px;padding:.5em;margin:0}#advanced_options_dialog_content fieldset table.table{border-collapse:collapse;margin:0;width:100%}#advanced_options_dialog_content fieldset>div.save_code{display:flex;justify-content:space-between;align-items:flex-end}#advanced_options_dialog_content fieldset>div.save_code img{width:16px;height:16px}#indicator-editing-dialog-content>div{margin-bottom:2rem}#indicator-editing-dialog-content button{font-size:80%}#indicator-editing-dialog-content input,#indicator-editing-dialog-content select{min-height:24px}#indicator-editing-dialog-content #name{width:100%;margin-bottom:.4rem;padding:.2rem .4rem;display:block}#indicator-editing-dialog-content #description,#indicator-editing-dialog-content #indicatorType,#indicator-editing-dialog-content #defaultValue,#indicator-editing-dialog-content #indicatorMultiAnswer{width:100%;max-width:100%}#indicator-editing-dialog-content #formatDetails{margin:.5rem 0}#indicator-editing-dialog-content #indicator-editing-attributes{position:relative;margin-top:1.5rem;padding:0;min-width:-moz-fit-content;min-width:fit-content}#indicator-editing-dialog-content #indicator-editing-attributes .attribute-row{display:flex;align-items:stretch;justify-content:flex-start;margin:1rem 0}#indicator-editing-dialog-content #indicator-editing-attributes #archived-warning,#indicator-editing-dialog-content #indicator-editing-attributes #deletion-warning{position:absolute;right:0;top:0;color:#a00;font-size:90%}#indicator-editing-dialog-content #indicator-editing-attributes #indicatorPrivileges{line-height:1.4}#indicator-editing-dialog-content div.cell{width:200px;min-width:200px;text-align:center;border:1px gray solid;padding:10px;vertical-align:top;display:table-cell}#indicator-editing-dialog-content div.cell span.columnNumber{display:flex;justify-content:center;align-items:center;margin-bottom:1rem;font-weight:bolder}#indicator-editing-dialog-content div.cell input,#indicator-editing-dialog-content div.cell select{width:100%;margin-bottom:1rem}#edit-properties-panel{padding:0;position:relative;display:flex;margin-bottom:.75rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:hidden}#edit-properties-panel>div{min-width:400px;padding:.75rem;display:flex;flex-direction:column;width:50%}#edit-properties-panel input,#edit-properties-panel select{border:1px inset #dde;border-radius:2px;line-height:normal;min-height:24px}#edit-properties-panel input{padding-left:.4em}#edit-properties-panel #edit-properties-description{display:flex;flex-direction:column;height:100%;align-self:center;border-right:1px solid #252f3e;min-width:400px}#edit-properties-panel #edit-properties-description #categoryName{width:100%;margin-bottom:1rem}#edit-properties-panel #edit-properties-description textarea{width:100%;height:100%;padding:.2rem .5rem;border:1px inset #dde;border-radius:2px;resize:none}#edit-properties-panel #edit-properties-description span{margin-left:auto;font-size:80%;align-self:flex-end}#edit-properties-panel .form-id{position:absolute;right:.75rem;bottom:1px;font-size:.75rem}#edit-properties-panel #editFormPermissions:hover,#edit-properties-panel #editFormPermissions:focus,#edit-properties-panel #editFormPermissions:active span{color:#fff}#edit-properties-panel .panel-properties{flex-wrap:wrap;gap:.5rem 1rem;display:flex;margin-top:1rem;height:100%}#edit-properties-panel .panel-properties input,#edit-properties-panel .panel-properties select{margin-left:3px}#edit-properties-panel .panel-properties input[type=number]{width:50px}#edit-properties-panel .panel-properties label{margin-bottom:0}#edit-properties-panel .panel-properties #workflow_info{display:flex;gap:2px;align-items:center}#edit-properties-panel .panel-properties #workflow_info #view_workflow{font-size:14px;height:26px}#form_properties_last_update{color:#005ea2;font-size:90%;background-color:rgba(0,0,0,0);border:2px solid rgba(0,0,0,0)}#history-slice td{font-size:14px !important}#history-page-buttons button#next,#history-slice button#prev{width:135px}#form_index_and_editing{display:flex;gap:1rem}#form_index_display{margin-top:.5rem;position:relative;padding:.875rem .75rem;width:330px;flex:0 0 330px;align-self:flex-start;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);max-height:90vh;overflow-y:auto}#form_index_display button.preview{width:134px;margin-bottom:1rem}#form_index_display ul li.form_menu_preview{padding:.5rem 0}#form_index_display ul li.form_menu_preview:not(:last-child){border-bottom:1px solid #f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li{min-height:46px;border:2px solid #f0f0f0;border-radius:2px}#form_index_display ul[id^=layoutFormRecords_]>li:not(:last-child){margin-bottom:1rem}#form_index_display ul[id^=layoutFormRecords_]>li button.layout-listitem{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;border:0;background-clip:padding-box;overflow:hidden;border-radius:0;padding:0 .5rem;color:#252f3e;background-color:#f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li.selected button.layout-listitem{color:#fff;background-color:#005ea2;cursor:default}#form_index_display div.internal_forms{padding:.75rem;padding-top:0}#form_index_display ul[id^=internalFormRecords_]{border-left:4px solid #f2f2f6;padding-top:.75rem}#form_index_display ul[id^=internalFormRecords_]>li:not(:last-child){margin-bottom:.5rem}#form_index_display ul[id^=internalFormRecords_]>li button{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;overflow:hidden;border:2px solid rgba(0,0,0,0);border-radius:1px}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse){background-color:#f2f2f6}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse).selected{cursor:auto;color:#fff;background-color:#005ea2;border:2px solid #2491ff}#form_index_display ul[id^=internalFormRecords_]>li button:hover,#form_index_display ul[id^=internalFormRecords_]>li button:focus,#form_index_display ul[id^=internalFormRecords_]>li button:active{border:2px solid #2491ff;outline:none !important}#form_index_display button#indicator_toolbar_toggle,#form_index_display button[id^=addInternalUse_],#form_index_display button[id^=addStaple_]{margin-bottom:1rem;height:2.25rem;width:100%;border:2px solid #005ea2;justify-content:flex-start}#form_entry_and_preview{position:relative;top:0;display:flex;flex-direction:column;align-self:flex-start;width:100%;min-width:420px;padding:0;background-color:rgba(0,0,0,0);border-radius:4px}#form_entry_and_preview ul[id^=base_drop_area]{position:relative;padding:1px 0}#form_entry_and_preview ul[id^=base_drop_area].entered-drop-zone,#form_entry_and_preview ul[id^=base_drop_area] ul.entered-drop-zone{background-color:rgba(0,0,25,.15)}#form_entry_and_preview ul[id^=base_drop_area] ul[id^=drop_area_parent_]{position:relative}#form_entry_and_preview ul[id^=base_drop_area] ul.form-index-listing-ul{margin:0;display:flex;flex-direction:column;background-clip:content-box;min-height:8px}#form_entry_and_preview ul[id^=base_drop_area] li{position:relative;margin:.375rem 0}#form_entry_and_preview ul[id^=base_drop_area] li:first-child{margin-top:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li:last-child{margin-bottom:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button{cursor:move;position:absolute;padding:0;border:1px solid #f2f2f6;border-radius:4px 0 0 4px;width:1rem;height:100%;left:0;top:0}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container{display:flex;justify-content:center;align-items:center;align-self:flex-start;flex-direction:column;gap:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_drag{opacity:.6}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move{display:flex;justify-content:center;align-items:center;cursor:pointer;width:0;height:0;background-color:rgba(0,0,0,0);border-radius:2px;border:6px solid rgba(0,0,0,0)}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up{margin-top:.25rem;border-bottom:10px solid #162e51;border-top:2px}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up:hover,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up:focus,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up:active{outline:none !important;border-bottom:10px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down{border-top:10px solid #162e51;border-bottom:2px}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down:hover,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down:focus,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down:active{outline:none !important;border-top:10px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area]>li{background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);margin-bottom:1.25rem}#form_entry_and_preview .form_page{display:inline-flex;justify-content:center;align-items:center;font-weight:bold;color:#fff;background-color:#000;font-size:1.5rem;height:2.25rem;padding:.2em 9px;border-radius:3px;margin-right:.4rem}#form_entry_and_preview div.printformblock{height:auto;position:relative;break-inside:avoid;height:auto;max-height:none}#form_entry_and_preview div.printformblock div.printResponse{position:relative;padding:0;padding-left:1rem;float:none;border-radius:4px;background-color:#fff}#form_entry_and_preview div.printformblock div.printResponse.form-header,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header{border-top:.3125rem solid #000}#form_entry_and_preview div.printformblock div.printResponse.form-header>.form_editing_area,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>.form_editing_area{border-radius:4px}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>ul{padding:.5em}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header li{margin:0}#form_entry_and_preview div.printformblock div.printResponse.preview{border:0;padding-left:0}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview){margin-left:.5rem;border:1px solid #c1c1c1;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);transition:box-shadow .5s}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview):hover{box-shadow:1px 1px 10px 5px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview{margin-top:.5rem;background-color:#fff;border-radius:4px;padding:.75rem;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview button{border:2px dashed #c5c5d7;width:100%;height:2rem}#form_entry_and_preview button.new_section_question{height:2rem;width:100%;border:2px dashed #c5c5d7}#form_entry_and_preview .form_editing_area{display:flex;flex-direction:column;margin-bottom:.25rem;background-color:#fff}#form_entry_and_preview .form_editing_area .name_and_toolbar{width:100%}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header{font-weight:bolder;background-color:#e0e0e0;border-radius:0}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header .indicator-name-preview{padding:.5em}#form_entry_and_preview .form_editing_area .name_and_toolbar:not(.preview){min-height:60px}#form_entry_and_preview .form_editing_area .name_and_toolbar button{border:1px solid #1476bd}#form_entry_and_preview .form_editing_area .name_and_toolbar button:hover,#form_entry_and_preview .form_editing_area .name_and_toolbar button:focus,#form_entry_and_preview .form_editing_area .name_and_toolbar button:active{border:1px solid #2491ff !important;outline:1px solid #2491ff}#form_entry_and_preview .form_editing_area .indicator-name-preview{padding:.25rem .25rem .75rem .5rem;width:100%}#form_entry_and_preview .form_editing_area .indicator-name-preview .required-sensitive{color:#a00;margin-left:.4em}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]{float:right;margin-left:.25rem;padding:.25rem;border-radius:3px;display:flex;flex-direction:column;align-items:stretch;font-size:90%;gap:3px 2px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]>div{display:flex;align-items:center;gap:3px;min-width:260px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] button{padding:4px;margin:2px;font-weight:normal}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] img{width:16px;height:16px}#form_entry_and_preview .form_editing_area .format_preview{padding:.5rem .25rem .75rem .5rem}#form_entry_and_preview .form_editing_area .format_preview .text_input_preview{display:inline-block;width:75%;font-size:1.3em;font-family:monospace;background-color:#fff;border:1px solid gray;padding:.25em}#form_entry_and_preview .form_editing_area .format_preview .textarea_input_preview{width:75%;padding:.5em;font-size:1.3em;font-family:monospace}#form_entry_and_preview .form_editing_area .format_preview div[id*=textarea_format_button_],#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box,#form_entry_and_preview .form_editing_area .format_preview .choices,#form_entry_and_preview .form_editing_area .format_preview fieldset{width:75%}#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box{margin-left:0}#form_entry_and_preview .form_editing_area .format_preview div.tableinput{overflow-x:auto;max-width:900px}#form_entry_and_preview .form_editing_area .format_preview .employeeSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .groupSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .positionSelectorInput{margin-bottom:.5em;width:75%}#form_entry_and_preview .form_editing_area .format_preview div[class*=SelectorBorder]{background-color:rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area .format_preview tr[class*=Selector]:hover{background-color:#e1f3f8}#condition_editor_dialog_content{min-width:700px;max-width:900px;margin:auto;background-color:#fff}#condition_editor_dialog_content #ifthen_deletion_dialog{margin-bottom:-0.75rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options{display:flex;justify-content:space-between;margin-top:2rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options button{width:120px}#condition_editor_dialog_content #savedConditionsLists{padding-bottom:.5em}#condition_editor_dialog_content #savedConditionsLists ul{margin-bottom:1rem}#condition_editor_dialog_content #savedConditionsLists button.btn_remove_condition{width:1.75em}#condition_editor_dialog_content #outcome_select{max-width:700px}#condition_editor_dialog_content #condition_editor_inputs>div{padding:1rem 0}#condition_editor_dialog_content #condition_editor_inputs>div .choices__inner{width:100%;max-width:700px}#condition_editor_dialog_content #if-then-setup{display:flex;max-width:700px;gap:.75rem;align-items:center;min-height:60px;padding-bottom:0}#condition_editor_dialog_content #if-then-setup>select,#condition_editor_dialog_content #if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content #if-then-setup input{width:35%;margin:0}#condition_editor_dialog_content #if-then-setup #operator_select{width:25%}#condition_editor_dialog_content #if-then-setup>div.crosswalks{display:flex;flex-wrap:wrap;gap:1rem 2rem;max-width:600px}#condition_editor_dialog_content #if-then-setup .choices__inner{max-width:300px}#condition_editor_dialog_content select,#condition_editor_dialog_content input:not(.choices__input){font-size:1rem;padding:2px;text-overflow:ellipsis;width:100%;border:1px inset gray}#condition_editor_dialog_content select:not(:last-child),#condition_editor_dialog_content input:not(.choices__input):not(:last-child){margin-bottom:1em}#condition_editor_dialog_content li.savedConditionsCard{display:flex;align-items:center;margin-bottom:.5rem}#condition_editor_dialog_content button.btnSavedConditions{display:block;width:100%;text-align:left;font-weight:normal;background-color:#fff;padding:6px;border:1px outset #005ea2;box-shadow:1px 1px 6px rgba(0,0,25,.5);border-radius:3px;margin-right:1rem;white-space:normal;max-width:700px;overflow:hidden;transition:box-shadow .1s ease}#condition_editor_dialog_content button.btnSavedConditions.isOrphan{background-color:#d8d8d8;color:#000;border:1px solid #000}#condition_editor_dialog_content button.btnSavedConditions:hover:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:focus:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:active:not(.isOrphan){color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content button.btn-confirm.new{padding:4px 6px}#condition_editor_dialog_content .changesDetected{color:#c80000}#condition_editor_dialog_content .selectedConditionEdit .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:hover .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:focus .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:active .changesDetected{color:#fff}#condition_editor_dialog_content button.selectedConditionEdit{color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content .btn_remove_condition{background-color:#922;border:1px solid #922;color:#fff}#condition_editor_dialog_content .btn_remove_condition:hover,#condition_editor_dialog_content .btn_remove_condition:active,#condition_editor_dialog_content .btn_remove_condition:focus{border:1px solid #000 !important;background-color:#600}#condition_editor_dialog_content .ifthen_label{font-weight:bolder;color:#005ea2}@media only screen and (max-width: 600px){#leaf_dialog_content{min-width:400px}#vue-formeditor-app{min-width:400px}#vue-formeditor-app>div{flex-direction:column}#vue-formeditor-app main>section{margin:0;padding:0}#vue-formeditor-app nav#top-menu-nav{width:100%}#vue-formeditor-app nav#top-menu-nav ul{flex-direction:column;height:fit-content}#vue-formeditor-app nav#top-menu-nav ul li{width:100%;height:fit-content;flex-direction:column}#vue-formeditor-app nav#top-menu-nav ul li::after{content:"";background-color:rgba(0,0,0,0)}#vue-formeditor-app nav#top-menu-nav ul li button,#vue-formeditor-app nav#top-menu-nav ul li a{height:36px;padding:0;border-radius:0;justify-content:center !important}#vue-formeditor-app nav#top-menu-nav ul li button span,#vue-formeditor-app nav#top-menu-nav ul li a span{margin-left:10px}#vue-formeditor-app #secure_forms_info{display:flex;flex-wrap:wrap;justify-content:space-between}#vue-formeditor-app #edit-properties-panel{flex-direction:column;border-radius:0}#vue-formeditor-app #edit-properties-panel>div{width:100%}#vue-formeditor-app #edit-properties-panel #edit-properties-description{border-right:0;border-bottom:1px solid #252f3e}#vue-formeditor-app #internalFormRecordsDisplay{min-width:100%}#vue-formeditor-app #form_index_and_editing{flex-direction:column;gap:1.25rem}#vue-formeditor-app #form_index_and_editing>div{border-radius:0}#vue-formeditor-app #form_index_and_editing #form_index_display{width:100%;flex:0 0 100%}#vue-formeditor-app #form_index_and_editing .tableinput{max-width:580px}#condition_editor_dialog_content{width:100%;min-width:400px;border:0}#condition_editor_dialog_content div#if-then-setup{flex-direction:column}#condition_editor_dialog_content div#if-then-setup>select,#condition_editor_dialog_content div#if-then-setup>h3,#condition_editor_dialog_content div#if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content div#if-then-setup #operator_select{width:100%}#condition_editor_dialog_content div#if-then-setup .choices__inner{max-width:100%}} +body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#vue-formeditor-app a.btn-general,#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal;text-decoration:none}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#vue-formeditor-app a.btn-general:not(.disabled):hover,#vue-formeditor-app a.btn-general:not(.disabled):focus,#vue-formeditor-app a.btn-general:not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,a.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,a.btn-general:not(.disabled):hover,a.btn-general:not(.disabled):focus,a.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,a.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,a.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,a.btn-general a,a.btn-general a:visited,a.btn-general a:active,a.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem;border:0;background-color:rgba(0,0,0,0)}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}nav#top-menu-nav{width:100%}nav#top-menu-nav ul{display:flex;justify-content:center;align-items:center;justify-content:flex-start;color:#252f3e;background-color:#e8f2ff;border-bottom:1px solid #252f3e;position:relative;z-index:10;margin-bottom:1rem}nav#top-menu-nav li{display:flex;justify-content:center;align-items:center;position:relative;height:32px;font-size:14px;font-weight:bolder}nav#top-menu-nav li:not(:last-child)::after{content:"";position:absolute;right:0;display:block;height:50%;border-radius:2px;width:2px;background-color:#000}nav#top-menu-nav li button,nav#top-menu-nav li a{margin:0;padding-right:.4rem;display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;text-decoration:inherit;color:inherit;width:100%;height:100%;border:2px solid rgba(0,0,0,0)}nav#top-menu-nav li button:hover,nav#top-menu-nav li button:focus,nav#top-menu-nav li button:active,nav#top-menu-nav li a:hover,nav#top-menu-nav li a:focus,nav#top-menu-nav li a:active{border:2px solid #2491ff;outline:none !important;background-color:#005ea2;color:#fff}nav#top-menu-nav li span[role=img]{margin-left:.25rem}#page_breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:.125rem}#form_browser_tables h3{color:#000}#form_browser_tables table{width:100%;background-color:#fff;border-collapse:collapse;border:1px solid #252f3e;border-radius:2px;margin-bottom:2rem}#form_browser_tables table td,#form_browser_tables table th{padding:.25rem .5rem;border:1px solid #252f3e}#form_browser_tables table td a,#form_browser_tables table th a{padding:.25rem .5rem;display:flex;height:100%;align-items:center;color:inherit;border:2px solid rgba(0,0,0,0)}#form_browser_tables table td a:hover,#form_browser_tables table td a:focus,#form_browser_tables table td a:active,#form_browser_tables table th a:hover,#form_browser_tables table th a:focus,#form_browser_tables table th a:active{background-color:#e8f2ff;border:2px solid #2491ff !important}#form_browser_tables table td.form-name{padding:0}#form_browser_tables table th{background-color:#252f3e;color:#fff;border:1px solid #000}#form_browser_tables table tr:not(.header-row){color:#000;border-bottom:1px solid #252f3e}#form_browser_tables table tr.sub-row{color:#333;background-color:#f6f6ff;font-size:85%}#form_browser_tables table tr.sub-row .form-name{padding-left:.75rem}#form_browser_tables table .need-to-know-enabled{display:flex;justify-content:center;align-items:center;color:#c00;font-size:12px}div[class$=SelectorBorder]{display:flex}div[class$=SelectorBorder] div{display:flex;justify-content:center;align-items:center}div[class$=SelectorBorder] input{width:100%;border:1px solid #bbb}table[class$=SelectorTable] th{color:#252f3e}#advanced_options_dialog_content{min-height:50px}#advanced_options_dialog_content fieldset{min-width:700px;padding:.5em;margin:0}#advanced_options_dialog_content fieldset table.table{border-collapse:collapse;margin:0;width:100%}#advanced_options_dialog_content fieldset>div.save_code{display:flex;justify-content:space-between;align-items:flex-end}#advanced_options_dialog_content fieldset>div.save_code img{width:16px;height:16px}#indicator-editing-dialog-content>div{margin-bottom:2rem}#indicator-editing-dialog-content button{font-size:80%}#indicator-editing-dialog-content input,#indicator-editing-dialog-content select{min-height:24px}#indicator-editing-dialog-content #name{width:100%;margin-bottom:.4rem;padding:.2rem .4rem;display:block}#indicator-editing-dialog-content #description,#indicator-editing-dialog-content #indicatorType,#indicator-editing-dialog-content #defaultValue,#indicator-editing-dialog-content #indicatorMultiAnswer{width:100%;max-width:100%}#indicator-editing-dialog-content #formatDetails{margin:.5rem 0}#indicator-editing-dialog-content #indicator-editing-attributes{position:relative;margin-top:1.5rem;padding:0;min-width:-moz-fit-content;min-width:fit-content}#indicator-editing-dialog-content #indicator-editing-attributes .attribute-row{display:flex;align-items:stretch;justify-content:flex-start;margin:1rem 0}#indicator-editing-dialog-content #indicator-editing-attributes #archived-warning,#indicator-editing-dialog-content #indicator-editing-attributes #deletion-warning{position:absolute;right:0;top:0;color:#a00;font-size:90%}#indicator-editing-dialog-content #indicator-editing-attributes #indicatorPrivileges{line-height:1.4}#indicator-editing-dialog-content div.cell{width:200px;min-width:200px;text-align:center;border:1px gray solid;padding:10px;vertical-align:top;display:table-cell}#indicator-editing-dialog-content div.cell span.columnNumber{display:flex;justify-content:center;align-items:center;margin-bottom:1rem;font-weight:bolder}#indicator-editing-dialog-content div.cell input,#indicator-editing-dialog-content div.cell select{width:100%;margin-bottom:1rem}#edit-properties-panel{padding:0;position:relative;display:flex;margin-bottom:.75rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:hidden}#edit-properties-panel>div{min-width:400px;padding:.75rem;display:flex;flex-direction:column;width:50%}#edit-properties-panel input,#edit-properties-panel select{border:1px inset #dde;border-radius:2px;line-height:normal;min-height:24px}#edit-properties-panel input{padding-left:.4em}#edit-properties-panel #edit-properties-description{display:flex;flex-direction:column;height:100%;align-self:center;border-right:1px solid #252f3e;min-width:400px}#edit-properties-panel #edit-properties-description #categoryName{width:100%;margin-bottom:1rem}#edit-properties-panel #edit-properties-description textarea{width:100%;height:100%;padding:.2rem .5rem;border:1px inset #dde;border-radius:2px;resize:none}#edit-properties-panel #edit-properties-description span{margin-left:auto;font-size:80%;align-self:flex-end}#edit-properties-panel .form-id{position:absolute;right:.75rem;bottom:1px;font-size:.75rem}#edit-properties-panel #editFormPermissions:hover,#edit-properties-panel #editFormPermissions:focus,#edit-properties-panel #editFormPermissions:active span{color:#fff}#edit-properties-panel .panel-properties{flex-wrap:wrap;gap:.5rem 1rem;display:flex;margin-top:1rem;height:100%}#edit-properties-panel .panel-properties input,#edit-properties-panel .panel-properties select{margin-left:3px}#edit-properties-panel .panel-properties input[type=number]{width:50px}#edit-properties-panel .panel-properties label{margin-bottom:0}#edit-properties-panel .panel-properties #workflow_info{display:flex;gap:2px;align-items:center}#edit-properties-panel .panel-properties #workflow_info #view_workflow{font-size:14px;height:26px}#form_properties_last_update{color:#005ea2;font-size:90%;background-color:rgba(0,0,0,0);border:2px solid rgba(0,0,0,0)}#history-slice td{font-size:14px !important}#history-page-buttons button#next,#history-slice button#prev{width:135px}#form_index_and_editing{display:flex;gap:1rem}#form_index_display{margin-top:.5rem;position:relative;padding:.875rem .75rem;width:330px;flex:0 0 330px;align-self:flex-start;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);max-height:90vh;overflow-y:auto}#form_index_display button.preview{width:134px;margin-bottom:1rem}#form_index_display ul li.form_menu_preview{padding:.5rem 0}#form_index_display ul li.form_menu_preview:not(:last-child){border-bottom:1px solid #f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li{min-height:46px;border:2px solid #f0f0f0;border-radius:2px}#form_index_display ul[id^=layoutFormRecords_]>li:not(:last-child){margin-bottom:1rem}#form_index_display ul[id^=layoutFormRecords_]>li button.layout-listitem{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;border:0;background-clip:padding-box;overflow:hidden;border-radius:0;padding:0 .5rem;color:#252f3e;background-color:#f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li.selected button.layout-listitem{color:#fff;background-color:#005ea2;cursor:default}#form_index_display div.internal_forms{padding:.75rem;padding-top:0}#form_index_display ul[id^=internalFormRecords_]{border-left:4px solid #f2f2f6;padding-top:.75rem}#form_index_display ul[id^=internalFormRecords_]>li:not(:last-child){margin-bottom:.5rem}#form_index_display ul[id^=internalFormRecords_]>li button{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;overflow:hidden;border:2px solid rgba(0,0,0,0);border-radius:1px}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse){background-color:#f2f2f6}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse).selected{cursor:auto;color:#fff;background-color:#005ea2;border:2px solid #2491ff}#form_index_display ul[id^=internalFormRecords_]>li button:hover,#form_index_display ul[id^=internalFormRecords_]>li button:focus,#form_index_display ul[id^=internalFormRecords_]>li button:active{border:2px solid #2491ff;outline:none !important}#form_index_display button#indicator_toolbar_toggle,#form_index_display button[id^=addInternalUse_],#form_index_display button[id^=addStaple_]{margin-bottom:1rem;height:2.25rem;width:100%;border:2px solid #005ea2;justify-content:flex-start}#form_entry_and_preview{position:relative;top:0;display:flex;flex-direction:column;align-self:flex-start;width:100%;min-width:420px;padding:0;background-color:rgba(0,0,0,0);border-radius:4px}#form_entry_and_preview ul[id^=base_drop_area]{position:relative;padding:1px 0}#form_entry_and_preview ul[id^=base_drop_area].entered-drop-zone,#form_entry_and_preview ul[id^=base_drop_area] ul.entered-drop-zone{background-color:rgba(0,0,25,.15)}#form_entry_and_preview ul[id^=base_drop_area] ul[id^=drop_area_parent_]{position:relative}#form_entry_and_preview ul[id^=base_drop_area] ul.form-index-listing-ul{margin:0;display:flex;flex-direction:column;background-clip:content-box;min-height:8px}#form_entry_and_preview ul[id^=base_drop_area] li{position:relative;margin:.375rem 0}#form_entry_and_preview ul[id^=base_drop_area] li:first-child{margin-top:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li:last-child{margin-bottom:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button{cursor:move;position:absolute;padding:0;border:1px solid #f2f2f6;border-radius:4px 0 0 4px;width:1rem;height:100%;left:0;top:0}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container{display:flex;justify-content:center;align-items:center;align-self:flex-start;flex-direction:column;gap:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_drag{opacity:.6}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move{display:flex;justify-content:center;align-items:center;cursor:pointer;width:0;height:0;background-color:rgba(0,0,0,0);border-radius:2px;border:6px solid rgba(0,0,0,0)}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up{margin-top:.25rem;border-bottom:10px solid #162e51;border-top:2px}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up:hover,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up:focus,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.up:active{outline:none !important;border-bottom:10px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down{border-top:10px solid #162e51;border-bottom:2px}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down:hover,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down:focus,#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button .icon_move_container .icon_move.down:active{outline:none !important;border-top:10px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area]>li{background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);margin-bottom:1.25rem}#form_entry_and_preview .form_page{display:inline-flex;justify-content:center;align-items:center;font-weight:bold;color:#fff;background-color:#000;font-size:1.5rem;height:2.25rem;padding:.2em 9px;border-radius:3px;margin-right:.4rem}#form_entry_and_preview div.printformblock{height:auto;position:relative;break-inside:avoid;height:auto;max-height:none}#form_entry_and_preview div.printformblock div.printResponse{position:relative;padding:0;padding-left:1rem;float:none;border-radius:4px;background-color:#fff}#form_entry_and_preview div.printformblock div.printResponse.form-header,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header{border-top:.3125rem solid #000}#form_entry_and_preview div.printformblock div.printResponse.form-header>.form_editing_area,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>.form_editing_area{border-radius:4px}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>ul{padding:.5em}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header li{margin:0}#form_entry_and_preview div.printformblock div.printResponse.preview{border:0;padding-left:0}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview){margin-left:.5rem;border:1px solid #c1c1c1;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);transition:box-shadow .5s}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview):hover{box-shadow:1px 1px 10px 5px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview{margin-top:.5rem;background-color:#fff;border-radius:4px;padding:.75rem;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview button{border:2px dashed #c5c5d7;width:100%;height:2rem}#form_entry_and_preview button.new_section_question{height:2rem;width:100%;border:2px dashed #c5c5d7}#form_entry_and_preview .form_editing_area{display:flex;flex-direction:column;margin-bottom:.25rem;background-color:#fff}#form_entry_and_preview .form_editing_area .name_and_toolbar{width:100%}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header{font-weight:bolder;background-color:#e0e0e0;border-radius:0}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header .indicator-name-preview{padding:.5em}#form_entry_and_preview .form_editing_area .name_and_toolbar:not(.preview){min-height:60px}#form_entry_and_preview .form_editing_area .name_and_toolbar button{border:1px solid #1476bd}#form_entry_and_preview .form_editing_area .name_and_toolbar button:hover,#form_entry_and_preview .form_editing_area .name_and_toolbar button:focus,#form_entry_and_preview .form_editing_area .name_and_toolbar button:active{border:1px solid #2491ff !important;outline:1px solid #2491ff}#form_entry_and_preview .form_editing_area .indicator-name-preview{padding:.25rem .25rem .75rem .5rem;width:100%}#form_entry_and_preview .form_editing_area .indicator-name-preview .required-sensitive{color:#a00;margin-left:.4em}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]{float:right;margin-left:.25rem;padding:.25rem;border-radius:3px;display:flex;flex-direction:column;align-items:stretch;font-size:90%;gap:3px 2px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]>div{display:flex;align-items:center;gap:3px;min-width:260px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] button{padding:4px;margin:2px;font-weight:normal}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] img{width:16px;height:16px}#form_entry_and_preview .form_editing_area .format_preview{padding:.5rem .25rem .75rem .5rem}#form_entry_and_preview .form_editing_area .format_preview .text_input_preview{display:inline-block;width:75%;font-size:1.3em;font-family:monospace;background-color:#fff;border:1px solid gray;padding:.25em}#form_entry_and_preview .form_editing_area .format_preview .textarea_input_preview{width:75%;padding:.5em;font-size:1.3em;font-family:monospace}#form_entry_and_preview .form_editing_area .format_preview div[id*=textarea_format_button_],#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box,#form_entry_and_preview .form_editing_area .format_preview .choices,#form_entry_and_preview .form_editing_area .format_preview fieldset{width:75%}#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box{margin-left:0}#form_entry_and_preview .form_editing_area .format_preview div.tableinput{overflow-x:auto;max-width:900px}#form_entry_and_preview .form_editing_area .format_preview .employeeSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .groupSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .positionSelectorInput{margin-bottom:.5em;width:75%}#form_entry_and_preview .form_editing_area .format_preview div[class*=SelectorBorder]{background-color:rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area .format_preview tr[class*=Selector]:hover{background-color:#e1f3f8}#condition_editor_dialog_content{min-width:700px;max-width:900px;margin:auto;background-color:#fff}#condition_editor_dialog_content #ifthen_deletion_dialog{margin-bottom:-0.75rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options{display:flex;justify-content:space-between;margin-top:2rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options button{width:120px}#condition_editor_dialog_content #savedConditionsLists{padding-bottom:.5em}#condition_editor_dialog_content #savedConditionsLists ul{margin-bottom:1rem}#condition_editor_dialog_content #savedConditionsLists button.btn_remove_condition{width:1.75em}#condition_editor_dialog_content #outcome_select{max-width:700px}#condition_editor_dialog_content #condition_editor_inputs>div{padding:1rem 0}#condition_editor_dialog_content #condition_editor_inputs>div .choices__inner{width:100%;max-width:700px}#condition_editor_dialog_content #if-then-setup{display:flex;max-width:700px;gap:.75rem;align-items:center;min-height:60px;padding-bottom:0}#condition_editor_dialog_content #if-then-setup>select,#condition_editor_dialog_content #if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content #if-then-setup input{width:35%;margin:0}#condition_editor_dialog_content #if-then-setup #operator_select{width:25%}#condition_editor_dialog_content #if-then-setup>div.crosswalks{display:flex;flex-wrap:wrap;gap:1rem 2rem;max-width:600px}#condition_editor_dialog_content #if-then-setup .choices__inner{max-width:300px}#condition_editor_dialog_content select,#condition_editor_dialog_content input:not(.choices__input){font-size:1rem;padding:2px;text-overflow:ellipsis;width:100%;border:1px inset gray}#condition_editor_dialog_content select:not(:last-child),#condition_editor_dialog_content input:not(.choices__input):not(:last-child){margin-bottom:1em}#condition_editor_dialog_content li.savedConditionsCard{display:flex;align-items:center;margin-bottom:.5rem}#condition_editor_dialog_content button.btnSavedConditions{display:block;width:100%;text-align:left;font-weight:normal;background-color:#fff;padding:6px;border:1px outset #005ea2;box-shadow:1px 1px 6px rgba(0,0,25,.5);border-radius:3px;margin-right:1rem;white-space:normal;max-width:700px;overflow:hidden;transition:box-shadow .1s ease}#condition_editor_dialog_content button.btnSavedConditions.isOrphan{background-color:#d8d8d8;color:#000;border:1px solid #000}#condition_editor_dialog_content button.btnSavedConditions:hover:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:focus:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:active:not(.isOrphan){color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content button.btn-confirm.new{padding:4px 6px}#condition_editor_dialog_content .changesDetected{color:#c80000}#condition_editor_dialog_content .selectedConditionEdit .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:hover .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:focus .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:active .changesDetected{color:#fff}#condition_editor_dialog_content button.selectedConditionEdit{color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content .btn_remove_condition{background-color:#922;border:1px solid #922;color:#fff}#condition_editor_dialog_content .btn_remove_condition:hover,#condition_editor_dialog_content .btn_remove_condition:active,#condition_editor_dialog_content .btn_remove_condition:focus{border:1px solid #000 !important;background-color:#600}#condition_editor_dialog_content .ifthen_label{font-weight:bolder;color:#005ea2}@media only screen and (max-width: 600px){#leaf_dialog_content{min-width:400px}#vue-formeditor-app{min-width:400px}#vue-formeditor-app>div{flex-direction:column}#vue-formeditor-app main>section{margin:0;padding:0}#vue-formeditor-app nav#top-menu-nav{width:100%}#vue-formeditor-app nav#top-menu-nav ul{flex-direction:column;height:fit-content}#vue-formeditor-app nav#top-menu-nav ul li{width:100%;height:fit-content;flex-direction:column}#vue-formeditor-app nav#top-menu-nav ul li::after{content:"";background-color:rgba(0,0,0,0)}#vue-formeditor-app nav#top-menu-nav ul li button,#vue-formeditor-app nav#top-menu-nav ul li a{height:36px;padding:0;border-radius:0;justify-content:center !important}#vue-formeditor-app nav#top-menu-nav ul li button span,#vue-formeditor-app nav#top-menu-nav ul li a span{margin-left:10px}#vue-formeditor-app #secure_forms_info{display:flex;flex-wrap:wrap;justify-content:space-between}#vue-formeditor-app #edit-properties-panel{flex-direction:column;border-radius:0}#vue-formeditor-app #edit-properties-panel>div{width:100%}#vue-formeditor-app #edit-properties-panel #edit-properties-description{border-right:0;border-bottom:1px solid #252f3e}#vue-formeditor-app #internalFormRecordsDisplay{min-width:100%}#vue-formeditor-app #form_index_and_editing{flex-direction:column;gap:1.25rem}#vue-formeditor-app #form_index_and_editing>div{border-radius:0}#vue-formeditor-app #form_index_and_editing #form_index_display{width:100%;flex:0 0 100%}#vue-formeditor-app #form_index_and_editing .tableinput{max-width:580px}#condition_editor_dialog_content{width:100%;min-width:400px;border:0}#condition_editor_dialog_content div#if-then-setup{flex-direction:column}#condition_editor_dialog_content div#if-then-setup>select,#condition_editor_dialog_content div#if-then-setup>h3,#condition_editor_dialog_content div#if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content div#if-then-setup #operator_select{width:100%}#condition_editor_dialog_content div#if-then-setup .choices__inner{max-width:100%}} diff --git a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js index e7cf03c5f..b2fbd08f0 100644 --- a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js +++ b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js @@ -1,2 +1,2 @@ /*! For license information please see LEAF_FormEditor.js.LICENSE.txt */ -(()=>{"use strict";var e,t,n={425:(e,t,n)=>{n.d(t,{EW:()=>Mi,Ef:()=>Ac,pM:()=>Ao,h:()=>Bi,WQ:()=>vr,dY:()=>Cn,Gt:()=>gr,Kh:()=>Tt,KR:()=>Ht,Gc:()=>kt,IJ:()=>qt,R1:()=>Gt,wB:()=>rs});var o={};function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(o),n.d(o,{BaseTransition:()=>Es,BaseTransitionPropsValidators:()=>Cs,Comment:()=>Vs,DeprecationTypes:()=>Qi,EffectScope:()=>fe,ErrorCodes:()=>an,ErrorTypeStrings:()=>Wi,Fragment:()=>$s,KeepAlive:()=>us,ReactiveEffect:()=>be,Static:()=>js,Suspense:()=>so,Teleport:()=>Ps,Text:()=>Bs,TrackOpTypes:()=>sn,Transition:()=>rl,TransitionGroup:()=>Ql,TriggerOpTypes:()=>ln,VueElement:()=>Wl,assertNumber:()=>cn,callWithAsyncErrorHandling:()=>dn,callWithErrorHandling:()=>un,camelize:()=>D,capitalize:()=>P,cloneVNode:()=>ii,compatUtils:()=>Yi,computed:()=>Mi,createApp:()=>Ac,createBlock:()=>Qs,createCommentVNode:()=>ai,createElementBlock:()=>Ys,createElementVNode:()=>oi,createHydrationRenderer:()=>qr,createPropsRestProxy:()=>Zo,createRenderer:()=>Hr,createSSRApp:()=>Ic,createSlots:()=>ko,createStaticVNode:()=>ci,createTextVNode:()=>li,createVNode:()=>ri,customRef:()=>Zt,defineAsyncComponent:()=>No,defineComponent:()=>Ao,defineCustomElement:()=>Ul,defineEmits:()=>jo,defineExpose:()=>Uo,defineModel:()=>Wo,defineOptions:()=>Ho,defineProps:()=>Vo,defineSSRCustomElement:()=>Hl,defineSlots:()=>qo,devtools:()=>Ki,effect:()=>Ee,effectScope:()=>me,getCurrentInstance:()=>bi,getCurrentScope:()=>ve,getTransitionRawChildren:()=>Ns,guardReactiveProps:()=>si,h:()=>Bi,handleError:()=>pn,hasInjectionContext:()=>yr,hydrate:()=>kc,initCustomFormatter:()=>Vi,initDirectivesForSSR:()=>Dc,inject:()=>vr,isMemoSame:()=>Ui,isProxy:()=>Ot,isReactive:()=>Rt,isReadonly:()=>Ft,isRef:()=>Ut,isRuntimeOnly:()=>Ri,isShallow:()=>Dt,isVNode:()=>Xs,markRaw:()=>Pt,mergeDefaults:()=>Qo,mergeModels:()=>Xo,mergeProps:()=>hi,nextTick:()=>Cn,normalizeClass:()=>X,normalizeProps:()=>Z,normalizeStyle:()=>z,onActivated:()=>ps,onBeforeMount:()=>fo,onBeforeUnmount:()=>yo,onBeforeUpdate:()=>go,onDeactivated:()=>hs,onErrorCaptured:()=>xo,onMounted:()=>mo,onRenderTracked:()=>Co,onRenderTriggered:()=>_o,onScopeDispose:()=>ye,onServerPrefetch:()=>So,onUnmounted:()=>bo,onUpdated:()=>vo,openBlock:()=>qs,popScopeId:()=>jn,provide:()=>gr,proxyRefs:()=>Qt,pushScopeId:()=>Vn,queuePostFlushCb:()=>wn,reactive:()=>Tt,readonly:()=>At,ref:()=>Ht,registerRuntimeCompiler:()=>Ni,render:()=>Tc,renderList:()=>To,renderSlot:()=>Fo,resolveComponent:()=>Qn,resolveDirective:()=>eo,resolveDynamicComponent:()=>Zn,resolveFilter:()=>Ji,resolveTransitionHooks:()=>Ts,setBlockTracking:()=>Gs,setDevtoolsHook:()=>zi,setTransitionHooks:()=>Is,shallowReactive:()=>kt,shallowReadonly:()=>It,shallowRef:()=>qt,ssrContextKey:()=>Xr,ssrUtils:()=>Gi,stop:()=>we,toDisplayString:()=>ae,toHandlerKey:()=>M,toHandlers:()=>Oo,toRaw:()=>Lt,toRef:()=>on,toRefs:()=>en,toValue:()=>Jt,transformVNodeArgs:()=>ei,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Go,useCssModule:()=>Kl,useCssVars:()=>wl,useModel:()=>$i,useSSRContext:()=>Zr,useSlots:()=>zo,useTransitionState:()=>Ss,vModelCheckbox:()=>ic,vModelDynamic:()=>hc,vModelRadio:()=>cc,vModelSelect:()=>ac,vModelText:()=>sc,vShow:()=>Cl,version:()=>Hi,warn:()=>qi,watch:()=>rs,watchEffect:()=>es,watchPostEffect:()=>ts,watchSyncEffect:()=>ns,withAsyncContext:()=>er,withCtx:()=>Hn,withDefaults:()=>Ko,withDirectives:()=>Eo,withKeys:()=>Sc,withMemo:()=>ji,withModifiers:()=>yc,withScopeId:()=>Un});const s={},i=[],l=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),d=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,f=(e,t)=>h.call(e,t),m=Array.isArray,g=e=>"[object Map]"===w(e),v=e=>"[object Set]"===w(e),y=e=>"[object Date]"===w(e),b=e=>"function"==typeof e,S=e=>"string"==typeof e,_=e=>"symbol"==typeof e,C=e=>null!==e&&"object"==typeof e,x=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,w=e=>E.call(e),T=e=>w(e).slice(8,-1),k=e=>"[object Object]"===w(e),A=e=>S(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),N=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),R=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},F=/-(\w)/g,D=R((e=>e.replace(F,((e,t)=>t?t.toUpperCase():"")))),O=/\B([A-Z])/g,L=R((e=>e.replace(O,"-$1").toLowerCase())),P=R((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=R((e=>e?`on${P(e)}`:"")),$=(e,t)=>!Object.is(e,t),B=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=S(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const q=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),W={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},K=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(m(e)){const t={};for(let n=0;n{if(e){const n=e.split(J);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function X(e){let t="";if(S(e))t=e;else if(m(e))for(let n=0;nie(e,t)))}const ce=e=>!(!e||!0!==e.__v_isRef),ae=e=>S(e)?e:null==e?"":m(e)||C(e)&&(e.toString===E||!b(e.toString))?ce(e)?ae(e.value):JSON.stringify(e,ue,2):String(e),ue=(e,t)=>ce(t)?ue(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[de(t,o)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>de(e)))}:_(t)?de(t):!C(t)||m(t)||k(t)?t:String(t),de=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let pe,he;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pe,!e&&pe&&(this.index=(pe.scopes||(pe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=pe;try{return pe=this,e()}finally{pe=t}}}on(){pe=this}off(){pe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ne()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Te,t=he;try{return Te=!0,he=this,this._runnings++,_e(this),this.fn()}finally{Ce(this),this._runnings--,he=t,Te=e}}stop(){this.active&&(_e(this),Ce(this),this.onStop&&this.onStop(),this.active=!1)}}function Se(e){return e.value}function _e(e){e._trackId++,e._depsLength=0}function Ce(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(d(n,t),t.scope&&ge(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function we(e){e.effect.stop()}let Te=!0,ke=0;const Ae=[];function Ie(){Ae.push(Te),Te=!1}function Ne(){const e=Ae.pop();Te=void 0===e||e}function Re(){ke++}function Fe(){for(ke--;!ke&&Oe.length;)Oe.shift()()}function De(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oe=[];function Le(e,t,n){Re();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Me=new WeakMap,$e=Symbol(""),Be=Symbol("");function Ve(e,t,n){if(Te&&he){let t=Me.get(e);t||Me.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Pe((()=>t.delete(n)))),De(he,o)}}function je(e,t,n,o,r,s){const i=Me.get(e);if(!i)return;let l=[];if("clear"===t)l=[...i.values()];else if("length"===n&&m(e)){const e=Number(o);i.forEach(((t,n)=>{("length"===n||!_(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":m(e)?A(n)&&l.push(i.get("length")):(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"delete":m(e)||(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"set":g(e)&&l.push(i.get($e))}Re();for(const e of l)e&&Le(e,4);Fe()}const Ue=r("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(_)),qe=We();function We(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Lt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Ie(),Re();const n=Lt(this)[t].apply(this,e);return Fe(),Ne(),n}})),e}function Ke(e){_(e)||(e=String(e));const t=Lt(this);return Ve(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?wt:Et:r?xt:Ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=m(e);if(!o){if(s&&f(qe,t))return Reflect.get(qe,t,n);if("hasOwnProperty"===t)return Ke}const i=Reflect.get(e,t,n);return(_(t)?He.has(t):Ue(t))?i:(o||Ve(e,0,t),r?i:Ut(i)?s&&A(t)?i:i.value:C(i)?o?At(i):Tt(i):i)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ft(r);if(Dt(n)||Ft(n)||(r=Lt(r),n=Lt(n)),!m(e)&&Ut(r)&&!Ut(n))return!t&&(r.value=n,!0)}const s=m(e)&&A(t)?Number(t)e,tt=e=>Reflect.getPrototypeOf(e);function nt(e,t,n=!1,o=!1){const r=Lt(e=e.__v_raw),s=Lt(t);n||($(t,s)&&Ve(r,0,t),Ve(r,0,s));const{has:i}=tt(r),l=o?et:n?$t:Mt;return i.call(r,t)?l(e.get(t)):i.call(r,s)?l(e.get(s)):void(e!==r&&e.get(t))}function ot(e,t=!1){const n=this.__v_raw,o=Lt(n),r=Lt(e);return t||($(e,r)&&Ve(o,0,e),Ve(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function rt(e,t=!1){return e=e.__v_raw,!t&&Ve(Lt(e),0,$e),Reflect.get(e,"size",e)}function st(e){e=Lt(e);const t=Lt(this);return tt(t).has.call(t,e)||(t.add(e),je(t,"add",e,e)),this}function it(e,t){t=Lt(t);const n=Lt(this),{has:o,get:r}=tt(n);let s=o.call(n,e);s||(e=Lt(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?$(t,i)&&je(n,"set",e,t):je(n,"add",e,t),this}function lt(e){const t=Lt(this),{has:n,get:o}=tt(t);let r=n.call(t,e);r||(e=Lt(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&je(t,"delete",e,void 0),s}function ct(){const e=Lt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function at(e,t){return function(n,o){const r=this,s=r.__v_raw,i=Lt(s),l=t?et:e?$t:Mt;return!e&&Ve(i,0,$e),s.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function ut(e,t,n){return function(...o){const r=this.__v_raw,s=Lt(r),i=g(s),l="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,a=r[e](...o),u=n?et:t?$t:Mt;return!t&&Ve(s,0,c?Be:$e),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function dt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function pt(){const e={get(e){return nt(this,e)},get size(){return rt(this)},has:ot,add:st,set:it,delete:lt,clear:ct,forEach:at(!1,!1)},t={get(e){return nt(this,e,!1,!0)},get size(){return rt(this)},has:ot,add:st,set:it,delete:lt,clear:ct,forEach:at(!1,!0)},n={get(e){return nt(this,e,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!1)},o={get(e){return nt(this,e,!0,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ut(r,!1,!1),n[r]=ut(r,!0,!1),t[r]=ut(r,!1,!0),o[r]=ut(r,!0,!0)})),[e,n,t,o]}const[ht,ft,mt,gt]=pt();function vt(e,t){const n=t?e?gt:mt:e?ft:ht;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(f(n,o)&&o in t?n:t,o,r)}const yt={get:vt(!1,!1)},bt={get:vt(!1,!0)},St={get:vt(!0,!1)},_t={get:vt(!0,!0)},Ct=new WeakMap,xt=new WeakMap,Et=new WeakMap,wt=new WeakMap;function Tt(e){return Ft(e)?e:Nt(e,!1,Ye,yt,Ct)}function kt(e){return Nt(e,!1,Xe,bt,xt)}function At(e){return Nt(e,!0,Qe,St,Et)}function It(e){return Nt(e,!0,Ze,_t,wt)}function Nt(e,t,n,o,r){if(!C(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(T(l));var l;if(0===i)return e;const c=new Proxy(e,2===i?o:n);return r.set(e,c),c}function Rt(e){return Ft(e)?Rt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ft(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Ot(e){return!!e&&!!e.__v_raw}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}function Pt(e){return Object.isExtensible(e)&&V(e,"__v_skip",!0),e}const Mt=e=>C(e)?Tt(e):e,$t=e=>C(e)?At(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new be((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Lt(this);return e._cacheable&&!e.effect.dirty||!$(e._value,e._value=e.effect.run())||jt(e,4),Vt(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Vt(e){var t;Te&&he&&(e=Lt(e),De(he,null!=(t=e.dep)?t:e.dep=Pe((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Lt(e)).dep;r&&Le(r,t)}function Ut(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return Wt(e,!1)}function qt(e){return Wt(e,!0)}function Wt(e,t){return Ut(e)?e:new Kt(e,t)}class Kt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lt(e),this._value=t?e:Mt(e)}get value(){return Vt(this),this._value}set value(e){const t=this.__v_isShallow||Dt(e)||Ft(e);e=t?e:Lt(e),$(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Mt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ut(e)?e.value:e}function Jt(e){return b(e)?e():Gt(e)}const Yt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ut(r)&&!Ut(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Qt(e){return Rt(e)?e:new Proxy(e,Yt)}class Xt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Vt(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Zt(e){return new Xt(e)}function en(e){const t=m(e)?new Array(e.length):{};for(const n in e)t[n]=rn(e,n);return t}class tn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Me.get(e);return n&&n.get(t)}(Lt(this._object),this._key)}}class nn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function on(e,t,n){return Ut(e)?e:b(e)?new nn(e):C(e)&&arguments.length>1?rn(e,t,n):Ht(e)}function rn(e,t,n){const o=e[t];return Ut(o)?o:new tn(e,t,n)}const sn={GET:"get",HAS:"has",ITERATE:"iterate"},ln={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function cn(e,t){}const an={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"};function un(e,t,n,o){try{return o?e(...o):e()}catch(e){pn(e,t,n)}}function dn(e,t,n,o){if(b(e)){const r=un(e,t,n,o);return r&&x(r)&&r.catch((e=>{pn(e,t,n)})),r}if(m(e)){const r=[];for(let s=0;s>>1,r=mn[o],s=An(r);sAn(e)-An(t)));if(vn.length=0,yn)return void yn.push(...e);for(yn=e,bn=0;bnnull==e.id?1/0:e.id,In=(e,t)=>{const n=An(e)-An(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nn(e){fn=!1,hn=!0,mn.sort(In);try{for(gn=0;gnS(e)?e.trim():e))),t&&(r=n.map(j))}let c,a=o[c=M(t)]||o[c=M(D(t))];!a&&i&&(a=o[c=M(L(t))]),a&&dn(a,e,6,r);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,dn(u,e,6,r)}}function Ln(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},l=!1;if(!b(e)){const o=e=>{const n=Ln(e,t,!0);n&&(l=!0,d(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?(m(s)?s.forEach((e=>i[e]=null)):d(i,s),C(e)&&o.set(e,i),i):(C(e)&&o.set(e,null),null)}function Pn(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),f(e,t[0].toLowerCase()+t.slice(1))||f(e,L(t))||f(e,t))}let Mn=null,$n=null;function Bn(e){const t=Mn;return Mn=e,$n=e&&e.type.__scopeId||null,t}function Vn(e){$n=e}function jn(){$n=null}const Un=e=>Hn;function Hn(e,t=Mn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Gs(-1);const r=Bn(t);let s;try{s=e(...n)}finally{Bn(r),o._d&&Gs(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function qn(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:l,emit:c,render:a,renderCache:d,props:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,v=Bn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=ui(a.call(t,e,d,p,f,h,m)),b=l}else{const e=t;y=ui(e.length>1?e(p,{attrs:l,slots:i,emit:c}):e(p,null)),b=t.props?l:Wn(l)}}catch(t){Us.length=0,pn(t,e,1),y=ri(Vs)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(s&&e.some(u)&&(b=Kn(b,s)),S=ii(S,b,!1,!0))}return n.dirs&&(S=ii(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Bn(v),y}const Wn=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Kn=(e,t)=>{const n={};for(const o in e)u(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function zn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let ro=0;const so={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,s,i,l,c,a){if(null==e)!function(e,t,n,o,r,s,i,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=lo(e,r,o,t,d,n,s,i,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,s,i),p.deps>0?(io(e,"onPending"),io(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,s,i),uo(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,s,i,l,c,a);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,s,i,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,Zs(p,m)?(c(m,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():g&&(v||(c(f,h,n,o,r,null,s,i,l),uo(d,h)))):(d.pendingId=ro++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():(c(f,h,n,o,r,null,s,i,l),uo(d,h))):f&&Zs(p,f)?(c(f,p,n,o,r,d,s,i,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0&&d.resolve()));else if(f&&Zs(p,f))c(f,p,n,o,r,d,s,i,l),uo(d,p);else if(io(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=ro++,c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,i,l,c,a)}},hydrate:function(e,t,n,o,r,s,i,l,c){const a=t.suspense=lo(t,o,n,e.parentNode,document.createElement("div"),null,r,s,i,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,s,i);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=co(o?n.default:n),e.ssFallback=o?co(n.fallback):ri(Vs)}};function io(e,t){const n=e.props&&e.props[t];b(n)&&n()}function lo(e,t,n,o,r,s,i,l,c,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?U(e.props.timeout):void 0,S=s,_={vnode:e,parent:t,parentComponent:n,namespace:i,container:o,hiddenContainer:r,deps:0,pendingId:ro++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:i,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&i.transition&&"out-in"===i.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(i,u,s===S?f(r):s,0),wn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(s=f(r)),h(r,a,_,!0)),d||p(i,u,s,0)),uo(_,i),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||wn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),io(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:s}=_;io(t,"onFallback");const i=f(n),a=()=>{_.isInFallback&&(d(null,e,r,i,o,null,s,l,c),uo(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{pn(t,e,0)})).then((s=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Ii(e,s,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:f(e.subTree),_,i,n),c&&g(c),Gn(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function co(e){let t;if(b(e)){const n=zs&&e._c;n&&(e._d=!1,qs()),e=e(),n&&(e._d=!0,t=Hs,Ws())}if(m(e)){const t=function(e,t=!0){let n;for(let t=0;tt!==e))),e}function ao(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):wn(e)}function uo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Gn(o,r))}function po(e,t,n=yi,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Ie();const r=Ci(n),s=dn(t,n,e,o);return r(),Ne(),s});return o?r.unshift(s):r.push(s),s}}const ho=e=>(t,n=yi)=>{ki&&"sp"!==e||po(e,((...e)=>t(...e)),n)},fo=ho("bm"),mo=ho("m"),go=ho("bu"),vo=ho("u"),yo=ho("bum"),bo=ho("um"),So=ho("sp"),_o=ho("rtg"),Co=ho("rtc");function xo(e,t=yi){po("ec",e,t)}function Eo(e,t){if(null===Mn)return e;const n=Li(Mn),o=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Ao(e,t){return b(e)?(()=>d({name:e.name},t,{setup:e}))():e}const Io=e=>!!e.type.__asyncLoader;function No(e){b(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:i=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return Ao({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=yi;if(c)return()=>Ro(c,e);const t=t=>{a=null,pn(t,e,13,!o)};if(i&&e.suspense||ki)return d().then((t=>()=>Ro(t,e))).catch((e=>(t(e),()=>o?ri(o,{error:e}):null)));const l=Ht(!1),u=Ht(),p=Ht(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),d().then((()=>{l.value=!0,e.parent&&as(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?Ro(c,e):u.value&&o?ri(o,{error:u.value}):n&&!p.value?ri(n):void 0}})}function Ro(e,t){const{ref:n,props:o,children:r,ce:s}=t.vnode,i=ri(e,o,r);return i.ref=n,i.ce=s,delete t.vnode.ce,i}function Fo(e,t,n={},o,r){if(Mn.isCE||Mn.parent&&Io(Mn.parent)&&Mn.parent.isCE)return"default"!==t&&(n.name=t),ri("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),qs();const i=s&&Do(s(n)),l=Qs($s,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Do(e){return e.some((e=>!Xs(e)||e.type!==Vs&&!(e.type===$s&&!Do(e.children))))?e:null}function Oo(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const Lo=e=>e?Ei(e)?Li(e):Lo(e.parent):null,Po=d(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Lo(e.parent),$root:e=>Lo(e.root),$emit:e=>e.emit,$options:e=>rr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>is.bind(e)}),Mo=(e,t)=>e!==s&&!e.__isScriptSetup&&f(e,t),$o={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Mo(o,t))return l[t]=1,o[t];if(r!==s&&f(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&f(u,t))return l[t]=3,i[t];if(n!==s&&f(n,t))return l[t]=4,n[t];tr&&(l[t]=0)}}const d=Po[t];let p,h;return d?("$attrs"===t&&Ve(e.attrs,0,""),d(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==s&&f(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,f(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Mo(r,t)?(r[t]=n,!0):o!==s&&f(o,t)?(o[t]=n,!0):!(f(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},l){let c;return!!n[l]||e!==s&&f(e,l)||Mo(t,l)||(c=i[0])&&f(c,l)||f(o,l)||f(Po,l)||f(r.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:f(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Bo=d({},$o,{get(e,t){if(t!==Symbol.unscopables)return $o.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!K(t)});function Vo(){return null}function jo(){return null}function Uo(e){}function Ho(e){}function qo(){return null}function Wo(){}function Ko(e,t){return null}function zo(){return Jo().slots}function Go(){return Jo().attrs}function Jo(){const e=bi();return e.setupContext||(e.setupContext=Oi(e))}function Yo(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Qo(e,t){const n=Yo(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?m(o)||b(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function Xo(e,t){return e&&t?m(e)&&m(t)?e.concat(t):d({},Yo(e),Yo(t)):e||t}function Zo(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function er(e){const t=bi();let n=e();return xi(),x(n)&&(n=n.catch((e=>{throw Ci(t),e}))),[n,()=>Ci(t)]}let tr=!0;function nr(e,t,n){dn(m(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function or(e,t,n,o){const r=o.includes(".")?ls(n,o):()=>n[o];if(S(e)){const n=t[e];b(n)&&rs(r,n)}else if(b(e))rs(r,e.bind(n));else if(C(e))if(m(e))e.forEach((e=>or(e,t,n,o)));else{const o=b(e.handler)?e.handler.bind(n):t[e.handler];b(o)&&rs(r,o,e)}}function rr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>sr(c,e,i,!0))),sr(c,t,i)):c=t,C(t)&&s.set(t,c),c}function sr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&sr(e,s,n,!0),r&&r.forEach((t=>sr(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=ir[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const ir={data:lr,props:dr,emits:dr,methods:ur,computed:ur,beforeCreate:ar,created:ar,beforeMount:ar,mounted:ar,beforeUpdate:ar,updated:ar,beforeDestroy:ar,beforeUnmount:ar,destroyed:ar,unmounted:ar,activated:ar,deactivated:ar,errorCaptured:ar,serverPrefetch:ar,components:ur,directives:ur,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);for(const o in t)n[o]=ar(e[o],t[o]);return n},provide:lr,inject:function(e,t){return ur(cr(e),cr(t))}};function lr(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function cr(e){if(m(e)){const t={};for(let n=0;n(s.has(e)||(e&&b(e.install)?(s.add(e),e.install(l,...t)):b(e)&&(s.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(s,c,a){if(!i){const u=ri(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,s):e(u,s,a),i=!0,l._container=s,s.__vue_app__=l,Li(u.component)}},unmount(){i&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=mr;mr=l;try{return e()}finally{mr=t}}};return l}}let mr=null;function gr(e,t){if(yi){let n=yi.provides;const o=yi.parent&&yi.parent.provides;o===n&&(n=yi.provides=Object.create(o)),n[e]=t}}function vr(e,t,n=!1){const o=yi||Mn;if(o||mr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:mr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&b(t)?t.call(o&&o.proxy):t}}function yr(){return!!(yi||Mn||mr)}const br={},Sr=()=>Object.create(br),_r=e=>Object.getPrototypeOf(e)===br;function Cr(e,t,n,o){const[r,i]=e.propsOptions;let l,c=!1;if(t)for(let s in t){if(I(s))continue;const a=t[s];let u;r&&f(r,u=D(s))?i&&i.includes(u)?(l||(l={}))[u]=a:n[u]=a:Pn(e.emitsOptions,s)||s in o&&a===o[s]||(o[s]=a,c=!0)}if(i){const t=Lt(n),o=l||s;for(let s=0;s{u=!0;const[n,o]=Er(e,t,!0);d(c,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!u)return C(e)&&o.set(e,i),i;if(m(l))for(let e=0;e-1,o[1]=n<0||e-1||f(o,"default"))&&a.push(t)}}}const p=[c,a];return C(e)&&o.set(e,p),p}function wr(e){return"$"!==e[0]&&!I(e)}function Tr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function kr(e,t){return Tr(e)===Tr(t)}function Ar(e,t){return m(t)?t.findIndex((t=>kr(t,e))):b(t)&&kr(t,e)?0:-1}const Ir=e=>"_"===e[0]||"$stable"===e,Nr=e=>m(e)?e.map(ui):[ui(e)],Rr=(e,t,n)=>{if(t._n)return t;const o=Hn(((...e)=>Nr(t(...e))),n);return o._c=!1,o},Fr=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Ir(n))continue;const r=e[n];if(b(r))t[n]=Rr(0,r,o);else if(null!=r){const e=Nr(r);t[n]=()=>e}}},Dr=(e,t)=>{const n=Nr(t);e.slots.default=()=>n},Or=(e,t)=>{const n=e.slots=Sr();if(32&e.vnode.shapeFlag){const e=t._;e?(d(n,t),V(n,"_",e,!0)):Fr(t,n)}else t&&Dr(e,t)},Lr=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=s;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(d(r,t),n||1!==e||delete r._):(i=!t.$stable,Fr(t,r)),l=t}else t&&(Dr(e,t),l={default:1});if(i)for(const e in r)Ir(e)||null!=l[e]||delete r[e]};function Pr(e,t,n,o,r=!1){if(m(e))return void e.forEach(((e,s)=>Pr(e,t&&(m(t)?t[s]:t),n,o,r)));if(Io(o)&&!r)return;const i=4&o.shapeFlag?Li(o.component):o.el,l=r?null:i,{i:c,r:a}=e,u=t&&t.r,d=c.refs===s?c.refs={}:c.refs,h=c.setupState;if(null!=u&&u!==a&&(S(u)?(d[u]=null,f(h,u)&&(h[u]=null)):Ut(u)&&(u.value=null)),b(a))un(a,c,12,[l,d]);else{const t=S(a),o=Ut(a);if(t||o){const s=()=>{if(e.f){const n=t?f(h,a)?h[a]:d[a]:a.value;r?m(n)&&p(n,i):m(n)?n.includes(i)||n.push(i):t?(d[a]=[i],f(h,a)&&(h[a]=d[a])):(a.value=[i],e.k&&(d[e.k]=a.value))}else t?(d[a]=l,f(h,a)&&(h[a]=l)):o&&(a.value=l,e.k&&(d[e.k]=l))};l?(s.id=-1,Ur(s,n)):s()}}}let Mr=!1;const $r=()=>{Mr||(console.error("Hydration completed but contains mismatches."),Mr=!0)},Br=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,Vr=e=>8===e.nodeType;function jr(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:s,parentNode:i,remove:l,insert:c,createComment:u}}=e,d=(n,o,l,a,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=Vr(n)&&"["===n.data,_=()=>m(n,o,l,a,u,S),{type:C,ref:x,shapeFlag:E,patchFlag:w}=o;let T=n.nodeType;o.el=n,-2===w&&(b=!1,o.dynamicChildren=null);let k=null;switch(C){case Bs:3!==T?""===o.children?(c(o.el=r(""),i(n),n),k=n):k=_():(n.data!==o.children&&($r(),n.data=o.children),k=s(n));break;case Vs:y(n)?(k=s(n),v(o.el=n.content.firstChild,n,l)):k=8!==T||S?_():s(n);break;case js:if(S&&(T=(n=s(n)).nodeType),1===T||3===T){k=n;const e=!o.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===c||"option"===c;if(g||-1!==d){f&&wo(t,null,n,"created");let c,b=!1;if(y(e)){b=Gr(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=h(e.firstChild,t,e,n,r,s,i);for(;o;){$r();const e=o;o=o.nextSibling,l(e)}}else 8&p&&e.textContent!==t.children&&($r(),e.textContent=t.children);if(u)if(g||!i||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||a(t)&&!I(t)||"."===t[0])&&o(e,t,null,u[t],void 0,void 0,n);else u.onClick&&o(e,"onClick",null,u.onClick,void 0,void 0,n);(c=u&&u.onVnodeBeforeMount)&&fi(c,n,t),f&&wo(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f||b)&&ao((()=>{c&&fi(c,n,t),b&&m.enter(e),f&&wo(t,null,n,"mounted")}),r)}return e.nextSibling},h=(e,t,o,s,i,l,a)=>{a=a||!!t.dynamicChildren;const u=t.children,p=u.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(r=r?r.concat(a):a);const d=i(e),p=h(s(e),t,d,n,o,r,l);return p&&Vr(p)&&"]"===p.data?s(t.anchor=p):($r(),c(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,c,a)=>{if($r(),t.el=null,a){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;l(n)}}const u=s(e),d=i(e);return l(e),n(null,t,d,u,o,r,Br(d),c),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=s(e))&&Vr(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return s(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),kn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),kn(),t._vnode=e},d]}const Ur=ao;function Hr(e){return Wr(e)}function qr(e){return Wr(e,jr)}function Wr(e,t){q().__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:c,createText:a,createComment:u,setText:d,setElementText:p,parentNode:h,nextSibling:m,setScopeId:g=l,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,s=null,i=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Zs(e,t)&&(o=J(e),H(e,r,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Bs:b(e,t,n,o);break;case Vs:S(e,t,n,o);break;case js:null==e&&_(t,n,o,i);break;case $s:N(e,t,n,o,r,s,i,l,c);break;default:1&d?C(e,t,n,o,r,s,i,l,c):6&d?R(e,t,n,o,r,s,i,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,s,i,l,c,X)}null!=u&&r&&Pr(u,e&&e.ref,s,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},C=(e,t,n,o,r,s,i,l,c)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?x(t,n,o,r,s,i,l,c):T(e,t,r,s,i,l,c)},x=(e,t,o,s,i,l,a,u)=>{let d,h;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,l,f&&f.is,f),8&m?p(d,e.children):16&m&&w(e.children,d,null,s,i,Kr(e,l),a,u),v&&wo(e,null,s,"created"),E(d,e,e.scopeId,a,s),f){for(const t in f)"value"===t||I(t)||r(d,t,null,f[t],l,e.children,s,i,G);"value"in f&&r(d,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&fi(h,s,e)}v&&wo(e,null,s,"beforeMount");const y=Gr(i,g);y&&g.beforeEnter(d),n(d,t,o),((h=f&&f.onVnodeMounted)||y||v)&&Ur((()=>{h&&fi(h,s,e),y&&g.enter(d),v&&wo(e,null,s,"mounted")}),i)},E=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&zr(n,!1),(g=m.onVnodeBeforeUpdate)&&fi(g,n,t,e),h&&wo(t,e,n,"beforeUpdate"),n&&zr(n,!0),d?k(e.dynamicChildren,d,a,n,o,Kr(t,i),l):c||$(e,t,a,null,n,o,Kr(t,i),l,!1),u>0){if(16&u)A(a,t,f,m,n,o,i);else if(2&u&&f.class!==m.class&&r(a,"class",null,m.class,i),4&u&&r(a,"style",f.style,m.style,i),8&u){const s=t.dynamicProps;for(let t=0;t{g&&fi(g,n,t,e),h&&wo(t,e,n,"updated")}),o)},k=(e,t,n,o,r,s,i)=>{for(let l=0;l{if(n!==o){if(n!==s)for(const s in n)I(s)||s in o||r(e,s,n[s],null,c,t.children,i,l,G);for(const s in o){if(I(s))continue;const a=o[s],u=n[s];a!==u&&"value"!==s&&r(e,s,u,a,c,t.children,i,l,G)}"value"in o&&r(e,"value",n.value,o.value,c)}},N=(e,t,o,r,s,i,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),w(t.children||[],o,p,s,i,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(k(e.dynamicChildren,f,o,s,i,l,c),(null!=t.key||s&&t===s.subTree)&&Jr(e,t,!0)):$(e,t,o,p,s,i,l,c,u)},R=(e,t,n,o,r,s,i,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,c):F(t,n,o,r,s,i,c):O(e,t,c)},F=(e,t,n,o,r,s,i)=>{const l=e.component=vi(e,o,r);if(as(e)&&(l.ctx.renderer=X),Ai(l),l.asyncDep){if(r&&r.registerDep(l,P,i),!e.el){const e=l.subTree=ri(Vs);S(null,e,t,n)}}else P(l,e,t,n,r,s,i)},O=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:c}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||zn(o,i,a):!!i);if(1024&c)return!0;if(16&c)return o?zn(o,i,a):!!i;if(8&c){const e=t.dynamicProps;for(let t=0;tgn&&mn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},P=(e,t,n,o,r,s,i)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:a}=e;{const n=Yr(e);if(n)return t&&(t.el=a.el,M(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;zr(e,!1),t?(t.el=a.el,M(e,t,i)):t=a,n&&B(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&fi(u,l,t,a),zr(e,!0);const p=qn(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Gn(e,p.el),o&&Ur(o,r),(u=t.props&&t.props.onVnodeUpdated)&&Ur((()=>fi(u,l,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=Io(t);if(zr(e,!1),a&&B(a),!p&&(i=c&&c.onVnodeBeforeMount)&&fi(i,d,t),zr(e,!0),l&&ee){const n=()=>{e.subTree=qn(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=qn(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&Ur(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;Ur((()=>fi(i,d,e)),r)}(256&t.shapeFlag||d&&Io(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ur(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new be(c,l,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.id=e.uid,zr(e,!0),u()},M=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=Lt(r),[c]=e.propsOptions;let a=!1;if(!(o||i>0)||16&i){let o;Cr(e,t,r,s)&&(a=!0);for(const s in l)t&&(f(t,s)||(o=L(s))!==s&&f(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(r[s]=xr(c,l,s,void 0,e,!0)):delete r[s]);if(s!==l)for(const e in s)t&&f(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void j(a,d,n,o,r,s,i,l,c);if(256&h)return void V(a,d,n,o,r,s,i,l,c)}8&f?(16&u&&G(a,r,s),d!==a&&p(n,d)):16&u?16&f?j(a,d,n,o,r,s,i,l,c):G(a,r,s,!0):(8&u&&p(n,""),16&f&&w(d,n,o,r,s,i,l,c))},V=(e,t,n,o,r,s,l,c,a)=>{t=t||i;const u=(e=e||i).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?G(e,r,s,!0,!1,p):w(t,n,o,r,s,l,c,a,p)},j=(e,t,n,o,r,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],i=t[u]=a?di(t[u]):ui(t[u]);if(!Zs(o,i))break;y(o,i,n,null,r,s,l,c,a),u++}for(;u<=p&&u<=h;){const o=e[p],i=t[h]=a?di(t[h]):ui(t[h]);if(!Zs(o,i))break;y(o,i,n,null,r,s,l,c,a),p--,h--}if(u>p){if(u<=h){const e=h+1,i=eh)for(;u<=p;)H(e[u],r,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=a?di(t[u]):ui(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=h-m+1;let _=!1,C=0;const x=new Array(S);for(u=0;u=S){H(o,r,s,!0);continue}let i;if(null!=o.key)i=g.get(o.key);else for(v=m;v<=h;v++)if(0===x[v-m]&&Zs(o,t[v])){i=v;break}void 0===i?H(o,r,s,!0):(x[i-m]=u+1,i>=C?C=i:_=!0,y(o,t[i],n,null,r,s,l,c,a),b++)}const E=_?function(e){const t=e.slice(),n=[0];let o,r,s,i,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}(x):i;for(v=E.length-1,u=S-1;u>=0;u--){const e=m+u,i=t[e],p=e+1{const{el:i,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)U(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,X);else if(l!==$s)if(l!==js)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(i),n(i,t,o),Ur((()=>c.enter(i)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=c,l=()=>n(i,t,o),a=()=>{e(i,(()=>{l(),s&&s()}))};r?r(i,l,a):a()}else n(i,t,o);else(({el:e,anchor:t},o,r)=>{let s;for(;e&&e!==t;)s=m(e),n(e,o,r),e=s;n(t,o,r)})(e,t,o);else{n(i,t,o);for(let e=0;e{const{type:s,props:i,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,memoIndex:h}=e;if(-2===d&&(r=!1),null!=l&&Pr(l,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!Io(e);let g;if(m&&(g=i&&i.onVnodeBeforeUnmount)&&fi(g,t,e),6&u)z(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&wo(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,o):a&&(s!==$s||d>0&&64&d)?G(a,t,n,!1,!0):(s===$s&&384&d||!r&&16&u)&&G(c,t,n),o&&W(e)}(m&&(g=i&&i.onVnodeUnmounted)||f)&&Ur((()=>{g&&fi(g,t,e),f&&wo(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===$s)return void K(n,r);if(t===js)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),o(e),e=n;o(t)})(e);const i=()=>{o(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=m(e),o(e),e=n;o(t)},z=(e,t,n)=>{const{bum:o,scope:r,update:s,subTree:i,um:l,m:c,a}=e;Qr(c),Qr(a),o&&B(o),r.stop(),s&&(s.active=!1,H(i,e,t,n)),l&&Ur(l,t),Ur((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,o=!1,r=!1,s=0)=>{for(let i=s;i6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el);let Y=!1;const Q=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Y||(Y=!0,Tn(),kn(),Y=!1),t._vnode=e},X={p:y,um:H,m:U,r:W,mt:F,mc:w,pc:$,pbc:k,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(X)),{render:Q,hydrate:Z,createApp:fr(Q,Z)}}function Kr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Gr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jr(e,t,n=!1){const o=e.children,r=t.children;if(m(o)&&m(r))for(let e=0;evr(Xr);function es(e,t){return ss(e,null,t)}function ts(e,t){return ss(e,null,{flush:"post"})}function ns(e,t){return ss(e,null,{flush:"sync"})}const os={};function rs(e,t,n){return ss(e,t,n)}function ss(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:c,onTrigger:a}=s){if(t&&i){const e=t;t=(...t)=>{e(...t),T()}}const u=yi,d=e=>!0===o?e:cs(e,!1===o?1:void 0);let h,f,g=!1,v=!1;if(Ut(e)?(h=()=>e.value,g=Dt(e)):Rt(e)?(h=()=>d(e),g=!0):m(e)?(v=!0,g=e.some((e=>Rt(e)||Dt(e))),h=()=>e.map((e=>Ut(e)?e.value:Rt(e)?d(e):b(e)?un(e,u,2):void 0))):h=b(e)?t?()=>un(e,u,2):()=>(f&&f(),dn(e,u,3,[S])):l,t&&o){const e=h;h=()=>cs(e())}let y,S=e=>{f=E.onStop=()=>{un(e,u,4),f=E.onStop=void 0}};if(ki){if(S=l,t?n&&dn(t,u,3,[h(),v?[]:void 0,S]):h(),"sync"!==r)return l;{const e=Zr();y=e.__watcherHandles||(e.__watcherHandles=[])}}let _=v?new Array(e.length).fill(os):os;const C=()=>{if(E.active&&E.dirty)if(t){const e=E.run();(o||g||(v?e.some(((e,t)=>$(e,_[t]))):$(e,_)))&&(f&&f(),dn(t,u,3,[e,_===os?void 0:v&&_[0]===os?[]:_,S]),_=e)}else E.run()};let x;C.allowRecurse=!!t,"sync"===r?x=C:"post"===r?x=()=>Ur(C,u&&u.suspense):(C.pre=!0,u&&(C.id=u.uid),x=()=>xn(C));const E=new be(h,l,x),w=ve(),T=()=>{E.stop(),w&&p(w.effects,E)};return t?n?C():_=E.run():"post"===r?Ur(E.run.bind(E),u&&u.suspense):E.run(),y&&y.push(T),T}function is(e,t,n){const o=this.proxy,r=S(e)?e.includes(".")?ls(o,e):()=>o[e]:e.bind(o,o);let s;b(t)?s=t:(s=t.handler,n=t);const i=Ci(this),l=ss(r,s.bind(o),n);return i(),l}function ls(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{cs(e,t,n)}));else if(k(e)){for(const o in e)cs(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&cs(e[o],t,n)}return e}const as=e=>e.type.__isKeepAlive,us={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=bi(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,s=new Set;let i=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){gs(e),u(e,n,l,!0)}function f(e){r.forEach(((t,n)=>{const o=Pi(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);i&&Zs(t,i)?i&&gs(i):h(t),r.delete(e),s.delete(e)}o.activate=(e,t,n,o,r)=>{const s=e.component;a(e,t,n,0,l),c(s.vnode,e,t,n,s,l,o,e.slotScopeIds,r),Ur((()=>{s.isDeactivated=!1,s.a&&B(s.a);const t=e.props&&e.props.onVnodeMounted;t&&fi(t,s.parent,e)}),l)},o.deactivate=e=>{const t=e.component;Qr(t.m),Qr(t.a),a(e,p,null,1,l),Ur((()=>{t.da&&B(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&fi(n,t.parent,e),t.isDeactivated=!0}),l)},rs((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>ds(e,t))),t&&f((e=>!ds(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(oo(n.subTree.type)?Ur((()=>{r.set(g,vs(n.subTree))}),n.subTree.suspense):r.set(g,vs(n.subTree)))};return mo(v),vo(v),yo((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=vs(t);if(e.type!==r.type||e.key!==r.key)h(e);else{gs(r);const e=r.component.da;e&&Ur(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!Xs(o)||!(4&o.shapeFlag||128&o.shapeFlag))return i=null,o;let l=vs(o);const c=l.type,a=Pi(Io(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!ds(u,a))||d&&a&&ds(d,a))return i=l,o;const h=null==l.key?c:l.key,f=r.get(h);return l.el&&(l=ii(l),128&o.shapeFlag&&(o.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&Is(l,l.transition),l.shapeFlag|=512,s.delete(h),s.add(h)):(s.add(h),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),l.shapeFlag|=256,i=l,oo(o.type)?o:l}}};function ds(e,t){return m(e)?e.some((e=>ds(e,t))):S(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&e.test(t)}function ps(e,t){fs(e,"a",t)}function hs(e,t){fs(e,"da",t)}function fs(e,t,n=yi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(po(t,o,n),n){let e=n.parent;for(;e&&e.parent;)as(e.parent.vnode)&&ms(o,t,n,e),e=e.parent}}function ms(e,t,n,o){const r=po(t,e,o,!0);bo((()=>{p(o[t],r)}),n)}function gs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function vs(e){return 128&e.shapeFlag?e.ssContent:e}const ys=Symbol("_leaveCb"),bs=Symbol("_enterCb");function Ss(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mo((()=>{e.isMounted=!0})),yo((()=>{e.isUnmounting=!0})),e}const _s=[Function,Array],Cs={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_s,onEnter:_s,onAfterEnter:_s,onEnterCancelled:_s,onBeforeLeave:_s,onLeave:_s,onAfterLeave:_s,onLeaveCancelled:_s,onBeforeAppear:_s,onAppear:_s,onAfterAppear:_s,onAppearCancelled:_s},xs=e=>{const t=e.subTree;return t.component?xs(t.component):t},Es={name:"BaseTransition",props:Cs,setup(e,{slots:t}){const n=bi(),o=Ss();return()=>{const r=t.default&&Ns(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==Vs){s=t,e=!0;break}}const i=Lt(e),{mode:l}=i;if(o.isLeaving)return ks(s);const c=As(s);if(!c)return ks(s);let a=Ts(c,i,o,n,(e=>a=e));Is(c,a);const u=n.subTree,d=u&&As(u);if(d&&d.type!==Vs&&!Zs(c,d)&&xs(n).type!==Vs){const e=Ts(d,i,o,n);if(Is(d,e),"out-in"===l&&c.type!==Vs)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ks(s);"in-out"===l&&c.type!==Vs&&(e.delayLeave=(e,t,n)=>{ws(o,d)[String(d.key)]=d,e[ys]=()=>{t(),e[ys]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return s}}};function ws(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ts(e,t,n,o,r){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),C=ws(n,e),x=(e,t)=>{e&&dn(e,o,9,t)},E=(e,t)=>{const n=t[1];x(e,t),m(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:i,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!s)return;o=v||c}t[ys]&&t[ys](!0);const r=C[_];r&&Zs(e,r)&&r.el[ys]&&r.el[ys](),x(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!s)return;t=y||a,o=b||u,r=S||d}let i=!1;const l=e[bs]=t=>{i||(i=!0,x(t?r:o,[e]),w.delayedLeave&&w.delayedLeave(),e[bs]=void 0)};t?E(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[bs]&&t[bs](!0),n.isUnmounting)return o();x(p,[t]);let s=!1;const i=t[ys]=n=>{s||(s=!0,o(),x(n?g:f,[t]),t[ys]=void 0,C[r]===e&&delete C[r])};C[r]=e,h?E(h,[t,i]):i()},clone(e){const s=Ts(e,t,n,o,r);return r&&r(s),s}};return w}function ks(e){if(as(e))return(e=ii(e)).children=null,e}function As(e){if(!as(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function Is(e,t){6&e.shapeFlag&&e.component?Is(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ns(e,t=!1,n){let o=[],r=0;for(let s=0;s1)for(let e=0;ee&&(e.disabled||""===e.disabled),Fs=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ds=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Os=(e,t)=>{const n=e&&e.to;return S(n)?t?t(n):null:n};function Ls(e,t,n,{o:{insert:o},m:r},s=2){0===s&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===s;if(d&&o(i,t,n),(!d||Rs(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,s,i,l,c)};v?g(n,a):d&&g(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Rs(e.props),g=m?n:u,y=m?o:h;if("svg"===i||Fs(u)?i="svg":("mathml"===i||Ds(u))&&(i="mathml"),S?(p(e.dynamicChildren,S,g,r,s,i,l),Jr(e,t,!0)):c||d(e,t,g,y,r,s,i,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ls(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Os(t.props,f);e&&Ls(t,e,null,a,0)}else m&&Ls(t,u,h,a,1)}Ms(t)},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:i,children:l,anchor:c,targetAnchor:a,target:u,props:d}=e;if(u&&r(a),s&&r(c),16&i){const e=s||!Rs(d);for(let r=0;r0?Hs||i:null,Ws(),zs>0&&Hs&&Hs.push(e),e}function Ys(e,t,n,o,r,s){return Js(oi(e,t,n,o,r,s,!0))}function Qs(e,t,n,o,r){return Js(ri(e,t,n,o,r,!0))}function Xs(e){return!!e&&!0===e.__v_isVNode}function Zs(e,t){return e.type===t.type&&e.key===t.key}function ei(e){Ks=e}const ti=({key:e})=>null!=e?e:null,ni=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?S(e)||Ut(e)||b(e)?{i:Mn,r:e,k:t,f:!!n}:e:null);function oi(e,t=null,n=null,o=0,r=null,s=(e===$s?0:1),i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ti(t),ref:t&&ni(t),scopeId:$n,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Mn};return l?(pi(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=S(n)?8:16),zs>0&&!i&&Hs&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Hs.push(c),c}const ri=function(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Xn||(e=Vs),Xs(e)){const o=ii(e,t,!0);return n&&pi(o,n),zs>0&&!s&&Hs&&(6&o.shapeFlag?Hs[Hs.indexOf(e)]=o:Hs.push(o)),o.patchFlag=-2,o}if(i=e,b(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=si(t);let{class:e,style:n}=t;e&&!S(e)&&(t.class=X(e)),C(n)&&(Ot(n)&&!m(n)&&(n=d({},n)),t.style=z(n))}var i;return oi(e,t,n,o,r,S(e)?1:oo(e)?128:(e=>e.__isTeleport)(e)?64:C(e)?4:b(e)?2:0,s,!0)};function si(e){return e?Ot(e)||_r(e)?d({},e):e:null}function ii(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:l,transition:c}=e,a=t?hi(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ti(a),ref:t&&t.ref?n&&s?m(s)?s.concat(ni(t)):[s,ni(t)]:ni(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$s?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ii(e.ssContent),ssFallback:e.ssFallback&&ii(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Is(u,c.clone(u)),u}function li(e=" ",t=0){return ri(Bs,null,e,t)}function ci(e,t){const n=ri(js,null,e);return n.staticCount=t,n}function ai(e="",t=!1){return t?(qs(),Qs(Vs,null,e)):ri(Vs,null,e)}function ui(e){return null==e||"boolean"==typeof e?ri(Vs):m(e)?ri($s,null,e.slice()):"object"==typeof e?di(e):ri(Bs,null,String(e))}function di(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ii(e)}function pi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),pi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||_r(t)?3===o&&Mn&&(1===Mn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Mn}}else b(t)?(t={default:t,_ctx:Mn},n=32):(t=String(t),64&o?(n=16,t=[li(t)]):n=8);e.children=t,e.shapeFlag|=n}function hi(...e){const t={};for(let n=0;nyi||Mn;let Si,_i;{const e=q(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};Si=t("__VUE_INSTANCE_SETTERS__",(e=>yi=e)),_i=t("__VUE_SSR_SETTERS__",(e=>ki=e))}const Ci=e=>{const t=yi;return Si(e),e.scope.on(),()=>{e.scope.off(),Si(t)}},xi=()=>{yi&&yi.scope.off(),Si(null)};function Ei(e){return 4&e.vnode.shapeFlag}let wi,Ti,ki=!1;function Ai(e,t=!1){t&&_i(t);const{props:n,children:o}=e.vnode,r=Ei(e);!function(e,t,n,o=!1){const r={},s=Sr();e.propsDefaults=Object.create(null),Cr(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:kt(r):e.type.props?e.props=r:e.props=s,e.attrs=s}(e,n,r,t),Or(e,o);const s=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$o);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Oi(e):null,r=Ci(e);Ie();const s=un(o,e,0,[e.props,n]);if(Ne(),r(),x(s)){if(s.then(xi,xi),t)return s.then((n=>{Ii(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=s}else Ii(e,s,t)}else Fi(e,t)}(e,t):void 0;return t&&_i(!1),s}function Ii(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:C(t)&&(e.setupState=Qt(t)),Fi(e,n)}function Ni(e){wi=e,Ti=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Bo))}}const Ri=()=>!wi;function Fi(e,t,n){const o=e.type;if(!e.render){if(!t&&wi&&!o.render){const t=o.template||rr(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:i}=o,l=d(d({isCustomElement:n,delimiters:s},r),i);o.render=wi(t,l)}}e.render=o.render||l,Ti&&Ti(e)}{const t=Ci(e);Ie();try{!function(e){const t=rr(e),n=e.proxy,o=e.ctx;tr=!1,t.beforeCreate&&nr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:f,updated:g,activated:v,deactivated:y,beforeDestroy:S,beforeUnmount:_,destroyed:x,unmounted:E,render:w,renderTracked:T,renderTriggered:k,errorCaptured:A,serverPrefetch:I,expose:N,inheritAttrs:R,components:F,directives:D,filters:O}=t;if(u&&function(e,t,n=l){m(e)&&(e=cr(e));for(const n in e){const o=e[n];let r;r=C(o)?"default"in o?vr(o.from||n,o.default,!0):vr(o.from||n):vr(o),Ut(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o,null),i)for(const e in i){const t=i[e];b(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);C(t)&&(e.data=Tt(t))}if(tr=!0,s)for(const e in s){const t=s[e],r=b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):l,i=!b(t)&&b(t.set)?t.set.bind(n):l,c=Mi({get:r,set:i});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)or(c[e],o,n,e);if(a){const e=b(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{gr(t,e[t])}))}function L(e,t){m(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&nr(d,e,"c"),L(fo,p),L(mo,h),L(go,f),L(vo,g),L(ps,v),L(hs,y),L(xo,A),L(Co,T),L(_o,k),L(yo,_),L(bo,E),L(So,I),m(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===l&&(e.render=w),null!=R&&(e.inheritAttrs=R),F&&(e.components=F),D&&(e.directives=D)}(e)}finally{Ne(),t()}}}const Di={get:(e,t)=>(Ve(e,0,""),e[t])};function Oi(e){return{attrs:new Proxy(e.attrs,Di),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Li(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qt(Pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Po?Po[n](e):void 0,has:(e,t)=>t in e||t in Po})):e.proxy}function Pi(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}const Mi=(e,t)=>function(e,t,n=!1){let o,r;const s=b(e);return s?(o=e,r=l):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,ki);function $i(e,t,n=s){const o=bi(),r=D(t),i=L(t),l=Zt(((s,l)=>{let c;return ns((()=>{const n=e[t];$(c,n)&&(c=n,l())})),{get:()=>(s(),n.get?n.get(c):c),set(e){const s=o.vnode.props;s&&(t in s||r in s||i in s)&&(`onUpdate:${t}`in s||`onUpdate:${r}`in s||`onUpdate:${i}`in s)||!$(e,c)||(c=e,l()),o.emit(`update:${t}`,n.set?n.set(e):e)}}})),c="modelValue"===t?"modelModifiers":`${t}Modifiers`;return l[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[c]||{}:l,done:!1}:{done:!0}}},l}function Bi(e,t,n){const o=arguments.length;return 2===o?C(t)&&!m(t)?Xs(t)?ri(e,null,[t]):ri(e,t):ri(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Xs(n)&&(n=[n]),ri(e,t,n))}function Vi(){}function ji(e,t,n,o){const r=n[o];if(r&&Ui(r,e))return r;const s=t();return s.memo=e.slice(),s.memoIndex=o,n[o]=s}function Ui(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Hs&&Hs.push(e),!0}const Hi="3.4.31",qi=l,Wi={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."},Ki=Rn,zi=function e(t,n){var o,r;Rn=t,Rn?(Rn.enabled=!0,Fn.forEach((({event:e,args:t})=>Rn.emit(e,...t))),Fn=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Rn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Dn=!0,Fn=[])}),3e3)):(Dn=!0,Fn=[])},Gi={createComponentInstance:vi,setupComponent:Ai,renderComponentRoot:qn,setCurrentRenderingInstance:Bn,isVNode:Xs,normalizeVNode:ui,getComponentPublicInstance:Li},Ji=null,Yi=null,Qi=null,Xi="undefined"!=typeof document?document:null,Zi=Xi&&Xi.createElement("template"),el={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?Xi.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Xi.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Xi.createElement(e,{is:n}):Xi.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Xi.createTextNode(e),createComment:e=>Xi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{Zi.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=Zi.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},tl="transition",nl="animation",ol=Symbol("_vtc"),rl=(e,{slots:t})=>Bi(Es,al(e),t);rl.displayName="Transition";const sl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},il=rl.props=d({},Cs,sl),ll=(e,t=[])=>{m(e)?e.forEach((e=>e(...t))):e&&e(...t)},cl=e=>!!e&&(m(e)?e.some((e=>e.length>1)):e.length>1);function al(e){const t={};for(const n in e)n in sl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:a=i,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(C(e))return[ul(e.enter),ul(e.leave)];{const t=ul(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:S,onLeave:_,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:w=b,onAppearCancelled:T=S}=t,k=(e,t,n)=>{pl(e,t?u:l),pl(e,t?a:i),n&&n()},A=(e,t)=>{e._isLeaving=!1,pl(e,p),pl(e,f),pl(e,h),t&&t()},I=e=>(t,n)=>{const r=e?w:b,i=()=>k(t,e,n);ll(r,[t,i]),hl((()=>{pl(t,e?c:s),dl(t,e?u:l),cl(r)||ml(t,o,g,i)}))};return d(t,{onBeforeEnter(e){ll(y,[e]),dl(e,s),dl(e,i)},onBeforeAppear(e){ll(E,[e]),dl(e,c),dl(e,a)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);dl(e,p),dl(e,h),bl(),hl((()=>{e._isLeaving&&(pl(e,p),dl(e,f),cl(_)||ml(e,o,v,n))})),ll(_,[e,n])},onEnterCancelled(e){k(e,!1),ll(S,[e])},onAppearCancelled(e){k(e,!0),ll(T,[e])},onLeaveCancelled(e){A(e),ll(x,[e])}})}function ul(e){return U(e)}function dl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[ol]||(e[ol]=new Set)).add(t)}function pl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[ol];n&&(n.delete(t),n.size||(e[ol]=void 0))}function hl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let fl=0;function ml(e,t,n,o){const r=e._endId=++fl,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:c}=gl(e,t);if(!i)return o();const a=i+"end";let u=0;const d=()=>{e.removeEventListener(a,p),s()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${tl}Delay`),s=o(`${tl}Duration`),i=vl(r,s),l=o(`${nl}Delay`),c=o(`${nl}Duration`),a=vl(l,c);let u=null,d=0,p=0;return t===tl?i>0&&(u=tl,d=i,p=s.length):t===nl?a>0&&(u=nl,d=a,p=c.length):(d=Math.max(i,a),u=d>0?i>a?tl:nl:null,p=u?u===tl?s.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===tl&&/\b(transform|all)(,|$)/.test(o(`${tl}Property`).toString())}}function vl(e,t){for(;e.lengthyl(t)+yl(e[n]))))}function yl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function bl(){return document.body.offsetHeight}const Sl=Symbol("_vod"),_l=Symbol("_vsh"),Cl={beforeMount(e,{value:t},{transition:n}){e[Sl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),xl(e,!0),o.enter(e)):o.leave(e,(()=>{xl(e,!1)})):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[Sl]:"none",e[_l]=!t}const El=Symbol("");function wl(e){const t=bi();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>kl(e,n)))},o=()=>{const o=e(t.proxy);Tl(t.subTree,o),n(o)};mo((()=>{ts(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),bo((()=>e.disconnect()))}))}function Tl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Tl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)kl(e.el,t);else if(e.type===$s)e.children.forEach((e=>Tl(e,t)));else if(e.type===js){let{el:n,anchor:o}=e;for(;n&&(kl(n,t),n!==o);)n=n.nextSibling}}function kl(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Al=/(^|;)\s*display\s*:/,Il=/\s*!important$/;function Nl(e,t,n){if(m(n))n.forEach((n=>Nl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Fl[t];if(n)return n;let o=D(t);if("filter"!==o&&o in e)return Fl[t]=o;o=P(o);for(let n=0;n$l||(Bl.then((()=>$l=0)),$l=Date.now()),jl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Ul(e,t,n){const o=Ao(e,t);class r extends Wl{constructor(e){super(o,e,n)}}return r.def=o,r}const Hl=(e,t)=>Ul(e,t,kc),ql="undefined"!=typeof HTMLElement?HTMLElement:class{};class Wl extends ql{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Cn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Tc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=U(this._props[e])),(r||(r=Object.create(null)))[D(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=D(e);this._numberProps&&this._numberProps[n]&&(t=U(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(L(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(L(e),t+""):t||this.removeAttribute(L(e))))}_update(){Tc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ri(this._def,d({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Wl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Kl(e="$style"){{const t=bi();if(!t)return s;const n=t.type.__cssModules;if(!n)return s;return n[e]||s}}const zl=new WeakMap,Gl=new WeakMap,Jl=Symbol("_moveCb"),Yl=Symbol("_enterCb"),Ql={name:"TransitionGroup",props:d({},il,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=bi(),o=Ss();let r,s;return vo((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[ol];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(o);const{hasTransform:i}=gl(o);return s.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(Xl),r.forEach(Zl);const o=r.filter(ec);bl(),o.forEach((e=>{const n=e.el,o=n.style;dl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Jl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Jl]=null,pl(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const i=Lt(e),l=al(i);let c=i.tag||$s;if(r=[],s)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>B(t,e):t};function nc(e){e.target.composing=!0}function oc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rc=Symbol("_assign"),sc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[rc]=tc(r);const s=o||r.props&&"number"===r.props.type;Ll(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=j(o)),e[rc](o)})),n&&Ll(e,"change",(()=>{e.value=e.value.trim()})),t||(Ll(e,"compositionstart",nc),Ll(e,"compositionend",oc),Ll(e,"change",oc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(e[rc]=tc(i),e.composing)return;const l=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ic={deep:!0,created(e,t,n){e[rc]=tc(n),Ll(e,"change",(()=>{const t=e._modelValue,n=dc(e),o=e.checked,r=e[rc];if(m(t)){const e=le(t,n),s=-1!==e;if(o&&!s)r(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),r(n)}}else if(v(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(pc(e,o))}))},mounted:lc,beforeUpdate(e,t,n){e[rc]=tc(n),lc(e,t,n)}};function lc(e,{value:t,oldValue:n},o){e._modelValue=t,m(t)?e.checked=le(t,o.props.value)>-1:v(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,pc(e,!0)))}const cc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[rc]=tc(n),Ll(e,"change",(()=>{e[rc](dc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[rc]=tc(o),t!==n&&(e.checked=ie(t,o.props.value))}},ac={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=v(t);Ll(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(dc(e)):dc(e)));e[rc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,Cn((()=>{e._assigning=!1}))})),e[rc]=tc(o)},mounted(e,{value:t,modifiers:{number:n}}){uc(e,t)},beforeUpdate(e,t,n){e[rc]=tc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||uc(e,t)}};function uc(e,t,n){const o=e.multiple,r=m(t);if(!o||r||v(t)){for(let n=0,s=e.options.length;nString(e)===String(i))):le(t,i)>-1}else s.selected=t.has(i);else if(ie(dc(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function dc(e){return"_value"in e?e._value:e.value}function pc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const hc={created(e,t,n){mc(e,t,n,null,"created")},mounted(e,t,n){mc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){mc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){mc(e,t,n,o,"updated")}};function fc(e,t){switch(e){case"SELECT":return ac;case"TEXTAREA":return sc;default:switch(t){case"checkbox":return ic;case"radio":return cc;default:return sc}}}function mc(e,t,n,o,r){const s=fc(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,o)}const gc=["ctrl","shift","alt","meta"],vc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>gc.some((n=>e[`${n}Key`]&&!t.includes(n)))},yc=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=L(n.key);return t.some((e=>e===o||bc[e]===o))?e(n):void 0})},_c=d({patchProp:(e,t,n,o,r,s,i,l,c)=>{const d="svg"===r;"class"===t?function(e,t,n){const o=e[ol];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,d):"style"===t?function(e,t,n){const o=e.style,r=S(n);let s=!1;if(n&&!r){if(t)if(S(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Nl(o,t,"")}else for(const e in t)null==n[e]&&Nl(o,e,"");for(const e in n)"display"===e&&(s=!0),Nl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,s=Al.test(n)}}else t&&e.removeAttribute("style");Sl in e&&(e[Sl]=s?o.display:"",e[_l]&&(o.display="none"))}(e,n,o):a(t)?u(t)||function(e,t,n,o,r=null){const s=e[Pl]||(e[Pl]={}),i=s[t];if(o&&i)i.value=o;else{const[n,l]=function(e){let t;if(Ml.test(e)){let n;for(t={};n=e.match(Ml);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):L(e.slice(2)),t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();dn(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Vl(),n}(o,r);Ll(e,n,i,l)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),s[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&jl(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!jl(t)||!S(n))&&t in e}(e,t,o,d))?(function(e,t,n,o,r,s,i){if("innerHTML"===t||"textContent"===t)return o&&i(o,r,s),void(e[t]=null==n?"":n);const l=e.tagName;if("value"===t&&"PROGRESS"!==l&&!l.includes("-")){const o="OPTION"===l?e.getAttribute("value")||"":e.value,r=null==n?"":String(n);return o===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let c=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=se(n):null==n&&"string"===o?(n="",c=!0):"number"===o&&(n=0,c=!0)}try{e[t]=n}catch(e){}c&&e.removeAttribute(t)}(e,t,o,s,i,l,c),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Ol(e,t,o,d,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Ol(e,t,o,d))}},el);let Cc,xc=!1;function Ec(){return Cc||(Cc=Hr(_c))}function wc(){return Cc=xc?Cc:qr(_c),xc=!0,Cc}const Tc=(...e)=>{Ec().render(...e)},kc=(...e)=>{wc().hydrate(...e)},Ac=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Rc(e);if(!o)return;const r=t._component;b(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,Nc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},Ic=(...e)=>{const t=wc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Rc(e);if(t)return n(t,!0,Nc(t))},t};function Nc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Rc(e){return S(e)?document.querySelector(e):e}let Fc=!1;const Dc=()=>{Fc||(Fc=!0,sc.getSSRProps=({value:e})=>({value:e}),cc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ic.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&le(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},hc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=fc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Cl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Oc=Symbol(""),Lc=Symbol(""),Pc=Symbol(""),Mc=Symbol(""),$c=Symbol(""),Bc=Symbol(""),Vc=Symbol(""),jc=Symbol(""),Uc=Symbol(""),Hc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),Kc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Jc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Xc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),sa=Symbol(""),ia=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),fa=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba={[Oc]:"Fragment",[Lc]:"Teleport",[Pc]:"Suspense",[Mc]:"KeepAlive",[$c]:"BaseTransition",[Bc]:"openBlock",[Vc]:"createBlock",[jc]:"createElementBlock",[Uc]:"createVNode",[Hc]:"createElementVNode",[qc]:"createCommentVNode",[Wc]:"createTextVNode",[Kc]:"createStaticVNode",[zc]:"resolveComponent",[Gc]:"resolveDynamicComponent",[Jc]:"resolveDirective",[Yc]:"resolveFilter",[Qc]:"withDirectives",[Xc]:"renderList",[Zc]:"renderSlot",[ea]:"createSlots",[ta]:"toDisplayString",[na]:"mergeProps",[oa]:"normalizeClass",[ra]:"normalizeStyle",[sa]:"normalizeProps",[ia]:"guardReactiveProps",[la]:"toHandlers",[ca]:"camelize",[aa]:"capitalize",[ua]:"toHandlerKey",[da]:"setBlockTracking",[pa]:"pushScopeId",[ha]:"popScopeId",[fa]:"withCtx",[ma]:"unref",[ga]:"isRef",[va]:"withMemo",[ya]:"isMemoSame"},Sa={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function _a(e,t,n,o,r,s,i,l=!1,c=!1,a=!1,u=Sa){return e&&(l?(e.helper(Bc),e.helper(Ra(e.inSSR,a))):e.helper(Na(e.inSSR,a)),i&&e.helper(Qc)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:i,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ca(e,t=Sa){return{type:17,loc:t,elements:e}}function xa(e,t=Sa){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Sa,key:S(e)?wa(e,!0):e,value:t}}function wa(e,t=!1,n=Sa,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Ta(e,t=Sa){return{type:8,loc:t,children:e}}function ka(e,t=[],n=Sa){return{type:14,loc:n,callee:e,arguments:t}}function Aa(e,t=void 0,n=!1,o=!1,r=Sa){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Ia(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Sa}}function Na(e,t){return e||t?Uc:Hc}function Ra(e,t){return e||t?Vc:jc}function Fa(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Na(o,e.isComponent)),t(Bc),t(Ra(o,e.isComponent)))}const Da=new Uint8Array([123,123]),Oa=new Uint8Array([125,125]);function La(e){return e>=97&&e<=122||e>=65&&e<=90}function Pa(e){return 32===e||10===e||9===e||12===e||13===e}function Ma(e){return 47===e||62===e||Pa(e)}function $a(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function za(e){switch(e){case"Teleport":case"teleport":return Lc;case"Suspense":case"suspense":return Pc;case"KeepAlive":case"keep-alive":return Mc;case"BaseTransition":case"base-transition":return $c}}const Ga=/^\d|[^\$\w\xA0-\uFFFF]/,Ja=e=>!Ga.test(e),Ya=/[A-Za-z_$\xA0-\uFFFF]/,Qa=/[\.\?\w$\xA0-\uFFFF]/,Xa=/\s+[.[]\s*|\s*[.[]\s+/g,Za=e=>{e=e.trim().replace(Xa,(e=>e.trim()));let t=0,n=[],o=0,r=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===o))}return n}function du(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const pu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,hu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:c,isPreTag:c,isCustomElement:c,onError:Ha,onWarn:qa,comments:!1,prefixIdentifiers:!1};let fu=hu,mu=null,gu="",vu=null,yu=null,bu="",Su=-1,_u=-1,Cu=0,xu=!1,Eu=null;const wu=[],Tu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Da,this.delimiterClose=Oa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Da,this.delimiterClose=Oa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Ma(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Pa(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Ba.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(wu,{onerr:Ku,ontext(e,t){Ru(Iu(e,t),e,t)},ontextentity(e,t,n){Ru(e,t,n)},oninterpolation(e,t){if(xu)return Ru(Iu(e,t),e,t);let n=e+Tu.delimiterOpen.length,o=t-Tu.delimiterClose.length;for(;Pa(gu.charCodeAt(n));)n++;for(;Pa(gu.charCodeAt(o-1));)o--;let r=Iu(n,o);r.includes("&")&&(r=fu.decodeEntities(r,!1)),ju({type:5,content:Wu(r,!1,Uu(n,o)),loc:Uu(e,t)})},onopentagname(e,t){const n=Iu(e,t);vu={type:1,tag:n,ns:fu.getNamespace(n,wu[0],fu.ns),tagType:0,props:[],children:[],loc:Uu(e-1,t),codegenNode:void 0}},onopentagend(e){Nu(e)},onclosetag(e,t){const n=Iu(e,t);if(!fu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ku(24,wu[0].loc.start.offset);for(let n=0;n<=e;n++)Fu(wu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ku(2,t)},onattribend(e,t){if(vu&&yu){if(Hu(yu.loc,t),0!==e)if(bu.includes("&")&&(bu=fu.decodeEntities(bu,!0)),6===yu.type)"class"===yu.name&&(bu=Vu(bu).trim()),1!==e||bu||Ku(13,t),yu.value={type:2,content:bu,loc:1===e?Uu(Su,_u):Uu(Su-1,_u+1)},Tu.inSFCRoot&&"template"===vu.tag&&"lang"===yu.name&&bu&&"html"!==bu&&Tu.enterRCDATA($a("{const r=t.start.offset+n;return Wu(e,!1,Uu(r,r+e.length),0,o?1:0)},l={source:i(s.trim(),n.indexOf(s,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Au,"").trim();const a=r.indexOf(c),u=c.match(ku);if(u){c=c.replace(ku,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=i(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=i(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=i(c,a,!0)),l}(yu.exp));let t=-1;"bind"===yu.name&&(t=yu.modifiers.indexOf("sync"))>-1&&Ua("COMPILER_V_BIND_SYNC",fu,yu.loc,yu.rawName)&&(yu.name="model",yu.modifiers.splice(t,1))}7===yu.type&&"pre"===yu.name||vu.props.push(yu)}bu="",Su=_u=-1},oncomment(e,t){fu.comments&&ju({type:3,content:Iu(e,t),loc:Uu(e-4,t+3)})},onend(){const e=gu.length;for(let t=0;t64&&n<91||za(e)||fu.isBuiltInComponent&&fu.isBuiltInComponent(e)||fu.isNativeTag&&!fu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Ua("COMPILER_INLINE_TEMPLATE",fu,n.loc)&&e.children.length&&(n.value={type:2,content:Iu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Du(e,t){let n=e;for(;gu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Ou=new Set(["if","else","else-if","for","slot"]);function Lu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=td(e);if((!n||512===n||1===n)&&Zu(r,t)>=2){const n=ed(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Ju(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Ju(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${ba[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:l,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){S(e)&&(e=wa(e)),k.hoists.push(e);const t=wa(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Sa}}(k.cached++,e,t)};return k.filters=new Set,k}(e,t);od(e,n),t.hoistStatic&&zu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Gu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Fa(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;W[64],e.codegenNode=_a(t,n(Oc),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function od(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(ru))return;const s=[];for(let i=0;i`${ba[e]}: _${ba[e]}`;function ld(e,t,{helper:n,push:o,newline:r,isTS:s}){const i=n("filter"===t?Yc:"component"===t?zc:Jc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),ad(e,t,n),n&&t.deindent(),t.push("]")}function ad(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let i=0;ie||"null"))}([s,i,l,c,a]),t),n(")"),d&&n(")"),u&&(n(", "),ud(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=S(e.callee)?e.callee:o(e.callee);r&&n(sd),n(s+"(",-2,e),ad(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const l=i.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),i?(c&&n("return "),m(i)?cd(i,t):ud(i,t)):l&&ud(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:i,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Ja(n.content);e&&i("("),dd(n,t),e&&i(")")}else i("("),ud(n,t),i(")");s&&l(),t.indentLevel++,s||i(" "),i("? "),ud(o,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===r.type;u||t.indentLevel++,ud(r,t),u||t.indentLevel--,s&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(da)}(-1),`),i()),n(`_cache[${e.index}] = `),ud(e.value,t),e.isVNode&&(n(","),i(),n(`${o(da)}(1),`),i(),n(`_cache[${e.index}]`),s()),n(")")}(e,t);break;case 21:ad(e.body,t,!0,!1)}}function dd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function pd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wa(28,t.loc)),t.exp=wa("true",!1,o)}if("if"===t.name){const r=md(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const i=r[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Wa(30,e.loc)),n.removeNode();const r=md(e,t);i.branches.push(r);const s=o&&o(i,r,!1);od(r,n),s&&s(),n.currentNode=null}else n.onError(Wa(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),i=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(o)e.codegenNode=gd(t,i,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=gd(t,i+e.branches.length-1,n)}}}))));function md(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!eu(e,"for")?e.children:[e],userKey:tu(e,"key"),isTemplateIf:n}}function gd(e,t,n){return e.condition?Ia(e.condition,vd(e,t,n),ka(n.helper(qc),['""',"true"])):vd(e,t,n)}function vd(e,t,n){const{helper:o}=n,r=Ea("key",wa(`${t}`,!1,Sa,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return au(e,r,n),e}{let t=64;return W[64],_a(n,o(Oc),xa([r]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(l=e).type&&l.callee===va?l.arguments[1].returns:l;return 13===t.type&&Fa(t,n),au(t,r,n),e}var l}const yd=(e,t,n)=>{const{modifiers:o,loc:r}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Wa(52,s.loc)),{props:[Ea(s,wa("",!0,r))]};bd(e),i=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),o.includes("camel")&&(4===s.type?s.isStatic?s.content=D(s.content):s.content=`${n.helperString(ca)}(${s.content})`:(s.children.unshift(`${n.helperString(ca)}(`),s.children.push(")"))),n.inSSR||(o.includes("prop")&&Sd(s,"."),o.includes("attr")&&Sd(s,"^")),{props:[Ea(s,i)]}},bd=(e,t)=>{const n=e.arg,o=D(n.content);e.exp=wa(o,!1,n.loc)},Sd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},_d=rd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Wa(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Wa(32,t.loc));Cd(r);const{addIdentifiers:s,removeIdentifiers:i,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:su(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const h=o&&o(p);return()=>{l.vFor--,h&&h()}}(e,t,n,(t=>{const s=ka(o(Xc),[t.source]),i=su(e),l=eu(e,"memo"),c=tu(e,"key",!1,!0);c&&7===c.type&&!c.exp&&bd(c);const a=c&&(6===c.type?c.value?wa(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=_a(n,o(Oc),void 0,s,p+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=iu(e)?e:i&&1===e.children.length&&iu(e.children[0])?e.children[0]:null;if(f?(c=f.codegenNode,i&&u&&au(c,u,n)):h?c=_a(n,o(Oc),u?xa([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,i&&u&&au(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Bc),r(Ra(n.inSSR,c.isComponent))):r(Na(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Bc),o(Ra(n.inSSR,c.isComponent))):o(Na(n.inSSR,c.isComponent))),l){const e=Aa(xd(t.parseResult,[wa("_cached")]));e.body={type:21,body:[Ta(["const _memo = (",l.exp,")"]),Ta(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(ya)}(_cached, _memo)) return _cached`]),Ta(["const _item = ",c]),wa("_item.memo = _memo"),wa("return _item")],loc:Sa},s.arguments.push(e,wa("_cache"),wa(String(n.cached++)))}else s.arguments.push(Aa(xd(t.parseResult),c,!0))}}))}));function Cd(e,t){e.finalized||(e.finalized=!0)}function xd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||wa("_".repeat(t+1),!1)))}([e,t,n,...o])}const Ed=wa("undefined",!1),wd=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=eu(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Aa(e,n,!1,!0,n.length?n[0].loc:o);function kd(e,t,n=Td){t.helper(fa);const{children:o,loc:r}=e,s=[],i=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=eu(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ka(e)&&(l=!0),s.push(Ea(e||wa("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e{const s=n(e,void 0,o,r);return t.compatConfig&&(s.isNonScopedSlot=!0),Ea("default",s)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Wa(39,d[0].loc)):s.push(e(void 0,d))):s.push(e(void 0,o))}const f=l?2:Id(e.children)?3:1;let m=xa(s.concat(Ea("_",wa(f+"",!1))),r);return i.length&&(m=ka(t.helper(ea),[m,Ca(i)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",wa(String(n),!0))),xa(o)}function Id(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let s=r?function(e,t,n=!1){let{tag:o}=e;const r=Pd(o),s=tu(e,"is",!1,!0);if(s)if(r||ja("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&wa(s.value.content,!0):(e=s.exp,e||(e=wa("is",!1,s.loc))),e)return ka(t.helper(Gc),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(o=s.value.content.slice(4));const i=za(o)||t.isBuiltInComponent(o);return i?(n||t.helper(i),i):(t.helper(zc),t.components.add(o),du(o,"component"))}(e,t):`"${n}"`;const i=C(s)&&s.callee===Gc;let l,c,a,u,d,p,h=0,f=i||s===Lc||s===Pc||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Dd(e,t,void 0,r,i);l=n.props,h=n.patchFlag,d=n.dynamicPropNames;const o=n.directives;p=o&&o.length?Ca(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Jc),t.directives.add(e.name),n.push(du(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=wa("true",!1,r);n.push(xa(e.modifiers.map((e=>Ea(e,t))),r))}return Ca(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(s===Mc&&(f=!0,h|=1024),r&&s!==Lc&&s!==Mc){const{slots:n,hasDynamicSlots:o}=kd(e,t);c=n,o&&(h|=1024)}else if(1===e.children.length&&s!==Lc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Yu(n,t)&&(h|=1),c=r||2===o?n:e.children}else c=e.children;0!==h&&(a=String(h),d&&d.length&&(u=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,v=!1,y=!1,b=!1,S=!1,C=!1;const x=[],E=e=>{u.length&&(d.push(xa(Od(u),l)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(Ea(wa("ref_for",!0),wa("true")))},T=({key:e,value:n})=>{if(Ka(e)){const s=e.content,i=a(s);if(!i||o&&!r||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||I(s)||(b=!0),i&&I(s)&&(C=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Yu(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||x.includes(s)||x.push(s),!o||"class"!==s&&"style"!==s||x.includes(s)||x.push(s)}else S=!0};for(let r=0;r1?ka(t.helper(na),d,l):d[0]):u.length&&(k=xa(Od(u),l)),S?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),x.length&&(m|=8),b&&(m|=32)),f||0!==m&&32!==m||!(g||C||p.length>0)||(m|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(iu(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:s}=Dd(e,t,r,!1,!1);n=o,s.length&&t.onError(Wa(36,s[0].loc))}return{slotName:o,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;s&&(i[2]=s,l=3),n.length&&(i[3]=Aa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),i.splice(l),e.codegenNode=ka(t.helper(Zc),i,o)}},$d=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Bd=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:i}=e;let l;if(e.exp||s.length||n.onError(Wa(35,r)),4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=wa(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(D(e)):`on:${e}`,!0,i.loc)}else l=Ta([`${n.helperString(ua)}(`,i,")"]);else l=i,l.children.unshift(`${n.helperString(ua)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=Za(c.content),t=!(e||$d.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Ta([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||wa("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&eu(e,"once",!0)){if(jd.has(e)||t.inVOnce||t.inSSR)return;return jd.add(e),t.inVOnce=!0,t.helper(da),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Hd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Wa(41,e.loc)),qd();const s=o.loc.source,i=4===o.type?o.content:s,l=n.bindingMetadata[s];if("props"===l||"props-aliased"===l)return n.onError(Wa(44,o.loc)),qd();if(!i.trim()||!Za(i))return n.onError(Wa(42,o.loc)),qd();const c=r||wa("modelValue",!0),a=r?Ka(r)?`onUpdate:${D(r.content)}`:Ta(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Ta([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Ja(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ka(r)?`${r.content}Modifiers`:Ta([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,wa(`{ ${t} }`,!1,e.loc,2)))}return qd(d)};function qd(e=[]){return{props:e}}const Wd=/[\w).+\-_$\]]/,Kd=(e,t)=>{ja("COMPILER_FILTERS",t)&&(5===e.type?zd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&zd(e.exp,t)})))};function zd(e,t){if(4===e.type)Gd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Wd.test(e)||(u=!0)}}else void 0===i?(f=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(f,s).trim()),f=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==f&&g(),m.length){for(s=0;s{if(1===e.type){const n=eu(e,"memo");if(!n||Yd.has(e))return;return Yd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Fa(o,t),e.codegenNode=ka(t.helper(va),[n.exp,Aa(void 0,o),"_cache",String(t.cached++)]))}}};function Xd(e,t={}){const n=t.onError||Ha,o="module"===t.mode;!0===t.prefixIdentifiers?n(Wa(47)):o&&n(Wa(48)),t.cacheHandlers&&n(Wa(49)),t.scopeId&&!o&&n(Wa(50));const r=d({},t,{prefixIdentifiers:!1}),s=S(e)?function(e,t){if(Tu.reset(),vu=null,yu=null,bu="",Su=-1,_u=-1,wu.length=0,gu=e,fu=d({},hu),t){let e;for(e in t)null!=t[e]&&(fu[e]=t[e])}Tu.mode="html"===fu.parseMode?1:"sfc"===fu.parseMode?2:0,Tu.inXML=1===fu.ns||2===fu.ns;const n=t&&t.delimiters;n&&(Tu.delimiterOpen=$a(n[0]),Tu.delimiterClose=$a(n[1]));const o=mu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Sa}}(0,e);return Tu.parse(gu),o.loc=Uu(0,e.length),o.children=Mu(o.children),mu=null,o}(e,r):e,[i,l]=[[Ud,fd,Qd,_d,Kd,Md,Fd,wd,Vd],{on:Bd,bind:yd,model:Hd}];return nd(s,d({},r,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:d({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:i,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${ba[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:i,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!s&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:s,runtimeModuleName:i,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Uc,Hc,qc,Wc,Kc].filter((e=>u.includes(e))).map(id).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:s,mode:i}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ld(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ld(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?ud(e.codegenNode,n):r("null"),h&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(s,r)}const Zd=Symbol(""),ep=Symbol(""),tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),sp=Symbol(""),ip=Symbol(""),lp=Symbol(""),cp=Symbol("");var ap;let up;ap={[Zd]:"vModelRadio",[ep]:"vModelCheckbox",[tp]:"vModelText",[np]:"vModelSelect",[op]:"vModelDynamic",[rp]:"withModifiers",[sp]:"withKeys",[ip]:"vShow",[lp]:"Transition",[cp]:"TransitionGroup"},Object.getOwnPropertySymbols(ap).forEach((e=>{ba[e]=ap[e]}));const dp={parseMode:"html",isVoidTag:oe,isNativeTag:e=>ee(e)||te(e)||ne(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return up||(up=document.createElement("div")),t?(up.innerHTML=`
    `,up.children[0].getAttribute("foo")):(up.innerHTML=e,up.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?lp:"TransitionGroup"===e||"transition-group"===e?cp:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},pp=(e,t)=>{const n=Q(e);return wa(JSON.stringify(n),!1,t,3)};function hp(e,t){return Wa(e,t)}const fp=r("passive,once,capture"),mp=r("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),gp=r("left,right"),vp=r("onkeyup,onkeydown,onkeypress",!0),yp=(e,t)=>Ka(e)&&"onclick"===e.content.toLowerCase()?wa(t,!0):4!==e.type?Ta(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,bp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Sp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:wa("style",!0,t.loc),exp:pp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],_p={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(hp(53,r)),t.children.length&&(n.onError(hp(54,r)),t.children.length=0),{props:[Ea(wa("innerHTML",!0,r),o||wa("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(hp(55,r)),t.children.length&&(n.onError(hp(56,r)),t.children.length=0),{props:[Ea(wa("textContent",!0),o?Yu(o,n)>0?o:ka(n.helperString(ta),[o],r):wa("",!0))]}},model:(e,t,n)=>{const o=Hd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(hp(58,e.arg.loc));const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let i=tp,l=!1;if("input"===r||s){const o=tu(t,"type");if(o){if(7===o.type)i=op;else if(o.value)switch(o.value.content){case"radio":i=Zd;break;case"checkbox":i=ep;break;case"file":l=!0,n.onError(hp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=op)}else"select"===r&&(i=np);l||(o.needRuntime=n.helper(i))}else n.onError(hp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Bd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n,o)=>{const r=[],s=[],i=[];for(let o=0;o{const{exp:o,loc:r}=e;return o||n.onError(hp(61,r)),{props:[],needRuntime:n.helper(ip)}}},Cp=new WeakMap;Ni((function(e,t){if(!S(e)){if(!e.nodeType)return l;e=e.innerHTML}const n=e,r=function(e){let t=Cp.get(null!=e?e:s);return t||(t=Object.create(null),Cp.set(null!=e?e:s,t)),t}(t),i=r[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=d({hoistStatic:!0,onError:void 0,onWarn:l},t);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return Xd(e,d({},dp,t,{nodeTransforms:[bp,...Sp,...t.nodeTransforms||[]],directiveTransforms:d({},_p,t.directiveTransforms||{}),transformHoist:null}))}(e,c),u=new Function("Vue",a)(o);return u._rc=!0,r[n]=u}))}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={exports:{}};return n[e](s,s.exports,r),s.exports}r.m=n,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>({245:"form-editor-view",776:"form-browser-view",951:"restore-fields-view"}[e]+".chunk.js"),r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="leaf_vue:",r.l=(n,o,s,i)=>{if(e[n])e[n].push(o);else{var l,c;if(void 0!==s)for(var a=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(h);var r=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach((e=>e(o))),t)return t(o)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),c&&document.head.appendChild(l)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={763:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var s=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=s);var i=r.p+r.u(t),l=new Error;r.l(i,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",l.name="ChunkLoadError",l.type=s,l.request=i,o[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,s,[i,l,c]=n,a=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);c&&c(r)}for(t&&t(n);ae.length)&&(t=e.length);for(var n=0,o=Array(t);n{{ message }}
    '}},created:function(){var e=this;this.getEnabledCategories(),document.addEventListener("keydown",(function(t){"escape"===((null==t?void 0:t.key)||"").toLowerCase()&&!0===e.showFormDialog&&e.closeFormDialog()}))},methods:{truncateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length<=t?e:e.slice(0,t)+n},decodeAndStripHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,XSSHelpers.stripAllTags(t.innerText)},updateChosenAttributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"List Selection",o=document.querySelector("#".concat(e,"_chosen input.chosen-search-input")),r=document.querySelector("#".concat(e,"-chosen-search-results"));null!==o&&(o.setAttribute("role","combobox"),o.setAttribute("aria-labelledby",t)),null!==r&&(r.setAttribute("title",n),r.setAttribute("role","listbox"))},showLastUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(new Date).toLocaleString(),n=document.getElementById(e);null!==n&&(n.style.display="flex",n.innerText="last modified: ".concat(t),n.style.border="2px solid #20a0f0",setTimeout((function(){n.style.border="2px solid transparent"}),750))},setDefaultAjaxResponseMessage:function(){var e=this;$.ajax({type:"POST",url:"ajaxIndex.php?a=checkstatus",data:{CSRFToken},success:function(t){e.ajaxResponseMessage=t||""},error:function(e){return reject(e)}})},initializeOrgSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"employee",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s="group"===(e=e.toLowerCase())?"group#":"#",i={};(i="group"===e?new groupSelector("".concat(n,"orgSel_").concat(t)):"position"===e?new positionSelector("".concat(n,"orgSel_").concat(t)):new employeeSelector("".concat(n,"orgSel_").concat(t))).apiPath="".concat(this.orgchartPath,"/api/"),i.rootPath="".concat(this.orgchartPath,"/"),i.basePath="".concat(this.orgchartPath,"/"),i.setSelectHandler((function(){var t=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));null!==t&&(t.value="".concat(s)+i.selection)})),"function"==typeof r&&i.setResultHandler((function(){return r(i)})),i.initialize();var l=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));""!==o&&null!==l&&(l.value="".concat(s)+o)},getEnabledCategories:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.appIsLoadingCategories=!0;try{fetch("".concat(this.APIroot,"formStack/categoryList/allWithStaples")).then((function(n){n.json().then((function(n){for(var o in e.allStapledFormCatIDs={},e.categories={},n)e.categories[n[o].categoryID]=n[o],n[o].stapledFormIDs.forEach((function(t){e.allStapledFormCatIDs[t]=void 0===e.allStapledFormCatIDs[t]?1:e.allStapledFormCatIDs[t]+1}));e.appIsLoadingCategories=!1,t&&!0===/^form_[0-9a-f]{5}$/i.test(t)&&e.$router.push({name:"category",query:{formID:t}})}))}))}catch(e){console.log("error getting categories",e)}},getSiteSettings:function(){var e=this;try{fetch("".concat(this.APIroot,"system/settings")).then((function(t){t.json().then((function(t){e.siteSettings=t,+(null==t?void 0:t.leafSecure)>=1&&e.getSecureFormsInfo()}))}))}catch(e){console.log("error getting site settings",e)}},fetchLEAFSRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t,n){var o=new LeafFormQuery;o.setRootURL("../"),o.addTerm("categoryID","=","leaf_secure"),!0===e?(o.addTerm("stepID","=","resolved"),o.join("recordResolutionData")):o.addTerm("stepID","!=","resolved"),o.onSuccess((function(e){return t(e)})),o.execute()}))},getSecureFormsInfo:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list?x-filterData=timeAdded"),success:function(e){},error:function(e){return console.log(e)}}),this.fetchLEAFSRequests(!0)];Promise.all(t).then((function(t){var n=t[0],o=t[1];e.checkLeafSRequestStatus(n,o)})).catch((function(e){return console.log("an error has occurred",e)}))},checkLeafSRequestStatus:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!1,r=0;for(var s in n)"approved"===n[s].recordResolutionData.lastStatus.toLowerCase()&&n[s].recordResolutionData.fulfillmentTime>r&&(r=n[s].recordResolutionData.fulfillmentTime);var i=new Date(1e3*parseInt(r));for(var l in t)if(new Date(t[l].timeAdded).getTime()>i.getTime()){o=!0;break}!0===o?(this.showCertificationStatus=!0,this.fetchLEAFSRequests(!1).then((function(t){if(0===Object.keys(t).length)e.secureStatusText="Forms have been modified.",e.secureBtnText="Please Recertify Your Site",e.secureBtnLink="../report.php?a=LEAF_start_leaf_secure_certification";else{var n=t[Object.keys(t)[0]].recordID;e.secureStatusText="Re-certification in progress.",e.secureBtnText="Check Certification Progress",e.secureBtnLink="../index.php?a=printview&recordID="+n}})).catch((function(e){return console.log("an error has occurred",e)}))):this.showCertificationStatus=!1},updateCategoriesProperty:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";void 0!==this.categories[e][t]&&(this.categories[e][t]=n)},updateStapledFormsInfo:function(){var e,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!0===(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?(this.categories[o].stapledFormIDs=this.categories[o].stapledFormIDs.filter((function(e){return e!==n})),(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[n])>0?this.allStapledFormCatIDs[n]=this.allStapledFormCatIDs[n]-1:console.log("check staple calc")):(this.allStapledFormCatIDs[n]=void 0===this.allStapledFormCatIDs[n]?1:this.allStapledFormCatIDs[n]+1,this.categories[o].stapledFormIDs=Array.from(new Set([].concat(function(e){if(Array.isArray(e))return i(e)}(t=this.categories[o].stapledFormIDs)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[n]))))},addNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.categories[e]=t},removeCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";delete this.categories[e]},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"},this.formSaveFunction=null,this.dialogData=null},lastModalTab:function(e){if(!1===(null==e?void 0:e.shiftKey)){var t=document.getElementById("leaf-vue-dialog-close");null!==t&&(t.focus(),e.preventDefault())}},setCustomDialogTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setFormDialogComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)},checkRequiredData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=Object.keys((null==this?void 0:this.dialogData)||{});e.forEach((function(e){n.includes(e)||t.push(e)})),t.length>0&&console.warn("expected dialogData key was not found",t)},openConfirmDeleteFormDialog:function(){this.setCustomDialogTitle("

    Delete this form

    "),this.setFormDialogComponent("confirm-delete-dialog"),this.dialogButtonText={confirm:"Yes",cancel:"No"},this.showFormDialog=!0},openStapleFormsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={mainFormID:e},this.setCustomDialogTitle("

    Editing Stapled Forms

    "),this.setFormDialogComponent("staple-form-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openEditCollaboratorsDialog:function(){this.setCustomDialogTitle("

    Customize Write Access

    "),this.setFormDialogComponent("edit-collaborators-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openIfThenDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled",n=this.truncateText(this.decodeAndStripHTML(t),35);this.dialogData={indicatorID:e},this.dialogButtonText={confirm:"Save",cancel:"Close"},this.setCustomDialogTitle('

    Conditions For '.concat(n," (").concat(e,")

    ")),this.setFormDialogComponent("conditions-editor-dialog"),this.showFormDialog=!0},openIndicatorEditingDialog:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=null===t&&null===n?"

    Adding new Section

    ":null===t?"

    Adding question to ".concat(n,"

    "):"

    Editing indicatorID ".concat(t,"

    "),this.dialogData={indicatorID:t,parentID:n,indicator:o},this.setCustomDialogTitle(e),this.setFormDialogComponent("indicator-editing-dialog"),this.showFormDialog=!0},openAdvancedOptionsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.dialogData={indicatorID:e.indicatorID,html:(null==e?void 0:e.html)||"",htmlPrint:(null==e?void 0:e.htmlPrint)||""},this.setCustomDialogTitle("

    Advanced Options for indicator ".concat(e.indicatorID,"

    ")),this.setFormDialogComponent("advanced-options-dialog"),this.showFormDialog=!0},openNewFormDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={parentID:e};var t=""===e?"

    New Form

    ":"

    New Internal Use Form

    ";this.setCustomDialogTitle(t),this.setFormDialogComponent("new-form-dialog"),this.showFormDialog=!0},openImportFormDialog:function(){this.setCustomDialogTitle("

    Import Form

    "),this.setFormDialogComponent("import-form-dialog"),this.dialogButtonText={confirm:"Import",cancel:"Close"},this.showFormDialog=!0},openFormHistoryDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={historyType:"form",historyID:e},this.setCustomDialogTitle("

    Form History

    "),this.setFormDialogComponent("history-dialog"),this.showFormDialog=!0}}},c="undefined"!=typeof document;const a=Object.assign;function u(e,t){const n={};for(const o in t){const r=t[o];n[o]=p(r)?r.map(e):e(r)}return n}const d=()=>{},p=Array.isArray,h=/#/g,f=/&/g,m=/\//g,g=/=/g,v=/\?/g,y=/\+/g,b=/%5B/g,S=/%5D/g,_=/%5E/g,C=/%60/g,x=/%7B/g,E=/%7C/g,w=/%7D/g,T=/%20/g;function k(e){return encodeURI(""+e).replace(E,"|").replace(b,"[").replace(S,"]")}function A(e){return k(e).replace(y,"%2B").replace(T,"+").replace(h,"%23").replace(f,"%26").replace(C,"`").replace(x,"{").replace(w,"}").replace(_,"^")}function I(e){return null==e?"":function(e){return k(e).replace(h,"%23").replace(v,"%3F")}(e).replace(m,"%2F")}function N(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const R=/\/$/,F=e=>e.replace(R,"");function D(e,t,n="/"){let o,r={},s="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),s=t.slice(c+1,l>-1?l:t.length),r=e(s)),l>-1&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let s,i,l=n.length-1;for(s=0;s1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(s).join("/")}(null!=o?o:t,n),{fullPath:o+(s&&"?")+s+i,path:o,query:r,hash:N(i)}}function O(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function L(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function P(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!M(e[n],t[n]))return!1;return!0}function M(e,t){return p(e)?B(e,t):p(t)?B(t,e):e===t}function B(e,t){return p(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var j,U;!function(e){e.pop="pop",e.push="push"}(j||(j={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(U||(U={}));const H=/^[^#]+#/;function q(e,t){return e.replace(H,"#")+t}const W=()=>({left:window.scrollX,top:window.scrollY});function K(e,t){return(history.state?history.state.position-t:-1)+e}const z=new Map;let G=()=>location.protocol+"//"+location.host;function J(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let t=r.includes(e.slice(s))?e.slice(s).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),O(n,"")}return O(n,e)+o+r}function Y(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?W():null}}function Q(e){return"string"==typeof e||"symbol"==typeof e}const X=Symbol("");var Z;function ee(e,t){return a(new Error,{type:e,[X]:!0},t)}function te(e,t){return e instanceof Error&&X in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Z||(Z={}));const ne="[^/]+?",oe={sensitive:!1,strict:!1,start:!0,end:!0},re=/[.+*?^${}()[\]/\\]/g;function se(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ce={type:0,value:""},ae=/[a-zA-Z0-9_]/;function ue(e,t,n){const o=function(e,t){const n=a({},oe,t),o=[];let r=n.start?"^":"";const s=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;ca(e,t.meta)),{})}function me(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function ge({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ve(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&A(e))):[o&&A(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function be(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=p(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Se=Symbol(""),_e=Symbol(""),Ce=Symbol(""),xe=Symbol(""),Ee=Symbol("");function we(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Te(e,t,n,o,r,s=(e=>e())){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var s;!1===e?c(ee(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(s=e)||s&&"object"==typeof s?c(ee(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),l())},u=s((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function ke(e,t,n,o,r=(e=>e())){const s=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(i=c)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(c.__vccOpts||c)[t];i&&s.push(Te(i,n,o,l,e,r))}else{let i=c();s.push((()=>i.then((s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const i=(c=s).__esModule||"Module"===c[Symbol.toStringTag]?s.default:s;var c;l.components[e]=i;const a=(i.__vccOpts||i)[t];return a&&Te(a,n,o,l,e,r)()}))))}}var i;return s}function Ae(e){const t=(0,s.WQ)(Ce),n=(0,s.WQ)(xe),o=(0,s.EW)((()=>{const n=(0,s.R1)(e.to);return t.resolve(n)})),r=(0,s.EW)((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],s=n.matched;if(!r||!s.length)return-1;const i=s.findIndex(L.bind(null,r));if(i>-1)return i;const l=Ne(e[t-2]);return t>1&&Ne(r)===l&&s[s.length-1].path!==l?s.findIndex(L.bind(null,e[t-2])):i})),i=(0,s.EW)((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!p(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),l=(0,s.EW)((()=>r.value>-1&&r.value===n.matched.length-1&&P(n.params,o.value.params)));return{route:o,href:(0,s.EW)((()=>o.value.href)),isActive:i,isExactActive:l,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[(0,s.R1)(e.replace)?"replace":"push"]((0,s.R1)(e.to)).catch(d):Promise.resolve()}}}const Ie=(0,s.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ae,setup(e,{slots:t}){const n=(0,s.Kh)(Ae(e)),{options:o}=(0,s.WQ)(Ce),r=(0,s.EW)((()=>({[Re(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Re(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,s.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Re=(e,t,n)=>null!=e?e:null!=t?t:n;function Fe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const De=(0,s.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,s.WQ)(Ee),r=(0,s.EW)((()=>e.route||o.value)),i=(0,s.WQ)(_e,0),l=(0,s.EW)((()=>{let e=(0,s.R1)(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),c=(0,s.EW)((()=>r.value.matched[l.value]));(0,s.Gt)(_e,(0,s.EW)((()=>l.value+1))),(0,s.Gt)(Se,c),(0,s.Gt)(Ee,r);const u=(0,s.KR)();return(0,s.wB)((()=>[u.value,c.value,e.name]),(([e,t,n],[o,r,s])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&L(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,l=c.value,d=l&&l.components[i];if(!d)return Fe(n.default,{Component:d,route:o});const p=l.props[i],h=p?!0===p?o.params:"function"==typeof p?p(o):p:null,f=(0,s.h)(d,a({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(l.instances[i]=null)},ref:u}));return Fe(n.default,{Component:f,route:o})||f}}});var Oe,Le=[{path:"/",name:"browser",component:function(){return r.e(776).then(r.bind(r,223))}},{path:"/forms",name:"category",component:function(){return r.e(245).then(r.bind(r,211))}},{path:"/restore",name:"restore",component:function(){return r.e(951).then(r.bind(r,315))}}],Pe=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const u=me(t,e),p=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)p.push(a({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let h,f;for(const t of p){const{path:a}=t;if(n&&"/"!==a[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(a&&o+a)}if(h=ue(t,n,u),o?o.alias.push(h):(f=f||h,f!==h&&f.alias.push(h),l&&e.name&&!he(h)&&s(e.name)),ge(h)&&i(h),c.children){const e=c.children;for(let t=0;t{s(f)}:d}function s(e){if(Q(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function i(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;ie(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(ge(t)&&0===ie(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!he(e)&&o.set(e.record.name,e)}return t=me({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,s,i,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw ee(1,{location:e});i=r.record.name,l=a(de(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&de(e.params,r.keys.map((e=>e.name)))),s=r.stringify(l)}else if(null!=e.path)s=e.path,r=n.find((e=>e.re.test(s))),r&&(l=r.parse(s),i=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw ee(1,{location:e,currentLocation:t});i=r.record.name,l=a({},t.params,e.params),s=r.stringify(l)}const c=[];let u=r;for(;u;)c.unshift(u.record),u=u.parent;return{name:i,path:s,params:l,matched:c,meta:fe(c)}},removeRoute:s,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||ve,o=e.stringifyQuery||ye,r=e.history,i=we(),l=we(),h=we(),f=(0,s.IJ)(V);let m=V;c&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=u.bind(null,(e=>""+e)),v=u.bind(null,I),y=u.bind(null,N);function b(e,s){if(s=a({},s||f.value),"string"==typeof e){const o=D(n,e,s.path),i=t.resolve({path:o.path},s),l=r.createHref(o.fullPath);return a(o,i,{params:y(i.params),hash:N(o.hash),redirectedFrom:void 0,href:l})}let i;if(null!=e.path)i=a({},e,{path:D(n,e.path,s.path).path});else{const t=a({},e.params);for(const e in t)null==t[e]&&delete t[e];i=a({},e,{params:v(t)}),s.params=v(s.params)}const l=t.resolve(i,s),c=e.hash||"";l.params=g(y(l.params));const u=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,a({},e,{hash:(d=c,k(d).replace(x,"{").replace(w,"}").replace(_,"^")),path:l.path}));var d;const p=r.createHref(u);return a({fullPath:u,hash:c,query:o===ye?be(e.query):e.query||{}},l,{redirectedFrom:void 0,href:p})}function S(e){return"string"==typeof e?D(n,e,f.value.path):a({},e)}function C(e,t){if(m!==e)return ee(8,{from:t,to:e})}function E(e){return A(e)}function T(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=S(o):{path:o},o.params={}),a({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function A(e,t){const n=m=b(e),r=f.value,s=e.state,i=e.force,l=!0===e.replace,c=T(n);if(c)return A(a(S(c),{state:"object"==typeof c?a({},s,c.state):s,force:i,replace:l}),t||n);const u=n;let d;return u.redirectedFrom=t,!i&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&L(t.matched[o],n.matched[r])&&P(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(d=ee(16,{to:u,from:r}),Y(r,r,!0,!1)),(d?Promise.resolve(d):O(u,r)).catch((e=>te(e)?te(e,2)?e:J(e):G(e,u,r))).then((e=>{if(e){if(te(e,2))return A(a({replace:l},S(e.to),{state:"object"==typeof e.to?a({},s,e.to.state):s,force:i}),t||u)}else e=$(u,r,!0,l,s);return M(u,r,e),e}))}function R(e,t){const n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function F(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function O(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iL(e,s)))?o.push(s):n.push(s));const l=e.matched[i];l&&(t.matched.find((e=>L(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=ke(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Te(o,e,t))}));const c=R.bind(null,e,t);return n.push(c),re(n).then((()=>{n=[];for(const o of i.list())n.push(Te(o,e,t));return n.push(c),re(n)})).then((()=>{n=ke(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Te(o,e,t))}));return n.push(c),re(n)})).then((()=>{n=[];for(const o of s)if(o.beforeEnter)if(p(o.beforeEnter))for(const r of o.beforeEnter)n.push(Te(r,e,t));else n.push(Te(o.beforeEnter,e,t));return n.push(c),re(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ke(s,"beforeRouteEnter",e,t,F),n.push(c),re(n)))).then((()=>{n=[];for(const o of l.list())n.push(Te(o,e,t));return n.push(c),re(n)})).catch((e=>te(e,8)?e:Promise.reject(e)))}function M(e,t,n){h.list().forEach((o=>F((()=>o(e,t,n)))))}function $(e,t,n,o,s){const i=C(e,t);if(i)return i;const l=t===V,u=c?history.state:{};n&&(o||l?r.replace(e.fullPath,a({scroll:l&&u&&u.scroll},s)):r.push(e.fullPath,s)),f.value=e,Y(e,t,n,l),J()}let B;let U,H=we(),q=we();function G(e,t,n){J(e);const o=q.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function J(e){return U||(U=!e,B||(B=r.listen(((e,t,n)=>{if(!oe.listening)return;const o=b(e),s=T(o);if(s)return void A(a(s,{replace:!0}),o).catch(d);m=o;const i=f.value;var l,u;c&&(l=K(i.fullPath,n.delta),u=W(),z.set(l,u)),O(o,i).catch((e=>te(e,12)?e:te(e,2)?(A(e.to,o).then((e=>{te(e,20)&&!n.delta&&n.type===j.pop&&r.go(-1,!1)})).catch(d),Promise.reject()):(n.delta&&r.go(-n.delta,!1),G(e,o,i)))).then((e=>{(e=e||$(o,i,!1))&&(n.delta&&!te(e,8)?r.go(-n.delta,!1):n.type===j.pop&&te(e,20)&&r.go(-1,!1)),M(o,i,e)})).catch(d)}))),H.list().forEach((([t,n])=>e?n(e):t())),H.reset()),e}function Y(t,n,o,r){const{scrollBehavior:i}=e;if(!c||!i)return Promise.resolve();const l=!o&&function(e){const t=z.get(e);return z.delete(e),t}(K(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return(0,s.dY)().then((()=>i(t,n,l))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>G(e,t,n)))}const X=e=>r.go(e);let Z;const ne=new Set,oe={currentRoute:f,listening:!0,addRoute:function(e,n){let o,r;return Q(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:b,options:e,push:E,replace:function(e){return E(a(S(e),{replace:!0}))},go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:l.add,afterEach:h.add,onError:q.add,isReady:function(){return U&&f.value!==V?Promise.resolve():new Promise(((e,t)=>{H.add([e,t])}))},install(e){e.component("RouterLink",Ie),e.component("RouterView",De),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,s.R1)(f)}),c&&!Z&&f.value===V&&(Z=!0,E(r.location).catch((e=>{})));const t={};for(const e in V)Object.defineProperty(t,e,{get:()=>f.value[e],enumerable:!0});e.provide(Ce,this),e.provide(xe,(0,s.Gc)(t)),e.provide(Ee,f);const n=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(m=V,B&&B(),B=null,f.value=V,Z=!1,U=!1),n()}}};function re(e){return e.reduce(((e,t)=>e.then((()=>F(t)))),Promise.resolve())}return oe}({history:((Oe=location.host?Oe||location.pathname+location.search:"").includes("#")||(Oe+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:J(e,n)},r={value:t.state};function s(o,s,i){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:G()+e+o;try{t[i?"replaceState":"pushState"](s,"",c),r.value=s}catch(e){console.error(e),n[i?"replace":"assign"](c)}}return r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const i=a({},r.value,t.state,{forward:e,scroll:W()});s(i.current,i,!0),s(e,a({},Y(o.value,e,null),{position:i.position+1},n),!1),o.value=e},replace:function(e,n){s(e,a({},t.state,Y(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(c){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),F(e)}(e)),n=function(e,t,n,o){let r=[],s=[],i=null;const l=({state:s})=>{const l=J(e,location),c=n.value,a=t.value;let u=0;if(s){if(n.value=l,t.value=s,i&&i===c)return void(i=null);u=a?s.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:j.pop,direction:u?u>0?U.forward:U.back:U.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(a({},e.state,{scroll:W()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){i=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=a({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:q.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(Oe)),routes:Le});Pe.beforeEach((function(e){if("/bodyarea"===e.path)return!1}));const Me=Pe;var $e=(0,s.Ef)(l);$e.use(Me),$e.mount("#vue-formeditor-app")})(); \ No newline at end of file +(()=>{"use strict";var e,t,n={425:(e,t,n)=>{n.d(t,{EW:()=>Ui,Ef:()=>Oc,pM:()=>no,h:()=>Hi,WQ:()=>xr,dY:()=>Cn,Gt:()=>Cr,Kh:()=>Tt,KR:()=>Ht,Gc:()=>kt,IJ:()=>qt,R1:()=>Gt,wB:()=>Ss});var o={};function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(o),n.d(o,{BaseTransition:()=>Jn,BaseTransitionPropsValidators:()=>zn,Comment:()=>Ws,DeprecationTypes:()=>tl,EffectScope:()=>fe,ErrorCodes:()=>an,ErrorTypeStrings:()=>Ji,Fragment:()=>Hs,KeepAlive:()=>lo,ReactiveEffect:()=>be,Static:()=>Ks,Suspense:()=>Ms,Teleport:()=>Qr,Text:()=>qs,TrackOpTypes:()=>sn,Transition:()=>cl,TransitionGroup:()=>tc,TriggerOpTypes:()=>ln,VueElement:()=>Jl,assertNumber:()=>cn,callWithAsyncErrorHandling:()=>dn,callWithErrorHandling:()=>un,camelize:()=>D,capitalize:()=>P,cloneVNode:()=>di,compatUtils:()=>el,computed:()=>Ui,createApp:()=>Oc,createBlock:()=>ni,createCommentVNode:()=>fi,createElementBlock:()=>ti,createElementVNode:()=>ci,createHydrationRenderer:()=>is,createPropsRestProxy:()=>sr,createRenderer:()=>ss,createSSRApp:()=>Dc,createSlots:()=>Mo,createStaticVNode:()=>hi,createTextVNode:()=>pi,createVNode:()=>ai,customRef:()=>Zt,defineAsyncComponent:()=>ro,defineComponent:()=>no,defineCustomElement:()=>Kl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Qo,defineOptions:()=>Jo,defineProps:()=>Ko,defineSSRCustomElement:()=>zl,defineSlots:()=>Yo,devtools:()=>Yi,effect:()=>Ee,effectScope:()=>me,getCurrentInstance:()=>Ei,getCurrentScope:()=>ve,getTransitionRawChildren:()=>to,guardReactiveProps:()=>ui,h:()=>Hi,handleError:()=>pn,hasInjectionContext:()=>Er,hydrate:()=>Rc,initCustomFormatter:()=>qi,initDirectivesForSSR:()=>Mc,inject:()=>xr,isMemoSame:()=>Ki,isProxy:()=>Ft,isReactive:()=>Rt,isReadonly:()=>Ot,isRef:()=>Ut,isRuntimeOnly:()=>Pi,isShallow:()=>Dt,isVNode:()=>oi,markRaw:()=>Pt,mergeDefaults:()=>or,mergeModels:()=>rr,mergeProps:()=>yi,nextTick:()=>Cn,normalizeClass:()=>X,normalizeProps:()=>Z,normalizeStyle:()=>z,onActivated:()=>ao,onBeforeMount:()=>yo,onBeforeUnmount:()=>Co,onBeforeUpdate:()=>So,onDeactivated:()=>uo,onErrorCaptured:()=>ko,onMounted:()=>bo,onRenderTracked:()=>To,onRenderTriggered:()=>wo,onScopeDispose:()=>ye,onServerPrefetch:()=>Eo,onUnmounted:()=>xo,onUpdated:()=>_o,openBlock:()=>Js,popScopeId:()=>$n,provide:()=>Cr,proxyRefs:()=>Qt,pushScopeId:()=>Mn,queuePostFlushCb:()=>wn,reactive:()=>Tt,readonly:()=>At,ref:()=>Ht,registerRuntimeCompiler:()=>Li,render:()=>Nc,renderList:()=>Po,renderSlot:()=>$o,resolveComponent:()=>No,resolveDirective:()=>Do,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Zi,resolveTransitionHooks:()=>Qn,setBlockTracking:()=>Zs,setDevtoolsHook:()=>Qi,setTransitionHooks:()=>eo,shallowReactive:()=>kt,shallowReadonly:()=>It,shallowRef:()=>qt,ssrContextKey:()=>fs,ssrUtils:()=>Xi,stop:()=>we,toDisplayString:()=>ae,toHandlerKey:()=>M,toHandlers:()=>Vo,toRaw:()=>Lt,toRef:()=>on,toRefs:()=>en,toValue:()=>Jt,transformVNodeArgs:()=>si,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>er,useCssModule:()=>Yl,useCssVars:()=>Il,useModel:()=>ws,useSSRContext:()=>ms,useSlots:()=>Zo,useTransitionState:()=>Wn,vModelCheckbox:()=>uc,vModelDynamic:()=>vc,vModelRadio:()=>pc,vModelSelect:()=>hc,vModelText:()=>ac,vShow:()=>Tl,version:()=>zi,warn:()=>Gi,watch:()=>Ss,watchEffect:()=>gs,watchPostEffect:()=>vs,watchSyncEffect:()=>ys,withAsyncContext:()=>ir,withCtx:()=>Vn,withDefaults:()=>Xo,withDirectives:()=>jn,withKeys:()=>Ec,withMemo:()=>Wi,withModifiers:()=>Cc,withScopeId:()=>Bn});const s={},i=[],l=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),d=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,f=(e,t)=>h.call(e,t),m=Array.isArray,g=e=>"[object Map]"===w(e),v=e=>"[object Set]"===w(e),y=e=>"[object Date]"===w(e),b=e=>"function"==typeof e,S=e=>"string"==typeof e,_=e=>"symbol"==typeof e,C=e=>null!==e&&"object"==typeof e,x=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,w=e=>E.call(e),T=e=>w(e).slice(8,-1),k=e=>"[object Object]"===w(e),A=e=>S(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),N=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),R=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-(\w)/g,D=R((e=>e.replace(O,((e,t)=>t?t.toUpperCase():"")))),F=/\B([A-Z])/g,L=R((e=>e.replace(F,"-$1").toLowerCase())),P=R((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=R((e=>e?`on${P(e)}`:"")),$=(e,t)=>!Object.is(e,t),B=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=S(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const q=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),W={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},K=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(m(e)){const t={};for(let n=0;n{if(e){const n=e.split(J);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function X(e){let t="";if(S(e))t=e;else if(m(e))for(let n=0;nie(e,t)))}const ce=e=>!(!e||!0!==e.__v_isRef),ae=e=>S(e)?e:null==e?"":m(e)||C(e)&&(e.toString===E||!b(e.toString))?ce(e)?ae(e.value):JSON.stringify(e,ue,2):String(e),ue=(e,t)=>ce(t)?ue(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[de(t,o)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>de(e)))}:_(t)?de(t):!C(t)||m(t)||k(t)?t:String(t),de=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let pe,he;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pe,!e&&pe&&(this.index=(pe.scopes||(pe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=pe;try{return pe=this,e()}finally{pe=t}}}on(){pe=this}off(){pe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ne()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Te,t=he;try{return Te=!0,he=this,this._runnings++,_e(this),this.fn()}finally{Ce(this),this._runnings--,he=t,Te=e}}stop(){this.active&&(_e(this),Ce(this),this.onStop&&this.onStop(),this.active=!1)}}function Se(e){return e.value}function _e(e){e._trackId++,e._depsLength=0}function Ce(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(d(n,t),t.scope&&ge(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function we(e){e.effect.stop()}let Te=!0,ke=0;const Ae=[];function Ie(){Ae.push(Te),Te=!1}function Ne(){const e=Ae.pop();Te=void 0===e||e}function Re(){ke++}function Oe(){for(ke--;!ke&&Fe.length;)Fe.shift()()}function De(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fe=[];function Le(e,t,n){Re();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Me=new WeakMap,$e=Symbol(""),Be=Symbol("");function Ve(e,t,n){if(Te&&he){let t=Me.get(e);t||Me.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Pe((()=>t.delete(n)))),De(he,o)}}function je(e,t,n,o,r,s){const i=Me.get(e);if(!i)return;let l=[];if("clear"===t)l=[...i.values()];else if("length"===n&&m(e)){const e=Number(o);i.forEach(((t,n)=>{("length"===n||!_(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":m(e)?A(n)&&l.push(i.get("length")):(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"delete":m(e)||(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"set":g(e)&&l.push(i.get($e))}Re();for(const e of l)e&&Le(e,4);Oe()}const Ue=r("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(_)),qe=We();function We(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Lt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Ie(),Re();const n=Lt(this)[t].apply(this,e);return Oe(),Ne(),n}})),e}function Ke(e){_(e)||(e=String(e));const t=Lt(this);return Ve(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?wt:Et:r?xt:Ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=m(e);if(!o){if(s&&f(qe,t))return Reflect.get(qe,t,n);if("hasOwnProperty"===t)return Ke}const i=Reflect.get(e,t,n);return(_(t)?He.has(t):Ue(t))?i:(o||Ve(e,0,t),r?i:Ut(i)?s&&A(t)?i:i.value:C(i)?o?At(i):Tt(i):i)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Dt(n)||Ot(n)||(r=Lt(r),n=Lt(n)),!m(e)&&Ut(r)&&!Ut(n))return!t&&(r.value=n,!0)}const s=m(e)&&A(t)?Number(t)e,tt=e=>Reflect.getPrototypeOf(e);function nt(e,t,n=!1,o=!1){const r=Lt(e=e.__v_raw),s=Lt(t);n||($(t,s)&&Ve(r,0,t),Ve(r,0,s));const{has:i}=tt(r),l=o?et:n?$t:Mt;return i.call(r,t)?l(e.get(t)):i.call(r,s)?l(e.get(s)):void(e!==r&&e.get(t))}function ot(e,t=!1){const n=this.__v_raw,o=Lt(n),r=Lt(e);return t||($(e,r)&&Ve(o,0,e),Ve(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function rt(e,t=!1){return e=e.__v_raw,!t&&Ve(Lt(e),0,$e),Reflect.get(e,"size",e)}function st(e,t=!1){t||Dt(e)||Ot(e)||(e=Lt(e));const n=Lt(this);return tt(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Dt(t)||Ot(t)||(t=Lt(t));const o=Lt(this),{has:r,get:s}=tt(o);let i=r.call(o,e);i||(e=Lt(e),i=r.call(o,e));const l=s.call(o,e);return o.set(e,t),i?$(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function lt(e){const t=Lt(this),{has:n,get:o}=tt(t);let r=n.call(t,e);r||(e=Lt(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&je(t,"delete",e,void 0),s}function ct(){const e=Lt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function at(e,t){return function(n,o){const r=this,s=r.__v_raw,i=Lt(s),l=t?et:e?$t:Mt;return!e&&Ve(i,0,$e),s.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function ut(e,t,n){return function(...o){const r=this.__v_raw,s=Lt(r),i=g(s),l="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,a=r[e](...o),u=n?et:t?$t:Mt;return!t&&Ve(s,0,c?Be:$e),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function dt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function pt(){const e={get(e){return nt(this,e)},get size(){return rt(this)},has:ot,add:st,set:it,delete:lt,clear:ct,forEach:at(!1,!1)},t={get(e){return nt(this,e,!1,!0)},get size(){return rt(this)},has:ot,add(e){return st.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:lt,clear:ct,forEach:at(!1,!0)},n={get(e){return nt(this,e,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!1)},o={get(e){return nt(this,e,!0,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ut(r,!1,!1),n[r]=ut(r,!0,!1),t[r]=ut(r,!1,!0),o[r]=ut(r,!0,!0)})),[e,n,t,o]}const[ht,ft,mt,gt]=pt();function vt(e,t){const n=t?e?gt:mt:e?ft:ht;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(f(n,o)&&o in t?n:t,o,r)}const yt={get:vt(!1,!1)},bt={get:vt(!1,!0)},St={get:vt(!0,!1)},_t={get:vt(!0,!0)},Ct=new WeakMap,xt=new WeakMap,Et=new WeakMap,wt=new WeakMap;function Tt(e){return Ot(e)?e:Nt(e,!1,Ye,yt,Ct)}function kt(e){return Nt(e,!1,Xe,bt,xt)}function At(e){return Nt(e,!0,Qe,St,Et)}function It(e){return Nt(e,!0,Ze,_t,wt)}function Nt(e,t,n,o,r){if(!C(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(T(l));var l;if(0===i)return e;const c=new Proxy(e,2===i?o:n);return r.set(e,c),c}function Rt(e){return Ot(e)?Rt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Ft(e){return!!e&&!!e.__v_raw}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}function Pt(e){return Object.isExtensible(e)&&V(e,"__v_skip",!0),e}const Mt=e=>C(e)?Tt(e):e,$t=e=>C(e)?At(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new be((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Lt(this);return e._cacheable&&!e.effect.dirty||!$(e._value,e._value=e.effect.run())||jt(e,4),Vt(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Vt(e){var t;Te&&he&&(e=Lt(e),De(he,null!=(t=e.dep)?t:e.dep=Pe((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Lt(e)).dep;r&&Le(r,t)}function Ut(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return Wt(e,!1)}function qt(e){return Wt(e,!0)}function Wt(e,t){return Ut(e)?e:new Kt(e,t)}class Kt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lt(e),this._value=t?e:Mt(e)}get value(){return Vt(this),this._value}set value(e){const t=this.__v_isShallow||Dt(e)||Ot(e);e=t?e:Lt(e),$(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Mt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ut(e)?e.value:e}function Jt(e){return b(e)?e():Gt(e)}const Yt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ut(r)&&!Ut(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Qt(e){return Rt(e)?e:new Proxy(e,Yt)}class Xt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Vt(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Zt(e){return new Xt(e)}function en(e){const t=m(e)?new Array(e.length):{};for(const n in e)t[n]=rn(e,n);return t}class tn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Me.get(e);return n&&n.get(t)}(Lt(this._object),this._key)}}class nn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function on(e,t,n){return Ut(e)?e:b(e)?new nn(e):C(e)&&arguments.length>1?rn(e,t,n):Ht(e)}function rn(e,t,n){const o=e[t];return Ut(o)?o:new tn(e,t,n)}const sn={GET:"get",HAS:"has",ITERATE:"iterate"},ln={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function cn(e,t){}const an={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function un(e,t,n,o){try{return o?e(...o):e()}catch(e){pn(e,t,n)}}function dn(e,t,n,o){if(b(e)){const r=un(e,t,n,o);return r&&x(r)&&r.catch((e=>{pn(e,t,n)})),r}if(m(e)){const r=[];for(let s=0;s>>1,r=mn[o],s=An(r);sAn(e)-An(t)));if(vn.length=0,yn)return void yn.push(...e);for(yn=e,bn=0;bnnull==e.id?1/0:e.id,In=(e,t)=>{const n=An(e)-An(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nn(e){fn=!1,hn=!0,mn.sort(In);try{for(gn=0;gnVn;function Vn(e,t=Fn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Zs(-1);const r=Pn(t);let s;try{s=e(...n)}finally{Pn(r),o._d&&Zs(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Fn)return e;const n=Vi(Fn),o=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),Co((()=>{e.isUnmounting=!0})),e}const Kn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kn,onEnter:Kn,onAfterEnter:Kn,onEnterCancelled:Kn,onBeforeLeave:Kn,onLeave:Kn,onAfterLeave:Kn,onLeaveCancelled:Kn,onBeforeAppear:Kn,onAppear:Kn,onAfterAppear:Kn,onAppearCancelled:Kn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Jn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Ei(),o=Wn();return()=>{const r=t.default&&to(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==Ws){s=t,e=!0;break}}const i=Lt(e),{mode:l}=i;if(o.isLeaving)return Xn(s);const c=Zn(s);if(!c)return Xn(s);let a=Qn(c,i,o,n,(e=>a=e));eo(c,a);const u=n.subTree,d=u&&Zn(u);if(d&&d.type!==Ws&&!ri(c,d)&&Gn(n).type!==Ws){const e=Qn(d,i,o,n);if(eo(d,e),"out-in"===l&&c.type!==Ws)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Xn(s);"in-out"===l&&c.type!==Ws&&(e.delayLeave=(e,t,n)=>{Yn(o,d)[String(d.key)]=d,e[Hn]=()=>{t(),e[Hn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return s}}};function Yn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Qn(e,t,n,o,r){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),C=Yn(n,e),x=(e,t)=>{e&&dn(e,o,9,t)},E=(e,t)=>{const n=t[1];x(e,t),m(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:i,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!s)return;o=v||c}t[Hn]&&t[Hn](!0);const r=C[_];r&&ri(e,r)&&r.el[Hn]&&r.el[Hn](),x(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!s)return;t=y||a,o=b||u,r=S||d}let i=!1;const l=e[qn]=t=>{i||(i=!0,x(t?r:o,[e]),w.delayedLeave&&w.delayedLeave(),e[qn]=void 0)};t?E(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[qn]&&t[qn](!0),n.isUnmounting)return o();x(p,[t]);let s=!1;const i=t[Hn]=n=>{s||(s=!0,o(),x(n?g:f,[t]),t[Hn]=void 0,C[r]===e&&delete C[r])};C[r]=e,h?E(h,[t,i]):i()},clone(e){const s=Qn(e,t,n,o,r);return r&&r(s),s}};return w}function Xn(e){if(io(e))return(e=di(e)).children=null,e}function Zn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function eo(e,t){6&e.shapeFlag&&e.component?eo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function to(e,t=!1,n){let o=[],r=0;for(let s=0;s1)for(let e=0;ed({name:e.name},t,{setup:e}))():e}const oo=e=>!!e.type.__asyncLoader;function ro(e){b(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:i=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return no({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xi;if(c)return()=>so(c,e);const t=t=>{a=null,pn(t,e,13,!o)};if(i&&e.suspense||Oi)return d().then((t=>()=>so(t,e))).catch((e=>(t(e),()=>o?ai(o,{error:e}):null)));const l=Ht(!1),u=Ht(),p=Ht(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?so(c,e):u.value&&o?ai(o,{error:u.value}):n&&!p.value?ai(n):void 0}})}function so(e,t){const{ref:n,props:o,children:r,ce:s}=t.vnode,i=ai(e,o,r);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const io=e=>e.type.__isKeepAlive,lo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ei(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,s=new Set;let i=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){fo(e),u(e,n,l,!0)}function f(e){r.forEach(((t,n)=>{const o=ji(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);i&&ri(t,i)?i&&fo(i):h(t),r.delete(e),s.delete(e)}o.activate=(e,t,n,o,r)=>{const s=e.component;a(e,t,n,0,l),c(s.vnode,e,t,n,s,l,o,e.slotScopeIds,r),rs((()=>{s.isDeactivated=!1,s.a&&B(s.a);const t=e.props&&e.props.onVnodeMounted;t&&bi(t,s.parent,e)}),l)},o.deactivate=e=>{const t=e.component;hs(t.m),hs(t.a),a(e,p,null,1,l),rs((()=>{t.da&&B(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&bi(n,t.parent,e),t.isDeactivated=!0}),l)},Ss((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>co(e,t))),t&&f((e=>!co(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Ls(n.subTree.type)?rs((()=>{r.set(g,mo(n.subTree))}),n.subTree.suspense):r.set(g,mo(n.subTree)))};return bo(v),_o(v),Co((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=mo(t);if(e.type!==r.type||e.key!==r.key)h(e);else{fo(r);const e=r.component.da;e&&rs(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!oi(o)||!(4&o.shapeFlag||128&o.shapeFlag))return i=null,o;let l=mo(o);const c=l.type,a=ji(oo(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!co(u,a))||d&&a&&co(d,a))return i=l,o;const h=null==l.key?c:l.key,f=r.get(h);return l.el&&(l=di(l),128&o.shapeFlag&&(o.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&eo(l,l.transition),l.shapeFlag|=512,s.delete(h),s.add(h)):(s.add(h),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),l.shapeFlag|=256,i=l,Ls(o.type)?o:l}}};function co(e,t){return m(e)?e.some((e=>co(e,t))):S(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&e.test(t)}function ao(e,t){po(e,"a",t)}function uo(e,t){po(e,"da",t)}function po(e,t,n=xi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(go(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&ho(o,t,n,e),e=e.parent}}function ho(e,t,n,o){const r=go(t,e,o,!0);xo((()=>{p(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mo(e){return 128&e.shapeFlag?e.ssContent:e}function go(e,t,n=xi,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Ie();const r=ki(n),s=dn(t,n,e,o);return r(),Ne(),s});return o?r.unshift(s):r.push(s),s}}const vo=e=>(t,n=xi)=>{Oi&&"sp"!==e||go(e,((...e)=>t(...e)),n)},yo=vo("bm"),bo=vo("m"),So=vo("bu"),_o=vo("u"),Co=vo("bum"),xo=vo("um"),Eo=vo("sp"),wo=vo("rtg"),To=vo("rtc");function ko(e,t=xi){go("ec",e,t)}const Ao="components",Io="directives";function No(e,t){return Fo(Ao,e,!0,t)||e}const Ro=Symbol.for("v-ndc");function Oo(e){return S(e)?Fo(Ao,e,!1)||e:e||Ro}function Do(e){return Fo(Io,e)}function Fo(e,t,n=!0,o=!1){const r=Fn||xi;if(r){const n=r.type;if(e===Ao){const e=ji(n,!1);if(e&&(e===t||e===D(t)||e===P(D(t))))return n}const s=Lo(r[e]||n[e],t)||Lo(r.appContext[e],t);return!s&&o?n:s}}function Lo(e,t){return e&&(e[t]||e[D(t)]||e[P(D(t))])}function Po(e,t,n,o){let r;const s=n&&n[o];if(m(e)||S(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function $o(e,t,n={},o,r){if(Fn.isCE||Fn.parent&&oo(Fn.parent)&&Fn.parent.isCE)return"default"!==t&&(n.name=t),ai("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),Js();const i=s&&Bo(s(n)),l=ni(Hs,{key:(n.key||i&&i.key||`_${t}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Bo(e){return e.some((e=>!oi(e)||e.type!==Ws&&!(e.type===Hs&&!Bo(e.children))))?e:null}function Vo(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ii(e)?Vi(e):jo(e.parent):null,Uo=d(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ur(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>Cs.bind(e)}),Ho=(e,t)=>e!==s&&!e.__isScriptSetup&&f(e,t),qo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Ho(o,t))return l[t]=1,o[t];if(r!==s&&f(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&f(u,t))return l[t]=3,i[t];if(n!==s&&f(n,t))return l[t]=4,n[t];lr&&(l[t]=0)}}const d=Uo[t];let p,h;return d?("$attrs"===t&&Ve(e.attrs,0,""),d(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==s&&f(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,f(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Ho(r,t)?(r[t]=n,!0):o!==s&&f(o,t)?(o[t]=n,!0):!(f(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},l){let c;return!!n[l]||e!==s&&f(e,l)||Ho(t,l)||(c=i[0])&&f(c,l)||f(o,l)||f(Uo,l)||f(r.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:f(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Wo=d({},qo,{get(e,t){if(t!==Symbol.unscopables)return qo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!K(t)});function Ko(){return null}function zo(){return null}function Go(e){}function Jo(e){}function Yo(){return null}function Qo(){}function Xo(e,t){return null}function Zo(){return tr().slots}function er(){return tr().attrs}function tr(){const e=Ei();return e.setupContext||(e.setupContext=Bi(e))}function nr(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function or(e,t){const n=nr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?m(o)||b(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function rr(e,t){return e&&t?m(e)&&m(t)?e.concat(t):d({},nr(e),nr(t)):e||t}function sr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Ei();let n=e();return Ai(),x(n)&&(n=n.catch((e=>{throw ki(t),e}))),[n,()=>ki(t)]}let lr=!0;function cr(e,t,n){dn(m(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ar(e,t,n,o){const r=o.includes(".")?xs(n,o):()=>n[o];if(S(e)){const n=t[e];b(n)&&Ss(r,n)}else if(b(e))Ss(r,e.bind(n));else if(C(e))if(m(e))e.forEach((e=>ar(e,t,n,o)));else{const o=b(e.handler)?e.handler.bind(n):t[e.handler];b(o)&&Ss(r,o,e)}}function ur(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>dr(c,e,i,!0))),dr(c,t,i)):c=t,C(t)&&s.set(t,c),c}function dr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&dr(e,s,n,!0),r&&r.forEach((t=>dr(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=pr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const pr={data:hr,props:vr,emits:vr,methods:gr,computed:gr,beforeCreate:mr,created:mr,beforeMount:mr,mounted:mr,beforeUpdate:mr,updated:mr,beforeDestroy:mr,beforeUnmount:mr,destroyed:mr,unmounted:mr,activated:mr,deactivated:mr,errorCaptured:mr,serverPrefetch:mr,components:gr,directives:gr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);for(const o in t)n[o]=mr(e[o],t[o]);return n},provide:hr,inject:function(e,t){return gr(fr(e),fr(t))}};function hr(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function fr(e){if(m(e)){const t={};for(let n=0;n(s.has(e)||(e&&b(e.install)?(s.add(e),e.install(l,...t)):b(e)&&(s.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(s,c,a){if(!i){const u=ai(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,s):e(u,s,a),i=!0,l._container=s,s.__vue_app__=l,Vi(u.component)}},unmount(){i&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=_r;_r=l;try{return e()}finally{_r=t}}};return l}}let _r=null;function Cr(e,t){if(xi){let n=xi.provides;const o=xi.parent&&xi.parent.provides;o===n&&(n=xi.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xi||Fn;if(o||_r){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:_r._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&b(t)?t.call(o&&o.proxy):t}}function Er(){return!!(xi||Fn||_r)}const wr={},Tr=()=>Object.create(wr),kr=e=>Object.getPrototypeOf(e)===wr;function Ar(e,t,n,o){const[r,i]=e.propsOptions;let l,c=!1;if(t)for(let s in t){if(I(s))continue;const a=t[s];let u;r&&f(r,u=D(s))?i&&i.includes(u)?(l||(l={}))[u]=a:n[u]=a:Is(e.emitsOptions,s)||s in o&&a===o[s]||(o[s]=a,c=!0)}if(i){const t=Lt(n),o=l||s;for(let s=0;s{u=!0;const[n,o]=Rr(e,t,!0);d(c,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!u)return C(e)&&o.set(e,i),i;if(m(l))for(let e=0;e-1,o[1]=n<0||e-1||f(o,"default"))&&a.push(t)}}}const p=[c,a];return C(e)&&o.set(e,p),p}function Or(e){return"$"!==e[0]&&!I(e)}function Dr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Fr(e,t){return Dr(e)===Dr(t)}function Lr(e,t){return m(t)?t.findIndex((t=>Fr(t,e))):b(t)&&Fr(t,e)?0:-1}const Pr=e=>"_"===e[0]||"$stable"===e,Mr=e=>m(e)?e.map(mi):[mi(e)],$r=(e,t,n)=>{if(t._n)return t;const o=Vn(((...e)=>Mr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Pr(n))continue;const r=e[n];if(b(r))t[n]=$r(0,r,o);else if(null!=r){const e=Mr(r);t[n]=()=>e}}},Vr=(e,t)=>{const n=Mr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Ur=(e,t,n)=>{const o=e.slots=Tr();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&V(o,"_",e,!0)):Br(t,o)}else t&&Vr(e,t)},Hr=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=s;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:jr(r,t,n):(i=!t.$stable,Br(t,r)),l=t}else t&&(Vr(e,t),l={default:1});if(i)for(const e in r)Pr(e)||null!=l[e]||delete r[e]};function qr(e,t,n,o,r=!1){if(m(e))return void e.forEach(((e,s)=>qr(e,t&&(m(t)?t[s]:t),n,o,r)));if(oo(o)&&!r)return;const i=4&o.shapeFlag?Vi(o.component):o.el,l=r?null:i,{i:c,r:a}=e,u=t&&t.r,d=c.refs===s?c.refs={}:c.refs,h=c.setupState;if(null!=u&&u!==a&&(S(u)?(d[u]=null,f(h,u)&&(h[u]=null)):Ut(u)&&(u.value=null)),b(a))un(a,c,12,[l,d]);else{const t=S(a),o=Ut(a);if(t||o){const s=()=>{if(e.f){const n=t?f(h,a)?h[a]:d[a]:a.value;r?m(n)&&p(n,i):m(n)?n.includes(i)||n.push(i):t?(d[a]=[i],f(h,a)&&(h[a]=d[a])):(a.value=[i],e.k&&(d[e.k]=a.value))}else t?(d[a]=l,f(h,a)&&(h[a]=l)):o&&(a.value=l,e.k&&(d[e.k]=l))};l?(s.id=-1,rs(s,n)):s()}}}const Wr=Symbol("_vte"),Kr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Jr=(e,t)=>{const n=e&&e.to;return S(n)?t?t(n):null:n};function Yr(e,t,n,{o:{insert:o},m:r},s=2){0===s&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===s;if(d&&o(i,t,n),(!d||Kr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,s,i,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Kr(e.props),g=m?n:u,y=m?o:h;if("svg"===i||zr(u)?i="svg":("mathml"===i||Gr(u))&&(i="mathml"),S?(p(e.dynamicChildren,S,g,r,s,i,l),ds(e,t,!0)):c||d(e,t,g,y,r,s,i,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Yr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Jr(t.props,f);e&&Yr(t,e,null,a,0)}else m&&Yr(t,u,h,a,1)}Xr(t)},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:i,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),s&&r(c),16&i){const e=s||!Kr(p);for(let r=0;r{Zr||(console.error("Hydration completed but contains mismatches."),Zr=!0)},ts=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ns=e=>8===e.nodeType;function os(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:s,parentNode:i,remove:l,insert:c,createComment:u}}=e,d=(n,o,l,a,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ns(n)&&"["===n.data,_=()=>m(n,o,l,a,u,S),{type:C,ref:x,shapeFlag:E,patchFlag:w}=o;let T=n.nodeType;o.el=n,-2===w&&(b=!1,o.dynamicChildren=null);let k=null;switch(C){case qs:3!==T?""===o.children?(c(o.el=r(""),i(n),n),k=n):k=_():(n.data!==o.children&&(es(),n.data=o.children),k=s(n));break;case Ws:y(n)?(k=s(n),v(o.el=n.content.firstChild,n,l)):k=8!==T||S?_():s(n);break;case Ks:if(S&&(T=(n=s(n)).nodeType),1===T||3===T){k=n;const e=!o.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===c||"option"===c;if(g||-1!==d){f&&Un(t,null,n,"created");let c,b=!1;if(y(e)){b=us(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=h(e.firstChild,t,e,n,r,s,i);for(;o;){es();const e=o;o=o.nextSibling,l(e)}}else 8&p&&e.textContent!==t.children&&(es(),e.textContent=t.children);if(u)if(g||!i||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||a(t)&&!I(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&Rt(u.style))for(const e in u.style)u.style[e];(c=u&&u.onVnodeBeforeMount)&&bi(c,n,t),f&&Un(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f||b)&&js((()=>{c&&bi(c,n,t),b&&m.enter(e),f&&Un(t,null,n,"mounted")}),r)}return e.nextSibling},h=(e,t,o,i,l,a,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(r=r?r.concat(a):a);const d=i(e),p=h(s(e),t,d,n,o,r,l);return p&&ns(p)&&"]"===p.data?s(t.anchor=p):(es(),c(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,c,a)=>{if(es(),t.el=null,a){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;l(n)}}const u=s(e),d=i(e);return l(e),n(null,t,d,u,o,r,ts(d),c),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=s(e))&&ns(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return s(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),kn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),kn(),t._vnode=e},d]}const rs=js;function ss(e){return ls(e)}function is(e){return ls(e,os)}function ls(e,t){q().__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:c,createText:a,createComment:u,setText:d,setElementText:p,parentNode:h,nextSibling:m,setScopeId:g=l,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,s=null,i=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!ri(e,t)&&(o=J(e),H(e,r,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case qs:b(e,t,n,o);break;case Ws:S(e,t,n,o);break;case Ks:null==e&&_(t,n,o,i);break;case Hs:N(e,t,n,o,r,s,i,l,c);break;default:1&d?C(e,t,n,o,r,s,i,l,c):6&d?R(e,t,n,o,r,s,i,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,s,i,l,c,X)}null!=u&&r&&qr(u,e&&e.ref,s,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},C=(e,t,n,o,r,s,i,l,c)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?x(t,n,o,r,s,i,l,c):T(e,t,r,s,i,l,c)},x=(e,t,o,s,i,l,a,u)=>{let d,h;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,l,f&&f.is,f),8&m?p(d,e.children):16&m&&w(e.children,d,null,s,i,cs(e,l),a,u),v&&Un(e,null,s,"created"),E(d,e,e.scopeId,a,s),f){for(const e in f)"value"===e||I(e)||r(d,e,null,f[e],l,s);"value"in f&&r(d,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&bi(h,s,e)}v&&Un(e,null,s,"beforeMount");const y=us(i,g);y&&g.beforeEnter(d),n(d,t,o),((h=f&&f.onVnodeMounted)||y||v)&&rs((()=>{h&&bi(h,s,e),y&&g.enter(d),v&&Un(e,null,s,"mounted")}),i)},E=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&as(n,!1),(g=m.onVnodeBeforeUpdate)&&bi(g,n,t,e),h&&Un(t,e,n,"beforeUpdate"),n&&as(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&p(a,""),d?k(e.dynamicChildren,d,a,n,o,cs(t,i),l):c||$(e,t,a,null,n,o,cs(t,i),l,!1),u>0){if(16&u)A(a,f,m,n,i);else if(2&u&&f.class!==m.class&&r(a,"class",null,m.class,i),4&u&&r(a,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&bi(g,n,t,e),h&&Un(t,e,n,"updated")}),o)},k=(e,t,n,o,r,s,i)=>{for(let l=0;l{if(t!==n){if(t!==s)for(const s in t)I(s)||s in n||r(e,s,t[s],null,i,o);for(const s in n){if(I(s))continue;const l=n[s],c=t[s];l!==c&&"value"!==s&&r(e,s,c,l,i,o)}"value"in n&&r(e,"value",t.value,n.value,i)}},N=(e,t,o,r,s,i,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),w(t.children||[],o,p,s,i,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(k(e.dynamicChildren,f,o,s,i,l,c),(null!=t.key||s&&t===s.subTree)&&ds(e,t,!0)):$(e,t,o,p,s,i,l,c,u)},R=(e,t,n,o,r,s,i,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,c):O(t,n,o,r,s,i,c):F(e,t,c)},O=(e,t,n,o,r,s,i)=>{const l=e.component=Ci(e,o,r);if(io(e)&&(l.ctx.renderer=X),Di(l,!1,i),l.asyncDep){if(r&&r.registerDep(l,P,i),!e.el){const e=l.subTree=ai(Ws);S(null,e,t,n)}}else P(l,e,t,n,r,s,i)},F=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:c}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||Ds(o,i,a):!!i);if(1024&c)return!0;if(16&c)return o?Ds(o,i,a):!!i;if(8&c){const e=t.dynamicProps;for(let t=0;tgn&&mn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},P=(e,t,n,o,r,s,i)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:a}=e;{const n=ps(e);if(n)return t&&(t.el=a.el,M(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;as(e,!1),t?(t.el=a.el,M(e,t,i)):t=a,n&&B(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&bi(u,l,t,a),as(e,!0);const p=Ns(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Fs(e,p.el),o&&rs(o,r),(u=t.props&&t.props.onVnodeUpdated)&&rs((()=>bi(u,l,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=oo(t);if(as(e,!1),a&&B(a),!p&&(i=c&&c.onVnodeBeforeMount)&&bi(i,d,t),as(e,!0),l&&ee){const n=()=>{e.subTree=Ns(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Ns(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&rs(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;rs((()=>bi(i,d,e)),r)}(256&t.shapeFlag||d&&oo(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&rs(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new be(c,l,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,as(e,!0),u()},M=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=Lt(r),[c]=e.propsOptions;let a=!1;if(!(o||i>0)||16&i){let o;Ar(e,t,r,s)&&(a=!0);for(const s in l)t&&(f(t,s)||(o=L(s))!==s&&f(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Ir(c,l,s,void 0,e,!0)):delete r[s]);if(s!==l)for(const e in s)t&&f(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void j(a,d,n,o,r,s,i,l,c);if(256&h)return void V(a,d,n,o,r,s,i,l,c)}8&f?(16&u&&G(a,r,s),d!==a&&p(n,d)):16&u?16&f?j(a,d,n,o,r,s,i,l,c):G(a,r,s,!0):(8&u&&p(n,""),16&f&&w(d,n,o,r,s,i,l,c))},V=(e,t,n,o,r,s,l,c,a)=>{t=t||i;const u=(e=e||i).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?G(e,r,s,!0,!1,p):w(t,n,o,r,s,l,c,a,p)},j=(e,t,n,o,r,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],i=t[u]=a?gi(t[u]):mi(t[u]);if(!ri(o,i))break;y(o,i,n,null,r,s,l,c,a),u++}for(;u<=p&&u<=h;){const o=e[p],i=t[h]=a?gi(t[h]):mi(t[h]);if(!ri(o,i))break;y(o,i,n,null,r,s,l,c,a),p--,h--}if(u>p){if(u<=h){const e=h+1,i=eh)for(;u<=p;)H(e[u],r,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=a?gi(t[u]):mi(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=h-m+1;let _=!1,C=0;const x=new Array(S);for(u=0;u=S){H(o,r,s,!0);continue}let i;if(null!=o.key)i=g.get(o.key);else for(v=m;v<=h;v++)if(0===x[v-m]&&ri(o,t[v])){i=v;break}void 0===i?H(o,r,s,!0):(x[i-m]=u+1,i>=C?C=i:_=!0,y(o,t[i],n,null,r,s,l,c,a),b++)}const E=_?function(e){const t=e.slice(),n=[0];let o,r,s,i,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}(x):i;for(v=E.length-1,u=S-1;u>=0;u--){const e=m+u,i=t[e],p=e+1{const{el:i,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)U(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,X);else if(l!==Hs)if(l!==Ks)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(i),n(i,t,o),rs((()=>c.enter(i)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=c,l=()=>n(i,t,o),a=()=>{e(i,(()=>{l(),s&&s()}))};r?r(i,l,a):a()}else n(i,t,o);else(({el:e,anchor:t},o,r)=>{let s;for(;e&&e!==t;)s=m(e),n(e,o,r),e=s;n(t,o,r)})(e,t,o);else{n(i,t,o);for(let e=0;e{const{type:s,props:i,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(r=!1),null!=l&&qr(l,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!oo(e);let g;if(m&&(g=i&&i.onVnodeBeforeUnmount)&&bi(g,t,e),6&u)z(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&Un(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,o):a&&!a.hasOnce&&(s!==Hs||d>0&&64&d)?G(a,t,n,!1,!0):(s===Hs&&384&d||!r&&16&u)&&G(c,t,n),o&&W(e)}(m&&(g=i&&i.onVnodeUnmounted)||f)&&rs((()=>{g&&bi(g,t,e),f&&Un(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===Hs)return void K(n,r);if(t===Ks)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),o(e),e=n;o(t)})(e);const i=()=>{o(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=m(e),o(e),e=n;o(t)},z=(e,t,n)=>{const{bum:o,scope:r,update:s,subTree:i,um:l,m:c,a}=e;hs(c),hs(a),o&&B(o),r.stop(),s&&(s.active=!1,H(i,e,t,n)),l&&rs(l,t),rs((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,o=!1,r=!1,s=0)=>{for(let i=s;i{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[Wr];return n?m(n):t};let Y=!1;const Q=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Y||(Y=!0,Tn(),kn(),Y=!1),t._vnode=e},X={p:y,um:H,m:U,r:W,mt:O,mc:w,pc:$,pbc:k,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(X)),{render:Q,hydrate:Z,createApp:Sr(Q,Z)}}function cs({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function as({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function us(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ds(e,t,n=!1){const o=e.children,r=t.children;if(m(o)&&m(r))for(let e=0;exr(fs);function gs(e,t){return _s(e,null,t)}function vs(e,t){return _s(e,null,{flush:"post"})}function ys(e,t){return _s(e,null,{flush:"sync"})}const bs={};function Ss(e,t,n){return _s(e,t,n)}function _s(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:c,onTrigger:a}=s){if(t&&i){const e=t;t=(...t)=>{e(...t),T()}}const u=xi,d=e=>!0===o?e:Es(e,!1===o?1:void 0);let h,f,g=!1,v=!1;if(Ut(e)?(h=()=>e.value,g=Dt(e)):Rt(e)?(h=()=>d(e),g=!0):m(e)?(v=!0,g=e.some((e=>Rt(e)||Dt(e))),h=()=>e.map((e=>Ut(e)?e.value:Rt(e)?d(e):b(e)?un(e,u,2):void 0))):h=b(e)?t?()=>un(e,u,2):()=>(f&&f(),dn(e,u,3,[S])):l,t&&o){const e=h;h=()=>Es(e())}let y,S=e=>{f=E.onStop=()=>{un(e,u,4),f=E.onStop=void 0}};if(Oi){if(S=l,t?n&&dn(t,u,3,[h(),v?[]:void 0,S]):h(),"sync"!==r)return l;{const e=ms();y=e.__watcherHandles||(e.__watcherHandles=[])}}let _=v?new Array(e.length).fill(bs):bs;const C=()=>{if(E.active&&E.dirty)if(t){const e=E.run();(o||g||(v?e.some(((e,t)=>$(e,_[t]))):$(e,_)))&&(f&&f(),dn(t,u,3,[e,_===bs?void 0:v&&_[0]===bs?[]:_,S]),_=e)}else E.run()};let x;C.allowRecurse=!!t,"sync"===r?x=C:"post"===r?x=()=>rs(C,u&&u.suspense):(C.pre=!0,u&&(C.id=u.uid),x=()=>xn(C));const E=new be(h,l,x),w=ve(),T=()=>{E.stop(),w&&p(w.effects,E)};return t?n?C():_=E.run():"post"===r?rs(E.run.bind(E),u&&u.suspense):E.run(),y&&y.push(T),T}function Cs(e,t,n){const o=this.proxy,r=S(e)?e.includes(".")?xs(o,e):()=>o[e]:e.bind(o,o);let s;b(t)?s=t:(s=t.handler,n=t);const i=ki(this),l=_s(r,s.bind(o),n);return i(),l}function xs(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Es(e,t,n)}));else if(k(e)){for(const o in e)Es(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Es(e[o],t,n)}return e}function ws(e,t,n=s){const o=Ei(),r=D(t),i=L(t),l=Ts(e,t),c=Zt(((s,l)=>{let c,a,u;return ys((()=>{const n=e[t];$(c,n)&&(c=n,l())})),{get:()=>(s(),n.get?n.get(c):c),set(e){if(!$(e,c))return;const s=o.vnode.props;s&&(t in s||r in s||i in s)&&(`onUpdate:${t}`in s||`onUpdate:${r}`in s||`onUpdate:${i}`in s)||(c=e,l());const d=n.set?n.set(e):e;o.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||s:c,done:!1}:{done:!0}}},c}const Ts=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${L(t)}Modifiers`];function ks(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||s;let r=n;const i=t.startsWith("update:"),l=i&&Ts(o,t.slice(7));let c;l&&(l.trim&&(r=n.map((e=>S(e)?e.trim():e))),l.number&&(r=n.map(j)));let a=o[c=M(t)]||o[c=M(D(t))];!a&&i&&(a=o[c=M(L(t))]),a&&dn(a,e,6,r);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,dn(u,e,6,r)}}function As(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},l=!1;if(!b(e)){const o=e=>{const n=As(e,t,!0);n&&(l=!0,d(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?(m(s)?s.forEach((e=>i[e]=null)):d(i,s),C(e)&&o.set(e,i),i):(C(e)&&o.set(e,null),null)}function Is(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),f(e,t[0].toLowerCase()+t.slice(1))||f(e,L(t))||f(e,t))}function Ns(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:l,emit:c,render:a,renderCache:d,props:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,v=Pn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=mi(a.call(t,e,d,p,f,h,m)),b=l}else{const e=t;y=mi(e.length>1?e(p,{attrs:l,slots:i,emit:c}):e(p,null)),b=t.props?l:Rs(l)}}catch(t){zs.length=0,pn(t,e,1),y=ai(Ws)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(s&&e.some(u)&&(b=Os(b,s)),S=di(S,b,!1,!0))}return n.dirs&&(S=di(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Pn(v),y}const Rs=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Os=(e,t)=>{const n={};for(const o in e)u(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ds(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Ps=0;const Ms={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,s,i,l,c,a){if(null==e)!function(e,t,n,o,r,s,i,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bs(e,r,o,t,d,n,s,i,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,s,i),p.deps>0?($s(e,"onPending"),$s(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,s,i),Us(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,s,i,l,c,a);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,s,i,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,ri(p,m)?(c(m,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():g&&(v||(c(f,h,n,o,r,null,s,i,l),Us(d,h)))):(d.pendingId=Ps++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():(c(f,h,n,o,r,null,s,i,l),Us(d,h))):f&&ri(p,f)?(c(f,p,n,o,r,d,s,i,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0&&d.resolve()));else if(f&&ri(p,f))c(f,p,n,o,r,d,s,i,l),Us(d,p);else if($s(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Ps++,c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,i,l,c,a)}},hydrate:function(e,t,n,o,r,s,i,l,c){const a=t.suspense=Bs(t,o,n,e.parentNode,document.createElement("div"),null,r,s,i,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,s,i);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=Vs(o?n.default:n),e.ssFallback=o?Vs(n.fallback):ai(Ws)}};function $s(e,t){const n=e.props&&e.props[t];b(n)&&n()}function Bs(e,t,n,o,r,s,i,l,c,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?U(e.props.timeout):void 0,S=s,_={vnode:e,parent:t,parentComponent:n,namespace:i,container:o,hiddenContainer:r,deps:0,pendingId:Ps++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:i,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&i.transition&&"out-in"===i.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(i,u,s===S?f(r):s,0),wn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(s=f(r)),h(r,a,_,!0)),d||p(i,u,s,0)),Us(_,i),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||wn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),$s(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:s}=_;$s(t,"onFallback");const i=f(n),a=()=>{_.isInFallback&&(d(null,e,r,i,o,null,s,l,c),Us(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{pn(t,e,0)})).then((s=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Fi(e,s,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:f(e.subTree),_,i,n),c&&g(c),Fs(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function Vs(e){let t;if(b(e)){const n=Xs&&e._c;n&&(e._d=!1,Js()),e=e(),n&&(e._d=!0,t=Gs,Ys())}if(m(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function js(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):wn(e)}function Us(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Fs(o,r))}const Hs=Symbol.for("v-fgt"),qs=Symbol.for("v-txt"),Ws=Symbol.for("v-cmt"),Ks=Symbol.for("v-stc"),zs=[];let Gs=null;function Js(e=!1){zs.push(Gs=e?null:[])}function Ys(){zs.pop(),Gs=zs[zs.length-1]||null}let Qs,Xs=1;function Zs(e){Xs+=e,e<0&&Gs&&(Gs.hasOnce=!0)}function ei(e){return e.dynamicChildren=Xs>0?Gs||i:null,Ys(),Xs>0&&Gs&&Gs.push(e),e}function ti(e,t,n,o,r,s){return ei(ci(e,t,n,o,r,s,!0))}function ni(e,t,n,o,r){return ei(ai(e,t,n,o,r,!0))}function oi(e){return!!e&&!0===e.__v_isVNode}function ri(e,t){return e.type===t.type&&e.key===t.key}function si(e){Qs=e}const ii=({key:e})=>null!=e?e:null,li=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?S(e)||Ut(e)||b(e)?{i:Fn,r:e,k:t,f:!!n}:e:null);function ci(e,t=null,n=null,o=0,r=null,s=(e===Hs?0:1),i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&li(t),scopeId:Ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Fn};return l?(vi(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=S(n)?8:16),Xs>0&&!i&&Gs&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Gs.push(c),c}const ai=function(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Ro||(e=Ws),oi(e)){const o=di(e,t,!0);return n&&vi(o,n),Xs>0&&!s&&Gs&&(6&o.shapeFlag?Gs[Gs.indexOf(e)]=o:Gs.push(o)),o.patchFlag=-2,o}if(i=e,b(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=ui(t);let{class:e,style:n}=t;e&&!S(e)&&(t.class=X(e)),C(n)&&(Ft(n)&&!m(n)&&(n=d({},n)),t.style=z(n))}var i;return ci(e,t,n,o,r,S(e)?1:Ls(e)?128:(e=>e.__isTeleport)(e)?64:C(e)?4:b(e)?2:0,s,!0)};function ui(e){return e?Ft(e)||kr(e)?d({},e):e:null}function di(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:l,transition:c}=e,a=t?yi(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ii(a),ref:t&&t.ref?n&&s?m(s)?s.concat(li(t)):[s,li(t)]:li(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Hs?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&di(e.ssContent),ssFallback:e.ssFallback&&di(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&eo(u,c.clone(u)),u}function pi(e=" ",t=0){return ai(qs,null,e,t)}function hi(e,t){const n=ai(Ks,null,e);return n.staticCount=t,n}function fi(e="",t=!1){return t?(Js(),ni(Ws,null,e)):ai(Ws,null,e)}function mi(e){return null==e||"boolean"==typeof e?ai(Ws):m(e)?ai(Hs,null,e.slice()):"object"==typeof e?gi(e):ai(qs,null,String(e))}function gi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:di(e)}function vi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),vi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kr(t)?3===o&&Fn&&(1===Fn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Fn}}else b(t)?(t={default:t,_ctx:Fn},n=32):(t=String(t),64&o?(n=16,t=[pi(t)]):n=8);e.children=t,e.shapeFlag|=n}function yi(...e){const t={};for(let n=0;nxi||Fn;let wi,Ti;{const e=q(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};wi=t("__VUE_INSTANCE_SETTERS__",(e=>xi=e)),Ti=t("__VUE_SSR_SETTERS__",(e=>Oi=e))}const ki=e=>{const t=xi;return wi(e),e.scope.on(),()=>{e.scope.off(),wi(t)}},Ai=()=>{xi&&xi.scope.off(),wi(null)};function Ii(e){return 4&e.vnode.shapeFlag}let Ni,Ri,Oi=!1;function Di(e,t=!1,n=!1){t&&Ti(t);const{props:o,children:r}=e.vnode,s=Ii(e);!function(e,t,n,o=!1){const r={},s=Tr();e.propsDefaults=Object.create(null),Ar(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:kt(r):e.type.props?e.props=r:e.props=s,e.attrs=s}(e,o,s,t),Ur(e,r,n);const i=s?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bi(e):null,r=ki(e);Ie();const s=un(o,e,0,[e.props,n]);if(Ne(),r(),x(s)){if(s.then(Ai,Ai),t)return s.then((n=>{Fi(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=s}else Fi(e,s,t)}else Mi(e,t)}(e,t):void 0;return t&&Ti(!1),i}function Fi(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:C(t)&&(e.setupState=Qt(t)),Mi(e,n)}function Li(e){Ni=e,Ri=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Wo))}}const Pi=()=>!Ni;function Mi(e,t,n){const o=e.type;if(!e.render){if(!t&&Ni&&!o.render){const t=o.template||ur(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:i}=o,l=d(d({isCustomElement:n,delimiters:s},r),i);o.render=Ni(t,l)}}e.render=o.render||l,Ri&&Ri(e)}{const t=ki(e);Ie();try{!function(e){const t=ur(e),n=e.proxy,o=e.ctx;lr=!1,t.beforeCreate&&cr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:f,updated:g,activated:v,deactivated:y,beforeDestroy:S,beforeUnmount:_,destroyed:x,unmounted:E,render:w,renderTracked:T,renderTriggered:k,errorCaptured:A,serverPrefetch:I,expose:N,inheritAttrs:R,components:O,directives:D,filters:F}=t;if(u&&function(e,t){m(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=C(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ut(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),i)for(const e in i){const t=i[e];b(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);C(t)&&(e.data=Tt(t))}if(lr=!0,s)for(const e in s){const t=s[e],r=b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):l,i=!b(t)&&b(t.set)?t.set.bind(n):l,c=Ui({get:r,set:i});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)ar(c[e],o,n,e);if(a){const e=b(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{Cr(t,e[t])}))}function L(e,t){m(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&cr(d,e,"c"),L(yo,p),L(bo,h),L(So,f),L(_o,g),L(ao,v),L(uo,y),L(ko,A),L(To,T),L(wo,k),L(Co,_),L(xo,E),L(Eo,I),m(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===l&&(e.render=w),null!=R&&(e.inheritAttrs=R),O&&(e.components=O),D&&(e.directives=D)}(e)}finally{Ne(),t()}}}const $i={get:(e,t)=>(Ve(e,0,""),e[t])};function Bi(e){return{attrs:new Proxy(e.attrs,$i),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Vi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qt(Pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Uo?Uo[n](e):void 0,has:(e,t)=>t in e||t in Uo})):e.proxy}function ji(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}const Ui=(e,t)=>function(e,t,n=!1){let o,r;const s=b(e);return s?(o=e,r=l):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Oi);function Hi(e,t,n){const o=arguments.length;return 2===o?C(t)&&!m(t)?oi(t)?ai(e,null,[t]):ai(e,t):ai(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&oi(n)&&(n=[n]),ai(e,t,n))}function qi(){}function Wi(e,t,n,o){const r=n[o];if(r&&Ki(r,e))return r;const s=t();return s.memo=e.slice(),s.cacheIndex=o,n[o]=s}function Ki(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gs&&Gs.push(e),!0}const zi="3.4.33",Gi=l,Ji={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Yi=Rn,Qi=function e(t,n){var o,r;Rn=t,Rn?(Rn.enabled=!0,On.forEach((({event:e,args:t})=>Rn.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Rn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Dn=!0,On=[])}),3e3)):(Dn=!0,On=[])},Xi={createComponentInstance:Ci,setupComponent:Di,renderComponentRoot:Ns,setCurrentRenderingInstance:Pn,isVNode:oi,normalizeVNode:mi,getComponentPublicInstance:Vi},Zi=null,el=null,tl=null,nl="undefined"!=typeof document?document:null,ol=nl&&nl.createElement("template"),rl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?nl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?nl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?nl.createElement(e,{is:n}):nl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>nl.createTextNode(e),createComment:e=>nl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{ol.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=ol.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},sl="transition",il="animation",ll=Symbol("_vtc"),cl=(e,{slots:t})=>Hi(Jn,hl(e),t);cl.displayName="Transition";const al={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ul=cl.props=d({},zn,al),dl=(e,t=[])=>{m(e)?e.forEach((e=>e(...t))):e&&e(...t)},pl=e=>!!e&&(m(e)?e.some((e=>e.length>1)):e.length>1);function hl(e){const t={};for(const n in e)n in al||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:a=i,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(C(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:S,onLeave:_,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:w=b,onAppearCancelled:T=S}=t,k=(e,t,n)=>{gl(e,t?u:l),gl(e,t?a:i),n&&n()},A=(e,t)=>{e._isLeaving=!1,gl(e,p),gl(e,f),gl(e,h),t&&t()},I=e=>(t,n)=>{const r=e?w:b,i=()=>k(t,e,n);dl(r,[t,i]),vl((()=>{gl(t,e?c:s),ml(t,e?u:l),pl(r)||bl(t,o,g,i)}))};return d(t,{onBeforeEnter(e){dl(y,[e]),ml(e,s),ml(e,i)},onBeforeAppear(e){dl(E,[e]),ml(e,c),ml(e,a)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);ml(e,p),ml(e,h),xl(),vl((()=>{e._isLeaving&&(gl(e,p),ml(e,f),pl(_)||bl(e,o,v,n))})),dl(_,[e,n])},onEnterCancelled(e){k(e,!1),dl(S,[e])},onAppearCancelled(e){k(e,!0),dl(T,[e])},onLeaveCancelled(e){A(e),dl(x,[e])}})}function fl(e){return U(e)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[ll]||(e[ll]=new Set)).add(t)}function gl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[ll];n&&(n.delete(t),n.size||(e[ll]=void 0))}function vl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let yl=0;function bl(e,t,n,o){const r=e._endId=++yl,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:c}=Sl(e,t);if(!i)return o();const a=i+"end";let u=0;const d=()=>{e.removeEventListener(a,p),s()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${sl}Delay`),s=o(`${sl}Duration`),i=_l(r,s),l=o(`${il}Delay`),c=o(`${il}Duration`),a=_l(l,c);let u=null,d=0,p=0;return t===sl?i>0&&(u=sl,d=i,p=s.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(i,a),u=d>0?i>a?sl:il:null,p=u?u===sl?s.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===sl&&/\b(transform|all)(,|$)/.test(o(`${sl}Property`).toString())}}function _l(e,t){for(;e.lengthCl(t)+Cl(e[n]))))}function Cl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const El=Symbol("_vod"),wl=Symbol("_vsh"),Tl={beforeMount(e,{value:t},{transition:n}){e[El]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):kl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),kl(e,!0),o.enter(e)):o.leave(e,(()=>{kl(e,!1)})):kl(e,t))},beforeUnmount(e,{value:t}){kl(e,t)}};function kl(e,t){e.style.display=t?e[El]:"none",e[wl]=!t}const Al=Symbol("");function Il(e){const t=Ei();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Rl(e,n)))},o=()=>{const o=e(t.proxy);Nl(t.subTree,o),n(o)};bo((()=>{vs(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Nl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Nl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Rl(e.el,t);else if(e.type===Hs)e.children.forEach((e=>Nl(e,t)));else if(e.type===Ks){let{el:n,anchor:o}=e;for(;n&&(Rl(n,t),n!==o);)n=n.nextSibling}}function Rl(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[Al]=o}}const Ol=/(^|;)\s*display\s*:/,Dl=/\s*!important$/;function Fl(e,t,n){if(m(n))n.forEach((n=>Fl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Pl[t];if(n)return n;let o=D(t);if("filter"!==o&&o in e)return Pl[t]=o;o=P(o);for(let n=0;nUl||(Hl.then((()=>Ul=0)),Ul=Date.now()),Wl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Kl(e,t,n){const o=no(e,t);class r extends Jl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Kl(e,t,Rc),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Jl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Cn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Nc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=U(this._props[e])),(r||(r=Object.create(null)))[D(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=D(e);this._numberProps&&this._numberProps[n]&&(t=U(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(L(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(L(e),t+""):t||this.removeAttribute(L(e))))}_update(){Nc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ai(this._def,d({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Jl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Yl(e="$style"){{const t=Ei();if(!t)return s;const n=t.type.__cssModules;if(!n)return s;return n[e]||s}}const Ql=new WeakMap,Xl=new WeakMap,Zl=Symbol("_moveCb"),ec=Symbol("_enterCb"),tc={name:"TransitionGroup",props:d({},ul,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ei(),o=Wn();let r,s;return _o((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[ll];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(o);const{hasTransform:i}=Sl(o);return s.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(nc),r.forEach(oc);const o=r.filter(rc);xl(),o.forEach((e=>{const n=e.el,o=n.style;ml(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Zl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Zl]=null,gl(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const i=Lt(e),l=hl(i);let c=i.tag||Hs;if(r=[],s)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>B(t,e):t};function ic(e){e.target.composing=!0}function lc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cc=Symbol("_assign"),ac={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[cc]=sc(r);const s=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=j(o)),e[cc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",lc),Bl(e,"change",lc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(e[cc]=sc(i),e.composing)return;const l=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},uc={deep:!0,created(e,t,n){e[cc]=sc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=mc(e),o=e.checked,r=e[cc];if(m(t)){const e=le(t,n),s=-1!==e;if(o&&!s)r(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),r(n)}}else if(v(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(gc(e,o))}))},mounted:dc,beforeUpdate(e,t,n){e[cc]=sc(n),dc(e,t,n)}};function dc(e,{value:t,oldValue:n},o){e._modelValue=t,m(t)?e.checked=le(t,o.props.value)>-1:v(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,gc(e,!0)))}const pc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[cc]=sc(n),Bl(e,"change",(()=>{e[cc](mc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[cc]=sc(o),t!==n&&(e.checked=ie(t,o.props.value))}},hc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=v(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(mc(e)):mc(e)));e[cc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,Cn((()=>{e._assigning=!1}))})),e[cc]=sc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[cc]=sc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=m(t);if(!o||r||v(t)){for(let n=0,s=e.options.length;nString(e)===String(i))):le(t,i)>-1}else s.selected=t.has(i);else if(ie(mc(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function mc(e){return"_value"in e?e._value:e.value}function gc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const vc={created(e,t,n){bc(e,t,n,null,"created")},mounted(e,t,n){bc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){bc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){bc(e,t,n,o,"updated")}};function yc(e,t){switch(e){case"SELECT":return hc;case"TEXTAREA":return ac;default:switch(t){case"checkbox":return uc;case"radio":return pc;default:return ac}}}function bc(e,t,n,o,r){const s=yc(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,o)}const Sc=["ctrl","shift","alt","meta"],_c={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Sc.some((n=>e[`${n}Key`]&&!t.includes(n)))},Cc=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=L(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},wc=d({patchProp:(e,t,n,o,r,s)=>{const i="svg"===r;"class"===t?function(e,t,n){const o=e[ll];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,r=S(n);let s=!1;if(n&&!r){if(t)if(S(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Fl(o,t,"")}else for(const e in t)null==n[e]&&Fl(o,e,"");for(const e in n)"display"===e&&(s=!0),Fl(o,e,n[e])}else if(r){if(t!==n){const e=o[Al];e&&(n+=";"+e),o.cssText=n,s=Ol.test(n)}}else t&&e.removeAttribute("style");El in e&&(e[El]=s?o.display:"",e[wl]&&(o.display="none"))}(e,n,o):a(t)?u(t)||function(e,t,n,o,r=null){const s=e[Vl]||(e[Vl]={}),i=s[t];if(o&&i)i.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):L(e.slice(2)),t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();dn(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ql(),n}(o,r);Bl(e,n,i,l)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),s[t]=void 0)}}(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Wl(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Wl(t)||!S(n))&&t in e}(e,t,o,i))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,s=null==n?"":String(n);return r===s&&"_value"in e||(e.value=s),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=se(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||$l(e,t,o,i,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),$l(e,t,o,i))}},rl);let Tc,kc=!1;function Ac(){return Tc||(Tc=ss(wc))}function Ic(){return Tc=kc?Tc:is(wc),kc=!0,Tc}const Nc=(...e)=>{Ac().render(...e)},Rc=(...e)=>{Ic().hydrate(...e)},Oc=(...e)=>{const t=Ac().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Lc(e);if(!o)return;const r=t._component;b(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,Fc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},Dc=(...e)=>{const t=Ic().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Lc(e);if(t)return n(t,!0,Fc(t))},t};function Fc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Lc(e){return S(e)?document.querySelector(e):e}let Pc=!1;const Mc=()=>{Pc||(Pc=!0,ac.getSSRProps=({value:e})=>({value:e}),pc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},uc.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&le(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},vc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=yc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Tl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},$c=Symbol(""),Bc=Symbol(""),Vc=Symbol(""),jc=Symbol(""),Uc=Symbol(""),Hc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),Kc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Jc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Xc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),sa=Symbol(""),ia=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),fa=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),Ca=Symbol(""),xa={[$c]:"Fragment",[Bc]:"Teleport",[Vc]:"Suspense",[jc]:"KeepAlive",[Uc]:"BaseTransition",[Hc]:"openBlock",[qc]:"createBlock",[Wc]:"createElementBlock",[Kc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Jc]:"createTextVNode",[Yc]:"createStaticVNode",[Qc]:"resolveComponent",[Xc]:"resolveDynamicComponent",[Zc]:"resolveDirective",[ea]:"resolveFilter",[ta]:"withDirectives",[na]:"renderList",[oa]:"renderSlot",[ra]:"createSlots",[sa]:"toDisplayString",[ia]:"mergeProps",[la]:"normalizeClass",[ca]:"normalizeStyle",[aa]:"normalizeProps",[ua]:"guardReactiveProps",[da]:"toHandlers",[pa]:"camelize",[ha]:"capitalize",[fa]:"toHandlerKey",[ma]:"setBlockTracking",[ga]:"pushScopeId",[va]:"popScopeId",[ya]:"withCtx",[ba]:"unref",[Sa]:"isRef",[_a]:"withMemo",[Ca]:"isMemoSame"},Ea={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wa(e,t,n,o,r,s,i,l=!1,c=!1,a=!1,u=Ea){return e&&(l?(e.helper(Hc),e.helper(La(e.inSSR,a))):e.helper(Fa(e.inSSR,a)),i&&e.helper(ta)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:i,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ta(e,t=Ea){return{type:17,loc:t,elements:e}}function ka(e,t=Ea){return{type:15,loc:t,properties:e}}function Aa(e,t){return{type:16,loc:Ea,key:S(e)?Ia(e,!0):e,value:t}}function Ia(e,t=!1,n=Ea,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Na(e,t=Ea){return{type:8,loc:t,children:e}}function Ra(e,t=[],n=Ea){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ea){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Da(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ea}}function Fa(e,t){return e||t?Kc:zc}function La(e,t){return e||t?qc:Wc}function Pa(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Fa(o,e.isComponent)),t(Hc),t(La(o,e.isComponent)))}const Ma=new Uint8Array([123,123]),$a=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function Va(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||Va(e)}function Ua(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Qa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return Vc;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Uc}}const Xa=/^\d|[^\$\w\xA0-\uFFFF]/,Za=e=>!Xa.test(e),eu=/[A-Za-z_$\xA0-\uFFFF]/,tu=/[\.\?\w$\xA0-\uFFFF]/,nu=/\s+[.[]\s*|\s*[.[]\s+/g,ou=e=>{e=e.trim().replace(nu,(e=>e.trim()));let t=0,n=[],o=0,r=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===o))}return n}function mu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const gu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,vu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:c,isPreTag:c,isCustomElement:c,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let yu=vu,bu=null,Su="",_u=null,Cu=null,xu="",Eu=-1,wu=-1,Tu=0,ku=!1,Au=null;const Iu=[],Nu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Ma,this.delimiterClose=$a,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Ma,this.delimiterClose=$a}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Va(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Ha.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Iu,{onerr:Yu,ontext(e,t){Lu(Du(e,t),e,t)},ontextentity(e,t,n){Lu(e,t,n)},oninterpolation(e,t){if(ku)return Lu(Du(e,t),e,t);let n=e+Nu.delimiterOpen.length,o=t-Nu.delimiterClose.length;for(;Va(Su.charCodeAt(n));)n++;for(;Va(Su.charCodeAt(o-1));)o--;let r=Du(n,o);r.includes("&")&&(r=yu.decodeEntities(r,!1)),Wu({type:5,content:Ju(r,!1,Ku(n,o)),loc:Ku(e,t)})},onopentagname(e,t){const n=Du(e,t);_u={type:1,tag:n,ns:yu.getNamespace(n,Iu[0],yu.ns),tagType:0,props:[],children:[],loc:Ku(e-1,t),codegenNode:void 0}},onopentagend(e){Fu(e)},onclosetag(e,t){const n=Du(e,t);if(!yu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Yu(24,Iu[0].loc.start.offset);for(let n=0;n<=e;n++)Pu(Iu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Yu(2,t)},onattribend(e,t){if(_u&&Cu){if(zu(Cu.loc,t),0!==e)if(xu.includes("&")&&(xu=yu.decodeEntities(xu,!0)),6===Cu.type)"class"===Cu.name&&(xu=qu(xu).trim()),1!==e||xu||Yu(13,t),Cu.value={type:2,content:xu,loc:1===e?Ku(Eu,wu):Ku(Eu-1,wu+1)},Nu.inSFCRoot&&"template"===_u.tag&&"lang"===Cu.name&&xu&&"html"!==xu&&Nu.enterRCDATA(Ua("{const r=t.start.offset+n;return Ju(e,!1,Ku(r,r+e.length),0,o?1:0)},l={source:i(s.trim(),n.indexOf(s,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Ru);if(u){c=c.replace(Ru,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=i(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=i(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=i(c,a,!0)),l}(Cu.exp));let t=-1;"bind"===Cu.name&&(t=Cu.modifiers.indexOf("sync"))>-1&&Ka("COMPILER_V_BIND_SYNC",yu,Cu.loc,Cu.rawName)&&(Cu.name="model",Cu.modifiers.splice(t,1))}7===Cu.type&&"pre"===Cu.name||_u.props.push(Cu)}xu="",Eu=wu=-1},oncomment(e,t){yu.comments&&Wu({type:3,content:Du(e,t),loc:Ku(e-4,t+3)})},onend(){const e=Su.length;for(let t=0;t64&&n<91||Qa(e)||yu.isBuiltInComponent&&yu.isBuiltInComponent(e)||yu.isNativeTag&&!yu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Ka("COMPILER_INLINE_TEMPLATE",yu,n.loc)&&e.children.length&&(n.value={type:2,content:Du(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Mu(e,t){let n=e;for(;Su.charCodeAt(n)!==t&&n>=0;)n--;return n}const $u=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&od(r,t)>=2){const n=rd(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Zu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Zu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:l,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){S(e)&&(e=Ia(e)),k.hoists.push(e);const t=Ia(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ea}}(k.cached++,e,t)};return k.filters=new Set,k}(e,t);id(e,n),t.hoistStatic&&Qu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Xu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Pa(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;W[64],e.codegenNode=wa(t,n($c),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(cu))return;const s=[];for(let i=0;i`${xa[e]}: _${xa[e]}`;function ud(e,t,{helper:n,push:o,newline:r,isTS:s}){const i=n("filter"===t?ea:"component"===t?Qc:Zc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),pd(e,t,n),n&&t.deindent(),t.push("]")}function pd(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let i=0;ie||"null"))}([s,i,l,f,a]),t),n(")"),d&&n(")"),u&&(n(", "),hd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=S(e.callee)?e.callee:o(e.callee);r&&n(cd),n(s+"(",-2,e),pd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const l=i.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),i?(c&&n("return "),m(i)?dd(i,t):hd(i,t)):l&&hd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:i,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Za(n.content);e&&i("("),fd(n,t),e&&i(")")}else i("("),hd(n,t),i(")");s&&l(),t.indentLevel++,s||i(" "),i("? "),hd(o,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===r.type;u||t.indentLevel++,hd(r,t),u||t.indentLevel--,s&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ma)}(-1),`),i(),n("(")),n(`_cache[${e.index}] = `),hd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),i(),n(`${o(ma)}(1),`),i(),n(`_cache[${e.index}]`),s()),n(")")}(e,t);break;case 21:pd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function md(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ja(28,t.loc)),t.exp=Ia("true",!1,o)}if("if"===t.name){const r=yd(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const i=r[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Ja(30,e.loc)),n.removeNode();const r=yd(e,t);i.branches.push(r);const s=o&&o(i,r,!1);id(r,n),s&&s(),n.currentNode=null}else n.onError(Ja(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),i=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(o)e.codegenNode=bd(t,i,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=bd(t,i+e.branches.length-1,n)}}}))));function yd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ru(e,"for")?e.children:[e],userKey:su(e,"key"),isTemplateIf:n}}function bd(e,t,n){return e.condition?Da(e.condition,Sd(e,t,n),Ra(n.helper(Gc),['""',"true"])):Sd(e,t,n)}function Sd(e,t,n){const{helper:o}=n,r=Aa("key",Ia(`${t}`,!1,Ea,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return hu(e,r,n),e}{let t=64;return W[64],wa(n,o($c),ka([r]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(l=e).type&&l.callee===_a?l.arguments[1].returns:l;return 13===t.type&&Pa(t,n),hu(t,r,n),e}var l}const _d=(e,t,n)=>{const{modifiers:o,loc:r}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Ja(52,s.loc)),{props:[Aa(s,Ia("",!0,r))]};Cd(e),i=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),o.includes("camel")&&(4===s.type?s.isStatic?s.content=D(s.content):s.content=`${n.helperString(pa)}(${s.content})`:(s.children.unshift(`${n.helperString(pa)}(`),s.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(s,"."),o.includes("attr")&&xd(s,"^")),{props:[Aa(s,i)]}},Cd=(e,t)=>{const n=e.arg,o=D(n.content);e.exp=Ia(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ed=ld("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ja(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ja(32,t.loc));wd(r);const{addIdentifiers:s,removeIdentifiers:i,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:au(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const h=o&&o(p);return()=>{l.vFor--,h&&h()}}(e,t,n,(t=>{const s=Ra(o(na),[t.source]),i=au(e),l=ru(e,"memo"),c=su(e,"key",!1,!0);c&&7===c.type&&!c.exp&&Cd(c);const a=c&&(6===c.type?c.value?Ia(c.value.content,!0):void 0:c.exp),u=c&&a?Aa("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=wa(n,o($c),void 0,s,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=uu(e)?e:i&&1===e.children.length&&uu(e.children[0])?e.children[0]:null;if(f?(c=f.codegenNode,i&&u&&hu(c,u,n)):h?c=wa(n,o($c),u?ka([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,i&&u&&hu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Hc),r(La(n.inSSR,c.isComponent))):r(Fa(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Hc),o(La(n.inSSR,c.isComponent))):o(Fa(n.inSSR,c.isComponent))),l){const e=Oa(Td(t.parseResult,[Ia("_cached")]));e.body={type:21,body:[Na(["const _memo = (",l.exp,")"]),Na(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(Ca)}(_cached, _memo)) return _cached`]),Na(["const _item = ",c]),Ia("_item.memo = _memo"),Ia("return _item")],loc:Ea},s.arguments.push(e,Ia("_cache"),Ia(String(n.cached++)))}else s.arguments.push(Oa(Td(t.parseResult),c,!0))}}))}));function wd(e,t){e.finalized||(e.finalized=!0)}function Td({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ia("_".repeat(t+1),!1)))}([e,t,n,...o])}const kd=Ia("undefined",!1),Ad=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ru(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Id=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Nd(e,t,n=Id){t.helper(ya);const{children:o,loc:r}=e,s=[],i=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ru(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ya(e)&&(l=!0),s.push(Aa(e||Ia("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e{const s=n(e,void 0,o,r);return t.compatConfig&&(s.isNonScopedSlot=!0),Aa("default",s)};a?d.length&&d.some((e=>Dd(e)))&&(u?t.onError(Ja(39,d[0].loc)):s.push(e(void 0,d))):s.push(e(void 0,o))}const f=l?2:Od(e.children)?3:1;let m=ka(s.concat(Aa("_",Ia(f+"",!1))),r);return i.length&&(m=Ra(t.helper(ra),[m,Ta(i)])),{slots:m,hasDynamicSlots:l}}function Rd(e,t,n){const o=[Aa("name",e),Aa("fn",t)];return null!=n&&o.push(Aa("key",Ia(String(n),!0))),ka(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let s=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),s=su(e,"is",!1,!0);if(s)if(r||Wa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&Ia(s.value.content,!0):(e=s.exp,e||(e=Ia("is",!1,s.loc))),e)return Ra(t.helper(Xc),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(o=s.value.content.slice(4));const i=Qa(o)||t.isBuiltInComponent(o);return i?(n||t.helper(i),i):(t.helper(Qc),t.components.add(o),mu(o,"component"))}(e,t):`"${n}"`;const i=C(s)&&s.callee===Xc;let l,c,a,u,d,p=0,h=i||s===Bc||s===Vc||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Pd(e,t,void 0,r,i);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?Ta(o.map((e=>function(e,t){const n=[],o=Fd.get(e);o?n.push(t.helperString(o)):(t.helper(Zc),t.directives.add(e.name),n.push(mu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ia("true",!1,r);n.push(ka(e.modifiers.map((e=>Aa(e,t))),r))}return Ta(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(s===jc&&(h=!0,p|=1024),r&&s!==Bc&&s!==jc){const{slots:n,hasDynamicSlots:o}=Nd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&s!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===ed(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,v=!1,y=!1,b=!1,S=!1,C=!1;const x=[],E=e=>{u.length&&(d.push(ka(Md(u),l)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(Aa(Ia("ref_for",!0),Ia("true")))},T=({key:e,value:n})=>{if(Ya(e)){const s=e.content,i=a(s);if(!i||o&&!r||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||I(s)||(b=!0),i&&I(s)&&(C=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&ed(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||x.includes(s)||x.push(s),!o||"class"!==s&&"style"!==s||x.includes(s)||x.push(s)}else S=!0};for(let r=0;r1?Ra(t.helper(ia),d,l):d[0]):u.length&&(k=ka(Md(u),l)),S?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),x.length&&(m|=8),b&&(m|=32)),f||0!==m&&32!==m||!(g||C||p.length>0)||(m|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(uu(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:s}=Pd(e,t,r,!1,!1);n=o,s.length&&t.onError(Ja(36,s[0].loc))}return{slotName:o,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;s&&(i[2]=s,l=3),n.length&&(i[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),i.splice(l),e.codegenNode=Ra(t.helper(oa),i,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ud=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:i}=e;let l;if(e.exp||s.length||n.onError(Ja(35,r)),4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ia(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(D(e)):`on:${e}`,!0,i.loc)}else l=Na([`${n.helperString(fa)}(`,i,")"]);else l=i,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=ou(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Na([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Aa(l,c||Ia("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Hd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ru(e,"once",!0)){if(qd.has(e)||t.inVOnce||t.inSSR)return;return qd.add(e),t.inVOnce=!0,t.helper(ma),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Kd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ja(41,e.loc)),zd();const s=o.loc.source,i=4===o.type?o.content:s,l=n.bindingMetadata[s];if("props"===l||"props-aliased"===l)return n.onError(Ja(44,o.loc)),zd();if(!i.trim()||!ou(i))return n.onError(Ja(42,o.loc)),zd();const c=r||Ia("modelValue",!0),a=r?Ya(r)?`onUpdate:${D(r.content)}`:Na(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Na([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Aa(c,e.exp),Aa(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Za(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ya(r)?`${r.content}Modifiers`:Na([r,' + "Modifiers"']):"modelModifiers";d.push(Aa(n,Ia(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Jd=(e,t)=>{Wa("COMPILER_FILTERS",t)&&(5===e.type?Yd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Yd(e.exp,t)})))};function Yd(e,t){if(4===e.type)Qd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===i?(f=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(f,s).trim()),f=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==f&&g(),m.length){for(s=0;s{if(1===e.type){const n=ru(e,"memo");if(!n||Zd.has(e))return;return Zd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Pa(o,t),e.codegenNode=Ra(t.helper(_a),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function tp(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ja(47)):o&&n(Ja(48)),t.cacheHandlers&&n(Ja(49)),t.scopeId&&!o&&n(Ja(50));const r=d({},t,{prefixIdentifiers:!1}),s=S(e)?function(e,t){if(Nu.reset(),_u=null,Cu=null,xu="",Eu=-1,wu=-1,Iu.length=0,Su=e,yu=d({},vu),t){let e;for(e in t)null!=t[e]&&(yu[e]=t[e])}Nu.mode="html"===yu.parseMode?1:"sfc"===yu.parseMode?2:0,Nu.inXML=1===yu.ns||2===yu.ns;const n=t&&t.delimiters;n&&(Nu.delimiterOpen=Ua(n[0]),Nu.delimiterClose=Ua(n[1]));const o=bu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ea}}(0,e);return Nu.parse(Su),o.loc=Ku(0,e.length),o.children=ju(o.children),bu=null,o}(e,r):e,[i,l]=[[Wd,vd,ep,Ed,Jd,Vd,Ld,Ad,Hd],{on:Ud,bind:_d,model:Kd}];return sd(s,d({},r,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:d({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:i,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:i,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!s&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:s,runtimeModuleName:i,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Kc,zc,Gc,Jc,Yc].filter((e=>u.includes(e))).map(ad).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:s,mode:i}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ud(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ud(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?hd(e.codegenNode,n):r("null"),h&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(s,r)}const np=Symbol(""),op=Symbol(""),rp=Symbol(""),sp=Symbol(""),ip=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol(""),dp=Symbol("");var pp;let hp;pp={[np]:"vModelRadio",[op]:"vModelCheckbox",[rp]:"vModelText",[sp]:"vModelSelect",[ip]:"vModelDynamic",[lp]:"withModifiers",[cp]:"withKeys",[ap]:"vShow",[up]:"Transition",[dp]:"TransitionGroup"},Object.getOwnPropertySymbols(pp).forEach((e=>{xa[e]=pp[e]}));const fp={parseMode:"html",isVoidTag:oe,isNativeTag:e=>ee(e)||te(e)||ne(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return hp||(hp=document.createElement("div")),t?(hp.innerHTML=`
    `,hp.children[0].getAttribute("foo")):(hp.innerHTML=e,hp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?up:"TransitionGroup"===e||"transition-group"===e?dp:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},mp=(e,t)=>{const n=Q(e);return Ia(JSON.stringify(n),!1,t,3)};function gp(e,t){return Ja(e,t)}const vp=r("passive,once,capture"),yp=r("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),bp=r("left,right"),Sp=r("onkeyup,onkeydown,onkeypress",!0),_p=(e,t)=>Ya(e)&&"onclick"===e.content.toLowerCase()?Ia(t,!0):4!==e.type?Na(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Cp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ia("style",!0,t.loc),exp:mp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Ep={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(gp(53,r)),t.children.length&&(n.onError(gp(54,r)),t.children.length=0),{props:[Aa(Ia("innerHTML",!0,r),o||Ia("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(gp(55,r)),t.children.length&&(n.onError(gp(56,r)),t.children.length=0),{props:[Aa(Ia("textContent",!0),o?ed(o,n)>0?o:Ra(n.helperString(sa),[o],r):Ia("",!0))]}},model:(e,t,n)=>{const o=Kd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(gp(58,e.arg.loc));const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let i=rp,l=!1;if("input"===r||s){const o=su(t,"type");if(o){if(7===o.type)i=ip;else if(o.value)switch(o.value.content){case"radio":i=np;break;case"checkbox":i=op;break;case"file":l=!0,n.onError(gp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=ip)}else"select"===r&&(i=sp);l||(o.needRuntime=n.helper(i))}else n.onError(gp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Ud(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],s=[];for(let i=0;i{const{exp:o,loc:r}=e;return o||n.onError(gp(61,r)),{props:[],needRuntime:n.helper(ap)}}},wp=new WeakMap;Li((function(e,t){if(!S(e)){if(!e.nodeType)return l;e=e.innerHTML}const n=e,r=function(e){let t=wp.get(null!=e?e:s);return t||(t=Object.create(null),wp.set(null!=e?e:s,t)),t}(t),i=r[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=d({hoistStatic:!0,onError:void 0,onWarn:l},t);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return tp(e,d({},fp,t,{nodeTransforms:[Cp,...xp,...t.nodeTransforms||[]],directiveTransforms:d({},Ep,t.directiveTransforms||{}),transformHoist:null}))}(e,c),u=new Function("Vue",a)(o);return u._rc=!0,r[n]=u}))}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={exports:{}};return n[e](s,s.exports,r),s.exports}r.m=n,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>({245:"form-editor-view",776:"form-browser-view",951:"restore-fields-view"}[e]+".chunk.js"),r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="leaf_vue:",r.l=(n,o,s,i)=>{if(e[n])e[n].push(o);else{var l,c;if(void 0!==s)for(var a=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(h);var r=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach((e=>e(o))),t)return t(o)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),c&&document.head.appendChild(l)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={763:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var s=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=s);var i=r.p+r.u(t),l=new Error;r.l(i,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",l.name="ChunkLoadError",l.type=s,l.request=i,o[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,s,[i,l,c]=n,a=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);c&&c(r)}for(t&&t(n);ae.length)&&(t=e.length);for(var n=0,o=Array(t);n{{ message }}
    '}},created:function(){var e=this;this.getEnabledCategories(),document.addEventListener("keydown",(function(t){"escape"===((null==t?void 0:t.key)||"").toLowerCase()&&!0===e.showFormDialog&&e.closeFormDialog()}))},methods:{truncateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length<=t?e:e.slice(0,t)+n},decodeAndStripHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,XSSHelpers.stripAllTags(t.innerText)},updateChosenAttributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"List Selection",o=document.querySelector("#".concat(e,"_chosen input.chosen-search-input")),r=document.querySelector("#".concat(e,"-chosen-search-results"));null!==o&&(o.setAttribute("role","combobox"),o.setAttribute("aria-labelledby",t)),null!==r&&(r.setAttribute("title",n),r.setAttribute("role","listbox"))},showLastUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(new Date).toLocaleString(),n=document.getElementById(e);null!==n&&(n.style.display="flex",n.innerText="last modified: ".concat(t),n.style.border="2px solid #20a0f0",setTimeout((function(){n.style.border="2px solid transparent"}),750))},setDefaultAjaxResponseMessage:function(){var e=this;$.ajax({type:"POST",url:"ajaxIndex.php?a=checkstatus",data:{CSRFToken},success:function(t){e.ajaxResponseMessage=t||""},error:function(e){return reject(e)}})},initializeOrgSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"employee",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s="group"===(e=e.toLowerCase())?"group#":"#",i={};(i="group"===e?new groupSelector("".concat(n,"orgSel_").concat(t)):"position"===e?new positionSelector("".concat(n,"orgSel_").concat(t)):new employeeSelector("".concat(n,"orgSel_").concat(t))).apiPath="".concat(this.orgchartPath,"/api/"),i.rootPath="".concat(this.orgchartPath,"/"),i.basePath="".concat(this.orgchartPath,"/"),i.setSelectHandler((function(){var t=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));null!==t&&(t.value="".concat(s)+i.selection)})),"function"==typeof r&&i.setResultHandler((function(){return r(i)})),i.initialize();var l=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));""!==o&&null!==l&&(l.value="".concat(s)+o)},getEnabledCategories:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.appIsLoadingCategories=!0;try{fetch("".concat(this.APIroot,"formStack/categoryList/allWithStaples")).then((function(n){n.json().then((function(n){for(var o in e.allStapledFormCatIDs={},e.categories={},n)e.categories[n[o].categoryID]=n[o],n[o].stapledFormIDs.forEach((function(t){e.allStapledFormCatIDs[t]=void 0===e.allStapledFormCatIDs[t]?1:e.allStapledFormCatIDs[t]+1}));e.appIsLoadingCategories=!1,t&&!0===/^form_[0-9a-f]{5}$/i.test(t)&&e.$router.push({name:"category",query:{formID:t}})}))}))}catch(e){console.log("error getting categories",e)}},getSiteSettings:function(){var e=this;try{fetch("".concat(this.APIroot,"system/settings")).then((function(t){t.json().then((function(t){e.siteSettings=t,+(null==t?void 0:t.leafSecure)>=1&&e.getSecureFormsInfo()}))}))}catch(e){console.log("error getting site settings",e)}},fetchLEAFSRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t,n){var o=new LeafFormQuery;o.setRootURL("../"),o.addTerm("categoryID","=","leaf_secure"),!0===e?(o.addTerm("stepID","=","resolved"),o.join("recordResolutionData")):o.addTerm("stepID","!=","resolved"),o.onSuccess((function(e){return t(e)})),o.execute()}))},getSecureFormsInfo:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list?x-filterData=timeAdded"),success:function(e){},error:function(e){return console.log(e)}}),this.fetchLEAFSRequests(!0)];Promise.all(t).then((function(t){var n=t[0],o=t[1];e.checkLeafSRequestStatus(n,o)})).catch((function(e){return console.log("an error has occurred",e)}))},checkLeafSRequestStatus:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!1,r=0;for(var s in n)"approved"===n[s].recordResolutionData.lastStatus.toLowerCase()&&n[s].recordResolutionData.fulfillmentTime>r&&(r=n[s].recordResolutionData.fulfillmentTime);var i=new Date(1e3*parseInt(r));for(var l in t)if(new Date(t[l].timeAdded).getTime()>i.getTime()){o=!0;break}!0===o?(this.showCertificationStatus=!0,this.fetchLEAFSRequests(!1).then((function(t){if(0===Object.keys(t).length)e.secureStatusText="Forms have been modified.",e.secureBtnText="Please Recertify Your Site",e.secureBtnLink="../report.php?a=LEAF_start_leaf_secure_certification";else{var n=t[Object.keys(t)[0]].recordID;e.secureStatusText="Re-certification in progress.",e.secureBtnText="Check Certification Progress",e.secureBtnLink="../index.php?a=printview&recordID="+n}})).catch((function(e){return console.log("an error has occurred",e)}))):this.showCertificationStatus=!1},updateCategoriesProperty:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";void 0!==this.categories[e][t]&&(this.categories[e][t]=n)},updateStapledFormsInfo:function(){var e,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!0===(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?(this.categories[o].stapledFormIDs=this.categories[o].stapledFormIDs.filter((function(e){return e!==n})),(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[n])>0?this.allStapledFormCatIDs[n]=this.allStapledFormCatIDs[n]-1:console.log("check staple calc")):(this.allStapledFormCatIDs[n]=void 0===this.allStapledFormCatIDs[n]?1:this.allStapledFormCatIDs[n]+1,this.categories[o].stapledFormIDs=Array.from(new Set([].concat(function(e){if(Array.isArray(e))return i(e)}(t=this.categories[o].stapledFormIDs)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[n]))))},addNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.categories[e]=t},removeCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";delete this.categories[e]},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"},this.formSaveFunction=null,this.dialogData=null},lastModalTab:function(e){if(!1===(null==e?void 0:e.shiftKey)){var t=document.getElementById("leaf-vue-dialog-close");null!==t&&(t.focus(),e.preventDefault())}},setCustomDialogTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setFormDialogComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)},checkRequiredData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=Object.keys((null==this?void 0:this.dialogData)||{});e.forEach((function(e){n.includes(e)||t.push(e)})),t.length>0&&console.warn("expected dialogData key was not found",t)},openConfirmDeleteFormDialog:function(){this.setCustomDialogTitle("

    Delete this form

    "),this.setFormDialogComponent("confirm-delete-dialog"),this.dialogButtonText={confirm:"Yes",cancel:"No"},this.showFormDialog=!0},openStapleFormsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={mainFormID:e},this.setCustomDialogTitle("

    Editing Stapled Forms

    "),this.setFormDialogComponent("staple-form-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openEditCollaboratorsDialog:function(){this.setCustomDialogTitle("

    Customize Write Access

    "),this.setFormDialogComponent("edit-collaborators-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openIfThenDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled",n=this.truncateText(this.decodeAndStripHTML(t),35);this.dialogData={indicatorID:e},this.dialogButtonText={confirm:"Save",cancel:"Close"},this.setCustomDialogTitle('

    Conditions For '.concat(n," (").concat(e,")

    ")),this.setFormDialogComponent("conditions-editor-dialog"),this.showFormDialog=!0},openIndicatorEditingDialog:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=null===t&&null===n?"

    Adding new Section

    ":null===t?"

    Adding question to ".concat(n,"

    "):"

    Editing indicatorID ".concat(t,"

    "),this.dialogData={indicatorID:t,parentID:n,indicator:o},this.setCustomDialogTitle(e),this.setFormDialogComponent("indicator-editing-dialog"),this.showFormDialog=!0},openAdvancedOptionsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.dialogData={indicatorID:e.indicatorID,html:(null==e?void 0:e.html)||"",htmlPrint:(null==e?void 0:e.htmlPrint)||""},this.setCustomDialogTitle("

    Advanced Options for indicator ".concat(e.indicatorID,"

    ")),this.setFormDialogComponent("advanced-options-dialog"),this.showFormDialog=!0},openNewFormDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={parentID:e};var t=""===e?"

    New Form

    ":"

    New Internal Use Form

    ";this.setCustomDialogTitle(t),this.setFormDialogComponent("new-form-dialog"),this.showFormDialog=!0},openImportFormDialog:function(){this.setCustomDialogTitle("

    Import Form

    "),this.setFormDialogComponent("import-form-dialog"),this.dialogButtonText={confirm:"Import",cancel:"Close"},this.showFormDialog=!0},openFormHistoryDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={historyType:"form",historyID:e},this.setCustomDialogTitle("

    Form History

    "),this.setFormDialogComponent("history-dialog"),this.showFormDialog=!0}}},c="undefined"!=typeof document;const a=Object.assign;function u(e,t){const n={};for(const o in t){const r=t[o];n[o]=p(r)?r.map(e):e(r)}return n}const d=()=>{},p=Array.isArray,h=/#/g,f=/&/g,m=/\//g,g=/=/g,v=/\?/g,y=/\+/g,b=/%5B/g,S=/%5D/g,_=/%5E/g,C=/%60/g,x=/%7B/g,E=/%7C/g,w=/%7D/g,T=/%20/g;function k(e){return encodeURI(""+e).replace(E,"|").replace(b,"[").replace(S,"]")}function A(e){return k(e).replace(y,"%2B").replace(T,"+").replace(h,"%23").replace(f,"%26").replace(C,"`").replace(x,"{").replace(w,"}").replace(_,"^")}function I(e){return null==e?"":function(e){return k(e).replace(h,"%23").replace(v,"%3F")}(e).replace(m,"%2F")}function N(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const R=/\/$/,O=e=>e.replace(R,"");function D(e,t,n="/"){let o,r={},s="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),s=t.slice(c+1,l>-1?l:t.length),r=e(s)),l>-1&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let s,i,l=n.length-1;for(s=0;s1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(s).join("/")}(null!=o?o:t,n),{fullPath:o+(s&&"?")+s+i,path:o,query:r,hash:N(i)}}function F(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function L(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function P(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!M(e[n],t[n]))return!1;return!0}function M(e,t){return p(e)?B(e,t):p(t)?B(t,e):e===t}function B(e,t){return p(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var j,U;!function(e){e.pop="pop",e.push="push"}(j||(j={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(U||(U={}));const H=/^[^#]+#/;function q(e,t){return e.replace(H,"#")+t}const W=()=>({left:window.scrollX,top:window.scrollY});function K(e,t){return(history.state?history.state.position-t:-1)+e}const z=new Map;let G=()=>location.protocol+"//"+location.host;function J(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let t=r.includes(e.slice(s))?e.slice(s).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),F(n,"")}return F(n,e)+o+r}function Y(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?W():null}}function Q(e){return"string"==typeof e||"symbol"==typeof e}const X=Symbol("");var Z;function ee(e,t){return a(new Error,{type:e,[X]:!0},t)}function te(e,t){return e instanceof Error&&X in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Z||(Z={}));const ne="[^/]+?",oe={sensitive:!1,strict:!1,start:!0,end:!0},re=/[.+*?^${}()[\]/\\]/g;function se(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ce={type:0,value:""},ae=/[a-zA-Z0-9_]/;function ue(e,t,n){const o=function(e,t){const n=a({},oe,t),o=[];let r=n.start?"^":"";const s=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;ca(e,t.meta)),{})}function me(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function ge({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ve(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&A(e))):[o&&A(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function be(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=p(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Se=Symbol(""),_e=Symbol(""),Ce=Symbol(""),xe=Symbol(""),Ee=Symbol("");function we(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Te(e,t,n,o,r,s=e=>e()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var s;!1===e?c(ee(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(s=e)||s&&"object"==typeof s?c(ee(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),l())},u=s((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function ke(e,t,n,o,r=e=>e()){const s=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(i=c)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(c.__vccOpts||c)[t];i&&s.push(Te(i,n,o,l,e,r))}else{let i=c();s.push((()=>i.then((s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const i=(c=s).__esModule||"Module"===c[Symbol.toStringTag]?s.default:s;var c;l.components[e]=i;const a=(i.__vccOpts||i)[t];return a&&Te(a,n,o,l,e,r)()}))))}}var i;return s}function Ae(e){const t=(0,s.WQ)(Ce),n=(0,s.WQ)(xe),o=(0,s.EW)((()=>{const n=(0,s.R1)(e.to);return t.resolve(n)})),r=(0,s.EW)((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],s=n.matched;if(!r||!s.length)return-1;const i=s.findIndex(L.bind(null,r));if(i>-1)return i;const l=Ne(e[t-2]);return t>1&&Ne(r)===l&&s[s.length-1].path!==l?s.findIndex(L.bind(null,e[t-2])):i})),i=(0,s.EW)((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!p(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),l=(0,s.EW)((()=>r.value>-1&&r.value===n.matched.length-1&&P(n.params,o.value.params)));return{route:o,href:(0,s.EW)((()=>o.value.href)),isActive:i,isExactActive:l,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[(0,s.R1)(e.replace)?"replace":"push"]((0,s.R1)(e.to)).catch(d):Promise.resolve()}}}const Ie=(0,s.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ae,setup(e,{slots:t}){const n=(0,s.Kh)(Ae(e)),{options:o}=(0,s.WQ)(Ce),r=(0,s.EW)((()=>({[Re(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Re(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,s.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Re=(e,t,n)=>null!=e?e:null!=t?t:n;function Oe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const De=(0,s.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,s.WQ)(Ee),r=(0,s.EW)((()=>e.route||o.value)),i=(0,s.WQ)(_e,0),l=(0,s.EW)((()=>{let e=(0,s.R1)(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),c=(0,s.EW)((()=>r.value.matched[l.value]));(0,s.Gt)(_e,(0,s.EW)((()=>l.value+1))),(0,s.Gt)(Se,c),(0,s.Gt)(Ee,r);const u=(0,s.KR)();return(0,s.wB)((()=>[u.value,c.value,e.name]),(([e,t,n],[o,r,s])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&L(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,l=c.value,d=l&&l.components[i];if(!d)return Oe(n.default,{Component:d,route:o});const p=l.props[i],h=p?!0===p?o.params:"function"==typeof p?p(o):p:null,f=(0,s.h)(d,a({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(l.instances[i]=null)},ref:u}));return Oe(n.default,{Component:f,route:o})||f}}});var Fe,Le=[{path:"/",name:"browser",component:function(){return r.e(776).then(r.bind(r,223))}},{path:"/forms",name:"category",component:function(){return r.e(245).then(r.bind(r,211))}},{path:"/restore",name:"restore",component:function(){return r.e(951).then(r.bind(r,315))}}],Pe=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const u=me(t,e),p=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)p.push(a({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let h,f;for(const t of p){const{path:a}=t;if(n&&"/"!==a[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(a&&o+a)}if(h=ue(t,n,u),o?o.alias.push(h):(f=f||h,f!==h&&f.alias.push(h),l&&e.name&&!he(h)&&s(e.name)),ge(h)&&i(h),c.children){const e=c.children;for(let t=0;t{s(f)}:d}function s(e){if(Q(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function i(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;ie(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(ge(t)&&0===ie(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!he(e)&&o.set(e.record.name,e)}return t=me({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,s,i,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw ee(1,{location:e});i=r.record.name,l=a(de(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&de(e.params,r.keys.map((e=>e.name)))),s=r.stringify(l)}else if(null!=e.path)s=e.path,r=n.find((e=>e.re.test(s))),r&&(l=r.parse(s),i=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw ee(1,{location:e,currentLocation:t});i=r.record.name,l=a({},t.params,e.params),s=r.stringify(l)}const c=[];let u=r;for(;u;)c.unshift(u.record),u=u.parent;return{name:i,path:s,params:l,matched:c,meta:fe(c)}},removeRoute:s,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||ve,o=e.stringifyQuery||ye,r=e.history,i=we(),l=we(),h=we(),f=(0,s.IJ)(V);let m=V;c&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=u.bind(null,(e=>""+e)),v=u.bind(null,I),y=u.bind(null,N);function b(e,s){if(s=a({},s||f.value),"string"==typeof e){const o=D(n,e,s.path),i=t.resolve({path:o.path},s),l=r.createHref(o.fullPath);return a(o,i,{params:y(i.params),hash:N(o.hash),redirectedFrom:void 0,href:l})}let i;if(null!=e.path)i=a({},e,{path:D(n,e.path,s.path).path});else{const t=a({},e.params);for(const e in t)null==t[e]&&delete t[e];i=a({},e,{params:v(t)}),s.params=v(s.params)}const l=t.resolve(i,s),c=e.hash||"";l.params=g(y(l.params));const u=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,a({},e,{hash:(d=c,k(d).replace(x,"{").replace(w,"}").replace(_,"^")),path:l.path}));var d;const p=r.createHref(u);return a({fullPath:u,hash:c,query:o===ye?be(e.query):e.query||{}},l,{redirectedFrom:void 0,href:p})}function S(e){return"string"==typeof e?D(n,e,f.value.path):a({},e)}function C(e,t){if(m!==e)return ee(8,{from:t,to:e})}function E(e){return A(e)}function T(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=S(o):{path:o},o.params={}),a({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function A(e,t){const n=m=b(e),r=f.value,s=e.state,i=e.force,l=!0===e.replace,c=T(n);if(c)return A(a(S(c),{state:"object"==typeof c?a({},s,c.state):s,force:i,replace:l}),t||n);const u=n;let d;return u.redirectedFrom=t,!i&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&L(t.matched[o],n.matched[r])&&P(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(d=ee(16,{to:u,from:r}),Y(r,r,!0,!1)),(d?Promise.resolve(d):F(u,r)).catch((e=>te(e)?te(e,2)?e:J(e):G(e,u,r))).then((e=>{if(e){if(te(e,2))return A(a({replace:l},S(e.to),{state:"object"==typeof e.to?a({},s,e.to.state):s,force:i}),t||u)}else e=$(u,r,!0,l,s);return M(u,r,e),e}))}function R(e,t){const n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function F(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iL(e,s)))?o.push(s):n.push(s));const l=e.matched[i];l&&(t.matched.find((e=>L(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=ke(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Te(o,e,t))}));const c=R.bind(null,e,t);return n.push(c),re(n).then((()=>{n=[];for(const o of i.list())n.push(Te(o,e,t));return n.push(c),re(n)})).then((()=>{n=ke(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Te(o,e,t))}));return n.push(c),re(n)})).then((()=>{n=[];for(const o of s)if(o.beforeEnter)if(p(o.beforeEnter))for(const r of o.beforeEnter)n.push(Te(r,e,t));else n.push(Te(o.beforeEnter,e,t));return n.push(c),re(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ke(s,"beforeRouteEnter",e,t,O),n.push(c),re(n)))).then((()=>{n=[];for(const o of l.list())n.push(Te(o,e,t));return n.push(c),re(n)})).catch((e=>te(e,8)?e:Promise.reject(e)))}function M(e,t,n){h.list().forEach((o=>O((()=>o(e,t,n)))))}function $(e,t,n,o,s){const i=C(e,t);if(i)return i;const l=t===V,u=c?history.state:{};n&&(o||l?r.replace(e.fullPath,a({scroll:l&&u&&u.scroll},s)):r.push(e.fullPath,s)),f.value=e,Y(e,t,n,l),J()}let B;let U,H=we(),q=we();function G(e,t,n){J(e);const o=q.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function J(e){return U||(U=!e,B||(B=r.listen(((e,t,n)=>{if(!oe.listening)return;const o=b(e),s=T(o);if(s)return void A(a(s,{replace:!0}),o).catch(d);m=o;const i=f.value;var l,u;c&&(l=K(i.fullPath,n.delta),u=W(),z.set(l,u)),F(o,i).catch((e=>te(e,12)?e:te(e,2)?(A(e.to,o).then((e=>{te(e,20)&&!n.delta&&n.type===j.pop&&r.go(-1,!1)})).catch(d),Promise.reject()):(n.delta&&r.go(-n.delta,!1),G(e,o,i)))).then((e=>{(e=e||$(o,i,!1))&&(n.delta&&!te(e,8)?r.go(-n.delta,!1):n.type===j.pop&&te(e,20)&&r.go(-1,!1)),M(o,i,e)})).catch(d)}))),H.list().forEach((([t,n])=>e?n(e):t())),H.reset()),e}function Y(t,n,o,r){const{scrollBehavior:i}=e;if(!c||!i)return Promise.resolve();const l=!o&&function(e){const t=z.get(e);return z.delete(e),t}(K(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return(0,s.dY)().then((()=>i(t,n,l))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>G(e,t,n)))}const X=e=>r.go(e);let Z;const ne=new Set,oe={currentRoute:f,listening:!0,addRoute:function(e,n){let o,r;return Q(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:b,options:e,push:E,replace:function(e){return E(a(S(e),{replace:!0}))},go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:l.add,afterEach:h.add,onError:q.add,isReady:function(){return U&&f.value!==V?Promise.resolve():new Promise(((e,t)=>{H.add([e,t])}))},install(e){e.component("RouterLink",Ie),e.component("RouterView",De),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,s.R1)(f)}),c&&!Z&&f.value===V&&(Z=!0,E(r.location).catch((e=>{})));const t={};for(const e in V)Object.defineProperty(t,e,{get:()=>f.value[e],enumerable:!0});e.provide(Ce,this),e.provide(xe,(0,s.Gc)(t)),e.provide(Ee,f);const n=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(m=V,B&&B(),B=null,f.value=V,Z=!1,U=!1),n()}}};function re(e){return e.reduce(((e,t)=>e.then((()=>O(t)))),Promise.resolve())}return oe}({history:((Fe=location.host?Fe||location.pathname+location.search:"").includes("#")||(Fe+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:J(e,n)},r={value:t.state};function s(o,s,i){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:G()+e+o;try{t[i?"replaceState":"pushState"](s,"",c),r.value=s}catch(e){console.error(e),n[i?"replace":"assign"](c)}}return r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const i=a({},r.value,t.state,{forward:e,scroll:W()});s(i.current,i,!0),s(e,a({},Y(o.value,e,null),{position:i.position+1},n),!1),o.value=e},replace:function(e,n){s(e,a({},t.state,Y(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(c){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),O(e)}(e)),n=function(e,t,n,o){let r=[],s=[],i=null;const l=({state:s})=>{const l=J(e,location),c=n.value,a=t.value;let u=0;if(s){if(n.value=l,t.value=s,i&&i===c)return void(i=null);u=a?s.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:j.pop,direction:u?u>0?U.forward:U.back:U.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(a({},e.state,{scroll:W()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){i=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=a({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:q.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(Fe)),routes:Le});Pe.beforeEach((function(e){if("/bodyarea"===e.path)return!1}));const Me=Pe;var $e=(0,s.Ef)(l);$e.use(Me),$e.mount("#vue-formeditor-app")})(); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js.LICENSE.txt b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js.LICENSE.txt index 8239bbf4e..8fef0cf76 100644 --- a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js.LICENSE.txt +++ b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js.LICENSE.txt @@ -1,7 +1,7 @@ /*! #__NO_SIDE_EFFECTS__ */ /** -* @vue/shared v3.4.31 +* @vue/shared v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ diff --git a/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js b/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js index 3cfe3b6c0..4a4fef502 100644 --- a/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[776],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},s=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n
    \n \n
    \n
    '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
    \n \n \n
    {{ userMessage }}
    \n
    '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=n,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
    \n
    \n
    Form Name (up to 50 characters)
    \n
    {{nameCharsRemaining}}
    \n
    \n \n
    \n
    Form Description (up to 255 characters)
    \n
    {{descrCharsRemaining}}
    \n
    \n \n
    '}},223:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var o=n(392),i=n(448),r=n(105);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t0},categoryName:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryName||"Untitled")},formDescription:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryDescription)},workflowDescription:function(){var e;return e=this.workflowID>0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow",this.decodeAndStripHTML(e)}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'\n \n \n {{ categoryName }}\n \n \n {{ formDescription }}\n {{ workflowDescription }}\n \n
    \n 📑 Stapled\n
    \n \n \n
    \n \n  Need to Know enabled\n
    \n \n \n \n \n \n '}},computed:{activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(m({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))}},template:''},g={name:"form-browser-view",components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:r.A,BrowserMenu:{name:"browser-menu",inject:["siteSettings","openNewFormDialog","openImportFormDialog"],template:'
    \n
    \n

    This is a Nationally Standardized Subordinate Site

    \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
    '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
    \n
    \n Loading... \n loading...\n
    \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
    '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[776],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},s=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n
    \n \n
    \n
    '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
    \n \n \n
    {{ userMessage }}
    \n
    '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=n,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
    \n
    \n \n
    {{nameCharsRemaining}}
    \n
    \n \n
    \n \n
    {{descrCharsRemaining}}
    \n
    \n \n
    '}},223:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var o=n(392),i=n(448),r=n(105);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t0},categoryName:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryName||"Untitled")},formDescription:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryDescription)},workflowDescription:function(){var e;return e=this.workflowID>0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow",this.decodeAndStripHTML(e)}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'\n \n \n {{ categoryName }}\n \n \n {{ formDescription }}\n {{ workflowDescription }}\n \n
    \n 📑 Stapled\n
    \n \n \n
    \n \n  Need to Know enabled\n
    \n \n \n \n \n \n '}},computed:{activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(m({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))}},template:''},g={name:"form-browser-view",components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:r.A,BrowserMenu:{name:"browser-menu",inject:["siteSettings","openNewFormDialog","openImportFormDialog"],template:'
    \n
    \n

    This is a Nationally Standardized Subordinate Site

    \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
    '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
    \n
    \n Loading... \n loading...\n
    \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
    '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js index 1cf6d99de..31a6ba17f 100644 --- a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n
    \n \n
    \n
    '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
    \n
    \n
    Form Name (up to 50 characters)
    \n
    {{nameCharsRemaining}}
    \n
    \n \n
    \n
    Form Description (up to 255 characters)
    \n
    {{descrCharsRemaining}}
    \n
    \n \n
    '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
    \n
    \n Loading...\n loading...\n
    \n
    \n
    \n \n \n
    \n
    '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
    \n Move column left\n Move column right
    \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
    \n \n \n
    \n
    \n \n \n \n \n
    \n
    '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(o){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
    \n Special access restrictions\n
    \n This prevents anyone from reading stored data unless they\'re part of the following groups.
    \n If a group is assigned below, everyone else will see "[protected data]".\n
    \n \n
    {{ statusMessageError }}
    \n \n
    \n \n
    \n
    '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
      ","
    1. ","
      ","

      ","","

      ","

      ","

      ","

      ","","
      "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),I=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),b=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),b&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),I&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
      \n
      \n \n \n
      \n \n \n
      \n
      \n
      \n
      \n \n
      {{shortlabelCharsRemaining}}
      \n
      \n \n
      \n
      \n
      \n \n
      \n \n \n
      \n
      \n

      Format Information

      \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
      \n
      \n
      \n \n \n
      \n
      \n \n \n
      \n
      \n \n
      \n
      \n  Columns ({{gridJSON.length}}):\n
      \n
      \n \n \n
      \n
      \n
      \n \n
      \n
      \n \n
      \n
      \n
      \n Attributes\n
      \n \n \n
      \n \n \n \n This field will be archived.  It can be
      re-enabled by using Restore Fields.\n
      \n \n Deleted items can only be re-enabled
      within 30 days by using Restore Fields.\n
      \n
      \n
      '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
      \n
      Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
      {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
      {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
      {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

      \n
      \n html (for pages where the user can edit data): \n \n
      \n
      \n
      \n htmlPrint (for pages where the user can only read data): \n \n
      \n \n
      \n
      \n
      \n Notice:
      \n

      Please go to LEAF Programmer\n to ensure continued access to this area.

      \n
      '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!=+t?alert(t):(e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
      \n

      Stapled forms will show up on the same page as the primary form.

      \n

      The order of the forms will be determined by the forms\' assigned sort values.

      \n
      \n
        \n
      • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
      • \n
      \n

      \n
      \n \n
      There are no available forms to merge
      \n
      \n
      '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(o){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
      \n

      What is this?

      \n

      With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

      \n
      \n

      To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

      \n
      \n

      The following groups can update {{formNameStripped()}} records at any time:

      \n
      \n \n \n

      \n
      \n \n
      There are no available groups to add
      \n
      \n
      '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
      \n
      Are you sure you want to delete this form?
      \n
      {{formName}}
      \n
      {{formDescription}}
      \n
      ⚠️ This form still has stapled forms attached
      \n
      '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue=""},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){"Invalid Token."!==e?(t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1)):console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var c=e.conditions.selectedChildValue.split("\n")||[];c=c.map((function(t){return e.decodeAndStripHTML(t).trim()}));var d=e.selectedChildValueOptions;d=d.map((function(e){return{value:e.trim(),label:e.trim(),selected:c.includes(e.trim())}}));var u=new Choices(i,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:d.filter((function(e){return""!==e.value}))});i.choicesjs=u}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
      \n \x3c!-- LOADING SPINNER --\x3e\n
      \n Loading... loading...\n
      \n
      \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
      \n
      Choose Delete to confirm removal, or cancel to return
      \n
      \n \n \n
      \n
      \n \n
      \n
      '};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
      \n

      This is a Nationally Standardized Subordinate Site

      \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
      '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}document.querySelector("#".concat(this.inputElID," ~ input.choices__input")).setAttribute("aria-labelledby",this.labelSelector);break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
      \n \n \n\n \n\n \n\n \n\n \n\n \n \n
      File Attachment(s)\n

      Select File to attach:

      \n \n
      \n\n \n\n \n \n \n \n \n\n \n
      '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},sensitiveImg:function(){return this.sensitive?''):""},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
      '.concat(this.formPage+1,"
      "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'📌 ':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
      \n
      \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n\n \x3c!-- TOOLBAR --\x3e\n
      \n\n
      \n \n \n \n \n
      \n \n 🔒\n ⛓️\n ⚙️\n
      \n
      \n
      \n \x3c!-- NAME --\x3e\n
      \n
      \n
      \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
      '},T={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
    2. \n
      \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
        \n\n \n \n
      \n
      \n \n
      \n
      \n
    3. '},_={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:this.needToKnow,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",e.needToKnow),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
      \n {{formID}}\n (internal for {{formParentID}})\n \n
      \n \n \n \n \n \n
      \n
      \n
      \n \n
      \n \n
      This is an Internal Form
      \n
      \n
      '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(P({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(P({},t.categories[i]));o.push(P(P({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(P(P({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=P(P({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):this.previewTree=[]},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=P({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
      \n
      \n Loading... \n loading...\n
      \n
      \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
      \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
      '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var o=document.activeElement;null===(null!==o?o.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n
      \n \n
      \n
      '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
      \n
      \n \n
      {{nameCharsRemaining}}
      \n
      \n \n
      \n \n
      {{descrCharsRemaining}}
      \n
      \n \n
      '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
      \n
      \n Loading...\n loading...\n
      \n
      \n
      \n \n \n
      \n
      '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
      \n Move column left\n Move column right
      \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
      \n \n \n
      \n
      \n \n \n \n \n
      \n
      '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(o){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
      \n Special access restrictions\n
      \n This prevents anyone from reading stored data unless they\'re part of the following groups.
      \n If a group is assigned below, everyone else will see "[protected data]".\n
      \n \n
      {{ statusMessageError }}
      \n \n
      \n \n
      \n
      '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
        ","
      1. ","
        ","

        ","","

        ","

        ","

        ","

        ","","
        "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),I=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),b=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),b&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),I&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
        \n
        \n \n \n
        \n \n \n
        \n
        \n
        \n
        \n \n
        {{shortlabelCharsRemaining}}
        \n
        \n \n
        \n
        \n
        \n \n
        \n \n \n
        \n
        \n

        Format Information

        \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
        \n
        \n
        \n \n \n
        \n
        \n \n \n
        \n
        \n \n
        \n
        \n  Columns ({{gridJSON.length}}):\n
        \n
        \n \n \n
        \n
        \n
        \n \n
        \n
        \n \n
        \n
        \n
        \n Attributes\n
        \n \n \n
        \n \n \n \n This field will be archived.  It can be
        re-enabled by using Restore Fields.\n
        \n \n Deleted items can only be re-enabled
        within 30 days by using Restore Fields.\n
        \n
        \n
        '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
        \n
        Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
        {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
        {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
        {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

        \n
        \n html (for pages where the user can edit data): \n \n
        \n
        \n
        \n htmlPrint (for pages where the user can only read data): \n \n
        \n \n
        \n
        \n
        \n Notice:
        \n

        Please go to LEAF Programmer\n to ensure continued access to this area.

        \n
        '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!=+t?alert(t):(e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
        \n

        Stapled forms will show up on the same page as the primary form.

        \n

        The order of the forms will be determined by the forms\' assigned sort values.

        \n
        \n
          \n
        • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
        • \n
        \n

        \n
        \n \n
        There are no available forms to merge
        \n
        \n
        '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(o){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
        \n

        What is this?

        \n

        With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

        \n
        \n

        To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

        \n
        \n

        The following groups can update {{formNameStripped()}} records at any time:

        \n
        \n \n \n

        \n
        \n \n
        There are no available groups to add
        \n
        \n
        '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
        \n
        Are you sure you want to delete this form?
        \n
        {{formName}}
        \n
        {{formDescription}}
        \n
        ⚠️ This form still has stapled forms attached
        \n
        '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue=""},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){"Invalid Token."!==e?(t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1)):console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var c=e.conditions.selectedChildValue.split("\n")||[];c=c.map((function(t){return e.decodeAndStripHTML(t).trim()}));var d=e.selectedChildValueOptions;d=d.map((function(e){return{value:e.trim(),label:e.trim(),selected:c.includes(e.trim())}}));var u=new Choices(i,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:d.filter((function(e){return""!==e.value}))});i.choicesjs=u}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
        \n \x3c!-- LOADING SPINNER --\x3e\n
        \n Loading... loading...\n
        \n
        \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
        \n
        Choose Delete to confirm removal, or cancel to return
        \n
        \n \n \n
        \n
        \n \n
        \n
        '};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
        \n

        This is a Nationally Standardized Subordinate Site

        \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
        '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}document.querySelector("#".concat(this.inputElID," ~ input.choices__input")).setAttribute("aria-labelledby",this.labelSelector);break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
        \n \n \n\n \n\n \n\n \n\n \n\n \n \n
        File Attachment(s)\n

        Select File to attach:

        \n \n
        \n\n \n\n \n \n \n \n \n\n \n
        '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},sensitiveImg:function(){return this.sensitive?''):""},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
        '.concat(this.formPage+1,"
        "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'📌 ':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
        \n
        \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n\n \x3c!-- TOOLBAR --\x3e\n
        \n\n
        \n \n \n \n \n
        \n \n 🔒\n ⛓️\n ⚙️\n
        \n
        \n
        \n \x3c!-- NAME --\x3e\n
        \n
        \n
        \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
        '},T={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
      2. \n
        \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
          \n\n \n \n
        \n
        \n \n
        \n
        \n
      3. '},_={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},mounted:function(){this.focusedFormIsSensitive&&0==+this.needToKnow&&(this.needToKnow=1,this.updateNeedToKnow())},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:this.needToKnow,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",e.needToKnow),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
        \n {{formID}}\n (internal for {{formParentID}})\n \n
        \n \n \n \n \n \n
        \n
        \n
        \n \n
        \n \n
        This is an Internal Form
        \n
        \n
        '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(P({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(P({},t.categories[i]));o.push(P(P({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(P(P({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=P(P({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):this.previewTree=[]},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=P({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
        \n
        \n Loading... \n loading...\n
        \n
        \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
        \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
        '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js index d2c75e7d7..4166b703a 100644 --- a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",s()},r=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=r,document.onmousemove=a})}},template:'\n
        \n \n
        \n
        '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
        \n \n \n
        {{ userMessage }}
        \n
        '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
        \n
        \n
        Form Name (up to 50 characters)
        \n
        {{nameCharsRemaining}}
        \n
        \n \n
        \n
        Form Description (up to 255 characters)
        \n
        {{descrCharsRemaining}}
        \n
        \n \n
        '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
        \n \n

        List of disabled fields available for recovery

        \n
        Deleted fields and associated data will be not display in the Report Builder
        \n\n
        \n Loading...\n loading...\n
        \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
        indicatorIDFormField NameInput FormatStatusRestore
        {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
        \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
        '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",s()},r=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=r,document.onmousemove=a})}},template:'\n
        \n \n
        \n
        '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
        \n \n \n
        {{ userMessage }}
        \n
        '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
        \n
        \n \n
        {{nameCharsRemaining}}
        \n
        \n \n
        \n \n
        {{descrCharsRemaining}}
        \n
        \n \n
        '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
        \n \n

        List of disabled fields available for recovery

        \n
        Deleted fields and associated data will be not display in the Report Builder
        \n\n
        \n Loading...\n loading...\n
        \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
        indicatorIDFormField NameInput FormatStatusRestore
        {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
        \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
        '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/site_designer/LEAF_Designer.css b/app/libs/js/vue-dest/site_designer/LEAF_Designer.css index cb5450a0c..0bcd67462 100644 --- a/app/libs/js/vue-dest/site_designer/LEAF_Designer.css +++ b/app/libs/js/vue-dest/site_designer/LEAF_Designer.css @@ -1 +1 @@ -body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}body{background-color:#f3f3f3}#site-designer-app{min-height:100vh}#site-designer-app main>section{margin:1rem}#site-designer-app h1,#site-designer-app h2,#site-designer-app h3,#site-designer-app h4,#site-designer-app p,#leaf_dialog_content h1,#leaf_dialog_content h2,#leaf_dialog_content h3,#leaf_dialog_content h4,#leaf_dialog_content p{margin:0;color:#000}#site-designer-app h2,#leaf_dialog_content h2{font-size:26px}#site-designer-app h3,#leaf_dialog_content h3{font-size:20px}#site-designer-app .btn-confirm.enabled,#leaf_dialog_content .btn-confirm.enabled{background-color:#a00;border:2px solid #000}#site-designer-app button:disabled,#leaf_dialog_content button:disabled{background-color:gray}#site-designer-app .designer_inputs,#leaf_dialog_content .designer_inputs{display:flex;gap:1rem;margin-bottom:.5rem}#site-designer-app .designer_inputs.wrap,#leaf_dialog_content .designer_inputs.wrap{flex-wrap:wrap}#site-designer-app #searchContainer,#leaf_dialog_content #searchContainer{margin-top:1rem}#site-designer-app #searchContainer table.leaf_grid,#leaf_dialog_content #searchContainer table.leaf_grid{border:1px solid #000;border-collapse:collapse;margin:2px;width:auto}#site-designer-app #searchContainer td,#leaf_dialog_content #searchContainer td{width:auto;vertical-align:middle;word-break:break-word;white-space:normal;background-color:#fff}#site-designer-app #searchContainer td[data-clickable=true]:hover,#site-designer-app #searchContainer td[data-clickable=true]:focus,#site-designer-app #searchContainer td[data-clickable=true]:active,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus,#leaf_dialog_content #searchContainer td[data-clickable=true]:active{background-color:#1476bd}#site-designer-app #searchContainer td[data-clickable=true]:hover>a,#site-designer-app #searchContainer td[data-clickable=true]:focus>a,#site-designer-app #searchContainer td[data-clickable=true]:active>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:active>a{color:#fff}#site-designer-app #searchContainer td>a,#leaf_dialog_content #searchContainer td>a{color:#004b76}#site-designer-app #searchContainer td span,#leaf_dialog_content #searchContainer td span{color:inherit;word-break:break-word !important}#site-designer-app #searchContainer th,#leaf_dialog_content #searchContainer th{background-color:#d1dfff}#site-designer-app #searchContainer .chosen-container a.chosen-single span,#leaf_dialog_content #searchContainer .chosen-container a.chosen-single span{min-width:120px;max-width:175px;color:#000}#site-designer-app #searchContainer .buttonNorm,#site-designer-app #searchContainer_getMoreResults,#leaf_dialog_content #searchContainer .buttonNorm,#leaf_dialog_content #searchContainer_getMoreResults{background-color:#e8f2ff;border:1px solid #000;border-radius:0;margin:2px;cursor:pointer;font-size:14px;padding:4px;white-space:nowrap;font-weight:normal}#site-designer-app #searchContainer .buttonNorm:hover,#site-designer-app #searchContainer .buttonNorm:focus,#site-designer-app #searchContainer .buttonNorm:active,#site-designer-app #searchContainer_getMoreResults:hover,#site-designer-app #searchContainer_getMoreResults:focus,#site-designer-app #searchContainer_getMoreResults:active,#leaf_dialog_content #searchContainer .buttonNorm:hover,#leaf_dialog_content #searchContainer .buttonNorm:focus,#leaf_dialog_content #searchContainer .buttonNorm:active,#leaf_dialog_content #searchContainer_getMoreResults:hover,#leaf_dialog_content #searchContainer_getMoreResults:focus,#leaf_dialog_content #searchContainer_getMoreResults:active{background-color:#1476bd}#site-designer-app #custom_menu_wrapper ul#menu,#leaf_dialog_content #custom_menu_wrapper ul#menu{margin:.75rem 1rem 0 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu.editMode{margin-top:1rem;padding:.75rem;border:1px solid #aab;background-color:#fff}#site-designer-app #custom_menu_wrapper ul#menu li,#leaf_dialog_content #custom_menu_wrapper ul#menu li{margin:.5rem 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu li.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu li.editMode{cursor:grab}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card{margin-left:.75rem;cursor:auto;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move{border:8px solid rgba(0,0,0,0)}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active{cursor:pointer}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up{margin-bottom:.25rem;border-top:0;border-bottom:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down{margin-top:.25rem;border-bottom:0;border-top:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card{padding:2px 6px 3px 6px}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status{cursor:auto;position:absolute;top:50%;right:0;transform:translate(calc(100% + 0.5rem), -60%);color:#005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden{color:#a00;font-weight:bold}#site-designer-app #design_card_modal textarea,#leaf_dialog_content #design_card_modal textarea{width:300px;height:60px;resize:none}#site-designer-app a.custom_menu_card,#leaf_dialog_content a.custom_menu_card{display:flex;align-items:center;width:300px;min-height:55px;padding:6px 8px;text-decoration:none;border:2px solid rgba(0,0,0,0);box-shadow:0 0 6px rgba(0,0,25,.3);transition:all .35s ease}#site-designer-app a.custom_menu_card:hover,#site-designer-app a.custom_menu_card:focus,#site-designer-app a.custom_menu_card:active,#leaf_dialog_content a.custom_menu_card:hover,#leaf_dialog_content a.custom_menu_card:focus,#leaf_dialog_content a.custom_menu_card:active{border:2px solid #fff !important;box-shadow:0 0 8px rgba(0,0,25,.6);z-index:10}#site-designer-app a.custom_menu_card .icon_choice,#leaf_dialog_content a.custom_menu_card .icon_choice{cursor:auto;margin-right:.5rem;width:50px;height:50px}#site-designer-app a.custom_menu_card .card_text,#leaf_dialog_content a.custom_menu_card .card_text{font-family:Verdana,sans-serif;display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:100%;min-height:55px}#site-designer-app a.custom_menu_card div.LEAF_custom *,#leaf_dialog_content a.custom_menu_card div.LEAF_custom *{margin:0;padding:0;font-family:inherit;color:inherit}#site-designer-app .disableClick,#leaf_dialog_content .disableClick{pointer-events:none} +body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#vue-formeditor-app a.btn-general,#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal;text-decoration:none}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#vue-formeditor-app a.btn-general:not(.disabled):hover,#vue-formeditor-app a.btn-general:not(.disabled):focus,#vue-formeditor-app a.btn-general:not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,a.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,a.btn-general:not(.disabled):hover,a.btn-general:not(.disabled):focus,a.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,a.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,a.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,a.btn-general a,a.btn-general a:visited,a.btn-general a:active,a.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem;border:0;background-color:rgba(0,0,0,0)}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}body{background-color:#f3f3f3}#site-designer-app{min-height:100vh}#site-designer-app main>section{margin:1rem}#site-designer-app h1,#site-designer-app h2,#site-designer-app h3,#site-designer-app h4,#site-designer-app p,#leaf_dialog_content h1,#leaf_dialog_content h2,#leaf_dialog_content h3,#leaf_dialog_content h4,#leaf_dialog_content p{margin:0;color:#000}#site-designer-app h2,#leaf_dialog_content h2{font-size:26px}#site-designer-app h3,#leaf_dialog_content h3{font-size:20px}#site-designer-app .btn-confirm.enabled,#leaf_dialog_content .btn-confirm.enabled{background-color:#a00;border:2px solid #000}#site-designer-app button:disabled,#leaf_dialog_content button:disabled{background-color:gray}#site-designer-app .designer_inputs,#leaf_dialog_content .designer_inputs{display:flex;gap:1rem;margin-bottom:.5rem}#site-designer-app .designer_inputs.wrap,#leaf_dialog_content .designer_inputs.wrap{flex-wrap:wrap}#site-designer-app #searchContainer,#leaf_dialog_content #searchContainer{margin-top:1rem}#site-designer-app #searchContainer table.leaf_grid,#leaf_dialog_content #searchContainer table.leaf_grid{border:1px solid #000;border-collapse:collapse;margin:2px;width:auto}#site-designer-app #searchContainer td,#leaf_dialog_content #searchContainer td{width:auto;vertical-align:middle;word-break:break-word;white-space:normal;background-color:#fff}#site-designer-app #searchContainer td[data-clickable=true]:hover,#site-designer-app #searchContainer td[data-clickable=true]:focus,#site-designer-app #searchContainer td[data-clickable=true]:active,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus,#leaf_dialog_content #searchContainer td[data-clickable=true]:active{background-color:#1476bd}#site-designer-app #searchContainer td[data-clickable=true]:hover>a,#site-designer-app #searchContainer td[data-clickable=true]:focus>a,#site-designer-app #searchContainer td[data-clickable=true]:active>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:active>a{color:#fff}#site-designer-app #searchContainer td>a,#leaf_dialog_content #searchContainer td>a{color:#004b76}#site-designer-app #searchContainer td span,#leaf_dialog_content #searchContainer td span{color:inherit;word-break:break-word !important}#site-designer-app #searchContainer th,#leaf_dialog_content #searchContainer th{background-color:#d1dfff}#site-designer-app #searchContainer .chosen-container a.chosen-single span,#leaf_dialog_content #searchContainer .chosen-container a.chosen-single span{min-width:120px;max-width:175px;color:#000}#site-designer-app #searchContainer .buttonNorm,#site-designer-app #searchContainer_getMoreResults,#leaf_dialog_content #searchContainer .buttonNorm,#leaf_dialog_content #searchContainer_getMoreResults{background-color:#e8f2ff;border:1px solid #000;border-radius:0;margin:2px;cursor:pointer;font-size:14px;padding:4px;white-space:nowrap;font-weight:normal}#site-designer-app #searchContainer .buttonNorm:hover,#site-designer-app #searchContainer .buttonNorm:focus,#site-designer-app #searchContainer .buttonNorm:active,#site-designer-app #searchContainer_getMoreResults:hover,#site-designer-app #searchContainer_getMoreResults:focus,#site-designer-app #searchContainer_getMoreResults:active,#leaf_dialog_content #searchContainer .buttonNorm:hover,#leaf_dialog_content #searchContainer .buttonNorm:focus,#leaf_dialog_content #searchContainer .buttonNorm:active,#leaf_dialog_content #searchContainer_getMoreResults:hover,#leaf_dialog_content #searchContainer_getMoreResults:focus,#leaf_dialog_content #searchContainer_getMoreResults:active{background-color:#1476bd}#site-designer-app #custom_menu_wrapper ul#menu,#leaf_dialog_content #custom_menu_wrapper ul#menu{margin:.75rem 1rem 0 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu.editMode{margin-top:1rem;padding:.75rem;border:1px solid #aab;background-color:#fff}#site-designer-app #custom_menu_wrapper ul#menu li,#leaf_dialog_content #custom_menu_wrapper ul#menu li{margin:.5rem 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu li.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu li.editMode{cursor:grab}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card{margin-left:.75rem;cursor:auto;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move{border:8px solid rgba(0,0,0,0)}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active{cursor:pointer}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up{margin-bottom:.25rem;border-top:0;border-bottom:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down{margin-top:.25rem;border-bottom:0;border-top:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card{padding:2px 6px 3px 6px}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status{cursor:auto;position:absolute;top:50%;right:0;transform:translate(calc(100% + 0.5rem), -60%);color:#005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden{color:#a00;font-weight:bold}#site-designer-app #design_card_modal textarea,#leaf_dialog_content #design_card_modal textarea{width:300px;height:60px;resize:none}#site-designer-app a.custom_menu_card,#leaf_dialog_content a.custom_menu_card{display:flex;align-items:center;width:300px;min-height:55px;padding:6px 8px;text-decoration:none;border:2px solid rgba(0,0,0,0);box-shadow:0 0 6px rgba(0,0,25,.3);transition:all .35s ease}#site-designer-app a.custom_menu_card:hover,#site-designer-app a.custom_menu_card:focus,#site-designer-app a.custom_menu_card:active,#leaf_dialog_content a.custom_menu_card:hover,#leaf_dialog_content a.custom_menu_card:focus,#leaf_dialog_content a.custom_menu_card:active{border:2px solid #fff !important;box-shadow:0 0 8px rgba(0,0,25,.6);z-index:10}#site-designer-app a.custom_menu_card .icon_choice,#leaf_dialog_content a.custom_menu_card .icon_choice{cursor:auto;margin-right:.5rem;width:50px;height:50px}#site-designer-app a.custom_menu_card .card_text,#leaf_dialog_content a.custom_menu_card .card_text{font-family:Verdana,sans-serif;display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:100%;min-height:55px}#site-designer-app a.custom_menu_card div.LEAF_custom *,#leaf_dialog_content a.custom_menu_card div.LEAF_custom *{margin:0;padding:0;font-family:inherit;color:inherit}#site-designer-app .disableClick,#leaf_dialog_content .disableClick{pointer-events:none} diff --git a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js index 1f61844d9..e04e2efad 100644 --- a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js +++ b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js @@ -1,2 +1,2 @@ /*! For license information please see LEAF_Designer.js.LICENSE.txt */ -(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Ci,BaseTransitionPropsValidators:()=>_i,Comment:()=>ji,DeprecationTypes:()=>Xs,EffectScope:()=>he,ErrorCodes:()=>cn,ErrorTypeStrings:()=>qs,Fragment:()=>Fi,KeepAlive:()=>ai,ReactiveEffect:()=>ye,Static:()=>$i,Suspense:()=>ro,Teleport:()=>Li,Text:()=>Bi,TrackOpTypes:()=>rn,Transition:()=>ol,TransitionGroup:()=>Xl,TriggerOpTypes:()=>sn,VueElement:()=>ql,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>is,compatUtils:()=>Js,computed:()=>Ms,createApp:()=>Ec,createBlock:()=>Xi,createCommentVNode:()=>cs,createElementBlock:()=>Ji,createElementVNode:()=>ns,createHydrationRenderer:()=>Ur,createPropsRestProxy:()=>Qo,createRenderer:()=>Vr,createSSRApp:()=>Tc,createSlots:()=>wo,createStaticVNode:()=>ls,createTextVNode:()=>ss,createVNode:()=>os,customRef:()=>Qt,defineAsyncComponent:()=>Do,defineComponent:()=>Eo,defineCustomElement:()=>Hl,defineEmits:()=>$o,defineExpose:()=>Ho,defineModel:()=>qo,defineOptions:()=>Vo,defineProps:()=>jo,defineSSRCustomElement:()=>Vl,defineSlots:()=>Uo,devtools:()=>Ws,effect:()=>Ce,effectScope:()=>fe,getCurrentInstance:()=>ys,getCurrentScope:()=>ge,getTransitionRawChildren:()=>Di,guardReactiveProps:()=>rs,h:()=>Bs,handleError:()=>dn,hasInjectionContext:()=>vr,hydrate:()=>wc,initCustomFormatter:()=>js,initDirectivesForSSR:()=>Nc,inject:()=>gr,isMemoSame:()=>Hs,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>As,isShallow:()=>Nt,isVNode:()=>Yi,markRaw:()=>Lt,mergeDefaults:()=>Xo,mergeModels:()=>Yo,mergeProps:()=>ps,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>di,onBeforeMount:()=>ho,onBeforeUnmount:()=>vo,onBeforeUpdate:()=>mo,onDeactivated:()=>pi,onErrorCaptured:()=>xo,onMounted:()=>fo,onRenderTracked:()=>_o,onRenderTriggered:()=>So,onScopeDispose:()=>ve,onServerPrefetch:()=>bo,onUnmounted:()=>yo,onUpdated:()=>go,openBlock:()=>Ui,popScopeId:()=>$n,provide:()=>mr,proxyRefs:()=>Xt,pushScopeId:()=>jn,queuePostFlushCb:()=>kn,reactive:()=>It,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ds,render:()=>Ic,renderList:()=>Io,renderSlot:()=>Oo,resolveComponent:()=>Xn,resolveDirective:()=>Zn,resolveDynamicComponent:()=>Qn,resolveFilter:()=>Ks,resolveTransitionHooks:()=>Ii,setBlockTracking:()=>Gi,setDevtoolsHook:()=>zs,setTransitionHooks:()=>Ti,shallowReactive:()=>wt,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>Yr,ssrUtils:()=>Gs,stop:()=>ke,toDisplayString:()=>ce,toHandlerKey:()=>L,toHandlers:()=>Ro,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>Zi,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Go,useCssModule:()=>Wl,useCssVars:()=>kl,useModel:()=>Fs,useSSRContext:()=>Qr,useSlots:()=>zo,useTransitionState:()=>bi,vModelCheckbox:()=>ic,vModelDynamic:()=>pc,vModelRadio:()=>lc,vModelSelect:()=>cc,vModelText:()=>rc,vShow:()=>_l,version:()=>Vs,warn:()=>Us,watch:()=>oi,watchEffect:()=>Zr,watchPostEffect:()=>ei,watchSyncEffect:()=>ti,withAsyncContext:()=>Zo,withCtx:()=>Vn,withDefaults:()=>Wo,withDirectives:()=>Co,withKeys:()=>bc,withMemo:()=>$s,withModifiers:()=>vc,withScopeId:()=>Hn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>C(e).slice(8,-1),I=e=>"[object Object]"===C(e),w=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),L=D((e=>e?`on${P(e)}`:"")),M=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(h(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":h(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||h(t)||I(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class he{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ie,t=pe;try{return Ie=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,Ie=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function ke(e){e.effect.stop()}let Ie=!0,we=0;const Ee=[];function Te(){Ee.push(Ie),Ie=!1}function De(){const e=Ee.pop();Ie=void 0===e||e}function Ae(){we++}function Oe(){for(we--;!we&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Me=new WeakMap,Fe=Symbol(""),Be=Symbol("");function je(e,t,n){if(Ie&&pe){let t=Me.get(e);t||Me.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Le((()=>t.delete(n)))),Ne(pe,o)}}function $e(e,t,n,o,r,i){const s=Me.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&h(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":h(e)?w(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),f(e)&&l.push(s.get(Be)));break;case"delete":h(e)||(l.push(s.get(Fe)),f(e)&&l.push(s.get(Be)));break;case"set":f(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return je(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?kt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=h(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||je(e,0,t),r?s:Ht(s)?i&&w(t)?s:s.value:S(s)?o?Et(s):It(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!h(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=h(e)&&w(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(M(t,i)&&je(r,0,t),je(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Mt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(M(e,r)&&je(o,0,e),je(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&je(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e){e=Pt(e);const t=Pt(this);return et(t).has.call(t,e)||(t.add(e),$e(t,"add",e,e)),this}function it(e,t){t=Pt(t);const n=Pt(this),{has:o,get:r}=et(n);let i=o.call(n,e);i||(e=Pt(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?M(t,s)&&$e(n,"set",e,t):$e(n,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&$e(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&$e(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Mt;return!e&&je(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=f(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Mt;return!t&&je(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ht,ft,mt]=dt();function gt(e,t){const n=t?e?mt:ft:e?ht:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,kt=new WeakMap;function It(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function wt(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,kt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Lt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Mt=e=>S(e)?It(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>$t(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!M(e._value,e._value=e.effect.run())||$t(e,4),jt(e),e.effect._dirtyLevel>=2&&$t(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function jt(e){var t;Ie&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Le((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function $t(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Mt(e)}get value(){return jt(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),M(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Mt(e),$t(this,4))}}function zt(e){$t(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>jt(this)),(()=>$t(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Me.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(h(e)){const r=[];for(let i=0;i>>1,r=fn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){hn=!1,pn=!0,fn.sort(Tn);try{for(mn=0;mny(e)?e.trim():e))),t&&(i=n.map(j))}let c,a=r[c=L(t)]||r[c=L(O(t))];!a&&s&&(a=r[c=L(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Pn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Pn(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(h(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ln(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}let Mn=null,Fn=null;function Bn(e){const t=Mn;return Mn=e,Fn=e&&e.type.__scopeId||null,t}function jn(e){Fn=e}function $n(){Fn=null}const Hn=e=>Vn;function Vn(e,t=Mn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Gi(-1);const r=Bn(t);let i;try{i=e(...n)}finally{Bn(r),o._d&&Gi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Un(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,v=Bn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=as(u.call(t,e,d,p,f,h,m)),b=l}else{const e=t;y=as(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:qn(l)}}catch(t){Hi.length=0,dn(t,e,1),y=os(ji)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Wn(b,i)),S=is(S,b,!1,!0))}return n.dirs&&(S=is(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Bn(v),y}const qn=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Wn=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function zn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let oo=0;const ro={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=so(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(io(e,"onPending"),io(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),ao(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,Qi(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(f,h,n,o,r,null,i,s,l),ao(d,h)))):(d.pendingId=oo++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(f,h,n,o,r,null,i,s,l),ao(d,h))):f&&Qi(p,f)?(c(f,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(f&&Qi(p,f))c(f,p,n,o,r,d,i,s,l),ao(d,p);else if(io(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=oo++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=so(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=lo(o?n.default:n),e.ssFallback=o?lo(n.fallback):os(ji)}};function io(e,t){const n=e.props&&e.props[t];v(n)&&n()}function so(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:oo++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?f(r):i,0),kn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=f(r)),h(r,a,_,!0)),d||p(s,u,i,0)),ao(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||kn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),io(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;io(t,"onFallback");const s=f(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),ao(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Ts(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:f(e.subTree),_,s,n),c&&g(c),Gn(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function lo(e){let t;if(v(e)){const n=zi&&e._c;n&&(e._d=!1,Ui()),e=e(),n&&(e._d=!0,t=Vi,qi())}if(h(e)){const t=function(e,t=!0){let n;for(let t=0;tt!==e))),e}function co(e,t){t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function ao(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Gn(o,r))}function uo(e,t,n=vs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=_s(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const po=e=>(t,n=vs)=>{ws&&"sp"!==e||uo(e,((...e)=>t(...e)),n)},ho=po("bm"),fo=po("m"),mo=po("bu"),go=po("u"),vo=po("bum"),yo=po("um"),bo=po("sp"),So=po("rtg"),_o=po("rtc");function xo(e,t=vs){uo("ec",e,t)}function Co(e,t){if(null===Mn)return e;const n=Ps(Mn),r=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Eo(e,t){return v(e)?(()=>a({name:e.name},t,{setup:e}))():e}const To=e=>!!e.type.__asyncLoader;function Do(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return Eo({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=vs;if(c)return()=>Ao(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||ws)return d().then((t=>()=>Ao(t,e))).catch((e=>(t(e),()=>o?os(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&ci(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?Ao(c,e):u.value&&o?os(o,{error:u.value}):n&&!p.value?os(n):void 0}})}function Ao(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=os(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}function Oo(e,t,n={},o,r){if(Mn.isCE||Mn.parent&&To(Mn.parent)&&Mn.parent.isCE)return"default"!==t&&(n.name=t),os("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ui();const s=i&&No(i(n)),l=Xi(Fi,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function No(e){return e.some((e=>!Yi(e)||e.type!==ji&&!(e.type===Fi&&!No(e.children))))?e:null}function Ro(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:L(o)]=e[o];return n}const Po=e=>e?Cs(e)?Ps(e):Po(e.parent):null,Lo=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Po(e.parent),$root:e=>Po(e.root),$emit:e=>e.emit,$options:e=>or(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>ii.bind(e)}),Mo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Fo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Mo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];er&&(l[t]=0)}}const d=Lo[t];let h,f;return d?("$attrs"===t&&je(e.attrs,0,""),d(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(l[t]=4,n[t]):(f=a.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Mo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Mo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Lo,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Bo=a({},Fo,{get(e,t){if(t!==Symbol.unscopables)return Fo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function jo(){return null}function $o(){return null}function Ho(e){}function Vo(e){}function Uo(){return null}function qo(){}function Wo(e,t){return null}function zo(){return Ko().slots}function Go(){return Ko().attrs}function Ko(){const e=ys();return e.setupContext||(e.setupContext=Rs(e))}function Jo(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Xo(e,t){const n=Jo(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?h(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function Yo(e,t){return e&&t?h(e)&&h(t)?e.concat(t):a({},Jo(e),Jo(t)):e||t}function Qo(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function Zo(e){const t=ys();let n=e();return xs(),_(n)&&(n=n.catch((e=>{throw _s(t),e}))),[n,()=>_s(t)]}let er=!0;function tr(e,t,n){un(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function nr(e,t,n,o){const r=o.includes(".")?si(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&oi(r,n)}else if(v(e))oi(r,e.bind(n));else if(S(e))if(h(e))e.forEach((e=>nr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&oi(r,o,e)}}function or(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>rr(c,e,s,!0))),rr(c,t,s)):c=t,S(t)&&i.set(t,c),c}function rr(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&rr(e,i,n,!0),r&&r.forEach((t=>rr(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=ir[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const ir={data:sr,props:ur,emits:ur,methods:ar,computed:ar,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:ar,directives:ar,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=cr(e[o],t[o]);return n},provide:sr,inject:function(e,t){return ar(lr(e),lr(t))}};function sr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function lr(e){if(h(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=os(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,Ps(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=fr;fr=l;try{return e()}finally{fr=t}}};return l}}let fr=null;function mr(e,t){if(vs){let n=vs.provides;const o=vs.parent&&vs.parent.provides;o===n&&(n=vs.provides=Object.create(o)),n[e]=t}}function gr(e,t,n=!1){const o=vs||Mn;if(o||fr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:fr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function vr(){return!!(vs||Mn||fr)}const yr={},br=()=>Object.create(yr),Sr=e=>Object.getPrototypeOf(e)===yr;function _r(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ln(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Cr(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(h(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const f=[c,u];return S(e)&&i.set(e,f),f}function kr(e){return"$"!==e[0]&&!E(e)}function Ir(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function wr(e,t){return Ir(e)===Ir(t)}function Er(e,t){return h(t)?t.findIndex((t=>wr(t,e))):v(t)&&wr(t,e)?0:-1}const Tr=e=>"_"===e[0]||"$stable"===e,Dr=e=>h(e)?e.map(as):[as(e)],Ar=(e,t,n)=>{if(t._n)return t;const o=Vn(((...e)=>Dr(t(...e))),n);return o._c=!1,o},Or=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Tr(n))continue;const r=e[n];if(v(r))t[n]=Ar(0,r,o);else if(null!=r){const e=Dr(r);t[n]=()=>e}}},Nr=(e,t)=>{const n=Dr(t);e.slots.default=()=>n},Rr=(e,t)=>{const n=e.slots=br();if(32&e.vnode.shapeFlag){const e=t._;e?(a(n,t),B(n,"_",e,!0)):Or(t,n)}else t&&Nr(e,t)},Pr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:(a(i,t),n||1!==e||delete i._):(s=!t.$stable,Or(t,i)),l=t}else t&&(Nr(e,t),l={default:1});if(s)for(const e in i)Tr(e)||null!=l[e]||delete i[e]};function Lr(e,t,n,r,i=!1){if(h(e))return void e.forEach(((e,o)=>Lr(e,t&&(h(t)?t[o]:t),n,r,i)));if(To(r)&&!i)return;const s=4&r.shapeFlag?Ps(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,f=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(f[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,f]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:f[a]:a.value;i?h(n)&&u(n,s):h(n)?n.includes(s)||n.push(s):t?(f[a]=[s],p(m,a)&&(m[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else t?(f[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(f[e.k]=l))};l?(r.id=-1,Hr(r,n)):r()}}}let Mr=!1;const Fr=()=>{Mr||(console.error("Hydration completed but contains mismatches."),Mr=!0)},Br=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,jr=e=>8===e.nodeType;function $r(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=jr(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:k,patchFlag:I}=o;let w=n.nodeType;o.el=n,-2===I&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Bi:3!==w?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Fr(),n.data=o.children),E=i(n));break;case ji:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==w||S?_():i(n);break;case $i:if(S&&(w=(n=i(n)).nodeType),1===w||3===w){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){f&&ko(t,null,n,"created");let a,b=!1;if(y(e)){b=Gr(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=h(e.firstChild,t,e,n,r,i,s);for(;o;){Fr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Fr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,void 0,n);else u.onClick&&o(e,"onClick",null,u.onClick,void 0,void 0,n);(a=u&&u.onVnodeBeforeMount)&&hs(a,n,t),f&&ko(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||f||b)&&co((()=>{a&&hs(a,n,t),b&&m.enter(e),f&&ko(t,null,n,"mounted")}),r)}return e.nextSibling},h=(e,t,o,i,s,l,c)=>{c=c||!!t.dynamicChildren;const u=t.children,p=u.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=h(i(e),t,d,n,o,r,l);return p&&jr(p)&&"]"===p.data?i(t.anchor=p):(Fr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Fr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,Br(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&jr(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),wn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),wn(),t._vnode=e},d]}const Hr=co;function Vr(e){return qr(e)}function Ur(e){return qr(e,$r)}function qr(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Qi(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Bi:b(e,t,n,o);break;case ji:S(e,t,n,o);break;case $i:null==e&&_(t,n,o,s);break;case Fi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Lr(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):w(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,f&&f.is,f),8&m?h(d,e.children):16&m&&I(e.children,d,null,r,i,Wr(e,s),a,u),v&&ko(e,null,r,"created"),k(d,e,e.scopeId,a,r),f){for(const t in f)"value"===t||E(t)||l(d,t,null,f[t],s,e.children,r,i,K);"value"in f&&l(d,"value",null,f.value,s),(p=f.onVnodeBeforeMount)&&hs(p,r,e)}v&&ko(e,null,r,"beforeMount");const y=Gr(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=f&&f.onVnodeMounted)||y||v)&&Hr((()=>{p&&hs(p,r,e),y&&g.enter(d),v&&ko(e,null,r,"mounted")}),i)},k=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||o,m=t.props||o;let g;if(n&&zr(n,!1),(g=m.onVnodeBeforeUpdate)&&hs(g,n,t,e),p&&ko(t,e,n,"beforeUpdate"),n&&zr(n,!0),d?T(e.dynamicChildren,d,a,n,r,Wr(t,i),s):c||j(e,t,a,null,n,r,Wr(t,i),s,!1),u>0){if(16&u)D(a,t,f,m,n,r,i);else if(2&u&&f.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",f.style,m.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{g&&hs(g,n,t,e),p&&ko(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(n!==r){if(n!==o)for(const o in n)E(o)||o in r||l(e,o,n[o],null,c,t.children,i,s,K);for(const o in r){if(E(o))continue;const a=r[o],u=n[o];a!==u&&"value"!==o&&l(e,o,u,a,c,t.children,i,s,K)}"value"in r&&l(e,"value",n.value,r.value,c)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),I(t.children||[],o,p,i,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(T(e.dynamicChildren,f,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&Kr(e,t,!0)):j(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):L(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=gs(e,o,r);if(ci(e)&&(l.ctx.renderer=Q),Es(l),l.asyncDep){if(r&&r.registerDep(l,M,s),!e.el){const e=l.subTree=os(ji);S(null,e,t,n)}}else M(l,e,t,n,r,i,s)},L=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||zn(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?zn(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&fn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},M=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=Jr(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;zr(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&hs(u,i,t,a),zr(e,!0);const p=Un(e),h=e.subTree;e.subTree=p,y(h,p,f(h.el),J(h),e,r,s),t.el=p.el,null===d&&Gn(e,p.el),o&&Hr(o,r),(u=t.props&&t.props.onVnodeUpdated)&&Hr((()=>hs(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=To(t);if(zr(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&hs(i,d,t),zr(e,!0),l&&ee){const n=()=>{e.subTree=Un(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Un(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&Hr(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;Hr((()=>hs(i,d,e)),r)}(256&t.shapeFlag||d&&To(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Hr(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.id=e.uid,zr(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;_r(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=xr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void $(a,d,n,o,r,i,s,l,c)}8&f?(16&u&&K(a,r,i),d!==a&&h(n,d)):16&u?16&f?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&h(n,""),16&f&&I(d,n,o,r,i,s,l,c))},$=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?K(e,i,s,!0,!1,p):I(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=a?us(t[u]):as(t[u]);if(!Qi(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=a?us(t[h]):as(t[h]);if(!Qi(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,h--}if(u>p){if(u<=h){const e=h+1,r=eh)for(;u<=p;)q(e[u],i,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=a?us(t[u]):as(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=h-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=h;v++)if(0===C[v-m]&&Qi(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const k=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=k.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Fi)if(l!==$i)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),Hr((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,memoIndex:h}=e;if(-2===d&&(r=!1),null!=l&&Lr(l,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!To(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&hs(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&ko(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&(i!==Fi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Fi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||f)&&Hr((()=>{g&&hs(g,t,e),f&&ko(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Fi)return void z(n,o);if(t===$i)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;Xr(c),Xr(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&Hr(l,t),Hr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el);let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,In(),wn(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:I,pc:j,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:hr(Y,Z)}}function Wr({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Gr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Kr(e,t,n=!1){const o=e.children,r=t.children;if(h(o)&&h(r))for(let e=0;egr(Yr);function Zr(e,t){return ri(e,null,t)}function ei(e,t){return ri(e,null,{flush:"post"})}function ti(e,t){return ri(e,null,{flush:"sync"})}const ni={};function oi(e,t,n){return ri(e,t,n)}function ri(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),w()}}const d=vs,p=e=>!0===r?e:li(e,!1===r?1:void 0);let f,m,g=!1,y=!1;if(Ht(e)?(f=()=>e.value,g=Nt(e)):At(e)?(f=()=>p(e),g=!0):h(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),f=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):f=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=f;f=()=>li(e())}let b,S=e=>{m=k.onStop=()=>{an(e,d,4),m=k.onStop=void 0}};if(ws){if(S=i,t?n&&un(t,d,3,[f(),y?[]:void 0,S]):f(),"sync"!==s)return i;{const e=Qr();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(ni):ni;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(r||g||(y?e.some(((e,t)=>M(e,_[t]))):M(e,_)))&&(m&&m(),un(t,d,3,[e,_===ni?void 0:y&&_[0]===ni?[]:_,S]),_=e)}else k.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>Hr(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new ye(f,i,C),I=ge(),w=()=>{k.stop(),I&&u(I.effects,k)};return t?n?x():_=k.run():"post"===s?Hr(k.run.bind(k),d&&d.suspense):k.run(),b&&b.push(w),w}function ii(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?si(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=_s(this),l=ri(r,i.bind(o),n);return s(),l}function si(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{li(e,t,n)}));else if(I(e)){for(const o in e)li(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&li(e[o],t,n)}return e}const ci=e=>e.type.__isKeepAlive,ai={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ys(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){mi(e),u(e,n,l,!0)}function f(e){r.forEach(((t,n)=>{const o=Ls(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&Qi(t,s)?s&&mi(s):h(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),Hr((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&hs(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;Xr(t.m),Xr(t.a),a(e,p,null,1,l),Hr((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&hs(n,t.parent,e),t.isDeactivated=!0}),l)},oi((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>ui(e,t))),t&&f((e=>!ui(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(no(n.subTree.type)?Hr((()=>{r.set(g,gi(n.subTree))}),n.subTree.suspense):r.set(g,gi(n.subTree)))};return fo(v),go(v),vo((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=gi(t);if(e.type!==r.type||e.key!==r.key)h(e);else{mi(r);const e=r.component.da;e&&Hr(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!Yi(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=gi(o);const c=l.type,a=Ls(To(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!ui(u,a))||d&&a&&ui(d,a))return s=l,o;const h=null==l.key?c:l.key,f=r.get(h);return l.el&&(l=is(l),128&o.shapeFlag&&(o.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&Ti(l,l.transition),l.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,no(o.type)?o:l}}};function ui(e,t){return h(e)?e.some((e=>ui(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function di(e,t){hi(e,"a",t)}function pi(e,t){hi(e,"da",t)}function hi(e,t,n=vs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(uo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)ci(e.parent.vnode)&&fi(o,t,n,e),e=e.parent}}function fi(e,t,n,o){const r=uo(t,e,o,!0);yo((()=>{u(o[t],r)}),n)}function mi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gi(e){return 128&e.shapeFlag?e.ssContent:e}const vi=Symbol("_leaveCb"),yi=Symbol("_enterCb");function bi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fo((()=>{e.isMounted=!0})),vo((()=>{e.isUnmounting=!0})),e}const Si=[Function,Array],_i={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Si,onEnter:Si,onAfterEnter:Si,onEnterCancelled:Si,onBeforeLeave:Si,onLeave:Si,onAfterLeave:Si,onLeaveCancelled:Si,onBeforeAppear:Si,onAppear:Si,onAfterAppear:Si,onAppearCancelled:Si},xi=e=>{const t=e.subTree;return t.component?xi(t.component):t},Ci={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=ys(),o=bi();return()=>{const r=t.default&&Di(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==ji){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return wi(i);const c=Ei(i);if(!c)return wi(i);let a=Ii(c,s,o,n,(e=>a=e));Ti(c,a);const u=n.subTree,d=u&&Ei(u);if(d&&d.type!==ji&&!Qi(c,d)&&xi(n).type!==ji){const e=Ii(d,s,o,n);if(Ti(d,e),"out-in"===l&&c.type!==ji)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},wi(i);"in-out"===l&&c.type!==ji&&(e.delayLeave=(e,t,n)=>{ki(o,d)[String(d.key)]=d,e[vi]=()=>{t(),e[vi]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function ki(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ii(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=ki(n,e),C=(e,t)=>{e&&un(e,o,9,t)},k=(e,t)=>{const n=t[1];C(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},I={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[vi]&&t[vi](!0);const r=x[_];r&&Qi(e,r)&&r.el[vi]&&r.el[vi](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[yi]=t=>{s||(s=!0,C(t?r:o,[e]),I.delayedLeave&&I.delayedLeave(),e[yi]=void 0)};t?k(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[yi]&&t[yi](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[vi]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[vi]=void 0,x[r]===e&&delete x[r])};x[r]=e,f?k(f,[t,s]):s()},clone(e){const i=Ii(e,t,n,o,r);return r&&r(i),i}};return I}function wi(e){if(ci(e))return(e=is(e)).children=null,e}function Ei(e){if(!ci(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Ti(e,t){6&e.shapeFlag&&e.component?Ti(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Di(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ee&&(e.disabled||""===e.disabled),Oi=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ni=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Ri=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Pi(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Ai(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?g(n,a):d&&g(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Ai(e.props),g=m?n:u,y=m?o:h;if("svg"===s||Oi(u)?s="svg":("mathml"===s||Ni(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),Kr(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Pi(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ri(t.props,f);e&&Pi(t,e,null,a,0)}else m&&Pi(t,u,h,a,1)}Mi(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetAnchor:a,target:u,props:d}=e;if(u&&r(a),i&&r(c),16&s){const e=i||!Ai(d);for(let r=0;r0?Vi||r:null,qi(),zi>0&&Vi&&Vi.push(e),e}function Ji(e,t,n,o,r,i){return Ki(ns(e,t,n,o,r,i,!0))}function Xi(e,t,n,o,r){return Ki(os(e,t,n,o,r,!0))}function Yi(e){return!!e&&!0===e.__v_isVNode}function Qi(e,t){return e.type===t.type&&e.key===t.key}function Zi(e){Wi=e}const es=({key:e})=>null!=e?e:null,ts=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Mn,r:e,k:t,f:!!n}:e:null);function ns(e,t=null,n=null,o=0,r=null,i=(e===Fi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&es(t),ref:t&&ts(t),scopeId:Fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Mn};return l?(ds(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),zi>0&&!s&&Vi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Vi.push(c),c}const os=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Yn||(e=ji),Yi(e)){const o=is(e,t,!0);return n&&ds(o,n),zi>0&&!i&&Vi&&(6&o.shapeFlag?Vi[Vi.indexOf(e)]=o:Vi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=rs(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!h(n)&&(n=a({},n)),t.style=z(n))}var s;return ns(e,t,n,o,r,y(e)?1:no(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function rs(e){return e?Rt(e)||Sr(e)?a({},e):e:null}function is(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?ps(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&es(a),ref:t&&t.ref?n&&i?h(i)?i.concat(ts(t)):[i,ts(t)]:ts(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&is(e.ssContent),ssFallback:e.ssFallback&&is(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Ti(u,c.clone(u)),u}function ss(e=" ",t=0){return os(Bi,null,e,t)}function ls(e,t){const n=os($i,null,e);return n.staticCount=t,n}function cs(e="",t=!1){return t?(Ui(),Xi(ji,null,e)):os(ji,null,e)}function as(e){return null==e||"boolean"==typeof e?os(ji):h(e)?os(Fi,null,e.slice()):"object"==typeof e?us(e):os(Bi,null,String(e))}function us(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:is(e)}function ds(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(h(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),ds(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Sr(t)?3===o&&Mn&&(1===Mn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Mn}}else v(t)?(t={default:t,_ctx:Mn},n=32):(t=String(t),64&o?(n=16,t=[ss(t)]):n=8);e.children=t,e.shapeFlag|=n}function ps(...e){const t={};for(let n=0;nvs||Mn;let bs,Ss;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};bs=t("__VUE_INSTANCE_SETTERS__",(e=>vs=e)),Ss=t("__VUE_SSR_SETTERS__",(e=>ws=e))}const _s=e=>{const t=vs;return bs(e),e.scope.on(),()=>{e.scope.off(),bs(t)}},xs=()=>{vs&&vs.scope.off(),bs(null)};function Cs(e){return 4&e.vnode.shapeFlag}let ks,Is,ws=!1;function Es(e,t=!1){t&&Ss(t);const{props:n,children:o}=e.vnode,r=Cs(e);!function(e,t,n,o=!1){const r={},i=br();e.propsDefaults=Object.create(null),_r(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:wt(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,n,r,t),Rr(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Rs(e):null,r=_s(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(xs,xs),t)return i.then((n=>{Ts(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Ts(e,i,t)}else Os(e,t)}(e,t):void 0;return t&&Ss(!1),i}function Ts(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Os(e,n)}function Ds(e){ks=e,Is=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Bo))}}const As=()=>!ks;function Os(e,t,n){const o=e.type;if(!e.render){if(!t&&ks&&!o.render){const t=o.template||or(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=ks(t,l)}}e.render=o.render||i,Is&&Is(e)}{const t=_s(e);Te();try{!function(e){const t=or(e),n=e.proxy,o=e.ctx;er=!1,t.beforeCreate&&tr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:k,render:I,renderTracked:w,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t,n=i){h(e)&&(e=lr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?gr(o.from||n,o.default,!0):gr(o.from||n):gr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o,null),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=It(t))}if(er=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Ms({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)nr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{mr(t,e[t])}))}function L(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&tr(d,e,"c"),L(ho,p),L(fo,f),L(mo,m),L(go,g),L(di,y),L(pi,b),L(xo,T),L(_o,w),L(So,E),L(vo,x),L(yo,k),L(bo,D),h(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});I&&e.render===i&&(e.render=I),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Ns={get:(e,t)=>(je(e,0,""),e[t])};function Rs(e){return{attrs:new Proxy(e.attrs,Ns),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ps(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Lt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Lo?Lo[n](e):void 0,has:(e,t)=>t in e||t in Lo})):e.proxy}function Ls(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Ms=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,ws);function Fs(e,t,n=o){const r=ys(),i=O(t),s=R(t),l=Qt(((o,l)=>{let c;return ti((()=>{const n=e[t];M(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||!M(e,c)||(c=e,l()),r.emit(`update:${t}`,n.set?n.set(e):e)}}})),c="modelValue"===t?"modelModifiers":`${t}Modifiers`;return l[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[c]||{}:l,done:!1}:{done:!0}}},l}function Bs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!h(t)?Yi(t)?os(e,null,[t]):os(e,t):os(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Yi(n)&&(n=[n]),os(e,t,n))}function js(){}function $s(e,t,n,o){const r=n[o];if(r&&Hs(r,e))return r;const i=t();return i.memo=e.slice(),i.memoIndex=o,n[o]=i}function Hs(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Vi&&Vi.push(e),!0}const Vs="3.4.31",Us=i,qs={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."},Ws=An,zs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Gs={createComponentInstance:gs,setupComponent:Es,renderComponentRoot:Un,setCurrentRenderingInstance:Bn,isVNode:Yi,normalizeVNode:as,getComponentPublicInstance:Ps},Ks=null,Js=null,Xs=null,Ys="undefined"!=typeof document?document:null,Qs=Ys&&Ys.createElement("template"),Zs={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?Ys.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ys.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ys.createElement(e,{is:n}):Ys.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ys.createTextNode(e),createComment:e=>Ys.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ys.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Qs.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=Qs.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},el="transition",tl="animation",nl=Symbol("_vtc"),ol=(e,{slots:t})=>Bs(Ci,cl(e),t);ol.displayName="Transition";const rl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},il=ol.props=a({},_i,rl),sl=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},ll=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function cl(e){const t={};for(const n in e)n in rl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[al(e.enter),al(e.leave)];{const t=al(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:I=b,onAppearCancelled:w=_}=t,E=(e,t,n)=>{dl(e,t?d:l),dl(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,dl(e,p),dl(e,f),dl(e,h),t&&t()},D=e=>(t,n)=>{const r=e?I:b,s=()=>E(t,e,n);sl(r,[t,s]),pl((()=>{dl(t,e?c:i),ul(t,e?d:l),ll(r)||fl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){sl(y,[e]),ul(e,i),ul(e,s)},onBeforeAppear(e){sl(k,[e]),ul(e,c),ul(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);ul(e,p),ul(e,h),yl(),pl((()=>{e._isLeaving&&(dl(e,p),ul(e,f),ll(x)||fl(e,o,v,n))})),sl(x,[e,n])},onEnterCancelled(e){E(e,!1),sl(_,[e])},onAppearCancelled(e){E(e,!0),sl(w,[e])},onLeaveCancelled(e){T(e),sl(C,[e])}})}function al(e){return H(e)}function ul(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[nl]||(e[nl]=new Set)).add(t)}function dl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[nl];n&&(n.delete(t),n.size||(e[nl]=void 0))}function pl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let hl=0;function fl(e,t,n,o){const r=e._endId=++hl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=ml(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${el}Delay`),i=o(`${el}Duration`),s=gl(r,i),l=o(`${tl}Delay`),c=o(`${tl}Duration`),a=gl(l,c);let u=null,d=0,p=0;return t===el?s>0&&(u=el,d=s,p=i.length):t===tl?a>0&&(u=tl,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?el:tl:null,p=u?u===el?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===el&&/\b(transform|all)(,|$)/.test(o(`${el}Property`).toString())}}function gl(e,t){for(;e.lengthvl(t)+vl(e[n]))))}function vl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function yl(){return document.body.offsetHeight}const bl=Symbol("_vod"),Sl=Symbol("_vsh"),_l={beforeMount(e,{value:t},{transition:n}){e[bl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),xl(e,!0),o.enter(e)):o.leave(e,(()=>{xl(e,!1)})):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[bl]:"none",e[Sl]=!t}const Cl=Symbol("");function kl(e){const t=ys();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>wl(e,n)))},o=()=>{const o=e(t.proxy);Il(t.subTree,o),n(o)};fo((()=>{ei(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),yo((()=>e.disconnect()))}))}function Il(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Il(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)wl(e.el,t);else if(e.type===Fi)e.children.forEach((e=>Il(e,t)));else if(e.type===$i){let{el:n,anchor:o}=e;for(;n&&(wl(n,t),n!==o);)n=n.nextSibling}}function wl(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[Cl]=o}}const El=/(^|;)\s*display\s*:/,Tl=/\s*!important$/;function Dl(e,t,n){if(h(n))n.forEach((n=>Dl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ol[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ol[t]=o;o=P(o);for(let n=0;nFl||(Bl.then((()=>Fl=0)),Fl=Date.now()),$l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Hl(e,t,n){const o=Eo(e,t);class r extends ql{constructor(e){super(o,e,n)}}return r.def=o,r}const Vl=(e,t)=>Hl(e,t,wc),Ul="undefined"!=typeof HTMLElement?HTMLElement:class{};class ql extends Ul{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Ic(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!h(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=h(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Ic(this._createVNode(),this.shadowRoot)}_createVNode(){const e=os(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof ql){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Wl(e="$style"){{const t=ys();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const zl=new WeakMap,Gl=new WeakMap,Kl=Symbol("_moveCb"),Jl=Symbol("_enterCb"),Xl={name:"TransitionGroup",props:a({},il,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ys(),o=bi();let r,i;return go((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[nl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=ml(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(Yl),r.forEach(Ql);const o=r.filter(Zl);yl(),o.forEach((e=>{const n=e.el,o=n.style;ul(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Kl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Kl]=null,dl(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=cl(s);let c=s.tag||Fi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return h(t)?e=>F(t,e):t};function tc(e){e.target.composing=!0}function nc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const oc=Symbol("_assign"),rc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[oc]=ec(r);const i=o||r.props&&"number"===r.props.type;Pl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[oc](o)})),n&&Pl(e,"change",(()=>{e.value=e.value.trim()})),t||(Pl(e,"compositionstart",tc),Pl(e,"compositionend",nc),Pl(e,"change",nc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[oc]=ec(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ic={deep:!0,created(e,t,n){e[oc]=ec(n),Pl(e,"change",(()=>{const t=e._modelValue,n=uc(e),o=e.checked,r=e[oc];if(h(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(dc(e,o))}))},mounted:sc,beforeUpdate(e,t,n){e[oc]=ec(n),sc(e,t,n)}};function sc(e,{value:t,oldValue:n},o){e._modelValue=t,h(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,dc(e,!0)))}const lc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[oc]=ec(n),Pl(e,"change",(()=>{e[oc](uc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[oc]=ec(o),t!==n&&(e.checked=ie(t,o.props.value))}},cc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Pl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(uc(e)):uc(e)));e[oc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[oc]=ec(o)},mounted(e,{value:t,modifiers:{number:n}}){ac(e,t)},beforeUpdate(e,t,n){e[oc]=ec(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ac(e,t)}};function ac(e,t,n){const o=e.multiple,r=h(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(uc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function uc(e){return"_value"in e?e._value:e.value}function dc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const pc={created(e,t,n){fc(e,t,n,null,"created")},mounted(e,t,n){fc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){fc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){fc(e,t,n,o,"updated")}};function hc(e,t){switch(e){case"SELECT":return cc;case"TEXTAREA":return rc;default:switch(t){case"checkbox":return ic;case"radio":return lc;default:return rc}}}function fc(e,t,n,o,r){const i=hc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const mc=["ctrl","shift","alt","meta"],gc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>mc.some((n=>e[`${n}Key`]&&!t.includes(n)))},vc=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||yc[e]===o))?e(n):void 0})},Sc=a({patchProp:(e,t,n,o,r,i,s,a,u)=>{const d="svg"===r;"class"===t?function(e,t,n){const o=e[nl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,d):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Dl(o,t,"")}else for(const e in t)null==n[e]&&Dl(o,e,"");for(const e in n)"display"===e&&(i=!0),Dl(o,e,n[e])}else if(r){if(t!==n){const e=o[Cl];e&&(n+=";"+e),o.cssText=n,i=El.test(n)}}else t&&e.removeAttribute("style");bl in e&&(e[bl]=i?o.display:"",e[Sl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[Ll]||(e[Ll]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(Ml.test(e)){let n;for(t={};n=e.match(Ml);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=jl(),n}(o,r);Pl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&$l(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!$l(t)||!y(n))&&t in e}(e,t,o,d))?(function(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);const l=e.tagName;if("value"===t&&"PROGRESS"!==l&&!l.includes("-")){const o="OPTION"===l?e.getAttribute("value")||"":e.value,r=null==n?"":String(n);return o===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let c=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",c=!0):"number"===o&&(n=0,c=!0)}try{e[t]=n}catch(e){}c&&e.removeAttribute(t)}(e,t,o,i,s,a,u),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Rl(e,t,o,d,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Rl(e,t,o,d))}},Zs);let _c,xc=!1;function Cc(){return _c||(_c=Vr(Sc))}function kc(){return _c=xc?_c:Ur(Sc),xc=!0,_c}const Ic=(...e)=>{Cc().render(...e)},wc=(...e)=>{kc().hydrate(...e)},Ec=(...e)=>{const t=Cc().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Ac(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Dc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Tc=(...e)=>{const t=kc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Ac(e);if(t)return n(t,!0,Dc(t))},t};function Dc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Ac(e){return y(e)?document.querySelector(e):e}let Oc=!1;const Nc=()=>{Oc||(Oc=!0,rc.getSSRProps=({value:e})=>({value:e}),lc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ic.getSSRProps=({value:e},t)=>{if(h(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},pc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=hc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},_l.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Rc=Symbol(""),Pc=Symbol(""),Lc=Symbol(""),Mc=Symbol(""),Fc=Symbol(""),Bc=Symbol(""),jc=Symbol(""),$c=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),fa=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya={[Rc]:"Fragment",[Pc]:"Teleport",[Lc]:"Suspense",[Mc]:"KeepAlive",[Fc]:"BaseTransition",[Bc]:"openBlock",[jc]:"createBlock",[$c]:"createElementBlock",[Hc]:"createVNode",[Vc]:"createElementVNode",[Uc]:"createCommentVNode",[qc]:"createTextVNode",[Wc]:"createStaticVNode",[zc]:"resolveComponent",[Gc]:"resolveDynamicComponent",[Kc]:"resolveDirective",[Jc]:"resolveFilter",[Xc]:"withDirectives",[Yc]:"renderList",[Qc]:"renderSlot",[Zc]:"createSlots",[ea]:"toDisplayString",[ta]:"mergeProps",[na]:"normalizeClass",[oa]:"normalizeStyle",[ra]:"normalizeProps",[ia]:"guardReactiveProps",[sa]:"toHandlers",[la]:"camelize",[ca]:"capitalize",[aa]:"toHandlerKey",[ua]:"setBlockTracking",[da]:"pushScopeId",[pa]:"popScopeId",[ha]:"withCtx",[fa]:"unref",[ma]:"isRef",[ga]:"withMemo",[va]:"isMemoSame"},ba={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Sa(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=ba){return e&&(l?(e.helper(Bc),e.helper(Aa(e.inSSR,a))):e.helper(Da(e.inSSR,a)),s&&e.helper(Xc)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function _a(e,t=ba){return{type:17,loc:t,elements:e}}function xa(e,t=ba){return{type:15,loc:t,properties:e}}function Ca(e,t){return{type:16,loc:ba,key:y(e)?ka(e,!0):e,value:t}}function ka(e,t=!1,n=ba,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Ia(e,t=ba){return{type:8,loc:t,children:e}}function wa(e,t=[],n=ba){return{type:14,loc:n,callee:e,arguments:t}}function Ea(e,t=void 0,n=!1,o=!1,r=ba){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Ta(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:ba}}function Da(e,t){return e||t?Hc:Vc}function Aa(e,t){return e||t?jc:$c}function Oa(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Da(o,e.isComponent)),t(Bc),t(Aa(o,e.isComponent)))}const Na=new Uint8Array([123,123]),Ra=new Uint8Array([125,125]);function Pa(e){return e>=97&&e<=122||e>=65&&e<=90}function La(e){return 32===e||10===e||9===e||12===e||13===e}function Ma(e){return 47===e||62===e||La(e)}function Fa(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function za(e){switch(e){case"Teleport":case"teleport":return Pc;case"Suspense":case"suspense":return Lc;case"KeepAlive":case"keep-alive":return Mc;case"BaseTransition":case"base-transition":return Fc}}const Ga=/^\d|[^\$\w\xA0-\uFFFF]/,Ka=e=>!Ga.test(e),Ja=/[A-Za-z_$\xA0-\uFFFF]/,Xa=/[\.\?\w$\xA0-\uFFFF]/,Ya=/\s+[.[]\s*|\s*[.[]\s+/g,Qa=e=>{e=e.trim().replace(Ya,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function uu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const du=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,pu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:Va,onWarn:Ua,comments:!1,prefixIdentifiers:!1};let hu=pu,fu=null,mu="",gu=null,vu=null,yu="",bu=-1,Su=-1,_u=0,xu=!1,Cu=null;const ku=[],Iu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Na,this.delimiterClose=Ra,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Na,this.delimiterClose=Ra}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Ma(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||La(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Ba.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(ku,{onerr:Wu,ontext(e,t){Au(Tu(e,t),e,t)},ontextentity(e,t,n){Au(e,t,n)},oninterpolation(e,t){if(xu)return Au(Tu(e,t),e,t);let n=e+Iu.delimiterOpen.length,o=t-Iu.delimiterClose.length;for(;La(mu.charCodeAt(n));)n++;for(;La(mu.charCodeAt(o-1));)o--;let r=Tu(n,o);r.includes("&")&&(r=hu.decodeEntities(r,!1)),$u({type:5,content:qu(r,!1,Hu(n,o)),loc:Hu(e,t)})},onopentagname(e,t){const n=Tu(e,t);gu={type:1,tag:n,ns:hu.getNamespace(n,ku[0],hu.ns),tagType:0,props:[],children:[],loc:Hu(e-1,t),codegenNode:void 0}},onopentagend(e){Du(e)},onclosetag(e,t){const n=Tu(e,t);if(!hu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Wu(24,ku[0].loc.start.offset);for(let n=0;n<=e;n++)Ou(ku.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Wu(2,t)},onattribend(e,t){if(gu&&vu){if(Vu(vu.loc,t),0!==e)if(yu.includes("&")&&(yu=hu.decodeEntities(yu,!0)),6===vu.type)"class"===vu.name&&(yu=ju(yu).trim()),1!==e||yu||Wu(13,t),vu.value={type:2,content:yu,loc:1===e?Hu(bu,Su):Hu(bu-1,Su+1)},Iu.inSFCRoot&&"template"===gu.tag&&"lang"===vu.name&&yu&&"html"!==yu&&Iu.enterRCDATA(Fa("{const r=t.start.offset+n;return qu(e,!1,Hu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Eu,"").trim();const a=r.indexOf(c),u=c.match(wu);if(u){c=c.replace(wu,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(vu.exp));let t=-1;"bind"===vu.name&&(t=vu.modifiers.indexOf("sync"))>-1&&Ha("COMPILER_V_BIND_SYNC",hu,vu.loc,vu.rawName)&&(vu.name="model",vu.modifiers.splice(t,1))}7===vu.type&&"pre"===vu.name||gu.props.push(vu)}yu="",bu=Su=-1},oncomment(e,t){hu.comments&&$u({type:3,content:Tu(e,t),loc:Hu(e-4,t+3)})},onend(){const e=mu.length;for(let t=0;t64&&n<91||za(e)||hu.isBuiltInComponent&&hu.isBuiltInComponent(e)||hu.isNativeTag&&!hu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Ha("COMPILER_INLINE_TEMPLATE",hu,n.loc)&&e.children.length&&(n.value={type:2,content:Tu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Nu(e,t){let n=e;for(;mu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Ru=new Set(["if","else","else-if","for","slot"]);function Pu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=ed(e);if((!n||512===n||1===n)&&Qu(r,t)>=2){const n=Zu(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Ku(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Ku(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${ya[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=ka(e)),E.hoists.push(e);const t=ka(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:ba}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);nd(e,n),t.hoistStatic&&zu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Gu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Oa(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=Sa(t,n(Rc),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function nd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(ou))return;const i=[];for(let s=0;s`${ya[e]}: _${ya[e]}`;function sd(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Jc:"component"===t?zc:Kc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),cd(e,t,n),n&&t.deindent(),t.push("]")}function cd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,c,a]),t),n(")"),d&&n(")"),u&&(n(", "),ad(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(rd),n(i+"(",-2,e),cd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),h(s)?ld(s,t):ad(s,t)):l&&ad(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Ka(n.content);e&&s("("),ud(n,t),e&&s(")")}else s("("),ad(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),ad(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,ad(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(r(),n(`${o(ua)}(-1),`),s()),n(`_cache[${e.index}] = `),ad(e.value,t),e.isVNode&&(n(","),s(),n(`${o(ua)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:cd(e.body,t,!0,!1)}}function ud(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function dd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(qa(28,t.loc)),t.exp=ka("true",!1,o)}if("if"===t.name){const r=fd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(qa(30,e.loc)),n.removeNode();const r=fd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);nd(r,n),i&&i(),n.currentNode=null}else n.onError(qa(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=md(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=md(t,s+e.branches.length-1,n)}}}))));function fd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Za(e,"for")?e.children:[e],userKey:eu(e,"key"),isTemplateIf:n}}function md(e,t,n){return e.condition?Ta(e.condition,gd(e,t,n),wa(n.helper(Uc),['""',"true"])):gd(e,t,n)}function gd(e,t,n){const{helper:o}=n,r=Ca("key",ka(`${t}`,!1,ba,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return cu(e,r,n),e}{let t=64;return q[64],Sa(n,o(Rc),xa([r]),i,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===ga?l.arguments[1].returns:l;return 13===t.type&&Oa(t,n),cu(t,r,n),e}var l}const vd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(qa(52,i.loc)),{props:[Ca(i,ka("",!0,r))]};yd(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(la)}(${i.content})`:(i.children.unshift(`${n.helperString(la)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&bd(i,"."),o.includes("attr")&&bd(i,"^")),{props:[Ca(i,s)]}},yd=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=ka(o,!1,n.loc)},bd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Sd=od("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(qa(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(qa(32,t.loc));_d(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:ru(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const h=o&&o(p);return()=>{l.vFor--,h&&h()}}(e,t,n,(t=>{const i=wa(o(Yc),[t.source]),s=ru(e),l=Za(e,"memo"),c=eu(e,"key",!1,!0);c&&7===c.type&&!c.exp&&yd(c);const a=c&&(6===c.type?c.value?ka(c.value.content,!0):void 0:c.exp),u=c&&a?Ca("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=Sa(n,o(Rc),void 0,i,p+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=iu(e)?e:s&&1===e.children.length&&iu(e.children[0])?e.children[0]:null;if(f?(c=f.codegenNode,s&&u&&cu(c,u,n)):h?c=Sa(n,o(Rc),u?xa([u]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&cu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Bc),r(Aa(n.inSSR,c.isComponent))):r(Da(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Bc),o(Aa(n.inSSR,c.isComponent))):o(Da(n.inSSR,c.isComponent))),l){const e=Ea(xd(t.parseResult,[ka("_cached")]));e.body={type:21,body:[Ia(["const _memo = (",l.exp,")"]),Ia(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(va)}(_cached, _memo)) return _cached`]),Ia(["const _item = ",c]),ka("_item.memo = _memo"),ka("return _item")],loc:ba},i.arguments.push(e,ka("_cache"),ka(String(n.cached++)))}else i.arguments.push(Ea(xd(t.parseResult),c,!0))}}))}));function _d(e,t){e.finalized||(e.finalized=!0)}function xd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||ka("_".repeat(t+1),!1)))}([e,t,n,...o])}const Cd=ka("undefined",!1),kd=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Za(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Id=(e,t,n,o)=>Ea(e,n,!1,!0,n.length?n[0].loc:o);function wd(e,t,n=Id){t.helper(ha);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Za(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Wa(e)&&(l=!0),i.push(Ca(e||ka("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ca("default",i)};a?d.length&&d.some((e=>Dd(e)))&&(u?t.onError(qa(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const f=l?2:Td(e.children)?3:1;let m=xa(i.concat(Ca("_",ka(f+"",!1))),r);return s.length&&(m=wa(t.helper(Zc),[m,_a(s)])),{slots:m,hasDynamicSlots:l}}function Ed(e,t,n){const o=[Ca("name",e),Ca("fn",t)];return null!=n&&o.push(Ca("key",ka(String(n),!0))),xa(o)}function Td(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Ld(o),i=eu(e,"is",!1,!0);if(i)if(r||$a("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&ka(i.value.content,!0):(e=i.exp,e||(e=ka("is",!1,i.loc))),e)return wa(t.helper(Gc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=za(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(zc),t.components.add(o),uu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Gc;let l,c,a,u,d,p,h=0,f=s||i===Pc||i===Lc||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Nd(e,t,void 0,r,s);l=n.props,h=n.patchFlag,d=n.dynamicPropNames;const o=n.directives;p=o&&o.length?_a(o.map((e=>function(e,t){const n=[],o=Ad.get(e);o?n.push(t.helperString(o)):(t.helper(Kc),t.directives.add(e.name),n.push(uu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=ka("true",!1,r);n.push(xa(e.modifiers.map((e=>Ca(e,t))),r))}return _a(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(i===Mc&&(f=!0,h|=1024),r&&i!==Pc&&i!==Mc){const{slots:n,hasDynamicSlots:o}=wd(e,t);c=n,o&&(h|=1024)}else if(1===e.children.length&&i!==Pc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Ju(n,t)&&(h|=1),c=r||2===o?n:e.children}else c=e.children;0!==h&&(a=String(h),d&&d.length&&(u=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(d.push(xa(Rd(u),c)),u=[]),e&&d.push(e)},I=()=>{t.scopes.vFor>0&&u.push(Ca(ka("ref_for",!0),ka("true")))},w=({key:e,value:n})=>{if(Wa(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Ju(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?wa(t.helper(ta),d,c):d[0]):u.length&&(D=xa(Rd(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),f||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(iu(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Nd(e,t,r,!1,!1);n=o,i.length&&t.onError(qa(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Ea([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=wa(t.helper(Qc),s,o)}},Fd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Bd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(qa(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=ka(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?L(O(e)):`on:${e}`,!0,s.loc)}else l=Ia([`${n.helperString(aa)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(aa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=Qa(c.content),t=!(e||Fd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Ia([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ca(l,c||ka("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},jd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&Za(e,"once",!0)){if($d.has(e)||t.inVOnce||t.inSSR)return;return $d.add(e),t.inVOnce=!0,t.helper(ua),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Vd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(qa(41,e.loc)),Ud();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(qa(44,o.loc)),Ud();if(!s.trim()||!Qa(s))return n.onError(qa(42,o.loc)),Ud();const c=r||ka("modelValue",!0),a=r?Wa(r)?`onUpdate:${O(r.content)}`:Ia(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Ia([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ca(c,e.exp),Ca(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Ka(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Wa(r)?`${r.content}Modifiers`:Ia([r,' + "Modifiers"']):"modelModifiers";d.push(Ca(n,ka(`{ ${t} }`,!1,e.loc,2)))}return Ud(d)};function Ud(e=[]){return{props:e}}const qd=/[\w).+\-_$\]]/,Wd=(e,t)=>{$a("COMPILER_FILTERS",t)&&(5===e.type?zd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&zd(e.exp,t)})))};function zd(e,t){if(4===e.type)Gd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&qd.test(e)||(u=!0)}}else void 0===s?(f=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(f,i).trim()),f=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==f&&g(),m.length){for(i=0;i{if(1===e.type){const n=Za(e,"memo");if(!n||Jd.has(e))return;return Jd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Oa(o,t),e.codegenNode=wa(t.helper(ga),[n.exp,Ea(void 0,o),"_cache",String(t.cached++)]))}}};function Yd(e,t={}){const n=t.onError||Va,o="module"===t.mode;!0===t.prefixIdentifiers?n(qa(47)):o&&n(qa(48)),t.cacheHandlers&&n(qa(49)),t.scopeId&&!o&&n(qa(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Iu.reset(),gu=null,vu=null,yu="",bu=-1,Su=-1,ku.length=0,mu=e,hu=a({},pu),t){let e;for(e in t)null!=t[e]&&(hu[e]=t[e])}Iu.mode="html"===hu.parseMode?1:"sfc"===hu.parseMode?2:0,Iu.inXML=1===hu.ns||2===hu.ns;const n=t&&t.delimiters;n&&(Iu.delimiterOpen=Fa(n[0]),Iu.delimiterClose=Fa(n[1]));const o=fu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:ba}}(0,e);return Iu.parse(mu),o.loc=Hu(0,e.length),o.children=Mu(o.children),fu=null,o}(e,r):e,[s,l]=[[Hd,hd,Xd,Sd,Wd,Md,Od,kd,jd],{on:Bd,bind:vd,model:Vd}];return td(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${ya[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Hc,Vc,Uc,qc,Wc].filter((e=>u.includes(e))).map(id).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(sd(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),sd(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?ad(e.codegenNode,n):r("null"),h&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const Qd=Symbol(""),Zd=Symbol(""),ep=Symbol(""),tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol("");var cp;let ap;cp={[Qd]:"vModelRadio",[Zd]:"vModelCheckbox",[ep]:"vModelText",[tp]:"vModelSelect",[np]:"vModelDynamic",[op]:"withModifiers",[rp]:"withKeys",[ip]:"vShow",[sp]:"Transition",[lp]:"TransitionGroup"},Object.getOwnPropertySymbols(cp).forEach((e=>{ya[e]=cp[e]}));const up={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return ap||(ap=document.createElement("div")),t?(ap.innerHTML=`
        `,ap.children[0].getAttribute("foo")):(ap.innerHTML=e,ap.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?sp:"TransitionGroup"===e||"transition-group"===e?lp:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},dp=(e,t)=>{const n=X(e);return ka(JSON.stringify(n),!1,t,3)};function pp(e,t){return qa(e,t)}const hp=n("passive,once,capture"),fp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),mp=n("left,right"),gp=n("onkeyup,onkeydown,onkeypress",!0),vp=(e,t)=>Wa(e)&&"onclick"===e.content.toLowerCase()?ka(t,!0):4!==e.type?Ia(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,yp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},bp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:ka("style",!0,t.loc),exp:dp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Sp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(pp(53,r)),t.children.length&&(n.onError(pp(54,r)),t.children.length=0),{props:[Ca(ka("innerHTML",!0,r),o||ka("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(pp(55,r)),t.children.length&&(n.onError(pp(56,r)),t.children.length=0),{props:[Ca(ka("textContent",!0),o?Ju(o,n)>0?o:wa(n.helperString(ea),[o],r):ka("",!0))]}},model:(e,t,n)=>{const o=Vd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(pp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=ep,l=!1;if("input"===r||i){const o=eu(t,"type");if(o){if(7===o.type)s=np;else if(o.value)switch(o.value.content){case"radio":s=Qd;break;case"checkbox":s=Zd;break;case"file":l=!0,n.onError(pp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=np)}else"select"===r&&(s=tp);l||(o.needRuntime=n.helper(s))}else n.onError(pp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Bd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n,o)=>{const r=[],i=[],s=[];for(let o=0;o{const{exp:o,loc:r}=e;return o||n.onError(pp(61,r)),{props:[],needRuntime:n.helper(ip)}}},_p=new WeakMap;Ds((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=_p.get(null!=e?e:o);return t||(t=Object.create(null),_p.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return Yd(e,a({},up,t,{nodeTransforms:[yp,...bp,...t.nodeTransforms||[]],directiveTransforms:a({},Sp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const xp={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Ms((function(){return e.iconList})),appIsGettingData:Ms((function(){return e.appIsGettingData})),appIsPublishing:Ms((function(){return e.appIsPublishing})),isEditingMode:Ms((function(){return e.isEditingMode})),designData:Ms((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Ms((function(){return e.showFormDialog})),dialogTitle:Ms((function(){return e.dialogTitle})),dialogFormContent:Ms((function(){return e.dialogFormContent})),dialogButtonText:Ms((function(){return e.dialogButtonText})),formSaveFunction:Ms((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},Cp="undefined"!=typeof document;const kp=Object.assign;function Ip(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ep(r)?r.map(e):e(r)}return n}const wp=()=>{},Ep=Array.isArray,Tp=/#/g,Dp=/&/g,Ap=/\//g,Op=/=/g,Np=/\?/g,Rp=/\+/g,Pp=/%5B/g,Lp=/%5D/g,Mp=/%5E/g,Fp=/%60/g,Bp=/%7B/g,jp=/%7C/g,$p=/%7D/g,Hp=/%20/g;function Vp(e){return encodeURI(""+e).replace(jp,"|").replace(Pp,"[").replace(Lp,"]")}function Up(e){return Vp(e).replace(Rp,"%2B").replace(Hp,"+").replace(Tp,"%23").replace(Dp,"%26").replace(Fp,"`").replace(Bp,"{").replace($p,"}").replace(Mp,"^")}function qp(e){return null==e?"":function(e){return Vp(e).replace(Tp,"%23").replace(Np,"%3F")}(e).replace(Ap,"%2F")}function Wp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const zp=/\/$/,Gp=e=>e.replace(zp,"");function Kp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Wp(s)}}function Jp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Xp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Yp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qp(e[n],t[n]))return!1;return!0}function Qp(e,t){return Ep(e)?Zp(e,t):Ep(t)?Zp(t,e):e===t}function Zp(e,t){return Ep(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const eh={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var th,nh;!function(e){e.pop="pop",e.push="push"}(th||(th={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(nh||(nh={}));const oh=/^[^#]+#/;function rh(e,t){return e.replace(oh,"#")+t}const ih=()=>({left:window.scrollX,top:window.scrollY});function sh(e,t){return(history.state?history.state.position-t:-1)+e}const lh=new Map;let ch=()=>location.protocol+"//"+location.host;function ah(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Jp(n,"")}return Jp(n,e)+o+r}function uh(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ih():null}}function dh(e){return"string"==typeof e||"symbol"==typeof e}const ph=Symbol("");var hh;function fh(e,t){return kp(new Error,{type:e,[ph]:!0},t)}function mh(e,t){return e instanceof Error&&ph in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(hh||(hh={}));const gh="[^/]+?",vh={sensitive:!1,strict:!1,start:!0,end:!0},yh=/[.+*?^${}()[\]/\\]/g;function bh(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Sh(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const xh={type:0,value:""},Ch=/[a-zA-Z0-9_]/;function kh(e,t,n){const o=function(e,t){const n=kp({},vh,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;ckp(e,t.meta)),{})}function Dh(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ah({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Oh(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&Up(e))):[o&&Up(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Rh(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ep(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Ph=Symbol(""),Lh=Symbol(""),Mh=Symbol(""),Fh=Symbol(""),Bh=Symbol("");function jh(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function $h(e,t,n,o,r,i=(e=>e())){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(fh(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(fh(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function Hh(e,t,n,o,r=(e=>e())){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push($h(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&$h(a,n,o,l,e,r)()}))))}}var s;return i}function Vh(e){const t=gr(Mh),n=gr(Fh),o=Ms((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Ms((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Xp.bind(null,r));if(s>-1)return s;const l=qh(e[t-2]);return t>1&&qh(r)===l&&i[i.length-1].path!==l?i.findIndex(Xp.bind(null,e[t-2])):s})),i=Ms((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ep(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Ms((()=>r.value>-1&&r.value===n.matched.length-1&&Yp(n.params,o.value.params)));return{route:o,href:Ms((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(wp):Promise.resolve()}}}const Uh=Eo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vh,setup(e,{slots:t}){const n=It(Vh(e)),{options:o}=gr(Mh),r=Ms((()=>({[Wh(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Wh(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Bs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function qh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wh=(e,t,n)=>null!=e?e:null!=t?t:n;function zh(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Gh=Eo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=gr(Bh),r=Ms((()=>e.route||o.value)),i=gr(Lh,0),s=Ms((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Ms((()=>r.value.matched[s.value]));mr(Lh,Ms((()=>s.value+1))),mr(Ph,l),mr(Bh,r);const c=Vt();return oi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Xp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return zh(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Bs(a,kp({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return zh(n.default,{Component:p,route:o})||p}}}),Kh={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
        \n

        {{ menuItem.title }}

        \n
        {{ menuItem.subtitle }}
        \n
        \n
        '};function Jh(e){return Jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jh(e)}function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yh(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
        \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:nf(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=nf(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

        '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var h=!1;for(var f in t.getQuery().terms)if("stepID"==t.getQuery().terms[f].id&&"="==t.getQuery().terms[f].operator&&"deleted"==t.getQuery().terms[f].match){h=!0;break}return h||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

        Searching for records...

        ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
        \n
        \n
        \n \n \n
        \n \n
        \n
        \n \n
        '};function sf(e){return sf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sf(e)}function lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=sf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=sf(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var af,uf=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Ms((function(){return e.menuItem})),menuDirection:Ms((function(){return e.menuDirection})),menuItemList:Ms((function(){return e.menuItemList})),chosenHeaders:Ms((function(){return e.chosenHeaders})),menuIsUpdating:Ms((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n
        \n \n
        \n
        '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Kh},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
        \n

        Card Preview

        \n
        \n \n
        \n \n \n
        \n
        \n \n \n
        \n
        \n
        \n
        \n \n \n
        \n
        \n \n \n
        \n
        \n
        \n
        \n \n \n
        \n
        \n
        \n \n \n
        \n \n
        \n
        \n
        \n \n \n
        \n
        \n \n
        \n
        \n Icon Selections\n
        \n \n
        \n
        \n
        '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Kh},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return Yh({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(Yh({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
        \n
        \n

        Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

        \n
        \n \n
        \n \n \n \n
        \n
        '},CustomSearch:rf},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

        Menu Editor

        "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
        \n Loading... \n loading...\n
        \n
        \n

        \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

        \n

        This page is {{ enabled ? \'\' : \'not\'}} enabled

        \n \n
        TODO banner section
        \n
        \n \n \n
        \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
        '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
        \n Loading... \n loading...\n
        \n

        Test View

        '}}],df=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:wh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Dh(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(kp({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=kh(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Eh(d)&&i(e.name)),Ah(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:wp}function i(e){if(dh(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;Sh(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Ah(t)&&0===Sh(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Eh(e)&&o.set(e.record.name,e)}return t=Dh({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw fh(1,{location:e});s=r.record.name,l=kp(Ih(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Ih(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw fh(1,{location:e,currentLocation:t});s=r.record.name,l=kp({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Th(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Oh,o=e.stringifyQuery||Nh,r=e.history,i=jh(),s=jh(),l=jh(),c=Ut(eh);let a=eh;Cp&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ip.bind(null,(e=>""+e)),d=Ip.bind(null,qp),p=Ip.bind(null,Wp);function h(e,i){if(i=kp({},i||c.value),"string"==typeof e){const o=Kp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return kp(o,s,{params:p(s.params),hash:Wp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=kp({},e,{path:Kp(n,e.path,i.path).path});else{const t=kp({},e.params);for(const e in t)null==t[e]&&delete t[e];s=kp({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const h=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,kp({},e,{hash:(f=a,Vp(f).replace(Bp,"{").replace($p,"}").replace(Mp,"^")),path:l.path}));var f;const m=r.createHref(h);return kp({fullPath:h,hash:a,query:o===Nh?Rh(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?Kp(n,e,c.value.path):kp({},e)}function m(e,t){if(a!==e)return fh(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),kp({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=h(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(kp(f(u),{state:"object"==typeof u?kp({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Xp(t.matched[o],n.matched[r])&&Yp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=fh(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>mh(e)?mh(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(mh(e,2))return y(kp({replace:l},f(e.to),{state:"object"==typeof e.to?kp({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sXp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Xp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=Hh(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push($h(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),L(n).then((()=>{n=[];for(const o of i.list())n.push($h(o,e,t));return n.push(c),L(n)})).then((()=>{n=Hh(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push($h(o,e,t))}));return n.push(c),L(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ep(o.beforeEnter))for(const r of o.beforeEnter)n.push($h(r,e,t));else n.push($h(o.beforeEnter,e,t));return n.push(c),L(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Hh(l,"beforeRouteEnter",e,t,S),n.push(c),L(n)))).then((()=>{n=[];for(const o of s.list())n.push($h(o,e,t));return n.push(c),L(n)})).catch((e=>mh(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===eh,a=Cp?history.state:{};n&&(o||l?r.replace(e.fullPath,kp({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let k;let I,w=jh(),E=jh();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return I||(I=!e,k||(k=r.listen(((e,t,n)=>{if(!P.listening)return;const o=h(e),i=v(o);if(i)return void y(kp(i,{replace:!0}),o).catch(wp);a=o;const s=c.value;var l,u;Cp&&(l=sh(s.fullPath,n.delta),u=ih(),lh.set(l,u)),_(o,s).catch((e=>mh(e,12)?e:mh(e,2)?(y(e.to,o).then((e=>{mh(e,20)&&!n.delta&&n.type===th.pop&&r.go(-1,!1)})).catch(wp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!mh(e,8)?r.go(-n.delta,!1):n.type===th.pop&&mh(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(wp)}))),w.list().forEach((([t,n])=>e?n(e):t())),w.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!Cp||!i)return Promise.resolve();const s=!o&&function(e){const t=lh.get(e);return lh.delete(e),t}(sh(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return dh(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:g,replace:function(e){return g(kp(f(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return I&&c.value!==eh?Promise.resolve():new Promise(((e,t)=>{w.add([e,t])}))},install(e){e.component("RouterLink",Uh),e.component("RouterView",Gh),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),Cp&&!N&&c.value===eh&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in eh)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Mh,this),e.provide(Fh,wt(t)),e.provide(Bh,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=eh,k&&k(),k=null,c.value=eh,N=!1,I=!1),n()}}};function L(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((af=location.host?af||location.pathname+location.search:"").includes("#")||(af+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ah(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:ch()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=kp({},r.value,t.state,{forward:e,scroll:ih()});i(s.current,s,!0),i(e,kp({},uh(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,kp({},t.state,uh(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(Cp){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Gp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ah(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:th.pop,direction:u?u>0?nh.forward:nh.back:nh.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(kp({},e.state,{scroll:ih()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=kp({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:rh.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(af)),routes:uf});const pf=df;var hf=Ec(xp);hf.use(pf),hf.mount("#site-designer-app")})(); \ No newline at end of file +(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Kn,BaseTransitionPropsValidators:()=>zn,Comment:()=>qi,DeprecationTypes:()=>el,EffectScope:()=>fe,ErrorCodes:()=>cn,ErrorTypeStrings:()=>Ks,Fragment:()=>Vi,KeepAlive:()=>so,ReactiveEffect:()=>ye,Static:()=>Wi,Suspense:()=>Li,Teleport:()=>Xr,Text:()=>Ui,TrackOpTypes:()=>rn,Transition:()=>ll,TransitionGroup:()=>ec,TriggerOpTypes:()=>sn,VueElement:()=>Kl,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>us,compatUtils:()=>Zs,computed:()=>Hs,createApp:()=>Oc,createBlock:()=>ts,createCommentVNode:()=>fs,createElementBlock:()=>es,createElementVNode:()=>ls,createHydrationRenderer:()=>ii,createPropsRestProxy:()=>rr,createRenderer:()=>ri,createSSRApp:()=>Nc,createSlots:()=>Lo,createStaticVNode:()=>ps,createTextVNode:()=>ds,createVNode:()=>cs,customRef:()=>Qt,defineAsyncComponent:()=>oo,defineComponent:()=>to,defineCustomElement:()=>Wl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Xo,defineOptions:()=>Ko,defineProps:()=>Wo,defineSSRCustomElement:()=>zl,defineSlots:()=>Jo,devtools:()=>Js,effect:()=>Ce,effectScope:()=>he,getCurrentInstance:()=>Cs,getCurrentScope:()=>ge,getTransitionRawChildren:()=>eo,guardReactiveProps:()=>as,h:()=>Vs,handleError:()=>dn,hasInjectionContext:()=>Cr,hydrate:()=>Ac,initCustomFormatter:()=>Us,initDirectivesForSSR:()=>Lc,inject:()=>xr,isMemoSame:()=>Ws,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>Ms,isShallow:()=>Nt,isVNode:()=>ns,markRaw:()=>Mt,mergeDefaults:()=>nr,mergeModels:()=>or,mergeProps:()=>vs,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>co,onBeforeMount:()=>vo,onBeforeUnmount:()=>_o,onBeforeUpdate:()=>bo,onDeactivated:()=>ao,onErrorCaptured:()=>Io,onMounted:()=>yo,onRenderTracked:()=>wo,onRenderTriggered:()=>ko,onScopeDispose:()=>ve,onServerPrefetch:()=>Co,onUnmounted:()=>xo,onUpdated:()=>So,openBlock:()=>Ki,popScopeId:()=>Fn,provide:()=>_r,proxyRefs:()=>Xt,pushScopeId:()=>Ln,queuePostFlushCb:()=>kn,reactive:()=>wt,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ps,render:()=>Dc,renderList:()=>Mo,renderSlot:()=>Fo,resolveComponent:()=>Do,resolveDirective:()=>No,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Qs,resolveTransitionHooks:()=>Xn,setBlockTracking:()=>Qi,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Zn,shallowReactive:()=>It,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>fi,ssrUtils:()=>Ys,stop:()=>ke,toDisplayString:()=>ce,toHandlerKey:()=>M,toHandlers:()=>$o,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>rs,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Zo,useCssModule:()=>Jl,useCssVars:()=>Tl,useModel:()=>ki,useSSRContext:()=>hi,useSlots:()=>Qo,useTransitionState:()=>qn,vModelCheckbox:()=>ac,vModelDynamic:()=>gc,vModelRadio:()=>dc,vModelSelect:()=>pc,vModelText:()=>cc,vShow:()=>wl,version:()=>zs,warn:()=>Gs,watch:()=>bi,watchEffect:()=>mi,watchPostEffect:()=>gi,watchSyncEffect:()=>vi,withAsyncContext:()=>ir,withCtx:()=>$n,withDefaults:()=>Yo,withDirectives:()=>jn,withKeys:()=>Cc,withMemo:()=>qs,withModifiers:()=>_c,withScopeId:()=>Bn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,h=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>C(e).slice(8,-1),w=e=>"[object Object]"===C(e),I=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=D((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":f(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||f(t)||w(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=we,t=pe;try{return we=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,we=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function ke(e){e.effect.stop()}let we=!0,Ie=0;const Ee=[];function Te(){Ee.push(we),we=!1}function De(){const e=Ee.pop();we=void 0===e||e}function Ae(){Ie++}function Oe(){for(Ie--;!Ie&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Le=new WeakMap,Fe=Symbol(""),Be=Symbol("");function $e(e,t,n){if(we&&pe){let t=Le.get(e);t||Le.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me((()=>t.delete(n)))),Ne(pe,o)}}function je(e,t,n,o,r,i){const s=Le.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&f(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":f(e)?I(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"delete":f(e)||(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"set":h(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return $e(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?kt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||$e(e,0,t),r?s:Ht(s)?i&&I(t)?s:s.value:S(s)?o?Et(s):wt(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!f(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=f(e)&&I(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(L(t,i)&&$e(r,0,t),$e(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Lt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(L(e,r)&&$e(o,0,e),$e(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e,t=!1){t||Nt(e)||Ot(e)||(e=Pt(e));const n=Pt(this);return et(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Nt(t)||Ot(t)||(t=Pt(t));const o=Pt(this),{has:r,get:i}=et(o);let s=r.call(o,e);s||(e=Pt(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?L(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Lt;return!e&&$e(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=h(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Lt;return!t&&$e(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add(e){return rt.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ft,ht,mt]=dt();function gt(e,t){const n=t?e?mt:ht:e?ft:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,kt=new WeakMap;function wt(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function It(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,kt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Mt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Lt=e=>S(e)?wt(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||jt(e,4),$t(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function $t(e){var t;we&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Me((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Lt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Lt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Le.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(f(e)){const r=[];for(let i=0;i>>1,r=hn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){fn=!1,pn=!0,hn.sort(Tn);try{for(mn=0;mn$n;function $n(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qi(-1);const r=Mn(t);let i;try{i=e(...n)}finally{Mn(r),o._d&&Qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Rn)return e;const n=$s(Rn),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),_o((()=>{e.isUnmounting=!0})),e}const Wn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wn,onEnter:Wn,onAfterEnter:Wn,onEnterCancelled:Wn,onBeforeLeave:Wn,onLeave:Wn,onAfterLeave:Wn,onLeaveCancelled:Wn,onBeforeAppear:Wn,onAppear:Wn,onAfterAppear:Wn,onAppearCancelled:Wn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Kn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Cs(),o=qn();return()=>{const r=t.default&&eo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==qi){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return Yn(i);const c=Qn(i);if(!c)return Yn(i);let a=Xn(c,s,o,n,(e=>a=e));Zn(c,a);const u=n.subTree,d=u&&Qn(u);if(d&&d.type!==qi&&!os(c,d)&&Gn(n).type!==qi){const e=Xn(d,s,o,n);if(Zn(d,e),"out-in"===l&&c.type!==qi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Yn(i);"in-out"===l&&c.type!==qi&&(e.delayLeave=(e,t,n)=>{Jn(o,d)[String(d.key)]=d,e[Vn]=()=>{t(),e[Vn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function Jn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xn(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=Jn(n,e),C=(e,t)=>{e&&un(e,o,9,t)},k=(e,t)=>{const n=t[1];C(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[Vn]&&t[Vn](!0);const r=x[_];r&&os(e,r)&&r.el[Vn]&&r.el[Vn](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[Un]=t=>{s||(s=!0,C(t?r:o,[e]),w.delayedLeave&&w.delayedLeave(),e[Un]=void 0)};t?k(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Un]&&t[Un](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[Vn]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[Vn]=void 0,x[r]===e&&delete x[r])};x[r]=e,h?k(h,[t,s]):s()},clone(e){const i=Xn(e,t,n,o,r);return r&&r(i),i}};return w}function Yn(e){if(io(e))return(e=us(e)).children=null,e}function Qn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Zn(e,t){6&e.shapeFlag&&e.component?Zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ea({name:e.name},t,{setup:e}))():e}const no=e=>!!e.type.__asyncLoader;function oo(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return to({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xs;if(c)return()=>ro(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||Os)return d().then((t=>()=>ro(t,e))).catch((e=>(t(e),()=>o?cs(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?ro(c,e):u.value&&o?cs(o,{error:u.value}):n&&!p.value?cs(n):void 0}})}function ro(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=cs(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const io=e=>e.type.__isKeepAlive,so={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Cs(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function f(e){fo(e),u(e,n,l,!0)}function h(e){r.forEach(((t,n)=>{const o=js(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&os(t,s)?s&&fo(s):f(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),oi((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ys(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;pi(t.m),pi(t.a),a(e,p,null,1,l),oi((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ys(n,t.parent,e),t.isDeactivated=!0}),l)},bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>lo(e,t))),t&&h((e=>!lo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Pi(n.subTree.type)?oi((()=>{r.set(g,ho(n.subTree))}),n.subTree.suspense):r.set(g,ho(n.subTree)))};return yo(v),So(v),_o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=ho(t);if(e.type!==r.type||e.key!==r.key)f(e);else{fo(r);const e=r.component.da;e&&oi(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ns(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=ho(o);const c=l.type,a=js(no(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!lo(u,a))||d&&a&&lo(d,a))return s=l,o;const f=null==l.key?c:l.key,h=r.get(f);return l.el&&(l=us(l),128&o.shapeFlag&&(o.ssContent=l)),g=f,h?(l.el=h.el,l.component=h.component,l.transition&&Zn(l,l.transition),l.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,Pi(o.type)?o:l}}};function lo(e,t){return f(e)?e.some((e=>lo(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function co(e,t){uo(e,"a",t)}function ao(e,t){uo(e,"da",t)}function uo(e,t,n=xs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(mo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&po(o,t,n,e),e=e.parent}}function po(e,t,n,o){const r=mo(t,e,o,!0);xo((()=>{u(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ho(e){return 128&e.shapeFlag?e.ssContent:e}function mo(e,t,n=xs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=Is(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const go=e=>(t,n=xs)=>{Os&&"sp"!==e||mo(e,((...e)=>t(...e)),n)},vo=go("bm"),yo=go("m"),bo=go("bu"),So=go("u"),_o=go("bum"),xo=go("um"),Co=go("sp"),ko=go("rtg"),wo=go("rtc");function Io(e,t=xs){mo("ec",e,t)}const Eo="components",To="directives";function Do(e,t){return Ro(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function Oo(e){return y(e)?Ro(Eo,e,!1)||e:e||Ao}function No(e){return Ro(To,e)}function Ro(e,t,n=!0,o=!1){const r=Rn||xs;if(r){const n=r.type;if(e===Eo){const e=js(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Po(r[e]||n[e],t)||Po(r.appContext[e],t);return!i&&o?n:i}}function Po(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Mo(e,t,n,o){let r;const i=n&&n[o];if(f(e)||y(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Fo(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&no(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),cs("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ki();const s=i&&Bo(i(n)),l=ts(Vi,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bo(e){return e.some((e=>!ns(e)||e.type!==qi&&!(e.type===Vi&&!Bo(e.children))))?e:null}function $o(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ts(e)?$s(e):jo(e.parent):null,Ho=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ar(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>_i.bind(e)}),Vo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Uo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Vo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];sr&&(l[t]=0)}}const d=Ho[t];let f,h;return d?("$attrs"===t&&$e(e.attrs,0,""),d(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==o&&p(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,p(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Vo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Vo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Ho,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=a({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function Wo(){return null}function zo(){return null}function Go(e){}function Ko(e){}function Jo(){return null}function Xo(){}function Yo(e,t){return null}function Qo(){return er().slots}function Zo(){return er().attrs}function er(){const e=Cs();return e.setupContext||(e.setupContext=Bs(e))}function tr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function nr(e,t){const n=tr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?f(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function or(e,t){return e&&t?f(e)&&f(t)?e.concat(t):a({},tr(e),tr(t)):e||t}function rr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Cs();let n=e();return Es(),_(n)&&(n=n.catch((e=>{throw Is(t),e}))),[n,()=>Is(t)]}let sr=!0;function lr(e,t,n){un(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function cr(e,t,n,o){const r=o.includes(".")?xi(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&bi(r,n)}else if(v(e))bi(r,e.bind(n));else if(S(e))if(f(e))e.forEach((e=>cr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&bi(r,o,e)}}function ar(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>ur(c,e,s,!0))),ur(c,t,s)):c=t,S(t)&&i.set(t,c),c}function ur(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ur(e,i,n,!0),r&&r.forEach((t=>ur(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=dr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const dr={data:pr,props:gr,emits:gr,methods:mr,computed:mr,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=hr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return mr(fr(e),fr(t))}};function pr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function fr(e){if(f(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=cs(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,$s(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Sr;Sr=l;try{return e()}finally{Sr=t}}};return l}}let Sr=null;function _r(e,t){if(xs){let n=xs.provides;const o=xs.parent&&xs.parent.provides;o===n&&(n=xs.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xs||Rn;if(o||Sr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function Cr(){return!!(xs||Rn||Sr)}const kr={},wr=()=>Object.create(kr),Ir=e=>Object.getPrototypeOf(e)===kr;function Er(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ti(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Ar(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(f(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const h=[c,u];return S(e)&&i.set(e,h),h}function Or(e){return"$"!==e[0]&&!E(e)}function Nr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Rr(e,t){return Nr(e)===Nr(t)}function Pr(e,t){return f(t)?t.findIndex((t=>Rr(t,e))):v(t)&&Rr(t,e)?0:-1}const Mr=e=>"_"===e[0]||"$stable"===e,Lr=e=>f(e)?e.map(hs):[hs(e)],Fr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>Lr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Mr(n))continue;const r=e[n];if(v(r))t[n]=Fr(0,r,o);else if(null!=r){const e=Lr(r);t[n]=()=>e}}},$r=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Hr=(e,t,n)=>{const o=e.slots=wr();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&B(o,"_",e,!0)):Br(t,o)}else t&&$r(e,t)},Vr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:jr(i,t,n):(s=!t.$stable,Br(t,i)),l=t}else t&&($r(e,t),l={default:1});if(s)for(const e in i)Mr(e)||null!=l[e]||delete i[e]};function Ur(e,t,n,r,i=!1){if(f(e))return void e.forEach(((e,o)=>Ur(e,t&&(f(t)?t[o]:t),n,r,i)));if(no(r)&&!i)return;const s=4&r.shapeFlag?$s(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,h=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(h[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,h]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:h[a]:a.value;i?f(n)&&u(n,s):f(n)?n.includes(s)||n.push(s):t?(h[a]=[s],p(m,a)&&(m[a]=h[a])):(a.value=[s],e.k&&(h[e.k]=a.value))}else t?(h[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(h[e.k]=l))};l?(r.id=-1,oi(r,n)):r()}}}const qr=Symbol("_vte"),Wr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Jr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Wr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Wr(e.props),g=m?n:u,y=m?o:f;if("svg"===s||zr(u)?s="svg":("mathml"===s||Gr(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),ui(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Kr(t.props,h);e&&Jr(t,e,null,a,0)}else m&&Jr(t,u,f,a,1)}Yr(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),i&&r(c),16&s){const e=i||!Wr(p);for(let r=0;r{Qr||(console.error("Hydration completed but contains mismatches."),Qr=!0)},ei=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ti=e=>8===e.nodeType;function ni(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ti(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:k,patchFlag:w}=o;let I=n.nodeType;o.el=n,-2===w&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Ui:3!==I?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Zr(),n.data=o.children),E=i(n));break;case qi:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==I||S?_():i(n);break;case Wi:if(S&&(I=(n=i(n)).nodeType),1===I||3===I){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:h,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){h&&Hn(t,null,n,"created");let a,b=!1;if(y(e)){b=ai(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=f(e.firstChild,t,e,n,r,i,s);for(;o;){Zr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Zr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&At(u.style))for(const e in u.style)u.style[e];(a=u&&u.onVnodeBeforeMount)&&ys(a,n,t),h&&Hn(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||h||b)&&ji((()=>{a&&ys(a,n,t),b&&m.enter(e),h&&Hn(t,null,n,"mounted")}),r)}return e.nextSibling},f=(e,t,o,s,l,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,f=p.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=f(i(e),t,d,n,o,r,l);return p&&ti(p)&&"]"===p.data?i(t.anchor=p):(Zr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Zr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,ei(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&ti(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),In(),void(t._vnode=e);d(t.firstChild,e,null,null,null),In(),t._vnode=e},d]}const oi=ji;function ri(e){return si(e)}function ii(e){return si(e,ni)}function si(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:f,parentNode:h,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Ui:b(e,t,n,o);break;case qi:S(e,t,n,o);break;case Wi:null==e&&_(t,n,o,s);break;case Vi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Ur(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):I(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,h&&h.is,h),8&m?f(d,e.children):16&m&&w(e.children,d,null,r,i,li(e,s),a,u),v&&Hn(e,null,r,"created"),k(d,e,e.scopeId,a,r),h){for(const e in h)"value"===e||E(e)||l(d,e,null,h[e],s,r);"value"in h&&l(d,"value",null,h.value,s),(p=h.onVnodeBeforeMount)&&ys(p,r,e)}v&&Hn(e,null,r,"beforeMount");const y=ai(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||y||v)&&oi((()=>{p&&ys(p,r,e),y&&g.enter(d),v&&Hn(e,null,r,"mounted")}),i)},k=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let g;if(n&&ci(n,!1),(g=m.onVnodeBeforeUpdate)&&ys(g,n,t,e),p&&Hn(t,e,n,"beforeUpdate"),n&&ci(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&f(a,""),d?T(e.dynamicChildren,d,a,n,r,li(t,i),s):c||$(e,t,a,null,n,r,li(t,i),s,!1),u>0){if(16&u)D(a,h,m,n,i);else if(2&u&&h.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ys(g,n,t,e),p&&Hn(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(t!==n){if(t!==o)for(const o in t)E(o)||o in n||l(e,o,t[o],null,i,r);for(const o in n){if(E(o))continue;const s=n[o],c=t[o];s!==c&&"value"!==o&&l(e,o,c,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),w(t.children||[],o,p,i,s,l,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&ui(e,t,!0)):$(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):M(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=_s(e,o,r);if(io(e)&&(l.ctx.renderer=Q),Ns(l,!1,s),l.asyncDep){if(r&&r.registerDep(l,L,s),!e.el){const e=l.subTree=cs(qi);S(null,e,t,n)}}else L(l,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||Ni(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?Ni(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&hn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=di(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;ci(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ys(u,i,t,a),ci(e,!0);const p=Di(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Ri(e,p.el),o&&oi(o,r),(u=t.props&&t.props.onVnodeUpdated)&&oi((()=>ys(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=no(t);if(ci(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&ys(i,d,t),ci(e,!0),l&&ee){const n=()=>{e.subTree=Di(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Di(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&oi(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;oi((()=>ys(i,d,e)),r)}(256&t.shapeFlag||d&&no(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&oi(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,ci(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;Er(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Tr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void j(a,d,n,o,r,i,s,l,c)}8&h?(16&u&&K(a,r,i),d!==a&&f(n,d)):16&u?16&h?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&f(n,""),16&h&&w(d,n,o,r,i,s,l,c))},j=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?K(e,i,s,!0,!1,p):w(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const o=e[u],r=t[u]=a?ms(t[u]):hs(t[u]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=f;){const o=e[p],r=t[f]=a?ms(t[f]):hs(t[f]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,f--}if(u>p){if(u<=f){const e=f+1,r=ef)for(;u<=p;)q(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=a?ms(t[u]):hs(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=f-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=f;v++)if(0===C[v-m]&&os(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const k=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=k.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Vi)if(l!==Wi)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),oi((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(r=!1),null!=l&&Ur(l,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,m=!no(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&ys(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Hn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&!a.hasOnce&&(i!==Vi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Vi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||h)&&oi((()=>{g&&ys(g,t,e),h&&Hn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Vi)return void z(n,o);if(t===Wi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;pi(c),pi(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&oi(l,t),oi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[qr];return n?m(n):t};let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,wn(),In(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:w,pc:$,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:br(Y,Z)}}function li({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let e=0;exr(fi);function mi(e,t){return Si(e,null,t)}function gi(e,t){return Si(e,null,{flush:"post"})}function vi(e,t){return Si(e,null,{flush:"sync"})}const yi={};function bi(e,t,n){return Si(e,t,n)}function Si(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),I()}}const d=xs,p=e=>!0===r?e:Ci(e,!1===r?1:void 0);let h,m,g=!1,y=!1;if(Ht(e)?(h=()=>e.value,g=Nt(e)):At(e)?(h=()=>p(e),g=!0):f(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),h=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):h=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=h;h=()=>Ci(e())}let b,S=e=>{m=k.onStop=()=>{an(e,d,4),m=k.onStop=void 0}};if(Os){if(S=i,t?n&&un(t,d,3,[h(),y?[]:void 0,S]):h(),"sync"!==s)return i;{const e=hi();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(yi):yi;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(r||g||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(m&&m(),un(t,d,3,[e,_===yi?void 0:y&&_[0]===yi?[]:_,S]),_=e)}else k.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>oi(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new ye(h,i,C),w=ge(),I=()=>{k.stop(),w&&u(w.effects,k)};return t?n?x():_=k.run():"post"===s?oi(k.run.bind(k),d&&d.suspense):k.run(),b&&b.push(I),I}function _i(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?xi(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=Is(this),l=Si(r,i.bind(o),n);return s(),l}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ci(e,t,n)}));else if(w(e)){for(const o in e)Ci(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ci(e[o],t,n)}return e}function ki(e,t,n=o){const r=Cs(),i=O(t),s=R(t),l=wi(e,t),c=Qt(((o,l)=>{let c,a,u;return vi((()=>{const n=e[t];L(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){if(!L(e,c))return;const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||(c=e,l());const d=n.set?n.set(e):e;r.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o:c,done:!1}:{done:!0}}},c}const wi=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${R(t)}Modifiers`];function Ii(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const s=t.startsWith("update:"),l=s&&wi(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>y(e)?e.trim():e))),l.number&&(i=n.map(j)));let a=r[c=M(t)]||r[c=M(O(t))];!a&&s&&(a=r[c=M(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Ei(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Ei(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(f(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ti(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function Di(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=Mn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=hs(u.call(t,e,d,p,h,f,m)),b=l}else{const e=t;y=hs(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:Ai(l)}}catch(t){zi.length=0,dn(t,e,1),y=cs(qi)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Oi(b,i)),S=us(S,b,!1,!0))}return n.dirs&&(S=us(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Mn(v),y}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Oi=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ni(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Mi=0;const Li={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bi(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Fi(e,"onPending"),Fi(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),Hi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,os(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(h,f,n,o,r,null,i,s,l),Hi(d,f)))):(d.pendingId=Mi++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(h,f,n,o,r,null,i,s,l),Hi(d,f))):h&&os(p,h)?(c(h,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(h&&os(p,h))c(h,p,n,o,r,d,i,s,l),Hi(d,p);else if(Fi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Mi++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=Bi(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=$i(o?n.default:n),e.ssFallback=o?$i(n.fallback):cs(qi)}};function Fi(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Bi(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:f,n:h,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:Mi++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?h(r):i,0),kn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=h(r)),f(r,a,_,!0)),d||p(s,u,i,0)),Hi(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||kn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Fi(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;Fi(t,"onFallback");const s=h(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),Hi(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,f(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&h(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Rs(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:h(e.subTree),_,s,n),c&&g(c),Ri(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,n,e,t),_.pendingBranch&&f(_.pendingBranch,n,e,t)}};return _}function $i(e){let t;if(v(e)){const n=Yi&&e._c;n&&(e._d=!1,Ki()),e=e(),n&&(e._d=!0,t=Gi,Ji())}if(f(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function ji(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Hi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ri(o,r))}const Vi=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),qi=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),zi=[];let Gi=null;function Ki(e=!1){zi.push(Gi=e?null:[])}function Ji(){zi.pop(),Gi=zi[zi.length-1]||null}let Xi,Yi=1;function Qi(e){Yi+=e,e<0&&Gi&&(Gi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?Gi||r:null,Ji(),Yi>0&&Gi&&Gi.push(e),e}function es(e,t,n,o,r,i){return Zi(ls(e,t,n,o,r,i,!0))}function ts(e,t,n,o,r){return Zi(cs(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}function rs(e){Xi=e}const is=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,o=0,r=null,i=(e===Vi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&is(t),ref:t&&ss(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return l?(gs(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!s&&Gi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Gi.push(c),c}const cs=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Ao||(e=qi),ns(e)){const o=us(e,t,!0);return n&&gs(o,n),Yi>0&&!i&&Gi&&(6&o.shapeFlag?Gi[Gi.indexOf(e)]=o:Gi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=as(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!f(n)&&(n=a({},n)),t.style=z(n))}var s;return ls(e,t,n,o,r,y(e)?1:Pi(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function as(e){return e?Rt(e)||Ir(e)?a({},e):e:null}function us(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?vs(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&is(a),ref:t&&t.ref?n&&i?f(i)?i.concat(ss(t)):[i,ss(t)]:ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Zn(u,c.clone(u)),u}function ds(e=" ",t=0){return cs(Ui,null,e,t)}function ps(e,t){const n=cs(Wi,null,e);return n.staticCount=t,n}function fs(e="",t=!1){return t?(Ki(),ts(qi,null,e)):cs(qi,null,e)}function hs(e){return null==e||"boolean"==typeof e?cs(qi):f(e)?cs(Vi,null,e.slice()):"object"==typeof e?ms(e):cs(Ui,null,String(e))}function ms(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:us(e)}function gs(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),gs(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Ir(t)?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else v(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nxs||Rn;let ks,ws;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ks=t("__VUE_INSTANCE_SETTERS__",(e=>xs=e)),ws=t("__VUE_SSR_SETTERS__",(e=>Os=e))}const Is=e=>{const t=xs;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Es=()=>{xs&&xs.scope.off(),ks(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Ds,As,Os=!1;function Ns(e,t=!1,n=!1){t&&ws(t);const{props:o,children:r}=e.vnode,i=Ts(e);!function(e,t,n,o=!1){const r={},i=wr();e.propsDefaults=Object.create(null),Er(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:It(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,o,i,t),Hr(e,r,n);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bs(e):null,r=Is(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(Es,Es),t)return i.then((n=>{Rs(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Rs(e,i,t)}else Ls(e,t)}(e,t):void 0;return t&&ws(!1),s}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Ls(e,n)}function Ps(e){Ds=e,As=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qo))}}const Ms=()=>!Ds;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const t=o.template||ar(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ds(t,l)}}e.render=o.render||i,As&&As(e)}{const t=Is(e);Te();try{!function(e){const t=ar(e),n=e.proxy,o=e.ctx;sr=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:k,render:w,renderTracked:I,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t){f(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=wt(t))}if(sr=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Hs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)cr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{_r(t,e[t])}))}function M(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&lr(d,e,"c"),M(vo,p),M(yo,h),M(bo,m),M(So,g),M(co,y),M(ao,b),M(Io,T),M(wo,I),M(ko,E),M(_o,x),M(xo,k),M(Co,D),f(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===i&&(e.render=w),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Fs={get:(e,t)=>($e(e,0,""),e[t])};function Bs(e){return{attrs:new Proxy(e.attrs,Fs),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Mt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ho?Ho[n](e):void 0,has:(e,t)=>t in e||t in Ho})):e.proxy}function js(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Os);function Vs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!f(t)?ns(t)?cs(e,null,[t]):cs(e,t):cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),cs(e,t,n))}function Us(){}function qs(e,t,n,o){const r=n[o];if(r&&Ws(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function Ws(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gi&&Gi.push(e),!0}const zs="3.4.33",Gs=i,Ks={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Js=An,Xs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Ys={createComponentInstance:_s,setupComponent:Ns,renderComponentRoot:Di,setCurrentRenderingInstance:Mn,isVNode:ns,normalizeVNode:hs,getComponentPublicInstance:$s},Qs=null,Zs=null,el=null,tl="undefined"!=typeof document?document:null,nl=tl&&tl.createElement("template"),ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?tl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?tl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?tl.createElement(e,{is:n}):tl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>tl.createTextNode(e),createComment:e=>tl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{nl.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",il="animation",sl=Symbol("_vtc"),ll=(e,{slots:t})=>Vs(Kn,pl(e),t);ll.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},al=ll.props=a({},zn,cl),ul=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},dl=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function pl(e){const t={};for(const n in e)n in cl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:w=b,onAppearCancelled:I=_}=t,E=(e,t,n)=>{ml(e,t?d:l),ml(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,ml(e,p),ml(e,h),ml(e,f),t&&t()},D=e=>(t,n)=>{const r=e?w:b,s=()=>E(t,e,n);ul(r,[t,s]),gl((()=>{ml(t,e?c:i),hl(t,e?d:l),dl(r)||yl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){ul(y,[e]),hl(e,i),hl(e,s)},onBeforeAppear(e){ul(k,[e]),hl(e,c),hl(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);hl(e,p),hl(e,f),xl(),gl((()=>{e._isLeaving&&(ml(e,p),hl(e,h),dl(x)||yl(e,o,v,n))})),ul(x,[e,n])},onEnterCancelled(e){E(e,!1),ul(_,[e])},onAppearCancelled(e){E(e,!0),ul(I,[e])},onLeaveCancelled(e){T(e),ul(C,[e])}})}function fl(e){return H(e)}function hl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[sl]||(e[sl]=new Set)).add(t)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[sl];n&&(n.delete(t),n.size||(e[sl]=void 0))}function gl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let vl=0;function yl(e,t,n,o){const r=e._endId=++vl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=bl(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${rl}Delay`),i=o(`${rl}Duration`),s=Sl(r,i),l=o(`${il}Delay`),c=o(`${il}Duration`),a=Sl(l,c);let u=null,d=0,p=0;return t===rl?s>0&&(u=rl,d=s,p=i.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?rl:il:null,p=u?u===rl?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===rl&&/\b(transform|all)(,|$)/.test(o(`${rl}Property`).toString())}}function Sl(e,t){for(;e.length_l(t)+_l(e[n]))))}function _l(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const Cl=Symbol("_vod"),kl=Symbol("_vsh"),wl={beforeMount(e,{value:t},{transition:n}){e[Cl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Il(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Il(e,!0),o.enter(e)):o.leave(e,(()=>{Il(e,!1)})):Il(e,t))},beforeUnmount(e,{value:t}){Il(e,t)}};function Il(e,t){e.style.display=t?e[Cl]:"none",e[kl]=!t}const El=Symbol("");function Tl(e){const t=Cs();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Al(e,n)))},o=()=>{const o=e(t.proxy);Dl(t.subTree,o),n(o)};yo((()=>{gi(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Dl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Dl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Al(e.el,t);else if(e.type===Vi)e.children.forEach((e=>Dl(e,t)));else if(e.type===Wi){let{el:n,anchor:o}=e;for(;n&&(Al(n,t),n!==o);)n=n.nextSibling}}function Al(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Ol=/(^|;)\s*display\s*:/,Nl=/\s*!important$/;function Rl(e,t,n){if(f(n))n.forEach((n=>Rl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ml[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ml[t]=o;o=P(o);for(let n=0;nHl||(Vl.then((()=>Hl=0)),Hl=Date.now()),ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Wl(e,t,n){const o=to(e,t);class r extends Kl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Wl(e,t,Ac),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Dc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!f(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Dc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=cs(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Jl(e="$style"){{const t=Cs();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const Xl=new WeakMap,Yl=new WeakMap,Ql=Symbol("_moveCb"),Zl=Symbol("_enterCb"),ec={name:"TransitionGroup",props:a({},al,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cs(),o=qn();let r,i;return So((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[sl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=bl(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(tc),r.forEach(nc);const o=r.filter(oc);xl(),o.forEach((e=>{const n=e.el,o=n.style;hl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ql]=null,ml(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=pl(s);let c=s.tag||Vi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>F(t,e):t};function ic(e){e.target.composing=!0}function sc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lc=Symbol("_assign"),cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lc]=rc(r);const i=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[lc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",sc),Bl(e,"change",sc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[lc]=rc(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ac={deep:!0,created(e,t,n){e[lc]=rc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=hc(e),o=e.checked,r=e[lc];if(f(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(mc(e,o))}))},mounted:uc,beforeUpdate(e,t,n){e[lc]=rc(n),uc(e,t,n)}};function uc(e,{value:t,oldValue:n},o){e._modelValue=t,f(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,mc(e,!0)))}const dc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[lc]=rc(n),Bl(e,"change",(()=>{e[lc](hc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[lc]=rc(o),t!==n&&(e.checked=ie(t,o.props.value))}},pc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(hc(e)):hc(e)));e[lc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[lc]=rc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[lc]=rc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=f(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(hc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function hc(e){return"_value"in e?e._value:e.value}function mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gc={created(e,t,n){yc(e,t,n,null,"created")},mounted(e,t,n){yc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){yc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){yc(e,t,n,o,"updated")}};function vc(e,t){switch(e){case"SELECT":return pc;case"TEXTAREA":return cc;default:switch(t){case"checkbox":return ac;case"radio":return dc;default:return cc}}}function yc(e,t,n,o,r){const i=vc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const bc=["ctrl","shift","alt","meta"],Sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>bc.some((n=>e[`${n}Key`]&&!t.includes(n)))},_c=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},kc=a({patchProp:(e,t,n,o,r,i)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[sl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Rl(o,t,"")}else for(const e in t)null==n[e]&&Rl(o,e,"");for(const e in n)"display"===e&&(i=!0),Rl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,i=Ol.test(n)}}else t&&e.removeAttribute("style");Cl in e&&(e[Cl]=i?o.display:"",e[kl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[$l]||(e[$l]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ul(),n}(o,r);Bl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!y(n))&&t in e}(e,t,o,s))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Fl(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Fl(e,t,o,s))}},ol);let wc,Ic=!1;function Ec(){return wc||(wc=ri(kc))}function Tc(){return wc=Ic?wc:ii(kc),Ic=!0,wc}const Dc=(...e)=>{Ec().render(...e)},Ac=(...e)=>{Tc().hydrate(...e)},Oc=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Pc(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Nc=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Rc(t))},t};function Rc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){return y(e)?document.querySelector(e):e}let Mc=!1;const Lc=()=>{Mc||(Mc=!0,cc.getSSRProps=({value:e})=>({value:e}),dc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ac.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=vc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},wl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Fc=Symbol(""),Bc=Symbol(""),$c=Symbol(""),jc=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),fa=Symbol(""),ha=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa={[Fc]:"Fragment",[Bc]:"Teleport",[$c]:"Suspense",[jc]:"KeepAlive",[Hc]:"BaseTransition",[Vc]:"openBlock",[Uc]:"createBlock",[qc]:"createElementBlock",[Wc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Kc]:"createTextVNode",[Jc]:"createStaticVNode",[Xc]:"resolveComponent",[Yc]:"resolveDynamicComponent",[Qc]:"resolveDirective",[Zc]:"resolveFilter",[ea]:"withDirectives",[ta]:"renderList",[na]:"renderSlot",[oa]:"createSlots",[ra]:"toDisplayString",[ia]:"mergeProps",[sa]:"normalizeClass",[la]:"normalizeStyle",[ca]:"normalizeProps",[aa]:"guardReactiveProps",[ua]:"toHandlers",[da]:"camelize",[pa]:"capitalize",[fa]:"toHandlerKey",[ha]:"setBlockTracking",[ma]:"pushScopeId",[ga]:"popScopeId",[va]:"withCtx",[ya]:"unref",[ba]:"isRef",[Sa]:"withMemo",[_a]:"isMemoSame"},Ca={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ka(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=Ca){return e&&(l?(e.helper(Vc),e.helper(Pa(e.inSSR,a))):e.helper(Ra(e.inSSR,a)),s&&e.helper(ea)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function wa(e,t=Ca){return{type:17,loc:t,elements:e}}function Ia(e,t=Ca){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Ca,key:y(e)?Ta(e,!0):e,value:t}}function Ta(e,t=!1,n=Ca,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Da(e,t=Ca){return{type:8,loc:t,children:e}}function Aa(e,t=[],n=Ca){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ca){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Na(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ca}}function Ra(e,t){return e||t?Wc:zc}function Pa(e,t){return e||t?Uc:qc}function Ma(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Ra(o,e.isComponent)),t(Vc),t(Pa(o,e.isComponent)))}const La=new Uint8Array([123,123]),Fa=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function $a(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||$a(e)}function Ha(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Xa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return $c;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Hc}}const Ya=/^\d|[^\$\w\xA0-\uFFFF]/,Qa=e=>!Ya.test(e),Za=/[A-Za-z_$\xA0-\uFFFF]/,eu=/[\.\?\w$\xA0-\uFFFF]/,tu=/\s+[.[]\s*|\s*[.[]\s+/g,nu=e=>{e=e.trim().replace(tu,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function hu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const mu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let vu=gu,yu=null,bu="",Su=null,_u=null,xu="",Cu=-1,ku=-1,wu=0,Iu=!1,Eu=null;const Tu=[],Du=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=La,this.delimiterClose=Fa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=La,this.delimiterClose=Fa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||$a(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Va.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Tu,{onerr:Ju,ontext(e,t){Pu(Nu(e,t),e,t)},ontextentity(e,t,n){Pu(e,t,n)},oninterpolation(e,t){if(Iu)return Pu(Nu(e,t),e,t);let n=e+Du.delimiterOpen.length,o=t-Du.delimiterClose.length;for(;$a(bu.charCodeAt(n));)n++;for(;$a(bu.charCodeAt(o-1));)o--;let r=Nu(n,o);r.includes("&")&&(r=vu.decodeEntities(r,!1)),qu({type:5,content:Ku(r,!1,Wu(n,o)),loc:Wu(e,t)})},onopentagname(e,t){const n=Nu(e,t);Su={type:1,tag:n,ns:vu.getNamespace(n,Tu[0],vu.ns),tagType:0,props:[],children:[],loc:Wu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Nu(e,t);if(!vu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ju(24,Tu[0].loc.start.offset);for(let n=0;n<=e;n++)Mu(Tu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ju(2,t)},onattribend(e,t){if(Su&&_u){if(zu(_u.loc,t),0!==e)if(xu.includes("&")&&(xu=vu.decodeEntities(xu,!0)),6===_u.type)"class"===_u.name&&(xu=Uu(xu).trim()),1!==e||xu||Ju(13,t),_u.value={type:2,content:xu,loc:1===e?Wu(Cu,ku):Wu(Cu-1,ku+1)},Du.inSFCRoot&&"template"===Su.tag&&"lang"===_u.name&&xu&&"html"!==xu&&Du.enterRCDATA(Ha("{const r=t.start.offset+n;return Ku(e,!1,Wu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Au);if(u){c=c.replace(Au,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(_u.exp));let t=-1;"bind"===_u.name&&(t=_u.modifiers.indexOf("sync"))>-1&&Wa("COMPILER_V_BIND_SYNC",vu,_u.loc,_u.rawName)&&(_u.name="model",_u.modifiers.splice(t,1))}7===_u.type&&"pre"===_u.name||Su.props.push(_u)}xu="",Cu=ku=-1},oncomment(e,t){vu.comments&&qu({type:3,content:Nu(e,t),loc:Wu(e-4,t+3)})},onend(){const e=bu.length;for(let t=0;t64&&n<91||Xa(e)||vu.isBuiltInComponent&&vu.isBuiltInComponent(e)||vu.isNativeTag&&!vu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wa("COMPILER_INLINE_TEMPLATE",vu,n.loc)&&e.children.length&&(n.value={type:2,content:Nu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(e,t){let n=e;for(;bu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fu=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&nd(r,t)>=2){const n=od(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Qu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Qu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=Ta(e)),E.hoists.push(e);const t=Ta(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ca}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);id(e,n),t.hoistStatic&&Xu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Yu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Ma(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=ka(t,n(Fc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(lu))return;const i=[];for(let s=0;s`${xa[e]}: _${xa[e]}`;function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Zc:"component"===t?Xc:Qc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,h,a]),t),n(")"),d&&n(")"),u&&(n(", "),pd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(ld),n(i+"(",-2,e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),f(s)?ud(s,t):pd(s,t)):l&&pd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Qa(n.content);e&&s("("),fd(n,t),e&&s(")")}else s("("),pd(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),pd(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,pd(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ha)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),pd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(ha)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function hd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ka(28,t.loc)),t.exp=Ta("true",!1,o)}if("if"===t.name){const r=vd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ka(30,e.loc)),n.removeNode();const r=vd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);id(r,n),i&&i(),n.currentNode=null}else n.onError(Ka(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=yd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=yd(t,s+e.branches.length-1,n)}}}))));function vd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ou(e,"for")?e.children:[e],userKey:ru(e,"key"),isTemplateIf:n}}function yd(e,t,n){return e.condition?Na(e.condition,bd(e,t,n),Aa(n.helper(Gc),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=Ea("key",Ta(`${t}`,!1,Ca,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return pu(e,r,n),e}{let t=64;return q[64],ka(n,o(Fc),Ia([r]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===Sa?l.arguments[1].returns:l;return 13===t.type&&Ma(t,n),pu(t,r,n),e}var l}const Sd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(Ka(52,i.loc)),{props:[Ea(i,Ta("",!0,r))]};_d(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(da)}(${i.content})`:(i.children.unshift(`${n.helperString(da)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(i,"."),o.includes("attr")&&xd(i,"^")),{props:[Ea(i,s)]}},_d=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=Ta(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cd=sd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ka(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ka(32,t.loc));kd(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:cu(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const f=o&&o(p);return()=>{l.vFor--,f&&f()}}(e,t,n,(t=>{const i=Aa(o(ta),[t.source]),s=cu(e),l=ou(e,"memo"),c=ru(e,"key",!1,!0);c&&7===c.type&&!c.exp&&_d(c);const a=c&&(6===c.type?c.value?Ta(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=ka(n,o(Fc),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,f=1!==p.length||1!==p[0].type,h=au(e)?e:s&&1===e.children.length&&au(e.children[0])?e.children[0]:null;if(h?(c=h.codegenNode,s&&u&&pu(c,u,n)):f?c=ka(n,o(Fc),u?Ia([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&pu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Vc),r(Pa(n.inSSR,c.isComponent))):r(Ra(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Vc),o(Pa(n.inSSR,c.isComponent))):o(Ra(n.inSSR,c.isComponent))),l){const e=Oa(wd(t.parseResult,[Ta("_cached")]));e.body={type:21,body:[Da(["const _memo = (",l.exp,")"]),Da(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(_a)}(_cached, _memo)) return _cached`]),Da(["const _item = ",c]),Ta("_item.memo = _memo"),Ta("return _item")],loc:Ca},i.arguments.push(e,Ta("_cache"),Ta(String(n.cached++)))}else i.arguments.push(Oa(wd(t.parseResult),c,!0))}}))}));function kd(e,t){e.finalized||(e.finalized=!0)}function wd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ta("_".repeat(t+1),!1)))}([e,t,n,...o])}const Id=Ta("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ou(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Dd(e,t,n=Td){t.helper(va);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ou(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ja(e)&&(l=!0),i.push(Ea(e||Ta("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let f=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ea("default",i)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Ka(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const h=l?2:Od(e.children)?3:1;let m=Ia(i.concat(Ea("_",Ta(h+"",!1))),r);return s.length&&(m=Aa(t.helper(oa),[m,wa(s)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",Ta(String(n),!0))),Ia(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),i=ru(e,"is",!1,!0);if(i)if(r||qa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ta(i.value.content,!0):(e=i.exp,e||(e=Ta("is",!1,i.loc))),e)return Aa(t.helper(Yc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=Xa(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(Xc),t.components.add(o),hu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Yc;let l,c,a,u,d,p=0,f=s||i===Bc||i===$c||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Md(e,t,void 0,r,s);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?wa(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Qc),t.directives.add(e.name),n.push(hu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ta("true",!1,r);n.push(Ia(e.modifiers.map((e=>Ea(e,t))),r))}return wa(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(i===jc&&(f=!0,p|=1024),r&&i!==Bc&&i!==jc){const{slots:n,hasDynamicSlots:o}=Dd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&i!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Zu(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(d.push(Ia(Ld(u),c)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(Ea(Ta("ref_for",!0),Ta("true")))},I=({key:e,value:n})=>{if(Ja(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Zu(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?Aa(t.helper(ia),d,c):d[0]):u.length&&(D=Ia(Ld(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),h||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(au(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Md(e,t,r,!1,!1);n=o,i.length&&t.onError(Ka(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Aa(t.helper(na),s,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(Ka(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ta(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(O(e)):`on:${e}`,!0,s.loc)}else l=Da([`${n.helperString(fa)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=nu(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Da([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||Ta("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ou(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(ha),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Wd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ka(41,e.loc)),zd();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(Ka(44,o.loc)),zd();if(!s.trim()||!nu(s))return n.onError(Ka(42,o.loc)),zd();const c=r||Ta("modelValue",!0),a=r?Ja(r)?`onUpdate:${O(r.content)}`:Da(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Da([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Qa(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ja(r)?`${r.content}Modifiers`:Da([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,Ta(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Kd=(e,t)=>{qa("COMPILER_FILTERS",t)&&(5===e.type?Jd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Jd(e.exp,t)})))};function Jd(e,t){if(4===e.type)Xd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===s?(h=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i{if(1===e.type){const n=ou(e,"memo");if(!n||Qd.has(e))return;return Qd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Ma(o,t),e.codegenNode=Aa(t.helper(Sa),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function ep(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ka(47)):o&&n(Ka(48)),t.cacheHandlers&&n(Ka(49)),t.scopeId&&!o&&n(Ka(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Du.reset(),Su=null,_u=null,xu="",Cu=-1,ku=-1,Tu.length=0,bu=e,vu=a({},gu),t){let e;for(e in t)null!=t[e]&&(vu[e]=t[e])}Du.mode="html"===vu.parseMode?1:"sfc"===vu.parseMode?2:0,Du.inXML=1===vu.ns||2===vu.ns;const n=t&&t.delimiters;n&&(Du.delimiterOpen=Ha(n[0]),Du.delimiterClose=Ha(n[1]));const o=yu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ca}}(0,e);return Du.parse(bu),o.loc=Wu(0,e.length),o.children=ju(o.children),yu=null,o}(e,r):e,[s,l]=[[qd,gd,Zd,Cd,Kd,$d,Pd,Ed,Vd],{on:Hd,bind:Sd,model:Wd}];return rd(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){f.code+=e},indent(){h(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:h(--f.indentLevel)},newline(){h(f.indentLevel)}};function h(e){f.push("\n"+" ".repeat(e),0)}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,f=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Wc,zc,Gc,Kc,Jc].filter((e=>u.includes(e))).map(cd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ad(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?pd(e.codegenNode,n):r("null"),f&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol("");var dp;let pp;dp={[tp]:"vModelRadio",[np]:"vModelCheckbox",[op]:"vModelText",[rp]:"vModelSelect",[ip]:"vModelDynamic",[sp]:"withModifiers",[lp]:"withKeys",[cp]:"vShow",[ap]:"Transition",[up]:"TransitionGroup"},Object.getOwnPropertySymbols(dp).forEach((e=>{xa[e]=dp[e]}));const fp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return pp||(pp=document.createElement("div")),t?(pp.innerHTML=`
        `,pp.children[0].getAttribute("foo")):(pp.innerHTML=e,pp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ap:"TransitionGroup"===e||"transition-group"===e?up:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},hp=(e,t)=>{const n=X(e);return Ta(JSON.stringify(n),!1,t,3)};function mp(e,t){return Ka(e,t)}const gp=n("passive,once,capture"),vp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=n("left,right"),bp=n("onkeyup,onkeydown,onkeypress",!0),Sp=(e,t)=>Ja(e)&&"onclick"===e.content.toLowerCase()?Ta(t,!0):4!==e.type?Da(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,_p=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ta("style",!0,t.loc),exp:hp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(53,r)),t.children.length&&(n.onError(mp(54,r)),t.children.length=0),{props:[Ea(Ta("innerHTML",!0,r),o||Ta("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(55,r)),t.children.length&&(n.onError(mp(56,r)),t.children.length=0),{props:[Ea(Ta("textContent",!0),o?Zu(o,n)>0?o:Aa(n.helperString(ra),[o],r):Ta("",!0))]}},model:(e,t,n)=>{const o=Wd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(mp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=op,l=!1;if("input"===r||i){const o=ru(t,"type");if(o){if(7===o.type)s=ip;else if(o.value)switch(o.value.content){case"radio":s=tp;break;case"checkbox":s=np;break;case"file":l=!0,n.onError(mp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=ip)}else"select"===r&&(s=rp);l||(o.needRuntime=n.helper(s))}else n.onError(mp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],i=[];for(let s=0;s{const{exp:o,loc:r}=e;return o||n.onError(mp(61,r)),{props:[],needRuntime:n.helper(cp)}}},kp=new WeakMap;Ps((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=kp.get(null!=e?e:o);return t||(t=Object.create(null),kp.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return ep(e,a({},fp,t,{nodeTransforms:[_p,...xp,...t.nodeTransforms||[]],directiveTransforms:a({},Cp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const wp={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Hs((function(){return e.iconList})),appIsGettingData:Hs((function(){return e.appIsGettingData})),appIsPublishing:Hs((function(){return e.appIsPublishing})),isEditingMode:Hs((function(){return e.isEditingMode})),designData:Hs((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Hs((function(){return e.showFormDialog})),dialogTitle:Hs((function(){return e.dialogTitle})),dialogFormContent:Hs((function(){return e.dialogFormContent})),dialogButtonText:Hs((function(){return e.dialogButtonText})),formSaveFunction:Hs((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},Ip="undefined"!=typeof document;const Ep=Object.assign;function Tp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ap(r)?r.map(e):e(r)}return n}const Dp=()=>{},Ap=Array.isArray,Op=/#/g,Np=/&/g,Rp=/\//g,Pp=/=/g,Mp=/\?/g,Lp=/\+/g,Fp=/%5B/g,Bp=/%5D/g,$p=/%5E/g,jp=/%60/g,Hp=/%7B/g,Vp=/%7C/g,Up=/%7D/g,qp=/%20/g;function Wp(e){return encodeURI(""+e).replace(Vp,"|").replace(Fp,"[").replace(Bp,"]")}function zp(e){return Wp(e).replace(Lp,"%2B").replace(qp,"+").replace(Op,"%23").replace(Np,"%26").replace(jp,"`").replace(Hp,"{").replace(Up,"}").replace($p,"^")}function Gp(e){return null==e?"":function(e){return Wp(e).replace(Op,"%23").replace(Mp,"%3F")}(e).replace(Rp,"%2F")}function Kp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Jp=/\/$/,Xp=e=>e.replace(Jp,"");function Yp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Kp(s)}}function Qp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Zp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ef(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tf(e[n],t[n]))return!1;return!0}function tf(e,t){return Ap(e)?nf(e,t):Ap(t)?nf(t,e):e===t}function nf(e,t){return Ap(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const of={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rf,sf;!function(e){e.pop="pop",e.push="push"}(rf||(rf={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(sf||(sf={}));const lf=/^[^#]+#/;function cf(e,t){return e.replace(lf,"#")+t}const af=()=>({left:window.scrollX,top:window.scrollY});function uf(e,t){return(history.state?history.state.position-t:-1)+e}const df=new Map;let pf=()=>location.protocol+"//"+location.host;function ff(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Qp(n,"")}return Qp(n,e)+o+r}function hf(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?af():null}}function mf(e){return"string"==typeof e||"symbol"==typeof e}const gf=Symbol("");var vf;function yf(e,t){return Ep(new Error,{type:e,[gf]:!0},t)}function bf(e,t){return e instanceof Error&&gf in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(vf||(vf={}));const Sf="[^/]+?",_f={sensitive:!1,strict:!1,start:!0,end:!0},xf=/[.+*?^${}()[\]/\\]/g;function Cf(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function kf(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const If={type:0,value:""},Ef=/[a-zA-Z0-9_]/;function Tf(e,t,n){const o=function(e,t){const n=Ep({},_f,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;cEp(e,t.meta)),{})}function Rf(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Pf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mf(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&zp(e))):[o&&zp(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Ff(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ap(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Bf=Symbol(""),$f=Symbol(""),jf=Symbol(""),Hf=Symbol(""),Vf=Symbol("");function Uf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function qf(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(yf(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(yf(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function Wf(e,t,n,o,r=e=>e()){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push(qf(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&qf(a,n,o,l,e,r)()}))))}}var s;return i}function zf(e){const t=xr(jf),n=xr(Hf),o=Hs((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Hs((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Zp.bind(null,r));if(s>-1)return s;const l=Kf(e[t-2]);return t>1&&Kf(r)===l&&i[i.length-1].path!==l?i.findIndex(Zp.bind(null,e[t-2])):s})),i=Hs((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ap(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Hs((()=>r.value>-1&&r.value===n.matched.length-1&&ef(n.params,o.value.params)));return{route:o,href:Hs((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Dp):Promise.resolve()}}}const Gf=to({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zf,setup(e,{slots:t}){const n=wt(zf(e)),{options:o}=xr(jf),r=Hs((()=>({[Jf(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jf(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Kf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jf=(e,t,n)=>null!=e?e:null!=t?t:n;function Xf(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Yf=to({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=xr(Vf),r=Hs((()=>e.route||o.value)),i=xr($f,0),s=Hs((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Hs((()=>r.value.matched[s.value]));_r($f,Hs((()=>s.value+1))),_r(Bf,l),_r(Vf,r);const c=Vt();return bi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Zp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return Xf(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Vs(a,Ep({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return Xf(n.default,{Component:p,route:o})||p}}}),Qf={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
        \n

        {{ menuItem.title }}

        \n
        {{ menuItem.subtitle }}
        \n
        \n
        '};function Zf(e){return Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zf(e)}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function th(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
        \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:sh(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=sh(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

        '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var f=!1;for(var h in t.getQuery().terms)if("stepID"==t.getQuery().terms[h].id&&"="==t.getQuery().terms[h].operator&&"deleted"==t.getQuery().terms[h].match){f=!0;break}return f||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

        Searching for records...

        ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
        \n
        \n
        \n \n \n
        \n \n
        \n
        \n \n
        '};function ah(e){return ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(e)}function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dh(e,t,n){return(t=function(e){var t=function(e){if("object"!=ah(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ah(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ph,fh=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Hs((function(){return e.menuItem})),menuDirection:Hs((function(){return e.menuDirection})),menuItemList:Hs((function(){return e.menuItemList})),chosenHeaders:Hs((function(){return e.chosenHeaders})),menuIsUpdating:Hs((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n
        \n \n
        \n
        '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Qf},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
        \n

        Card Preview

        \n
        \n \n
        \n \n \n
        \n
        \n \n \n
        \n
        \n
        \n
        \n \n \n
        \n
        \n \n \n
        \n
        \n
        \n
        \n \n \n
        \n
        \n
        \n \n \n
        \n \n
        \n
        \n
        \n \n \n
        \n
        \n \n
        \n
        \n Icon Selections\n
        \n \n
        \n
        \n
        '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Qf},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return th({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(th({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
        \n
        \n

        Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

        \n
        \n \n
        \n \n \n \n
        \n
        '},CustomSearch:ch},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

        Menu Editor

        "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
        \n Loading... \n loading...\n
        \n
        \n

        \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

        \n

        This page is {{ enabled ? \'\' : \'not\'}} enabled

        \n \n
        TODO banner section
        \n
        \n \n \n
        \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
        '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
        \n Loading... \n loading...\n
        \n

        Test View

        '}}],hh=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Af(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Rf(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ep({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=Tf(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Of(d)&&i(e.name)),Pf(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:Dp}function i(e){if(mf(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;kf(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Pf(t)&&0===kf(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Of(e)&&o.set(e.record.name,e)}return t=Rf({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw yf(1,{location:e});s=r.record.name,l=Ep(Df(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Df(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw yf(1,{location:e,currentLocation:t});s=r.record.name,l=Ep({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Nf(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Mf,o=e.stringifyQuery||Lf,r=e.history,i=Uf(),s=Uf(),l=Uf(),c=Ut(of);let a=of;Ip&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Tp.bind(null,(e=>""+e)),d=Tp.bind(null,Gp),p=Tp.bind(null,Kp);function f(e,i){if(i=Ep({},i||c.value),"string"==typeof e){const o=Yp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return Ep(o,s,{params:p(s.params),hash:Kp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=Ep({},e,{path:Yp(n,e.path,i.path).path});else{const t=Ep({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ep({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ep({},e,{hash:(h=a,Wp(h).replace(Hp,"{").replace(Up,"}").replace($p,"^")),path:l.path}));var h;const m=r.createHref(f);return Ep({fullPath:f,hash:a,query:o===Lf?Ff(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Yp(n,e,c.value.path):Ep({},e)}function m(e,t){if(a!==e)return yf(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ep({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=f(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(Ep(h(u),{state:"object"==typeof u?Ep({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Zp(t.matched[o],n.matched[r])&&ef(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=yf(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>bf(e)?bf(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(bf(e,2))return y(Ep({replace:l},h(e.to),{state:"object"==typeof e.to?Ep({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Zp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=Wf(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(qf(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),M(n).then((()=>{n=[];for(const o of i.list())n.push(qf(o,e,t));return n.push(c),M(n)})).then((()=>{n=Wf(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(qf(o,e,t))}));return n.push(c),M(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ap(o.beforeEnter))for(const r of o.beforeEnter)n.push(qf(r,e,t));else n.push(qf(o.beforeEnter,e,t));return n.push(c),M(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Wf(l,"beforeRouteEnter",e,t,S),n.push(c),M(n)))).then((()=>{n=[];for(const o of s.list())n.push(qf(o,e,t));return n.push(c),M(n)})).catch((e=>bf(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===of,a=Ip?history.state:{};n&&(o||l?r.replace(e.fullPath,Ep({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let k;let w,I=Uf(),E=Uf();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return w||(w=!e,k||(k=r.listen(((e,t,n)=>{if(!P.listening)return;const o=f(e),i=v(o);if(i)return void y(Ep(i,{replace:!0}),o).catch(Dp);a=o;const s=c.value;var l,u;Ip&&(l=uf(s.fullPath,n.delta),u=af(),df.set(l,u)),_(o,s).catch((e=>bf(e,12)?e:bf(e,2)?(y(e.to,o).then((e=>{bf(e,20)&&!n.delta&&n.type===rf.pop&&r.go(-1,!1)})).catch(Dp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!bf(e,8)?r.go(-n.delta,!1):n.type===rf.pop&&bf(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Dp)}))),I.list().forEach((([t,n])=>e?n(e):t())),I.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!Ip||!i)return Promise.resolve();const s=!o&&function(e){const t=df.get(e);return df.delete(e),t}(uf(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return mf(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(Ep(h(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return w&&c.value!==of?Promise.resolve():new Promise(((e,t)=>{I.add([e,t])}))},install(e){e.component("RouterLink",Gf),e.component("RouterView",Yf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),Ip&&!N&&c.value===of&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in of)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(jf,this),e.provide(Hf,It(t)),e.provide(Vf,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=of,k&&k(),k=null,c.value=of,N=!1,w=!1),n()}}};function M(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((ph=location.host?ph||location.pathname+location.search:"").includes("#")||(ph+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ff(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:pf()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ep({},r.value,t.state,{forward:e,scroll:af()});i(s.current,s,!0),i(e,Ep({},hf(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ep({},t.state,hf(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(Ip){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ff(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:rf.pop,direction:u?u>0?sf.forward:sf.back:sf.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Ep({},e.state,{scroll:af()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=Ep({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:cf.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(ph)),routes:fh});const mh=hh;var gh=Oc(wp);gh.use(mh),gh.mount("#site-designer-app")})(); \ No newline at end of file diff --git a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js.LICENSE.txt b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js.LICENSE.txt index 8239bbf4e..8fef0cf76 100644 --- a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js.LICENSE.txt +++ b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js.LICENSE.txt @@ -1,7 +1,7 @@ /*! #__NO_SIDE_EFFECTS__ */ /** -* @vue/shared v3.4.31 +* @vue/shared v3.4.33 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ diff --git a/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss b/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss index e23bb9139..cb9530848 100644 --- a/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss +++ b/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss @@ -63,7 +63,9 @@ input[type="color"] { #vue-formeditor-app label, #site-designer-app label, #leaf_dialog_content label { font-family: 'Source Sans Pro Web', Helvetica, Arial, sans-serif; } + #vue-formeditor-app button:not(.choices__button,[class*="trumbowyg"]), +#vue-formeditor-app a.btn-general, #site-designer-app button:not(.choices__button,[class*="trumbowyg"]), #leaf_dialog_content button:not(.choices__button,[class*="trumbowyg"]) { @include flexcenter; @@ -73,11 +75,12 @@ input[type="color"] { border-radius: 3px; white-space: nowrap; line-height: normal; + text-decoration: none; &:not(.disabled):hover, &:not(.disabled):focus, &:not(.disabled):active { outline: 2px solid #20a0f0; } } -button.btn-general, button.btn-confirm { +button.btn-general, a.btn-general, button.btn-confirm { background-color: $lt_cyan; color: $base_navy; border: 2px solid $base_navy; @@ -196,6 +199,8 @@ td a.router-link { cursor: pointer; font-weight: bold; font-size: 1.2rem; + border: 0; + background-color: transparent; } #leaf-vue-dialog-cancel-save { display:flex; diff --git a/docker/vue-app/src/common/components/LeafFormDialog.js b/docker/vue-app/src/common/components/LeafFormDialog.js index 92cb27e61..3ed8fcdcb 100644 --- a/docker/vue-app/src/common/components/LeafFormDialog.js +++ b/docker/vue-app/src/common/components/LeafFormDialog.js @@ -5,6 +5,7 @@ export default { initialTop: 15, modalElementID: 'leaf_dialog_content', modalBackgroundID: 'leaf-vue-dialog-background', + ariaLabel: '', elBody: null, elModal: null, @@ -24,6 +25,7 @@ export default { this.elModal = document.getElementById(this.modalElementID); this.elBackground = document.getElementById(this.modalBackgroundID); this.elClose = document.getElementById('leaf-vue-dialog-close'); + this.ariaLabel = document.querySelector('.leaf-vue-dialog-title')?.textContent || ''; //helps adjust the modal background coverage const min = this.elModal.clientWidth > this.elBody.clientWidth ? this.elModal.clientWidth : this.elBody.clientWidth; this.elBackground.style.minHeight = 200 + this.elBody.clientHeight + 'px'; @@ -109,14 +111,12 @@ export default { }, template: `
        -

      4. \n
      5. \n 📘 LEAF Library\n
      6. \n
      7. \n \n
      8. \n
      9. \n \n ♻️ Restore Fields\n \n
      10. \n \n \n
        \n

        This is a Nationally Standardized Subordinate Site

        \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
        '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
        \n
        \n Loading... \n loading...\n
        \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
        '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[776],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},s=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n
        \n \n
        \n
        '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
        \n \n \n
        {{ userMessage }}
        \n
        '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=n,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
        \n
        \n \n
        {{nameCharsRemaining}}
        \n
        \n \n
        \n \n
        {{descrCharsRemaining}}
        \n
        \n \n
        '}},223:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var o=n(392),i=n(448),r=n(105);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t0},categoryName:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryName||"Untitled")},formDescription:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryDescription)},workflowDescription:function(){var e;return e=this.workflowID>0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow",this.decodeAndStripHTML(e)}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'\n \n \n {{ categoryName }}\n \n \n {{ formDescription }}\n {{ workflowDescription }}\n \n
        \n 📑 Stapled\n
        \n \n \n
        \n \n  Need to Know enabled\n
        \n \n \n \n \n \n '}},computed:{activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(m({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))}},template:''},f={name:"form-browser-view",components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:r.A,BrowserMenu:{name:"browser-menu",inject:["siteSettings","openNewFormDialog","openImportFormDialog"],template:'
        \n
        \n

        This is a Nationally Standardized Subordinate Site

        \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
        '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
        \n
        \n Loading... \n \n
        \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
        '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js index 31a6ba17f..df4141cc7 100644 --- a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var o=document.activeElement;null===(null!==o?o.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n
        \n \n
        \n
        '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
        \n
        \n \n
        {{nameCharsRemaining}}
        \n
        \n \n
        \n \n
        {{descrCharsRemaining}}
        \n
        \n \n
        '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
        \n
        \n Loading...\n loading...\n
        \n
        \n
        \n \n \n
        \n
        '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
        \n Move column left\n Move column right
        \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
        \n \n \n
        \n
        \n \n \n \n \n
        \n
        '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(o){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
        \n Special access restrictions\n
        \n This prevents anyone from reading stored data unless they\'re part of the following groups.
        \n If a group is assigned below, everyone else will see "[protected data]".\n
        \n \n
        {{ statusMessageError }}
        \n \n
        \n \n
        \n
        '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
          ","
        1. ","
          ","

          ","","

          ","

          ","

          ","

          ","","
          "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),I=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),b=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),b&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),I&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
          \n
          \n \n \n
          \n \n \n
          \n
          \n
          \n
          \n \n
          {{shortlabelCharsRemaining}}
          \n
          \n \n
          \n
          \n
          \n \n
          \n \n \n
          \n
          \n

          Format Information

          \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
          \n
          \n
          \n \n \n
          \n
          \n \n \n
          \n
          \n \n
          \n
          \n  Columns ({{gridJSON.length}}):\n
          \n
          \n \n \n
          \n
          \n
          \n \n
          \n
          \n \n
          \n
          \n
          \n Attributes\n
          \n \n \n
          \n \n \n \n This field will be archived.  It can be
          re-enabled by using Restore Fields.\n
          \n \n Deleted items can only be re-enabled
          within 30 days by using Restore Fields.\n
          \n
          \n
          '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
          \n
          Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
          {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
          {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
          {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

          \n
          \n html (for pages where the user can edit data): \n \n
          \n
          \n
          \n htmlPrint (for pages where the user can only read data): \n \n
          \n \n
          \n
          \n
          \n Notice:
          \n

          Please go to LEAF Programmer\n to ensure continued access to this area.

          \n
          '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!=+t?alert(t):(e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
          \n

          Stapled forms will show up on the same page as the primary form.

          \n

          The order of the forms will be determined by the forms\' assigned sort values.

          \n
          \n
            \n
          • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
          • \n
          \n

          \n
          \n \n
          There are no available forms to merge
          \n
          \n
          '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(o){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
          \n

          What is this?

          \n

          With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

          \n
          \n

          To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

          \n
          \n

          The following groups can update {{formNameStripped()}} records at any time:

          \n
          \n \n \n

          \n
          \n \n
          There are no available groups to add
          \n
          \n
          '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
          \n
          Are you sure you want to delete this form?
          \n
          {{formName}}
          \n
          {{formDescription}}
          \n
          ⚠️ This form still has stapled forms attached
          \n
          '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue=""},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){"Invalid Token."!==e?(t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1)):console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var c=e.conditions.selectedChildValue.split("\n")||[];c=c.map((function(t){return e.decodeAndStripHTML(t).trim()}));var d=e.selectedChildValueOptions;d=d.map((function(e){return{value:e.trim(),label:e.trim(),selected:c.includes(e.trim())}}));var u=new Choices(i,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:d.filter((function(e){return""!==e.value}))});i.choicesjs=u}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
          \n \x3c!-- LOADING SPINNER --\x3e\n
          \n Loading... loading...\n
          \n
          \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
          \n
          Choose Delete to confirm removal, or cancel to return
          \n
          \n \n \n
          \n
          \n \n
          \n
          '};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
          \n

          This is a Nationally Standardized Subordinate Site

          \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
          '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}document.querySelector("#".concat(this.inputElID," ~ input.choices__input")).setAttribute("aria-labelledby",this.labelSelector);break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
          \n \n \n\n \n\n \n\n \n\n \n\n \n \n
          File Attachment(s)\n

          Select File to attach:

          \n \n
          \n\n \n\n \n \n \n \n \n\n \n
          '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},sensitiveImg:function(){return this.sensitive?''):""},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
          '.concat(this.formPage+1,"
          "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'📌 ':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
          \n
          \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n\n \x3c!-- TOOLBAR --\x3e\n
          \n\n
          \n \n \n \n \n
          \n \n 🔒\n ⛓️\n ⚙️\n
          \n
          \n
          \n \x3c!-- NAME --\x3e\n
          \n
          \n
          \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
          '},T={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
        2. \n
          \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
            \n\n \n \n
          \n
          \n \n
          \n
          \n
        3. '},_={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},mounted:function(){this.focusedFormIsSensitive&&0==+this.needToKnow&&(this.needToKnow=1,this.updateNeedToKnow())},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:this.needToKnow,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",e.needToKnow),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
          \n {{formID}}\n (internal for {{formParentID}})\n \n
          \n \n \n \n \n \n
          \n
          \n
          \n \n
          \n \n
          This is an Internal Form
          \n
          \n
          '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(P({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(P({},t.categories[i]));o.push(P(P({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(P(P({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=P(P({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):this.previewTree=[]},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=P({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
          \n
          \n Loading... \n loading...\n
          \n
          \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
          \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
          '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var o=document.activeElement;null===(null!==o?o.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n
          \n \n
          \n
          '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
          \n
          \n \n
          {{nameCharsRemaining}}
          \n
          \n \n
          \n \n
          {{descrCharsRemaining}}
          \n
          \n \n
          '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
          \n
          \n Loading...\n \n
          \n
          \n
          \n \n \n
          \n
          '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
          \n Move column left\n Move column right
          \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
          \n \n \n
          \n
          \n \n \n \n \n
          \n
          '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(o){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
          \n Special access restrictions\n
          \n This prevents anyone from reading stored data unless they\'re part of the following groups.
          \n If a group is assigned below, everyone else will see "[protected data]".\n
          \n \n
          {{ statusMessageError }}
          \n \n
          \n \n
          \n
          '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
            ","
          1. ","
            ","

            ","","

            ","

            ","

            ","

            ","","
            "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),I=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),b=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),b&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),I&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
            \n
            \n \n \n
            \n \n \n
            \n
            \n
            \n
            \n \n
            {{shortlabelCharsRemaining}}
            \n
            \n \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n

            Format Information

            \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n  Columns ({{gridJSON.length}}):\n
            \n
            \n \n \n
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n Attributes\n
            \n \n \n
            \n \n \n \n This field will be archived.  It can be
            re-enabled by using Restore Fields.\n
            \n \n Deleted items can only be re-enabled
            within 30 days by using Restore Fields.\n
            \n
            \n
            '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
            \n
            Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
            {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
            {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

            \n
            \n html (for pages where the user can edit data): \n \n
            \n
            \n
            \n htmlPrint (for pages where the user can only read data): \n \n
            \n \n
            \n
            \n
            \n Notice:
            \n

            Please go to LEAF Programmer\n to ensure continued access to this area.

            \n
            '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!=+t?alert(t):(e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
            \n

            Stapled forms will show up on the same page as the primary form.

            \n

            The order of the forms will be determined by the forms\' assigned sort values.

            \n
            \n
              \n
            • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
            • \n
            \n

            \n
            \n \n
            There are no available forms to merge
            \n
            \n
            '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(o){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
            \n

            What is this?

            \n

            With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

            \n
            \n

            To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

            \n
            \n

            The following groups can update {{formNameStripped()}} records at any time:

            \n
            \n \n \n

            \n
            \n \n
            There are no available groups to add
            \n
            \n
            '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
            \n
            Are you sure you want to delete this form?
            \n
            {{formName}}
            \n
            {{formDescription}}
            \n
            ⚠️ This form still has stapled forms attached
            \n
            '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue=""},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){"Invalid Token."!==e?(t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1)):console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var c=e.conditions.selectedChildValue.split("\n")||[];c=c.map((function(t){return e.decodeAndStripHTML(t).trim()}));var d=e.selectedChildValueOptions;d=d.map((function(e){return{value:e.trim(),label:e.trim(),selected:c.includes(e.trim())}}));var u=new Choices(i,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:d.filter((function(e){return""!==e.value}))});i.choicesjs=u}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
            \n \x3c!-- LOADING SPINNER --\x3e\n
            \n Loading... \n
            \n
            \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
            \n
            Choose Delete to confirm removal, or cancel to return
            \n
            \n \n \n
            \n
            \n \n
            \n
            '};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}document.querySelector("#".concat(this.inputElID," ~ input.choices__input")).setAttribute("aria-labelledby",this.labelSelector);break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
            \n \n \n\n \n\n \n\n \n\n \n\n \n \n
            File Attachment(s)\n

            Select File to attach:

            \n \n
            \n\n \n\n \n \n \n \n \n\n \n
            '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},sensitiveImg:function(){return this.sensitive?''):""},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
            '.concat(this.formPage+1,"
            "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'📌 ':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
            \n
            \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n\n \x3c!-- TOOLBAR --\x3e\n
            \n\n
            \n \n \n \n \n
            \n \n 🔒\n ⛓️\n ⚙️\n
            \n
            \n
            \n \x3c!-- NAME --\x3e\n
            \n
            \n
            \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
            '},T={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
          2. \n
            \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
              \n\n \n \n
            \n
            \n \n
            \n
            \n
          3. '},_={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},mounted:function(){this.focusedFormIsSensitive&&0==+this.needToKnow&&(this.needToKnow=1,this.updateNeedToKnow())},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:this.needToKnow,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",e.needToKnow),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
            \n {{formID}}\n (internal for {{formParentID}})\n \n
            \n \n \n \n \n \n
            \n
            \n
            \n \n
            \n \n
            This is an Internal Form
            \n
            \n
            '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(P({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(P({},t.categories[i]));o.push(P(P({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(P(P({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=P(P({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):this.previewTree=[]},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=P({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
            \n
            \n Loading... \n \n
            \n
            \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
            \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js index 4166b703a..d57192945 100644 --- a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",s()},r=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=r,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
            \n \n

            List of disabled fields available for recovery

            \n
            Deleted fields and associated data will be not display in the Report Builder
            \n\n
            \n Loading...\n loading...\n
            \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            indicatorIDFormField NameInput FormatStatusRestore
            {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
            \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",s()},r=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=r,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
            \n \n

            List of disabled fields available for recovery

            \n
            Deleted fields and associated data will be not display in the Report Builder
            \n\n
            \n Loading...\n \n
            \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            indicatorIDFormField NameInput FormatStatusRestore
            {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
            \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js index e04e2efad..3f287f067 100644 --- a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js +++ b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js @@ -1,2 +1,2 @@ /*! For license information please see LEAF_Designer.js.LICENSE.txt */ -(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Kn,BaseTransitionPropsValidators:()=>zn,Comment:()=>qi,DeprecationTypes:()=>el,EffectScope:()=>fe,ErrorCodes:()=>cn,ErrorTypeStrings:()=>Ks,Fragment:()=>Vi,KeepAlive:()=>so,ReactiveEffect:()=>ye,Static:()=>Wi,Suspense:()=>Li,Teleport:()=>Xr,Text:()=>Ui,TrackOpTypes:()=>rn,Transition:()=>ll,TransitionGroup:()=>ec,TriggerOpTypes:()=>sn,VueElement:()=>Kl,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>us,compatUtils:()=>Zs,computed:()=>Hs,createApp:()=>Oc,createBlock:()=>ts,createCommentVNode:()=>fs,createElementBlock:()=>es,createElementVNode:()=>ls,createHydrationRenderer:()=>ii,createPropsRestProxy:()=>rr,createRenderer:()=>ri,createSSRApp:()=>Nc,createSlots:()=>Lo,createStaticVNode:()=>ps,createTextVNode:()=>ds,createVNode:()=>cs,customRef:()=>Qt,defineAsyncComponent:()=>oo,defineComponent:()=>to,defineCustomElement:()=>Wl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Xo,defineOptions:()=>Ko,defineProps:()=>Wo,defineSSRCustomElement:()=>zl,defineSlots:()=>Jo,devtools:()=>Js,effect:()=>Ce,effectScope:()=>he,getCurrentInstance:()=>Cs,getCurrentScope:()=>ge,getTransitionRawChildren:()=>eo,guardReactiveProps:()=>as,h:()=>Vs,handleError:()=>dn,hasInjectionContext:()=>Cr,hydrate:()=>Ac,initCustomFormatter:()=>Us,initDirectivesForSSR:()=>Lc,inject:()=>xr,isMemoSame:()=>Ws,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>Ms,isShallow:()=>Nt,isVNode:()=>ns,markRaw:()=>Mt,mergeDefaults:()=>nr,mergeModels:()=>or,mergeProps:()=>vs,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>co,onBeforeMount:()=>vo,onBeforeUnmount:()=>_o,onBeforeUpdate:()=>bo,onDeactivated:()=>ao,onErrorCaptured:()=>Io,onMounted:()=>yo,onRenderTracked:()=>wo,onRenderTriggered:()=>ko,onScopeDispose:()=>ve,onServerPrefetch:()=>Co,onUnmounted:()=>xo,onUpdated:()=>So,openBlock:()=>Ki,popScopeId:()=>Fn,provide:()=>_r,proxyRefs:()=>Xt,pushScopeId:()=>Ln,queuePostFlushCb:()=>kn,reactive:()=>wt,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ps,render:()=>Dc,renderList:()=>Mo,renderSlot:()=>Fo,resolveComponent:()=>Do,resolveDirective:()=>No,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Qs,resolveTransitionHooks:()=>Xn,setBlockTracking:()=>Qi,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Zn,shallowReactive:()=>It,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>fi,ssrUtils:()=>Ys,stop:()=>ke,toDisplayString:()=>ce,toHandlerKey:()=>M,toHandlers:()=>$o,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>rs,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Zo,useCssModule:()=>Jl,useCssVars:()=>Tl,useModel:()=>ki,useSSRContext:()=>hi,useSlots:()=>Qo,useTransitionState:()=>qn,vModelCheckbox:()=>ac,vModelDynamic:()=>gc,vModelRadio:()=>dc,vModelSelect:()=>pc,vModelText:()=>cc,vShow:()=>wl,version:()=>zs,warn:()=>Gs,watch:()=>bi,watchEffect:()=>mi,watchPostEffect:()=>gi,watchSyncEffect:()=>vi,withAsyncContext:()=>ir,withCtx:()=>$n,withDefaults:()=>Yo,withDirectives:()=>jn,withKeys:()=>Cc,withMemo:()=>qs,withModifiers:()=>_c,withScopeId:()=>Bn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,h=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>C(e).slice(8,-1),w=e=>"[object Object]"===C(e),I=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=D((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":f(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||f(t)||w(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=we,t=pe;try{return we=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,we=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function ke(e){e.effect.stop()}let we=!0,Ie=0;const Ee=[];function Te(){Ee.push(we),we=!1}function De(){const e=Ee.pop();we=void 0===e||e}function Ae(){Ie++}function Oe(){for(Ie--;!Ie&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Le=new WeakMap,Fe=Symbol(""),Be=Symbol("");function $e(e,t,n){if(we&&pe){let t=Le.get(e);t||Le.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me((()=>t.delete(n)))),Ne(pe,o)}}function je(e,t,n,o,r,i){const s=Le.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&f(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":f(e)?I(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"delete":f(e)||(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"set":h(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return $e(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?kt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||$e(e,0,t),r?s:Ht(s)?i&&I(t)?s:s.value:S(s)?o?Et(s):wt(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!f(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=f(e)&&I(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(L(t,i)&&$e(r,0,t),$e(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Lt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(L(e,r)&&$e(o,0,e),$e(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e,t=!1){t||Nt(e)||Ot(e)||(e=Pt(e));const n=Pt(this);return et(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Nt(t)||Ot(t)||(t=Pt(t));const o=Pt(this),{has:r,get:i}=et(o);let s=r.call(o,e);s||(e=Pt(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?L(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Lt;return!e&&$e(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=h(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Lt;return!t&&$e(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add(e){return rt.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ft,ht,mt]=dt();function gt(e,t){const n=t?e?mt:ht:e?ft:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,kt=new WeakMap;function wt(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function It(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,kt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Mt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Lt=e=>S(e)?wt(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||jt(e,4),$t(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function $t(e){var t;we&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Me((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Lt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Lt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Le.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(f(e)){const r=[];for(let i=0;i>>1,r=hn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){fn=!1,pn=!0,hn.sort(Tn);try{for(mn=0;mn$n;function $n(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qi(-1);const r=Mn(t);let i;try{i=e(...n)}finally{Mn(r),o._d&&Qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Rn)return e;const n=$s(Rn),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),_o((()=>{e.isUnmounting=!0})),e}const Wn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wn,onEnter:Wn,onAfterEnter:Wn,onEnterCancelled:Wn,onBeforeLeave:Wn,onLeave:Wn,onAfterLeave:Wn,onLeaveCancelled:Wn,onBeforeAppear:Wn,onAppear:Wn,onAfterAppear:Wn,onAppearCancelled:Wn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Kn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Cs(),o=qn();return()=>{const r=t.default&&eo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==qi){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return Yn(i);const c=Qn(i);if(!c)return Yn(i);let a=Xn(c,s,o,n,(e=>a=e));Zn(c,a);const u=n.subTree,d=u&&Qn(u);if(d&&d.type!==qi&&!os(c,d)&&Gn(n).type!==qi){const e=Xn(d,s,o,n);if(Zn(d,e),"out-in"===l&&c.type!==qi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Yn(i);"in-out"===l&&c.type!==qi&&(e.delayLeave=(e,t,n)=>{Jn(o,d)[String(d.key)]=d,e[Vn]=()=>{t(),e[Vn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function Jn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xn(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=Jn(n,e),C=(e,t)=>{e&&un(e,o,9,t)},k=(e,t)=>{const n=t[1];C(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[Vn]&&t[Vn](!0);const r=x[_];r&&os(e,r)&&r.el[Vn]&&r.el[Vn](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[Un]=t=>{s||(s=!0,C(t?r:o,[e]),w.delayedLeave&&w.delayedLeave(),e[Un]=void 0)};t?k(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Un]&&t[Un](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[Vn]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[Vn]=void 0,x[r]===e&&delete x[r])};x[r]=e,h?k(h,[t,s]):s()},clone(e){const i=Xn(e,t,n,o,r);return r&&r(i),i}};return w}function Yn(e){if(io(e))return(e=us(e)).children=null,e}function Qn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Zn(e,t){6&e.shapeFlag&&e.component?Zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ea({name:e.name},t,{setup:e}))():e}const no=e=>!!e.type.__asyncLoader;function oo(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return to({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xs;if(c)return()=>ro(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||Os)return d().then((t=>()=>ro(t,e))).catch((e=>(t(e),()=>o?cs(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?ro(c,e):u.value&&o?cs(o,{error:u.value}):n&&!p.value?cs(n):void 0}})}function ro(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=cs(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const io=e=>e.type.__isKeepAlive,so={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Cs(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function f(e){fo(e),u(e,n,l,!0)}function h(e){r.forEach(((t,n)=>{const o=js(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&os(t,s)?s&&fo(s):f(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),oi((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ys(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;pi(t.m),pi(t.a),a(e,p,null,1,l),oi((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ys(n,t.parent,e),t.isDeactivated=!0}),l)},bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>lo(e,t))),t&&h((e=>!lo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Pi(n.subTree.type)?oi((()=>{r.set(g,ho(n.subTree))}),n.subTree.suspense):r.set(g,ho(n.subTree)))};return yo(v),So(v),_o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=ho(t);if(e.type!==r.type||e.key!==r.key)f(e);else{fo(r);const e=r.component.da;e&&oi(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ns(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=ho(o);const c=l.type,a=js(no(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!lo(u,a))||d&&a&&lo(d,a))return s=l,o;const f=null==l.key?c:l.key,h=r.get(f);return l.el&&(l=us(l),128&o.shapeFlag&&(o.ssContent=l)),g=f,h?(l.el=h.el,l.component=h.component,l.transition&&Zn(l,l.transition),l.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,Pi(o.type)?o:l}}};function lo(e,t){return f(e)?e.some((e=>lo(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function co(e,t){uo(e,"a",t)}function ao(e,t){uo(e,"da",t)}function uo(e,t,n=xs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(mo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&po(o,t,n,e),e=e.parent}}function po(e,t,n,o){const r=mo(t,e,o,!0);xo((()=>{u(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ho(e){return 128&e.shapeFlag?e.ssContent:e}function mo(e,t,n=xs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=Is(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const go=e=>(t,n=xs)=>{Os&&"sp"!==e||mo(e,((...e)=>t(...e)),n)},vo=go("bm"),yo=go("m"),bo=go("bu"),So=go("u"),_o=go("bum"),xo=go("um"),Co=go("sp"),ko=go("rtg"),wo=go("rtc");function Io(e,t=xs){mo("ec",e,t)}const Eo="components",To="directives";function Do(e,t){return Ro(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function Oo(e){return y(e)?Ro(Eo,e,!1)||e:e||Ao}function No(e){return Ro(To,e)}function Ro(e,t,n=!0,o=!1){const r=Rn||xs;if(r){const n=r.type;if(e===Eo){const e=js(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Po(r[e]||n[e],t)||Po(r.appContext[e],t);return!i&&o?n:i}}function Po(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Mo(e,t,n,o){let r;const i=n&&n[o];if(f(e)||y(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Fo(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&no(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),cs("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ki();const s=i&&Bo(i(n)),l=ts(Vi,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bo(e){return e.some((e=>!ns(e)||e.type!==qi&&!(e.type===Vi&&!Bo(e.children))))?e:null}function $o(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ts(e)?$s(e):jo(e.parent):null,Ho=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ar(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>_i.bind(e)}),Vo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Uo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Vo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];sr&&(l[t]=0)}}const d=Ho[t];let f,h;return d?("$attrs"===t&&$e(e.attrs,0,""),d(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==o&&p(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,p(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Vo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Vo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Ho,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=a({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function Wo(){return null}function zo(){return null}function Go(e){}function Ko(e){}function Jo(){return null}function Xo(){}function Yo(e,t){return null}function Qo(){return er().slots}function Zo(){return er().attrs}function er(){const e=Cs();return e.setupContext||(e.setupContext=Bs(e))}function tr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function nr(e,t){const n=tr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?f(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function or(e,t){return e&&t?f(e)&&f(t)?e.concat(t):a({},tr(e),tr(t)):e||t}function rr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Cs();let n=e();return Es(),_(n)&&(n=n.catch((e=>{throw Is(t),e}))),[n,()=>Is(t)]}let sr=!0;function lr(e,t,n){un(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function cr(e,t,n,o){const r=o.includes(".")?xi(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&bi(r,n)}else if(v(e))bi(r,e.bind(n));else if(S(e))if(f(e))e.forEach((e=>cr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&bi(r,o,e)}}function ar(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>ur(c,e,s,!0))),ur(c,t,s)):c=t,S(t)&&i.set(t,c),c}function ur(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ur(e,i,n,!0),r&&r.forEach((t=>ur(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=dr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const dr={data:pr,props:gr,emits:gr,methods:mr,computed:mr,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=hr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return mr(fr(e),fr(t))}};function pr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function fr(e){if(f(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=cs(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,$s(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Sr;Sr=l;try{return e()}finally{Sr=t}}};return l}}let Sr=null;function _r(e,t){if(xs){let n=xs.provides;const o=xs.parent&&xs.parent.provides;o===n&&(n=xs.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xs||Rn;if(o||Sr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function Cr(){return!!(xs||Rn||Sr)}const kr={},wr=()=>Object.create(kr),Ir=e=>Object.getPrototypeOf(e)===kr;function Er(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ti(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Ar(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(f(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const h=[c,u];return S(e)&&i.set(e,h),h}function Or(e){return"$"!==e[0]&&!E(e)}function Nr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Rr(e,t){return Nr(e)===Nr(t)}function Pr(e,t){return f(t)?t.findIndex((t=>Rr(t,e))):v(t)&&Rr(t,e)?0:-1}const Mr=e=>"_"===e[0]||"$stable"===e,Lr=e=>f(e)?e.map(hs):[hs(e)],Fr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>Lr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Mr(n))continue;const r=e[n];if(v(r))t[n]=Fr(0,r,o);else if(null!=r){const e=Lr(r);t[n]=()=>e}}},$r=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Hr=(e,t,n)=>{const o=e.slots=wr();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&B(o,"_",e,!0)):Br(t,o)}else t&&$r(e,t)},Vr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:jr(i,t,n):(s=!t.$stable,Br(t,i)),l=t}else t&&($r(e,t),l={default:1});if(s)for(const e in i)Mr(e)||null!=l[e]||delete i[e]};function Ur(e,t,n,r,i=!1){if(f(e))return void e.forEach(((e,o)=>Ur(e,t&&(f(t)?t[o]:t),n,r,i)));if(no(r)&&!i)return;const s=4&r.shapeFlag?$s(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,h=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(h[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,h]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:h[a]:a.value;i?f(n)&&u(n,s):f(n)?n.includes(s)||n.push(s):t?(h[a]=[s],p(m,a)&&(m[a]=h[a])):(a.value=[s],e.k&&(h[e.k]=a.value))}else t?(h[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(h[e.k]=l))};l?(r.id=-1,oi(r,n)):r()}}}const qr=Symbol("_vte"),Wr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Jr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Wr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Wr(e.props),g=m?n:u,y=m?o:f;if("svg"===s||zr(u)?s="svg":("mathml"===s||Gr(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),ui(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Kr(t.props,h);e&&Jr(t,e,null,a,0)}else m&&Jr(t,u,f,a,1)}Yr(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),i&&r(c),16&s){const e=i||!Wr(p);for(let r=0;r{Qr||(console.error("Hydration completed but contains mismatches."),Qr=!0)},ei=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ti=e=>8===e.nodeType;function ni(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ti(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:k,patchFlag:w}=o;let I=n.nodeType;o.el=n,-2===w&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Ui:3!==I?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Zr(),n.data=o.children),E=i(n));break;case qi:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==I||S?_():i(n);break;case Wi:if(S&&(I=(n=i(n)).nodeType),1===I||3===I){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:h,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){h&&Hn(t,null,n,"created");let a,b=!1;if(y(e)){b=ai(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=f(e.firstChild,t,e,n,r,i,s);for(;o;){Zr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Zr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&At(u.style))for(const e in u.style)u.style[e];(a=u&&u.onVnodeBeforeMount)&&ys(a,n,t),h&&Hn(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||h||b)&&ji((()=>{a&&ys(a,n,t),b&&m.enter(e),h&&Hn(t,null,n,"mounted")}),r)}return e.nextSibling},f=(e,t,o,s,l,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,f=p.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=f(i(e),t,d,n,o,r,l);return p&&ti(p)&&"]"===p.data?i(t.anchor=p):(Zr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Zr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,ei(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&ti(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),In(),void(t._vnode=e);d(t.firstChild,e,null,null,null),In(),t._vnode=e},d]}const oi=ji;function ri(e){return si(e)}function ii(e){return si(e,ni)}function si(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:f,parentNode:h,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Ui:b(e,t,n,o);break;case qi:S(e,t,n,o);break;case Wi:null==e&&_(t,n,o,s);break;case Vi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Ur(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):I(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,h&&h.is,h),8&m?f(d,e.children):16&m&&w(e.children,d,null,r,i,li(e,s),a,u),v&&Hn(e,null,r,"created"),k(d,e,e.scopeId,a,r),h){for(const e in h)"value"===e||E(e)||l(d,e,null,h[e],s,r);"value"in h&&l(d,"value",null,h.value,s),(p=h.onVnodeBeforeMount)&&ys(p,r,e)}v&&Hn(e,null,r,"beforeMount");const y=ai(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||y||v)&&oi((()=>{p&&ys(p,r,e),y&&g.enter(d),v&&Hn(e,null,r,"mounted")}),i)},k=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let g;if(n&&ci(n,!1),(g=m.onVnodeBeforeUpdate)&&ys(g,n,t,e),p&&Hn(t,e,n,"beforeUpdate"),n&&ci(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&f(a,""),d?T(e.dynamicChildren,d,a,n,r,li(t,i),s):c||$(e,t,a,null,n,r,li(t,i),s,!1),u>0){if(16&u)D(a,h,m,n,i);else if(2&u&&h.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ys(g,n,t,e),p&&Hn(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(t!==n){if(t!==o)for(const o in t)E(o)||o in n||l(e,o,t[o],null,i,r);for(const o in n){if(E(o))continue;const s=n[o],c=t[o];s!==c&&"value"!==o&&l(e,o,c,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),w(t.children||[],o,p,i,s,l,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&ui(e,t,!0)):$(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):M(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=_s(e,o,r);if(io(e)&&(l.ctx.renderer=Q),Ns(l,!1,s),l.asyncDep){if(r&&r.registerDep(l,L,s),!e.el){const e=l.subTree=cs(qi);S(null,e,t,n)}}else L(l,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||Ni(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?Ni(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&hn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=di(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;ci(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ys(u,i,t,a),ci(e,!0);const p=Di(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Ri(e,p.el),o&&oi(o,r),(u=t.props&&t.props.onVnodeUpdated)&&oi((()=>ys(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=no(t);if(ci(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&ys(i,d,t),ci(e,!0),l&&ee){const n=()=>{e.subTree=Di(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Di(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&oi(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;oi((()=>ys(i,d,e)),r)}(256&t.shapeFlag||d&&no(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&oi(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,ci(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;Er(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Tr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void j(a,d,n,o,r,i,s,l,c)}8&h?(16&u&&K(a,r,i),d!==a&&f(n,d)):16&u?16&h?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&f(n,""),16&h&&w(d,n,o,r,i,s,l,c))},j=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?K(e,i,s,!0,!1,p):w(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const o=e[u],r=t[u]=a?ms(t[u]):hs(t[u]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=f;){const o=e[p],r=t[f]=a?ms(t[f]):hs(t[f]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,f--}if(u>p){if(u<=f){const e=f+1,r=ef)for(;u<=p;)q(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=a?ms(t[u]):hs(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=f-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=f;v++)if(0===C[v-m]&&os(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const k=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=k.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Vi)if(l!==Wi)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),oi((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(r=!1),null!=l&&Ur(l,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,m=!no(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&ys(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Hn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&!a.hasOnce&&(i!==Vi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Vi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||h)&&oi((()=>{g&&ys(g,t,e),h&&Hn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Vi)return void z(n,o);if(t===Wi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;pi(c),pi(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&oi(l,t),oi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[qr];return n?m(n):t};let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,wn(),In(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:w,pc:$,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:br(Y,Z)}}function li({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let e=0;exr(fi);function mi(e,t){return Si(e,null,t)}function gi(e,t){return Si(e,null,{flush:"post"})}function vi(e,t){return Si(e,null,{flush:"sync"})}const yi={};function bi(e,t,n){return Si(e,t,n)}function Si(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),I()}}const d=xs,p=e=>!0===r?e:Ci(e,!1===r?1:void 0);let h,m,g=!1,y=!1;if(Ht(e)?(h=()=>e.value,g=Nt(e)):At(e)?(h=()=>p(e),g=!0):f(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),h=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):h=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=h;h=()=>Ci(e())}let b,S=e=>{m=k.onStop=()=>{an(e,d,4),m=k.onStop=void 0}};if(Os){if(S=i,t?n&&un(t,d,3,[h(),y?[]:void 0,S]):h(),"sync"!==s)return i;{const e=hi();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(yi):yi;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(r||g||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(m&&m(),un(t,d,3,[e,_===yi?void 0:y&&_[0]===yi?[]:_,S]),_=e)}else k.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>oi(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new ye(h,i,C),w=ge(),I=()=>{k.stop(),w&&u(w.effects,k)};return t?n?x():_=k.run():"post"===s?oi(k.run.bind(k),d&&d.suspense):k.run(),b&&b.push(I),I}function _i(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?xi(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=Is(this),l=Si(r,i.bind(o),n);return s(),l}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ci(e,t,n)}));else if(w(e)){for(const o in e)Ci(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ci(e[o],t,n)}return e}function ki(e,t,n=o){const r=Cs(),i=O(t),s=R(t),l=wi(e,t),c=Qt(((o,l)=>{let c,a,u;return vi((()=>{const n=e[t];L(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){if(!L(e,c))return;const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||(c=e,l());const d=n.set?n.set(e):e;r.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o:c,done:!1}:{done:!0}}},c}const wi=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${R(t)}Modifiers`];function Ii(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const s=t.startsWith("update:"),l=s&&wi(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>y(e)?e.trim():e))),l.number&&(i=n.map(j)));let a=r[c=M(t)]||r[c=M(O(t))];!a&&s&&(a=r[c=M(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Ei(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Ei(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(f(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ti(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function Di(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=Mn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=hs(u.call(t,e,d,p,h,f,m)),b=l}else{const e=t;y=hs(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:Ai(l)}}catch(t){zi.length=0,dn(t,e,1),y=cs(qi)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Oi(b,i)),S=us(S,b,!1,!0))}return n.dirs&&(S=us(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Mn(v),y}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Oi=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ni(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Mi=0;const Li={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bi(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Fi(e,"onPending"),Fi(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),Hi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,os(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(h,f,n,o,r,null,i,s,l),Hi(d,f)))):(d.pendingId=Mi++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(h,f,n,o,r,null,i,s,l),Hi(d,f))):h&&os(p,h)?(c(h,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(h&&os(p,h))c(h,p,n,o,r,d,i,s,l),Hi(d,p);else if(Fi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Mi++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=Bi(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=$i(o?n.default:n),e.ssFallback=o?$i(n.fallback):cs(qi)}};function Fi(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Bi(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:f,n:h,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:Mi++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?h(r):i,0),kn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=h(r)),f(r,a,_,!0)),d||p(s,u,i,0)),Hi(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||kn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Fi(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;Fi(t,"onFallback");const s=h(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),Hi(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,f(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&h(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Rs(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:h(e.subTree),_,s,n),c&&g(c),Ri(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,n,e,t),_.pendingBranch&&f(_.pendingBranch,n,e,t)}};return _}function $i(e){let t;if(v(e)){const n=Yi&&e._c;n&&(e._d=!1,Ki()),e=e(),n&&(e._d=!0,t=Gi,Ji())}if(f(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function ji(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Hi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ri(o,r))}const Vi=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),qi=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),zi=[];let Gi=null;function Ki(e=!1){zi.push(Gi=e?null:[])}function Ji(){zi.pop(),Gi=zi[zi.length-1]||null}let Xi,Yi=1;function Qi(e){Yi+=e,e<0&&Gi&&(Gi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?Gi||r:null,Ji(),Yi>0&&Gi&&Gi.push(e),e}function es(e,t,n,o,r,i){return Zi(ls(e,t,n,o,r,i,!0))}function ts(e,t,n,o,r){return Zi(cs(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}function rs(e){Xi=e}const is=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,o=0,r=null,i=(e===Vi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&is(t),ref:t&&ss(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return l?(gs(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!s&&Gi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Gi.push(c),c}const cs=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Ao||(e=qi),ns(e)){const o=us(e,t,!0);return n&&gs(o,n),Yi>0&&!i&&Gi&&(6&o.shapeFlag?Gi[Gi.indexOf(e)]=o:Gi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=as(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!f(n)&&(n=a({},n)),t.style=z(n))}var s;return ls(e,t,n,o,r,y(e)?1:Pi(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function as(e){return e?Rt(e)||Ir(e)?a({},e):e:null}function us(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?vs(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&is(a),ref:t&&t.ref?n&&i?f(i)?i.concat(ss(t)):[i,ss(t)]:ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Zn(u,c.clone(u)),u}function ds(e=" ",t=0){return cs(Ui,null,e,t)}function ps(e,t){const n=cs(Wi,null,e);return n.staticCount=t,n}function fs(e="",t=!1){return t?(Ki(),ts(qi,null,e)):cs(qi,null,e)}function hs(e){return null==e||"boolean"==typeof e?cs(qi):f(e)?cs(Vi,null,e.slice()):"object"==typeof e?ms(e):cs(Ui,null,String(e))}function ms(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:us(e)}function gs(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),gs(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Ir(t)?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else v(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nxs||Rn;let ks,ws;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ks=t("__VUE_INSTANCE_SETTERS__",(e=>xs=e)),ws=t("__VUE_SSR_SETTERS__",(e=>Os=e))}const Is=e=>{const t=xs;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Es=()=>{xs&&xs.scope.off(),ks(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Ds,As,Os=!1;function Ns(e,t=!1,n=!1){t&&ws(t);const{props:o,children:r}=e.vnode,i=Ts(e);!function(e,t,n,o=!1){const r={},i=wr();e.propsDefaults=Object.create(null),Er(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:It(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,o,i,t),Hr(e,r,n);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bs(e):null,r=Is(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(Es,Es),t)return i.then((n=>{Rs(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Rs(e,i,t)}else Ls(e,t)}(e,t):void 0;return t&&ws(!1),s}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Ls(e,n)}function Ps(e){Ds=e,As=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qo))}}const Ms=()=>!Ds;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const t=o.template||ar(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ds(t,l)}}e.render=o.render||i,As&&As(e)}{const t=Is(e);Te();try{!function(e){const t=ar(e),n=e.proxy,o=e.ctx;sr=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:k,render:w,renderTracked:I,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t){f(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=wt(t))}if(sr=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Hs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)cr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{_r(t,e[t])}))}function M(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&lr(d,e,"c"),M(vo,p),M(yo,h),M(bo,m),M(So,g),M(co,y),M(ao,b),M(Io,T),M(wo,I),M(ko,E),M(_o,x),M(xo,k),M(Co,D),f(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===i&&(e.render=w),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Fs={get:(e,t)=>($e(e,0,""),e[t])};function Bs(e){return{attrs:new Proxy(e.attrs,Fs),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Mt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ho?Ho[n](e):void 0,has:(e,t)=>t in e||t in Ho})):e.proxy}function js(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Os);function Vs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!f(t)?ns(t)?cs(e,null,[t]):cs(e,t):cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),cs(e,t,n))}function Us(){}function qs(e,t,n,o){const r=n[o];if(r&&Ws(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function Ws(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gi&&Gi.push(e),!0}const zs="3.4.33",Gs=i,Ks={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Js=An,Xs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Ys={createComponentInstance:_s,setupComponent:Ns,renderComponentRoot:Di,setCurrentRenderingInstance:Mn,isVNode:ns,normalizeVNode:hs,getComponentPublicInstance:$s},Qs=null,Zs=null,el=null,tl="undefined"!=typeof document?document:null,nl=tl&&tl.createElement("template"),ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?tl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?tl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?tl.createElement(e,{is:n}):tl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>tl.createTextNode(e),createComment:e=>tl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{nl.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",il="animation",sl=Symbol("_vtc"),ll=(e,{slots:t})=>Vs(Kn,pl(e),t);ll.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},al=ll.props=a({},zn,cl),ul=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},dl=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function pl(e){const t={};for(const n in e)n in cl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:w=b,onAppearCancelled:I=_}=t,E=(e,t,n)=>{ml(e,t?d:l),ml(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,ml(e,p),ml(e,h),ml(e,f),t&&t()},D=e=>(t,n)=>{const r=e?w:b,s=()=>E(t,e,n);ul(r,[t,s]),gl((()=>{ml(t,e?c:i),hl(t,e?d:l),dl(r)||yl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){ul(y,[e]),hl(e,i),hl(e,s)},onBeforeAppear(e){ul(k,[e]),hl(e,c),hl(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);hl(e,p),hl(e,f),xl(),gl((()=>{e._isLeaving&&(ml(e,p),hl(e,h),dl(x)||yl(e,o,v,n))})),ul(x,[e,n])},onEnterCancelled(e){E(e,!1),ul(_,[e])},onAppearCancelled(e){E(e,!0),ul(I,[e])},onLeaveCancelled(e){T(e),ul(C,[e])}})}function fl(e){return H(e)}function hl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[sl]||(e[sl]=new Set)).add(t)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[sl];n&&(n.delete(t),n.size||(e[sl]=void 0))}function gl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let vl=0;function yl(e,t,n,o){const r=e._endId=++vl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=bl(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${rl}Delay`),i=o(`${rl}Duration`),s=Sl(r,i),l=o(`${il}Delay`),c=o(`${il}Duration`),a=Sl(l,c);let u=null,d=0,p=0;return t===rl?s>0&&(u=rl,d=s,p=i.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?rl:il:null,p=u?u===rl?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===rl&&/\b(transform|all)(,|$)/.test(o(`${rl}Property`).toString())}}function Sl(e,t){for(;e.length_l(t)+_l(e[n]))))}function _l(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const Cl=Symbol("_vod"),kl=Symbol("_vsh"),wl={beforeMount(e,{value:t},{transition:n}){e[Cl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Il(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Il(e,!0),o.enter(e)):o.leave(e,(()=>{Il(e,!1)})):Il(e,t))},beforeUnmount(e,{value:t}){Il(e,t)}};function Il(e,t){e.style.display=t?e[Cl]:"none",e[kl]=!t}const El=Symbol("");function Tl(e){const t=Cs();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Al(e,n)))},o=()=>{const o=e(t.proxy);Dl(t.subTree,o),n(o)};yo((()=>{gi(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Dl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Dl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Al(e.el,t);else if(e.type===Vi)e.children.forEach((e=>Dl(e,t)));else if(e.type===Wi){let{el:n,anchor:o}=e;for(;n&&(Al(n,t),n!==o);)n=n.nextSibling}}function Al(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Ol=/(^|;)\s*display\s*:/,Nl=/\s*!important$/;function Rl(e,t,n){if(f(n))n.forEach((n=>Rl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ml[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ml[t]=o;o=P(o);for(let n=0;nHl||(Vl.then((()=>Hl=0)),Hl=Date.now()),ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Wl(e,t,n){const o=to(e,t);class r extends Kl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Wl(e,t,Ac),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Dc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!f(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Dc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=cs(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Jl(e="$style"){{const t=Cs();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const Xl=new WeakMap,Yl=new WeakMap,Ql=Symbol("_moveCb"),Zl=Symbol("_enterCb"),ec={name:"TransitionGroup",props:a({},al,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cs(),o=qn();let r,i;return So((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[sl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=bl(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(tc),r.forEach(nc);const o=r.filter(oc);xl(),o.forEach((e=>{const n=e.el,o=n.style;hl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ql]=null,ml(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=pl(s);let c=s.tag||Vi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>F(t,e):t};function ic(e){e.target.composing=!0}function sc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lc=Symbol("_assign"),cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lc]=rc(r);const i=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[lc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",sc),Bl(e,"change",sc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[lc]=rc(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ac={deep:!0,created(e,t,n){e[lc]=rc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=hc(e),o=e.checked,r=e[lc];if(f(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(mc(e,o))}))},mounted:uc,beforeUpdate(e,t,n){e[lc]=rc(n),uc(e,t,n)}};function uc(e,{value:t,oldValue:n},o){e._modelValue=t,f(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,mc(e,!0)))}const dc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[lc]=rc(n),Bl(e,"change",(()=>{e[lc](hc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[lc]=rc(o),t!==n&&(e.checked=ie(t,o.props.value))}},pc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(hc(e)):hc(e)));e[lc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[lc]=rc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[lc]=rc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=f(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(hc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function hc(e){return"_value"in e?e._value:e.value}function mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gc={created(e,t,n){yc(e,t,n,null,"created")},mounted(e,t,n){yc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){yc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){yc(e,t,n,o,"updated")}};function vc(e,t){switch(e){case"SELECT":return pc;case"TEXTAREA":return cc;default:switch(t){case"checkbox":return ac;case"radio":return dc;default:return cc}}}function yc(e,t,n,o,r){const i=vc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const bc=["ctrl","shift","alt","meta"],Sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>bc.some((n=>e[`${n}Key`]&&!t.includes(n)))},_c=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},kc=a({patchProp:(e,t,n,o,r,i)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[sl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Rl(o,t,"")}else for(const e in t)null==n[e]&&Rl(o,e,"");for(const e in n)"display"===e&&(i=!0),Rl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,i=Ol.test(n)}}else t&&e.removeAttribute("style");Cl in e&&(e[Cl]=i?o.display:"",e[kl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[$l]||(e[$l]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ul(),n}(o,r);Bl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!y(n))&&t in e}(e,t,o,s))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Fl(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Fl(e,t,o,s))}},ol);let wc,Ic=!1;function Ec(){return wc||(wc=ri(kc))}function Tc(){return wc=Ic?wc:ii(kc),Ic=!0,wc}const Dc=(...e)=>{Ec().render(...e)},Ac=(...e)=>{Tc().hydrate(...e)},Oc=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Pc(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Nc=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Rc(t))},t};function Rc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){return y(e)?document.querySelector(e):e}let Mc=!1;const Lc=()=>{Mc||(Mc=!0,cc.getSSRProps=({value:e})=>({value:e}),dc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ac.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=vc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},wl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Fc=Symbol(""),Bc=Symbol(""),$c=Symbol(""),jc=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),fa=Symbol(""),ha=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa={[Fc]:"Fragment",[Bc]:"Teleport",[$c]:"Suspense",[jc]:"KeepAlive",[Hc]:"BaseTransition",[Vc]:"openBlock",[Uc]:"createBlock",[qc]:"createElementBlock",[Wc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Kc]:"createTextVNode",[Jc]:"createStaticVNode",[Xc]:"resolveComponent",[Yc]:"resolveDynamicComponent",[Qc]:"resolveDirective",[Zc]:"resolveFilter",[ea]:"withDirectives",[ta]:"renderList",[na]:"renderSlot",[oa]:"createSlots",[ra]:"toDisplayString",[ia]:"mergeProps",[sa]:"normalizeClass",[la]:"normalizeStyle",[ca]:"normalizeProps",[aa]:"guardReactiveProps",[ua]:"toHandlers",[da]:"camelize",[pa]:"capitalize",[fa]:"toHandlerKey",[ha]:"setBlockTracking",[ma]:"pushScopeId",[ga]:"popScopeId",[va]:"withCtx",[ya]:"unref",[ba]:"isRef",[Sa]:"withMemo",[_a]:"isMemoSame"},Ca={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ka(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=Ca){return e&&(l?(e.helper(Vc),e.helper(Pa(e.inSSR,a))):e.helper(Ra(e.inSSR,a)),s&&e.helper(ea)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function wa(e,t=Ca){return{type:17,loc:t,elements:e}}function Ia(e,t=Ca){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Ca,key:y(e)?Ta(e,!0):e,value:t}}function Ta(e,t=!1,n=Ca,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Da(e,t=Ca){return{type:8,loc:t,children:e}}function Aa(e,t=[],n=Ca){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ca){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Na(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ca}}function Ra(e,t){return e||t?Wc:zc}function Pa(e,t){return e||t?Uc:qc}function Ma(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Ra(o,e.isComponent)),t(Vc),t(Pa(o,e.isComponent)))}const La=new Uint8Array([123,123]),Fa=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function $a(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||$a(e)}function Ha(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Xa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return $c;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Hc}}const Ya=/^\d|[^\$\w\xA0-\uFFFF]/,Qa=e=>!Ya.test(e),Za=/[A-Za-z_$\xA0-\uFFFF]/,eu=/[\.\?\w$\xA0-\uFFFF]/,tu=/\s+[.[]\s*|\s*[.[]\s+/g,nu=e=>{e=e.trim().replace(tu,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function hu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const mu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let vu=gu,yu=null,bu="",Su=null,_u=null,xu="",Cu=-1,ku=-1,wu=0,Iu=!1,Eu=null;const Tu=[],Du=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=La,this.delimiterClose=Fa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=La,this.delimiterClose=Fa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||$a(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Va.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Tu,{onerr:Ju,ontext(e,t){Pu(Nu(e,t),e,t)},ontextentity(e,t,n){Pu(e,t,n)},oninterpolation(e,t){if(Iu)return Pu(Nu(e,t),e,t);let n=e+Du.delimiterOpen.length,o=t-Du.delimiterClose.length;for(;$a(bu.charCodeAt(n));)n++;for(;$a(bu.charCodeAt(o-1));)o--;let r=Nu(n,o);r.includes("&")&&(r=vu.decodeEntities(r,!1)),qu({type:5,content:Ku(r,!1,Wu(n,o)),loc:Wu(e,t)})},onopentagname(e,t){const n=Nu(e,t);Su={type:1,tag:n,ns:vu.getNamespace(n,Tu[0],vu.ns),tagType:0,props:[],children:[],loc:Wu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Nu(e,t);if(!vu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ju(24,Tu[0].loc.start.offset);for(let n=0;n<=e;n++)Mu(Tu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ju(2,t)},onattribend(e,t){if(Su&&_u){if(zu(_u.loc,t),0!==e)if(xu.includes("&")&&(xu=vu.decodeEntities(xu,!0)),6===_u.type)"class"===_u.name&&(xu=Uu(xu).trim()),1!==e||xu||Ju(13,t),_u.value={type:2,content:xu,loc:1===e?Wu(Cu,ku):Wu(Cu-1,ku+1)},Du.inSFCRoot&&"template"===Su.tag&&"lang"===_u.name&&xu&&"html"!==xu&&Du.enterRCDATA(Ha("{const r=t.start.offset+n;return Ku(e,!1,Wu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Au);if(u){c=c.replace(Au,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(_u.exp));let t=-1;"bind"===_u.name&&(t=_u.modifiers.indexOf("sync"))>-1&&Wa("COMPILER_V_BIND_SYNC",vu,_u.loc,_u.rawName)&&(_u.name="model",_u.modifiers.splice(t,1))}7===_u.type&&"pre"===_u.name||Su.props.push(_u)}xu="",Cu=ku=-1},oncomment(e,t){vu.comments&&qu({type:3,content:Nu(e,t),loc:Wu(e-4,t+3)})},onend(){const e=bu.length;for(let t=0;t64&&n<91||Xa(e)||vu.isBuiltInComponent&&vu.isBuiltInComponent(e)||vu.isNativeTag&&!vu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wa("COMPILER_INLINE_TEMPLATE",vu,n.loc)&&e.children.length&&(n.value={type:2,content:Nu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(e,t){let n=e;for(;bu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fu=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&nd(r,t)>=2){const n=od(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Qu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Qu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=Ta(e)),E.hoists.push(e);const t=Ta(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ca}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);id(e,n),t.hoistStatic&&Xu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Yu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Ma(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=ka(t,n(Fc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(lu))return;const i=[];for(let s=0;s`${xa[e]}: _${xa[e]}`;function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Zc:"component"===t?Xc:Qc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,h,a]),t),n(")"),d&&n(")"),u&&(n(", "),pd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(ld),n(i+"(",-2,e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),f(s)?ud(s,t):pd(s,t)):l&&pd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Qa(n.content);e&&s("("),fd(n,t),e&&s(")")}else s("("),pd(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),pd(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,pd(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ha)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),pd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(ha)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function hd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ka(28,t.loc)),t.exp=Ta("true",!1,o)}if("if"===t.name){const r=vd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ka(30,e.loc)),n.removeNode();const r=vd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);id(r,n),i&&i(),n.currentNode=null}else n.onError(Ka(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=yd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=yd(t,s+e.branches.length-1,n)}}}))));function vd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ou(e,"for")?e.children:[e],userKey:ru(e,"key"),isTemplateIf:n}}function yd(e,t,n){return e.condition?Na(e.condition,bd(e,t,n),Aa(n.helper(Gc),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=Ea("key",Ta(`${t}`,!1,Ca,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return pu(e,r,n),e}{let t=64;return q[64],ka(n,o(Fc),Ia([r]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===Sa?l.arguments[1].returns:l;return 13===t.type&&Ma(t,n),pu(t,r,n),e}var l}const Sd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(Ka(52,i.loc)),{props:[Ea(i,Ta("",!0,r))]};_d(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(da)}(${i.content})`:(i.children.unshift(`${n.helperString(da)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(i,"."),o.includes("attr")&&xd(i,"^")),{props:[Ea(i,s)]}},_d=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=Ta(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cd=sd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ka(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ka(32,t.loc));kd(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:cu(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const f=o&&o(p);return()=>{l.vFor--,f&&f()}}(e,t,n,(t=>{const i=Aa(o(ta),[t.source]),s=cu(e),l=ou(e,"memo"),c=ru(e,"key",!1,!0);c&&7===c.type&&!c.exp&&_d(c);const a=c&&(6===c.type?c.value?Ta(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=ka(n,o(Fc),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,f=1!==p.length||1!==p[0].type,h=au(e)?e:s&&1===e.children.length&&au(e.children[0])?e.children[0]:null;if(h?(c=h.codegenNode,s&&u&&pu(c,u,n)):f?c=ka(n,o(Fc),u?Ia([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&pu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Vc),r(Pa(n.inSSR,c.isComponent))):r(Ra(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Vc),o(Pa(n.inSSR,c.isComponent))):o(Ra(n.inSSR,c.isComponent))),l){const e=Oa(wd(t.parseResult,[Ta("_cached")]));e.body={type:21,body:[Da(["const _memo = (",l.exp,")"]),Da(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(_a)}(_cached, _memo)) return _cached`]),Da(["const _item = ",c]),Ta("_item.memo = _memo"),Ta("return _item")],loc:Ca},i.arguments.push(e,Ta("_cache"),Ta(String(n.cached++)))}else i.arguments.push(Oa(wd(t.parseResult),c,!0))}}))}));function kd(e,t){e.finalized||(e.finalized=!0)}function wd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ta("_".repeat(t+1),!1)))}([e,t,n,...o])}const Id=Ta("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ou(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Dd(e,t,n=Td){t.helper(va);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ou(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ja(e)&&(l=!0),i.push(Ea(e||Ta("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let f=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ea("default",i)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Ka(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const h=l?2:Od(e.children)?3:1;let m=Ia(i.concat(Ea("_",Ta(h+"",!1))),r);return s.length&&(m=Aa(t.helper(oa),[m,wa(s)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",Ta(String(n),!0))),Ia(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),i=ru(e,"is",!1,!0);if(i)if(r||qa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ta(i.value.content,!0):(e=i.exp,e||(e=Ta("is",!1,i.loc))),e)return Aa(t.helper(Yc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=Xa(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(Xc),t.components.add(o),hu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Yc;let l,c,a,u,d,p=0,f=s||i===Bc||i===$c||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Md(e,t,void 0,r,s);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?wa(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Qc),t.directives.add(e.name),n.push(hu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ta("true",!1,r);n.push(Ia(e.modifiers.map((e=>Ea(e,t))),r))}return wa(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(i===jc&&(f=!0,p|=1024),r&&i!==Bc&&i!==jc){const{slots:n,hasDynamicSlots:o}=Dd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&i!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Zu(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(d.push(Ia(Ld(u),c)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(Ea(Ta("ref_for",!0),Ta("true")))},I=({key:e,value:n})=>{if(Ja(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Zu(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?Aa(t.helper(ia),d,c):d[0]):u.length&&(D=Ia(Ld(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),h||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(au(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Md(e,t,r,!1,!1);n=o,i.length&&t.onError(Ka(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Aa(t.helper(na),s,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(Ka(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ta(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(O(e)):`on:${e}`,!0,s.loc)}else l=Da([`${n.helperString(fa)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=nu(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Da([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||Ta("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ou(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(ha),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Wd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ka(41,e.loc)),zd();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(Ka(44,o.loc)),zd();if(!s.trim()||!nu(s))return n.onError(Ka(42,o.loc)),zd();const c=r||Ta("modelValue",!0),a=r?Ja(r)?`onUpdate:${O(r.content)}`:Da(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Da([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Qa(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ja(r)?`${r.content}Modifiers`:Da([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,Ta(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Kd=(e,t)=>{qa("COMPILER_FILTERS",t)&&(5===e.type?Jd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Jd(e.exp,t)})))};function Jd(e,t){if(4===e.type)Xd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===s?(h=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i{if(1===e.type){const n=ou(e,"memo");if(!n||Qd.has(e))return;return Qd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Ma(o,t),e.codegenNode=Aa(t.helper(Sa),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function ep(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ka(47)):o&&n(Ka(48)),t.cacheHandlers&&n(Ka(49)),t.scopeId&&!o&&n(Ka(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Du.reset(),Su=null,_u=null,xu="",Cu=-1,ku=-1,Tu.length=0,bu=e,vu=a({},gu),t){let e;for(e in t)null!=t[e]&&(vu[e]=t[e])}Du.mode="html"===vu.parseMode?1:"sfc"===vu.parseMode?2:0,Du.inXML=1===vu.ns||2===vu.ns;const n=t&&t.delimiters;n&&(Du.delimiterOpen=Ha(n[0]),Du.delimiterClose=Ha(n[1]));const o=yu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ca}}(0,e);return Du.parse(bu),o.loc=Wu(0,e.length),o.children=ju(o.children),yu=null,o}(e,r):e,[s,l]=[[qd,gd,Zd,Cd,Kd,$d,Pd,Ed,Vd],{on:Hd,bind:Sd,model:Wd}];return rd(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){f.code+=e},indent(){h(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:h(--f.indentLevel)},newline(){h(f.indentLevel)}};function h(e){f.push("\n"+" ".repeat(e),0)}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,f=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Wc,zc,Gc,Kc,Jc].filter((e=>u.includes(e))).map(cd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ad(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?pd(e.codegenNode,n):r("null"),f&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol("");var dp;let pp;dp={[tp]:"vModelRadio",[np]:"vModelCheckbox",[op]:"vModelText",[rp]:"vModelSelect",[ip]:"vModelDynamic",[sp]:"withModifiers",[lp]:"withKeys",[cp]:"vShow",[ap]:"Transition",[up]:"TransitionGroup"},Object.getOwnPropertySymbols(dp).forEach((e=>{xa[e]=dp[e]}));const fp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return pp||(pp=document.createElement("div")),t?(pp.innerHTML=`
            `,pp.children[0].getAttribute("foo")):(pp.innerHTML=e,pp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ap:"TransitionGroup"===e||"transition-group"===e?up:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},hp=(e,t)=>{const n=X(e);return Ta(JSON.stringify(n),!1,t,3)};function mp(e,t){return Ka(e,t)}const gp=n("passive,once,capture"),vp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=n("left,right"),bp=n("onkeyup,onkeydown,onkeypress",!0),Sp=(e,t)=>Ja(e)&&"onclick"===e.content.toLowerCase()?Ta(t,!0):4!==e.type?Da(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,_p=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ta("style",!0,t.loc),exp:hp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(53,r)),t.children.length&&(n.onError(mp(54,r)),t.children.length=0),{props:[Ea(Ta("innerHTML",!0,r),o||Ta("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(55,r)),t.children.length&&(n.onError(mp(56,r)),t.children.length=0),{props:[Ea(Ta("textContent",!0),o?Zu(o,n)>0?o:Aa(n.helperString(ra),[o],r):Ta("",!0))]}},model:(e,t,n)=>{const o=Wd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(mp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=op,l=!1;if("input"===r||i){const o=ru(t,"type");if(o){if(7===o.type)s=ip;else if(o.value)switch(o.value.content){case"radio":s=tp;break;case"checkbox":s=np;break;case"file":l=!0,n.onError(mp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=ip)}else"select"===r&&(s=rp);l||(o.needRuntime=n.helper(s))}else n.onError(mp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],i=[];for(let s=0;s{const{exp:o,loc:r}=e;return o||n.onError(mp(61,r)),{props:[],needRuntime:n.helper(cp)}}},kp=new WeakMap;Ps((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=kp.get(null!=e?e:o);return t||(t=Object.create(null),kp.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return ep(e,a({},fp,t,{nodeTransforms:[_p,...xp,...t.nodeTransforms||[]],directiveTransforms:a({},Cp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const wp={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Hs((function(){return e.iconList})),appIsGettingData:Hs((function(){return e.appIsGettingData})),appIsPublishing:Hs((function(){return e.appIsPublishing})),isEditingMode:Hs((function(){return e.isEditingMode})),designData:Hs((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Hs((function(){return e.showFormDialog})),dialogTitle:Hs((function(){return e.dialogTitle})),dialogFormContent:Hs((function(){return e.dialogFormContent})),dialogButtonText:Hs((function(){return e.dialogButtonText})),formSaveFunction:Hs((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},Ip="undefined"!=typeof document;const Ep=Object.assign;function Tp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ap(r)?r.map(e):e(r)}return n}const Dp=()=>{},Ap=Array.isArray,Op=/#/g,Np=/&/g,Rp=/\//g,Pp=/=/g,Mp=/\?/g,Lp=/\+/g,Fp=/%5B/g,Bp=/%5D/g,$p=/%5E/g,jp=/%60/g,Hp=/%7B/g,Vp=/%7C/g,Up=/%7D/g,qp=/%20/g;function Wp(e){return encodeURI(""+e).replace(Vp,"|").replace(Fp,"[").replace(Bp,"]")}function zp(e){return Wp(e).replace(Lp,"%2B").replace(qp,"+").replace(Op,"%23").replace(Np,"%26").replace(jp,"`").replace(Hp,"{").replace(Up,"}").replace($p,"^")}function Gp(e){return null==e?"":function(e){return Wp(e).replace(Op,"%23").replace(Mp,"%3F")}(e).replace(Rp,"%2F")}function Kp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Jp=/\/$/,Xp=e=>e.replace(Jp,"");function Yp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Kp(s)}}function Qp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Zp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ef(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tf(e[n],t[n]))return!1;return!0}function tf(e,t){return Ap(e)?nf(e,t):Ap(t)?nf(t,e):e===t}function nf(e,t){return Ap(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const of={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rf,sf;!function(e){e.pop="pop",e.push="push"}(rf||(rf={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(sf||(sf={}));const lf=/^[^#]+#/;function cf(e,t){return e.replace(lf,"#")+t}const af=()=>({left:window.scrollX,top:window.scrollY});function uf(e,t){return(history.state?history.state.position-t:-1)+e}const df=new Map;let pf=()=>location.protocol+"//"+location.host;function ff(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Qp(n,"")}return Qp(n,e)+o+r}function hf(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?af():null}}function mf(e){return"string"==typeof e||"symbol"==typeof e}const gf=Symbol("");var vf;function yf(e,t){return Ep(new Error,{type:e,[gf]:!0},t)}function bf(e,t){return e instanceof Error&&gf in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(vf||(vf={}));const Sf="[^/]+?",_f={sensitive:!1,strict:!1,start:!0,end:!0},xf=/[.+*?^${}()[\]/\\]/g;function Cf(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function kf(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const If={type:0,value:""},Ef=/[a-zA-Z0-9_]/;function Tf(e,t,n){const o=function(e,t){const n=Ep({},_f,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;cEp(e,t.meta)),{})}function Rf(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Pf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mf(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&zp(e))):[o&&zp(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Ff(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ap(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Bf=Symbol(""),$f=Symbol(""),jf=Symbol(""),Hf=Symbol(""),Vf=Symbol("");function Uf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function qf(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(yf(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(yf(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function Wf(e,t,n,o,r=e=>e()){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push(qf(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&qf(a,n,o,l,e,r)()}))))}}var s;return i}function zf(e){const t=xr(jf),n=xr(Hf),o=Hs((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Hs((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Zp.bind(null,r));if(s>-1)return s;const l=Kf(e[t-2]);return t>1&&Kf(r)===l&&i[i.length-1].path!==l?i.findIndex(Zp.bind(null,e[t-2])):s})),i=Hs((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ap(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Hs((()=>r.value>-1&&r.value===n.matched.length-1&&ef(n.params,o.value.params)));return{route:o,href:Hs((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Dp):Promise.resolve()}}}const Gf=to({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zf,setup(e,{slots:t}){const n=wt(zf(e)),{options:o}=xr(jf),r=Hs((()=>({[Jf(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jf(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Kf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jf=(e,t,n)=>null!=e?e:null!=t?t:n;function Xf(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Yf=to({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=xr(Vf),r=Hs((()=>e.route||o.value)),i=xr($f,0),s=Hs((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Hs((()=>r.value.matched[s.value]));_r($f,Hs((()=>s.value+1))),_r(Bf,l),_r(Vf,r);const c=Vt();return bi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Zp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return Xf(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Vs(a,Ep({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return Xf(n.default,{Component:p,route:o})||p}}}),Qf={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
            \n

            {{ menuItem.title }}

            \n
            {{ menuItem.subtitle }}
            \n
            \n
            '};function Zf(e){return Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zf(e)}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function th(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
            \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:sh(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=sh(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

            '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var f=!1;for(var h in t.getQuery().terms)if("stepID"==t.getQuery().terms[h].id&&"="==t.getQuery().terms[h].operator&&"deleted"==t.getQuery().terms[h].match){f=!0;break}return f||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

            Searching for records...

            ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n \n
            '};function ah(e){return ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(e)}function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dh(e,t,n){return(t=function(e){var t=function(e){if("object"!=ah(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ah(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ph,fh=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Hs((function(){return e.menuItem})),menuDirection:Hs((function(){return e.menuDirection})),menuItemList:Hs((function(){return e.menuItemList})),chosenHeaders:Hs((function(){return e.chosenHeaders})),menuIsUpdating:Hs((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n
            \n \n
            \n
            '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Qf},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
            \n

            Card Preview

            \n
            \n \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n Icon Selections\n
            \n \n
            \n
            \n
            '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Qf},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return th({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(th({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
            \n
            \n

            Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

            \n
            \n \n
            \n \n \n \n
            \n
            '},CustomSearch:ch},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

            Menu Editor

            "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
            \n Loading... \n loading...\n
            \n
            \n

            \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

            \n

            This page is {{ enabled ? \'\' : \'not\'}} enabled

            \n \n
            TODO banner section
            \n
            \n \n \n
            \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
            '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
            \n Loading... \n loading...\n
            \n

            Test View

            '}}],hh=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Af(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Rf(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ep({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=Tf(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Of(d)&&i(e.name)),Pf(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:Dp}function i(e){if(mf(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;kf(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Pf(t)&&0===kf(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Of(e)&&o.set(e.record.name,e)}return t=Rf({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw yf(1,{location:e});s=r.record.name,l=Ep(Df(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Df(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw yf(1,{location:e,currentLocation:t});s=r.record.name,l=Ep({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Nf(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Mf,o=e.stringifyQuery||Lf,r=e.history,i=Uf(),s=Uf(),l=Uf(),c=Ut(of);let a=of;Ip&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Tp.bind(null,(e=>""+e)),d=Tp.bind(null,Gp),p=Tp.bind(null,Kp);function f(e,i){if(i=Ep({},i||c.value),"string"==typeof e){const o=Yp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return Ep(o,s,{params:p(s.params),hash:Kp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=Ep({},e,{path:Yp(n,e.path,i.path).path});else{const t=Ep({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ep({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ep({},e,{hash:(h=a,Wp(h).replace(Hp,"{").replace(Up,"}").replace($p,"^")),path:l.path}));var h;const m=r.createHref(f);return Ep({fullPath:f,hash:a,query:o===Lf?Ff(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Yp(n,e,c.value.path):Ep({},e)}function m(e,t){if(a!==e)return yf(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ep({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=f(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(Ep(h(u),{state:"object"==typeof u?Ep({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Zp(t.matched[o],n.matched[r])&&ef(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=yf(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>bf(e)?bf(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(bf(e,2))return y(Ep({replace:l},h(e.to),{state:"object"==typeof e.to?Ep({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Zp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=Wf(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(qf(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),M(n).then((()=>{n=[];for(const o of i.list())n.push(qf(o,e,t));return n.push(c),M(n)})).then((()=>{n=Wf(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(qf(o,e,t))}));return n.push(c),M(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ap(o.beforeEnter))for(const r of o.beforeEnter)n.push(qf(r,e,t));else n.push(qf(o.beforeEnter,e,t));return n.push(c),M(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Wf(l,"beforeRouteEnter",e,t,S),n.push(c),M(n)))).then((()=>{n=[];for(const o of s.list())n.push(qf(o,e,t));return n.push(c),M(n)})).catch((e=>bf(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===of,a=Ip?history.state:{};n&&(o||l?r.replace(e.fullPath,Ep({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let k;let w,I=Uf(),E=Uf();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return w||(w=!e,k||(k=r.listen(((e,t,n)=>{if(!P.listening)return;const o=f(e),i=v(o);if(i)return void y(Ep(i,{replace:!0}),o).catch(Dp);a=o;const s=c.value;var l,u;Ip&&(l=uf(s.fullPath,n.delta),u=af(),df.set(l,u)),_(o,s).catch((e=>bf(e,12)?e:bf(e,2)?(y(e.to,o).then((e=>{bf(e,20)&&!n.delta&&n.type===rf.pop&&r.go(-1,!1)})).catch(Dp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!bf(e,8)?r.go(-n.delta,!1):n.type===rf.pop&&bf(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Dp)}))),I.list().forEach((([t,n])=>e?n(e):t())),I.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!Ip||!i)return Promise.resolve();const s=!o&&function(e){const t=df.get(e);return df.delete(e),t}(uf(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return mf(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(Ep(h(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return w&&c.value!==of?Promise.resolve():new Promise(((e,t)=>{I.add([e,t])}))},install(e){e.component("RouterLink",Gf),e.component("RouterView",Yf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),Ip&&!N&&c.value===of&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in of)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(jf,this),e.provide(Hf,It(t)),e.provide(Vf,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=of,k&&k(),k=null,c.value=of,N=!1,w=!1),n()}}};function M(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((ph=location.host?ph||location.pathname+location.search:"").includes("#")||(ph+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ff(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:pf()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ep({},r.value,t.state,{forward:e,scroll:af()});i(s.current,s,!0),i(e,Ep({},hf(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ep({},t.state,hf(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(Ip){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ff(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:rf.pop,direction:u?u>0?sf.forward:sf.back:sf.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Ep({},e.state,{scroll:af()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=Ep({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:cf.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(ph)),routes:fh});const mh=hh;var gh=Oc(wp);gh.use(mh),gh.mount("#site-designer-app")})(); \ No newline at end of file +(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Kn,BaseTransitionPropsValidators:()=>zn,Comment:()=>qi,DeprecationTypes:()=>el,EffectScope:()=>fe,ErrorCodes:()=>cn,ErrorTypeStrings:()=>Ks,Fragment:()=>Vi,KeepAlive:()=>so,ReactiveEffect:()=>ye,Static:()=>Wi,Suspense:()=>Li,Teleport:()=>Xr,Text:()=>Ui,TrackOpTypes:()=>rn,Transition:()=>ll,TransitionGroup:()=>ec,TriggerOpTypes:()=>sn,VueElement:()=>Kl,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>us,compatUtils:()=>Zs,computed:()=>Hs,createApp:()=>Oc,createBlock:()=>ts,createCommentVNode:()=>fs,createElementBlock:()=>es,createElementVNode:()=>ls,createHydrationRenderer:()=>ii,createPropsRestProxy:()=>rr,createRenderer:()=>ri,createSSRApp:()=>Nc,createSlots:()=>Lo,createStaticVNode:()=>ps,createTextVNode:()=>ds,createVNode:()=>cs,customRef:()=>Qt,defineAsyncComponent:()=>oo,defineComponent:()=>to,defineCustomElement:()=>Wl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Xo,defineOptions:()=>Ko,defineProps:()=>Wo,defineSSRCustomElement:()=>zl,defineSlots:()=>Jo,devtools:()=>Js,effect:()=>Ce,effectScope:()=>he,getCurrentInstance:()=>Cs,getCurrentScope:()=>ge,getTransitionRawChildren:()=>eo,guardReactiveProps:()=>as,h:()=>Vs,handleError:()=>dn,hasInjectionContext:()=>Cr,hydrate:()=>Ac,initCustomFormatter:()=>Us,initDirectivesForSSR:()=>Lc,inject:()=>xr,isMemoSame:()=>Ws,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>Ms,isShallow:()=>Nt,isVNode:()=>ns,markRaw:()=>Mt,mergeDefaults:()=>nr,mergeModels:()=>or,mergeProps:()=>vs,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>co,onBeforeMount:()=>vo,onBeforeUnmount:()=>_o,onBeforeUpdate:()=>bo,onDeactivated:()=>ao,onErrorCaptured:()=>Io,onMounted:()=>yo,onRenderTracked:()=>wo,onRenderTriggered:()=>ko,onScopeDispose:()=>ve,onServerPrefetch:()=>Co,onUnmounted:()=>xo,onUpdated:()=>So,openBlock:()=>Ki,popScopeId:()=>Fn,provide:()=>_r,proxyRefs:()=>Xt,pushScopeId:()=>Ln,queuePostFlushCb:()=>kn,reactive:()=>wt,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ps,render:()=>Dc,renderList:()=>Mo,renderSlot:()=>Fo,resolveComponent:()=>Do,resolveDirective:()=>No,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Qs,resolveTransitionHooks:()=>Xn,setBlockTracking:()=>Qi,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Zn,shallowReactive:()=>It,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>fi,ssrUtils:()=>Ys,stop:()=>ke,toDisplayString:()=>ce,toHandlerKey:()=>M,toHandlers:()=>$o,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>rs,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Zo,useCssModule:()=>Jl,useCssVars:()=>Tl,useModel:()=>ki,useSSRContext:()=>hi,useSlots:()=>Qo,useTransitionState:()=>qn,vModelCheckbox:()=>ac,vModelDynamic:()=>gc,vModelRadio:()=>dc,vModelSelect:()=>pc,vModelText:()=>cc,vShow:()=>wl,version:()=>zs,warn:()=>Gs,watch:()=>bi,watchEffect:()=>mi,watchPostEffect:()=>gi,watchSyncEffect:()=>vi,withAsyncContext:()=>ir,withCtx:()=>$n,withDefaults:()=>Yo,withDirectives:()=>jn,withKeys:()=>Cc,withMemo:()=>qs,withModifiers:()=>_c,withScopeId:()=>Bn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,h=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>C(e).slice(8,-1),w=e=>"[object Object]"===C(e),I=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=D((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":f(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||f(t)||w(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=we,t=pe;try{return we=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,we=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function ke(e){e.effect.stop()}let we=!0,Ie=0;const Ee=[];function Te(){Ee.push(we),we=!1}function De(){const e=Ee.pop();we=void 0===e||e}function Ae(){Ie++}function Oe(){for(Ie--;!Ie&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Le=new WeakMap,Fe=Symbol(""),Be=Symbol("");function $e(e,t,n){if(we&&pe){let t=Le.get(e);t||Le.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me((()=>t.delete(n)))),Ne(pe,o)}}function je(e,t,n,o,r,i){const s=Le.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&f(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":f(e)?I(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"delete":f(e)||(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"set":h(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return $e(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?kt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||$e(e,0,t),r?s:Ht(s)?i&&I(t)?s:s.value:S(s)?o?Et(s):wt(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!f(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=f(e)&&I(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(L(t,i)&&$e(r,0,t),$e(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Lt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(L(e,r)&&$e(o,0,e),$e(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e,t=!1){t||Nt(e)||Ot(e)||(e=Pt(e));const n=Pt(this);return et(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Nt(t)||Ot(t)||(t=Pt(t));const o=Pt(this),{has:r,get:i}=et(o);let s=r.call(o,e);s||(e=Pt(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?L(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Lt;return!e&&$e(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=h(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Lt;return!t&&$e(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add(e){return rt.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ft,ht,mt]=dt();function gt(e,t){const n=t?e?mt:ht:e?ft:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,kt=new WeakMap;function wt(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function It(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,kt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Mt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Lt=e=>S(e)?wt(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||jt(e,4),$t(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function $t(e){var t;we&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Me((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Lt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Lt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Le.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(f(e)){const r=[];for(let i=0;i>>1,r=hn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){fn=!1,pn=!0,hn.sort(Tn);try{for(mn=0;mn$n;function $n(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qi(-1);const r=Mn(t);let i;try{i=e(...n)}finally{Mn(r),o._d&&Qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Rn)return e;const n=$s(Rn),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),_o((()=>{e.isUnmounting=!0})),e}const Wn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wn,onEnter:Wn,onAfterEnter:Wn,onEnterCancelled:Wn,onBeforeLeave:Wn,onLeave:Wn,onAfterLeave:Wn,onLeaveCancelled:Wn,onBeforeAppear:Wn,onAppear:Wn,onAfterAppear:Wn,onAppearCancelled:Wn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Kn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Cs(),o=qn();return()=>{const r=t.default&&eo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==qi){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return Yn(i);const c=Qn(i);if(!c)return Yn(i);let a=Xn(c,s,o,n,(e=>a=e));Zn(c,a);const u=n.subTree,d=u&&Qn(u);if(d&&d.type!==qi&&!os(c,d)&&Gn(n).type!==qi){const e=Xn(d,s,o,n);if(Zn(d,e),"out-in"===l&&c.type!==qi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Yn(i);"in-out"===l&&c.type!==qi&&(e.delayLeave=(e,t,n)=>{Jn(o,d)[String(d.key)]=d,e[Vn]=()=>{t(),e[Vn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function Jn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xn(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=Jn(n,e),C=(e,t)=>{e&&un(e,o,9,t)},k=(e,t)=>{const n=t[1];C(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[Vn]&&t[Vn](!0);const r=x[_];r&&os(e,r)&&r.el[Vn]&&r.el[Vn](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[Un]=t=>{s||(s=!0,C(t?r:o,[e]),w.delayedLeave&&w.delayedLeave(),e[Un]=void 0)};t?k(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Un]&&t[Un](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[Vn]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[Vn]=void 0,x[r]===e&&delete x[r])};x[r]=e,h?k(h,[t,s]):s()},clone(e){const i=Xn(e,t,n,o,r);return r&&r(i),i}};return w}function Yn(e){if(io(e))return(e=us(e)).children=null,e}function Qn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Zn(e,t){6&e.shapeFlag&&e.component?Zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ea({name:e.name},t,{setup:e}))():e}const no=e=>!!e.type.__asyncLoader;function oo(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return to({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xs;if(c)return()=>ro(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||Os)return d().then((t=>()=>ro(t,e))).catch((e=>(t(e),()=>o?cs(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?ro(c,e):u.value&&o?cs(o,{error:u.value}):n&&!p.value?cs(n):void 0}})}function ro(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=cs(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const io=e=>e.type.__isKeepAlive,so={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Cs(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function f(e){fo(e),u(e,n,l,!0)}function h(e){r.forEach(((t,n)=>{const o=js(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&os(t,s)?s&&fo(s):f(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),oi((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ys(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;pi(t.m),pi(t.a),a(e,p,null,1,l),oi((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ys(n,t.parent,e),t.isDeactivated=!0}),l)},bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>lo(e,t))),t&&h((e=>!lo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Pi(n.subTree.type)?oi((()=>{r.set(g,ho(n.subTree))}),n.subTree.suspense):r.set(g,ho(n.subTree)))};return yo(v),So(v),_o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=ho(t);if(e.type!==r.type||e.key!==r.key)f(e);else{fo(r);const e=r.component.da;e&&oi(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ns(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=ho(o);const c=l.type,a=js(no(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!lo(u,a))||d&&a&&lo(d,a))return s=l,o;const f=null==l.key?c:l.key,h=r.get(f);return l.el&&(l=us(l),128&o.shapeFlag&&(o.ssContent=l)),g=f,h?(l.el=h.el,l.component=h.component,l.transition&&Zn(l,l.transition),l.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,Pi(o.type)?o:l}}};function lo(e,t){return f(e)?e.some((e=>lo(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function co(e,t){uo(e,"a",t)}function ao(e,t){uo(e,"da",t)}function uo(e,t,n=xs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(mo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&po(o,t,n,e),e=e.parent}}function po(e,t,n,o){const r=mo(t,e,o,!0);xo((()=>{u(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ho(e){return 128&e.shapeFlag?e.ssContent:e}function mo(e,t,n=xs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=Is(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const go=e=>(t,n=xs)=>{Os&&"sp"!==e||mo(e,((...e)=>t(...e)),n)},vo=go("bm"),yo=go("m"),bo=go("bu"),So=go("u"),_o=go("bum"),xo=go("um"),Co=go("sp"),ko=go("rtg"),wo=go("rtc");function Io(e,t=xs){mo("ec",e,t)}const Eo="components",To="directives";function Do(e,t){return Ro(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function Oo(e){return y(e)?Ro(Eo,e,!1)||e:e||Ao}function No(e){return Ro(To,e)}function Ro(e,t,n=!0,o=!1){const r=Rn||xs;if(r){const n=r.type;if(e===Eo){const e=js(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Po(r[e]||n[e],t)||Po(r.appContext[e],t);return!i&&o?n:i}}function Po(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Mo(e,t,n,o){let r;const i=n&&n[o];if(f(e)||y(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Fo(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&no(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),cs("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ki();const s=i&&Bo(i(n)),l=ts(Vi,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bo(e){return e.some((e=>!ns(e)||e.type!==qi&&!(e.type===Vi&&!Bo(e.children))))?e:null}function $o(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ts(e)?$s(e):jo(e.parent):null,Ho=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ar(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>_i.bind(e)}),Vo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Uo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Vo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];sr&&(l[t]=0)}}const d=Ho[t];let f,h;return d?("$attrs"===t&&$e(e.attrs,0,""),d(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==o&&p(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,p(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Vo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Vo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Ho,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=a({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function Wo(){return null}function zo(){return null}function Go(e){}function Ko(e){}function Jo(){return null}function Xo(){}function Yo(e,t){return null}function Qo(){return er().slots}function Zo(){return er().attrs}function er(){const e=Cs();return e.setupContext||(e.setupContext=Bs(e))}function tr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function nr(e,t){const n=tr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?f(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function or(e,t){return e&&t?f(e)&&f(t)?e.concat(t):a({},tr(e),tr(t)):e||t}function rr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Cs();let n=e();return Es(),_(n)&&(n=n.catch((e=>{throw Is(t),e}))),[n,()=>Is(t)]}let sr=!0;function lr(e,t,n){un(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function cr(e,t,n,o){const r=o.includes(".")?xi(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&bi(r,n)}else if(v(e))bi(r,e.bind(n));else if(S(e))if(f(e))e.forEach((e=>cr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&bi(r,o,e)}}function ar(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>ur(c,e,s,!0))),ur(c,t,s)):c=t,S(t)&&i.set(t,c),c}function ur(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ur(e,i,n,!0),r&&r.forEach((t=>ur(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=dr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const dr={data:pr,props:gr,emits:gr,methods:mr,computed:mr,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=hr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return mr(fr(e),fr(t))}};function pr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function fr(e){if(f(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=cs(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,$s(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Sr;Sr=l;try{return e()}finally{Sr=t}}};return l}}let Sr=null;function _r(e,t){if(xs){let n=xs.provides;const o=xs.parent&&xs.parent.provides;o===n&&(n=xs.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xs||Rn;if(o||Sr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function Cr(){return!!(xs||Rn||Sr)}const kr={},wr=()=>Object.create(kr),Ir=e=>Object.getPrototypeOf(e)===kr;function Er(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ti(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Ar(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(f(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const h=[c,u];return S(e)&&i.set(e,h),h}function Or(e){return"$"!==e[0]&&!E(e)}function Nr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Rr(e,t){return Nr(e)===Nr(t)}function Pr(e,t){return f(t)?t.findIndex((t=>Rr(t,e))):v(t)&&Rr(t,e)?0:-1}const Mr=e=>"_"===e[0]||"$stable"===e,Lr=e=>f(e)?e.map(hs):[hs(e)],Fr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>Lr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Mr(n))continue;const r=e[n];if(v(r))t[n]=Fr(0,r,o);else if(null!=r){const e=Lr(r);t[n]=()=>e}}},$r=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Hr=(e,t,n)=>{const o=e.slots=wr();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&B(o,"_",e,!0)):Br(t,o)}else t&&$r(e,t)},Vr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:jr(i,t,n):(s=!t.$stable,Br(t,i)),l=t}else t&&($r(e,t),l={default:1});if(s)for(const e in i)Mr(e)||null!=l[e]||delete i[e]};function Ur(e,t,n,r,i=!1){if(f(e))return void e.forEach(((e,o)=>Ur(e,t&&(f(t)?t[o]:t),n,r,i)));if(no(r)&&!i)return;const s=4&r.shapeFlag?$s(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,h=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(h[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,h]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:h[a]:a.value;i?f(n)&&u(n,s):f(n)?n.includes(s)||n.push(s):t?(h[a]=[s],p(m,a)&&(m[a]=h[a])):(a.value=[s],e.k&&(h[e.k]=a.value))}else t?(h[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(h[e.k]=l))};l?(r.id=-1,oi(r,n)):r()}}}const qr=Symbol("_vte"),Wr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Jr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Wr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Wr(e.props),g=m?n:u,y=m?o:f;if("svg"===s||zr(u)?s="svg":("mathml"===s||Gr(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),ui(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Kr(t.props,h);e&&Jr(t,e,null,a,0)}else m&&Jr(t,u,f,a,1)}Yr(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),i&&r(c),16&s){const e=i||!Wr(p);for(let r=0;r{Qr||(console.error("Hydration completed but contains mismatches."),Qr=!0)},ei=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ti=e=>8===e.nodeType;function ni(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ti(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:k,patchFlag:w}=o;let I=n.nodeType;o.el=n,-2===w&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Ui:3!==I?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Zr(),n.data=o.children),E=i(n));break;case qi:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==I||S?_():i(n);break;case Wi:if(S&&(I=(n=i(n)).nodeType),1===I||3===I){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:h,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){h&&Hn(t,null,n,"created");let a,b=!1;if(y(e)){b=ai(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=f(e.firstChild,t,e,n,r,i,s);for(;o;){Zr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Zr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&At(u.style))for(const e in u.style)u.style[e];(a=u&&u.onVnodeBeforeMount)&&ys(a,n,t),h&&Hn(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||h||b)&&ji((()=>{a&&ys(a,n,t),b&&m.enter(e),h&&Hn(t,null,n,"mounted")}),r)}return e.nextSibling},f=(e,t,o,s,l,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,f=p.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=f(i(e),t,d,n,o,r,l);return p&&ti(p)&&"]"===p.data?i(t.anchor=p):(Zr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Zr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,ei(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&ti(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),In(),void(t._vnode=e);d(t.firstChild,e,null,null,null),In(),t._vnode=e},d]}const oi=ji;function ri(e){return si(e)}function ii(e){return si(e,ni)}function si(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:f,parentNode:h,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Ui:b(e,t,n,o);break;case qi:S(e,t,n,o);break;case Wi:null==e&&_(t,n,o,s);break;case Vi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Ur(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):I(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,h&&h.is,h),8&m?f(d,e.children):16&m&&w(e.children,d,null,r,i,li(e,s),a,u),v&&Hn(e,null,r,"created"),k(d,e,e.scopeId,a,r),h){for(const e in h)"value"===e||E(e)||l(d,e,null,h[e],s,r);"value"in h&&l(d,"value",null,h.value,s),(p=h.onVnodeBeforeMount)&&ys(p,r,e)}v&&Hn(e,null,r,"beforeMount");const y=ai(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||y||v)&&oi((()=>{p&&ys(p,r,e),y&&g.enter(d),v&&Hn(e,null,r,"mounted")}),i)},k=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let g;if(n&&ci(n,!1),(g=m.onVnodeBeforeUpdate)&&ys(g,n,t,e),p&&Hn(t,e,n,"beforeUpdate"),n&&ci(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&f(a,""),d?T(e.dynamicChildren,d,a,n,r,li(t,i),s):c||$(e,t,a,null,n,r,li(t,i),s,!1),u>0){if(16&u)D(a,h,m,n,i);else if(2&u&&h.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ys(g,n,t,e),p&&Hn(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(t!==n){if(t!==o)for(const o in t)E(o)||o in n||l(e,o,t[o],null,i,r);for(const o in n){if(E(o))continue;const s=n[o],c=t[o];s!==c&&"value"!==o&&l(e,o,c,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),w(t.children||[],o,p,i,s,l,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&ui(e,t,!0)):$(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):M(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=_s(e,o,r);if(io(e)&&(l.ctx.renderer=Q),Ns(l,!1,s),l.asyncDep){if(r&&r.registerDep(l,L,s),!e.el){const e=l.subTree=cs(qi);S(null,e,t,n)}}else L(l,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||Ni(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?Ni(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&hn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=di(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;ci(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ys(u,i,t,a),ci(e,!0);const p=Di(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Ri(e,p.el),o&&oi(o,r),(u=t.props&&t.props.onVnodeUpdated)&&oi((()=>ys(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=no(t);if(ci(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&ys(i,d,t),ci(e,!0),l&&ee){const n=()=>{e.subTree=Di(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Di(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&oi(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;oi((()=>ys(i,d,e)),r)}(256&t.shapeFlag||d&&no(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&oi(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,ci(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;Er(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Tr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void j(a,d,n,o,r,i,s,l,c)}8&h?(16&u&&K(a,r,i),d!==a&&f(n,d)):16&u?16&h?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&f(n,""),16&h&&w(d,n,o,r,i,s,l,c))},j=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?K(e,i,s,!0,!1,p):w(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const o=e[u],r=t[u]=a?ms(t[u]):hs(t[u]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=f;){const o=e[p],r=t[f]=a?ms(t[f]):hs(t[f]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,f--}if(u>p){if(u<=f){const e=f+1,r=ef)for(;u<=p;)q(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=a?ms(t[u]):hs(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=f-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=f;v++)if(0===C[v-m]&&os(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const k=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=k.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Vi)if(l!==Wi)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),oi((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(r=!1),null!=l&&Ur(l,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,m=!no(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&ys(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Hn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&!a.hasOnce&&(i!==Vi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Vi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||h)&&oi((()=>{g&&ys(g,t,e),h&&Hn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Vi)return void z(n,o);if(t===Wi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;pi(c),pi(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&oi(l,t),oi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[qr];return n?m(n):t};let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,wn(),In(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:w,pc:$,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:br(Y,Z)}}function li({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let e=0;exr(fi);function mi(e,t){return Si(e,null,t)}function gi(e,t){return Si(e,null,{flush:"post"})}function vi(e,t){return Si(e,null,{flush:"sync"})}const yi={};function bi(e,t,n){return Si(e,t,n)}function Si(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),I()}}const d=xs,p=e=>!0===r?e:Ci(e,!1===r?1:void 0);let h,m,g=!1,y=!1;if(Ht(e)?(h=()=>e.value,g=Nt(e)):At(e)?(h=()=>p(e),g=!0):f(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),h=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):h=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=h;h=()=>Ci(e())}let b,S=e=>{m=k.onStop=()=>{an(e,d,4),m=k.onStop=void 0}};if(Os){if(S=i,t?n&&un(t,d,3,[h(),y?[]:void 0,S]):h(),"sync"!==s)return i;{const e=hi();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(yi):yi;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(r||g||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(m&&m(),un(t,d,3,[e,_===yi?void 0:y&&_[0]===yi?[]:_,S]),_=e)}else k.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>oi(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new ye(h,i,C),w=ge(),I=()=>{k.stop(),w&&u(w.effects,k)};return t?n?x():_=k.run():"post"===s?oi(k.run.bind(k),d&&d.suspense):k.run(),b&&b.push(I),I}function _i(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?xi(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=Is(this),l=Si(r,i.bind(o),n);return s(),l}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ci(e,t,n)}));else if(w(e)){for(const o in e)Ci(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ci(e[o],t,n)}return e}function ki(e,t,n=o){const r=Cs(),i=O(t),s=R(t),l=wi(e,t),c=Qt(((o,l)=>{let c,a,u;return vi((()=>{const n=e[t];L(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){if(!L(e,c))return;const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||(c=e,l());const d=n.set?n.set(e):e;r.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o:c,done:!1}:{done:!0}}},c}const wi=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${R(t)}Modifiers`];function Ii(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const s=t.startsWith("update:"),l=s&&wi(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>y(e)?e.trim():e))),l.number&&(i=n.map(j)));let a=r[c=M(t)]||r[c=M(O(t))];!a&&s&&(a=r[c=M(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Ei(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Ei(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(f(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ti(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function Di(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=Mn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=hs(u.call(t,e,d,p,h,f,m)),b=l}else{const e=t;y=hs(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:Ai(l)}}catch(t){zi.length=0,dn(t,e,1),y=cs(qi)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Oi(b,i)),S=us(S,b,!1,!0))}return n.dirs&&(S=us(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Mn(v),y}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Oi=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ni(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Mi=0;const Li={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bi(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Fi(e,"onPending"),Fi(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),Hi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,os(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(h,f,n,o,r,null,i,s,l),Hi(d,f)))):(d.pendingId=Mi++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(h,f,n,o,r,null,i,s,l),Hi(d,f))):h&&os(p,h)?(c(h,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(h&&os(p,h))c(h,p,n,o,r,d,i,s,l),Hi(d,p);else if(Fi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Mi++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=Bi(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=$i(o?n.default:n),e.ssFallback=o?$i(n.fallback):cs(qi)}};function Fi(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Bi(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:f,n:h,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:Mi++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?h(r):i,0),kn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=h(r)),f(r,a,_,!0)),d||p(s,u,i,0)),Hi(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||kn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Fi(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;Fi(t,"onFallback");const s=h(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),Hi(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,f(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&h(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Rs(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:h(e.subTree),_,s,n),c&&g(c),Ri(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,n,e,t),_.pendingBranch&&f(_.pendingBranch,n,e,t)}};return _}function $i(e){let t;if(v(e)){const n=Yi&&e._c;n&&(e._d=!1,Ki()),e=e(),n&&(e._d=!0,t=Gi,Ji())}if(f(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function ji(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Hi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ri(o,r))}const Vi=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),qi=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),zi=[];let Gi=null;function Ki(e=!1){zi.push(Gi=e?null:[])}function Ji(){zi.pop(),Gi=zi[zi.length-1]||null}let Xi,Yi=1;function Qi(e){Yi+=e,e<0&&Gi&&(Gi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?Gi||r:null,Ji(),Yi>0&&Gi&&Gi.push(e),e}function es(e,t,n,o,r,i){return Zi(ls(e,t,n,o,r,i,!0))}function ts(e,t,n,o,r){return Zi(cs(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}function rs(e){Xi=e}const is=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,o=0,r=null,i=(e===Vi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&is(t),ref:t&&ss(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return l?(gs(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!s&&Gi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Gi.push(c),c}const cs=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Ao||(e=qi),ns(e)){const o=us(e,t,!0);return n&&gs(o,n),Yi>0&&!i&&Gi&&(6&o.shapeFlag?Gi[Gi.indexOf(e)]=o:Gi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=as(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!f(n)&&(n=a({},n)),t.style=z(n))}var s;return ls(e,t,n,o,r,y(e)?1:Pi(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function as(e){return e?Rt(e)||Ir(e)?a({},e):e:null}function us(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?vs(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&is(a),ref:t&&t.ref?n&&i?f(i)?i.concat(ss(t)):[i,ss(t)]:ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Zn(u,c.clone(u)),u}function ds(e=" ",t=0){return cs(Ui,null,e,t)}function ps(e,t){const n=cs(Wi,null,e);return n.staticCount=t,n}function fs(e="",t=!1){return t?(Ki(),ts(qi,null,e)):cs(qi,null,e)}function hs(e){return null==e||"boolean"==typeof e?cs(qi):f(e)?cs(Vi,null,e.slice()):"object"==typeof e?ms(e):cs(Ui,null,String(e))}function ms(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:us(e)}function gs(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),gs(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Ir(t)?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else v(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nxs||Rn;let ks,ws;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ks=t("__VUE_INSTANCE_SETTERS__",(e=>xs=e)),ws=t("__VUE_SSR_SETTERS__",(e=>Os=e))}const Is=e=>{const t=xs;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Es=()=>{xs&&xs.scope.off(),ks(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Ds,As,Os=!1;function Ns(e,t=!1,n=!1){t&&ws(t);const{props:o,children:r}=e.vnode,i=Ts(e);!function(e,t,n,o=!1){const r={},i=wr();e.propsDefaults=Object.create(null),Er(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:It(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,o,i,t),Hr(e,r,n);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bs(e):null,r=Is(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(Es,Es),t)return i.then((n=>{Rs(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Rs(e,i,t)}else Ls(e,t)}(e,t):void 0;return t&&ws(!1),s}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Ls(e,n)}function Ps(e){Ds=e,As=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qo))}}const Ms=()=>!Ds;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const t=o.template||ar(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ds(t,l)}}e.render=o.render||i,As&&As(e)}{const t=Is(e);Te();try{!function(e){const t=ar(e),n=e.proxy,o=e.ctx;sr=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:k,render:w,renderTracked:I,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t){f(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=wt(t))}if(sr=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Hs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)cr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{_r(t,e[t])}))}function M(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&lr(d,e,"c"),M(vo,p),M(yo,h),M(bo,m),M(So,g),M(co,y),M(ao,b),M(Io,T),M(wo,I),M(ko,E),M(_o,x),M(xo,k),M(Co,D),f(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===i&&(e.render=w),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Fs={get:(e,t)=>($e(e,0,""),e[t])};function Bs(e){return{attrs:new Proxy(e.attrs,Fs),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Mt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ho?Ho[n](e):void 0,has:(e,t)=>t in e||t in Ho})):e.proxy}function js(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Os);function Vs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!f(t)?ns(t)?cs(e,null,[t]):cs(e,t):cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),cs(e,t,n))}function Us(){}function qs(e,t,n,o){const r=n[o];if(r&&Ws(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function Ws(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gi&&Gi.push(e),!0}const zs="3.4.33",Gs=i,Ks={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Js=An,Xs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Ys={createComponentInstance:_s,setupComponent:Ns,renderComponentRoot:Di,setCurrentRenderingInstance:Mn,isVNode:ns,normalizeVNode:hs,getComponentPublicInstance:$s},Qs=null,Zs=null,el=null,tl="undefined"!=typeof document?document:null,nl=tl&&tl.createElement("template"),ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?tl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?tl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?tl.createElement(e,{is:n}):tl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>tl.createTextNode(e),createComment:e=>tl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{nl.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",il="animation",sl=Symbol("_vtc"),ll=(e,{slots:t})=>Vs(Kn,pl(e),t);ll.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},al=ll.props=a({},zn,cl),ul=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},dl=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function pl(e){const t={};for(const n in e)n in cl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:w=b,onAppearCancelled:I=_}=t,E=(e,t,n)=>{ml(e,t?d:l),ml(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,ml(e,p),ml(e,h),ml(e,f),t&&t()},D=e=>(t,n)=>{const r=e?w:b,s=()=>E(t,e,n);ul(r,[t,s]),gl((()=>{ml(t,e?c:i),hl(t,e?d:l),dl(r)||yl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){ul(y,[e]),hl(e,i),hl(e,s)},onBeforeAppear(e){ul(k,[e]),hl(e,c),hl(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);hl(e,p),hl(e,f),xl(),gl((()=>{e._isLeaving&&(ml(e,p),hl(e,h),dl(x)||yl(e,o,v,n))})),ul(x,[e,n])},onEnterCancelled(e){E(e,!1),ul(_,[e])},onAppearCancelled(e){E(e,!0),ul(I,[e])},onLeaveCancelled(e){T(e),ul(C,[e])}})}function fl(e){return H(e)}function hl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[sl]||(e[sl]=new Set)).add(t)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[sl];n&&(n.delete(t),n.size||(e[sl]=void 0))}function gl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let vl=0;function yl(e,t,n,o){const r=e._endId=++vl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=bl(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${rl}Delay`),i=o(`${rl}Duration`),s=Sl(r,i),l=o(`${il}Delay`),c=o(`${il}Duration`),a=Sl(l,c);let u=null,d=0,p=0;return t===rl?s>0&&(u=rl,d=s,p=i.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?rl:il:null,p=u?u===rl?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===rl&&/\b(transform|all)(,|$)/.test(o(`${rl}Property`).toString())}}function Sl(e,t){for(;e.length_l(t)+_l(e[n]))))}function _l(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const Cl=Symbol("_vod"),kl=Symbol("_vsh"),wl={beforeMount(e,{value:t},{transition:n}){e[Cl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Il(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Il(e,!0),o.enter(e)):o.leave(e,(()=>{Il(e,!1)})):Il(e,t))},beforeUnmount(e,{value:t}){Il(e,t)}};function Il(e,t){e.style.display=t?e[Cl]:"none",e[kl]=!t}const El=Symbol("");function Tl(e){const t=Cs();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Al(e,n)))},o=()=>{const o=e(t.proxy);Dl(t.subTree,o),n(o)};yo((()=>{gi(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Dl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Dl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Al(e.el,t);else if(e.type===Vi)e.children.forEach((e=>Dl(e,t)));else if(e.type===Wi){let{el:n,anchor:o}=e;for(;n&&(Al(n,t),n!==o);)n=n.nextSibling}}function Al(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Ol=/(^|;)\s*display\s*:/,Nl=/\s*!important$/;function Rl(e,t,n){if(f(n))n.forEach((n=>Rl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ml[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ml[t]=o;o=P(o);for(let n=0;nHl||(Vl.then((()=>Hl=0)),Hl=Date.now()),ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Wl(e,t,n){const o=to(e,t);class r extends Kl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Wl(e,t,Ac),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Dc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!f(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Dc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=cs(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Jl(e="$style"){{const t=Cs();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const Xl=new WeakMap,Yl=new WeakMap,Ql=Symbol("_moveCb"),Zl=Symbol("_enterCb"),ec={name:"TransitionGroup",props:a({},al,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cs(),o=qn();let r,i;return So((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[sl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=bl(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(tc),r.forEach(nc);const o=r.filter(oc);xl(),o.forEach((e=>{const n=e.el,o=n.style;hl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ql]=null,ml(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=pl(s);let c=s.tag||Vi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>F(t,e):t};function ic(e){e.target.composing=!0}function sc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lc=Symbol("_assign"),cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lc]=rc(r);const i=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[lc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",sc),Bl(e,"change",sc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[lc]=rc(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ac={deep:!0,created(e,t,n){e[lc]=rc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=hc(e),o=e.checked,r=e[lc];if(f(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(mc(e,o))}))},mounted:uc,beforeUpdate(e,t,n){e[lc]=rc(n),uc(e,t,n)}};function uc(e,{value:t,oldValue:n},o){e._modelValue=t,f(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,mc(e,!0)))}const dc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[lc]=rc(n),Bl(e,"change",(()=>{e[lc](hc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[lc]=rc(o),t!==n&&(e.checked=ie(t,o.props.value))}},pc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(hc(e)):hc(e)));e[lc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[lc]=rc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[lc]=rc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=f(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(hc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function hc(e){return"_value"in e?e._value:e.value}function mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gc={created(e,t,n){yc(e,t,n,null,"created")},mounted(e,t,n){yc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){yc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){yc(e,t,n,o,"updated")}};function vc(e,t){switch(e){case"SELECT":return pc;case"TEXTAREA":return cc;default:switch(t){case"checkbox":return ac;case"radio":return dc;default:return cc}}}function yc(e,t,n,o,r){const i=vc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const bc=["ctrl","shift","alt","meta"],Sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>bc.some((n=>e[`${n}Key`]&&!t.includes(n)))},_c=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},kc=a({patchProp:(e,t,n,o,r,i)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[sl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Rl(o,t,"")}else for(const e in t)null==n[e]&&Rl(o,e,"");for(const e in n)"display"===e&&(i=!0),Rl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,i=Ol.test(n)}}else t&&e.removeAttribute("style");Cl in e&&(e[Cl]=i?o.display:"",e[kl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[$l]||(e[$l]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ul(),n}(o,r);Bl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!y(n))&&t in e}(e,t,o,s))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Fl(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Fl(e,t,o,s))}},ol);let wc,Ic=!1;function Ec(){return wc||(wc=ri(kc))}function Tc(){return wc=Ic?wc:ii(kc),Ic=!0,wc}const Dc=(...e)=>{Ec().render(...e)},Ac=(...e)=>{Tc().hydrate(...e)},Oc=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Pc(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Nc=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Rc(t))},t};function Rc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){return y(e)?document.querySelector(e):e}let Mc=!1;const Lc=()=>{Mc||(Mc=!0,cc.getSSRProps=({value:e})=>({value:e}),dc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ac.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=vc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},wl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Fc=Symbol(""),Bc=Symbol(""),$c=Symbol(""),jc=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),fa=Symbol(""),ha=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa={[Fc]:"Fragment",[Bc]:"Teleport",[$c]:"Suspense",[jc]:"KeepAlive",[Hc]:"BaseTransition",[Vc]:"openBlock",[Uc]:"createBlock",[qc]:"createElementBlock",[Wc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Kc]:"createTextVNode",[Jc]:"createStaticVNode",[Xc]:"resolveComponent",[Yc]:"resolveDynamicComponent",[Qc]:"resolveDirective",[Zc]:"resolveFilter",[ea]:"withDirectives",[ta]:"renderList",[na]:"renderSlot",[oa]:"createSlots",[ra]:"toDisplayString",[ia]:"mergeProps",[sa]:"normalizeClass",[la]:"normalizeStyle",[ca]:"normalizeProps",[aa]:"guardReactiveProps",[ua]:"toHandlers",[da]:"camelize",[pa]:"capitalize",[fa]:"toHandlerKey",[ha]:"setBlockTracking",[ma]:"pushScopeId",[ga]:"popScopeId",[va]:"withCtx",[ya]:"unref",[ba]:"isRef",[Sa]:"withMemo",[_a]:"isMemoSame"},Ca={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ka(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=Ca){return e&&(l?(e.helper(Vc),e.helper(Pa(e.inSSR,a))):e.helper(Ra(e.inSSR,a)),s&&e.helper(ea)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function wa(e,t=Ca){return{type:17,loc:t,elements:e}}function Ia(e,t=Ca){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Ca,key:y(e)?Ta(e,!0):e,value:t}}function Ta(e,t=!1,n=Ca,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Da(e,t=Ca){return{type:8,loc:t,children:e}}function Aa(e,t=[],n=Ca){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ca){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Na(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ca}}function Ra(e,t){return e||t?Wc:zc}function Pa(e,t){return e||t?Uc:qc}function Ma(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Ra(o,e.isComponent)),t(Vc),t(Pa(o,e.isComponent)))}const La=new Uint8Array([123,123]),Fa=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function $a(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||$a(e)}function Ha(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Xa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return $c;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Hc}}const Ya=/^\d|[^\$\w\xA0-\uFFFF]/,Qa=e=>!Ya.test(e),Za=/[A-Za-z_$\xA0-\uFFFF]/,eu=/[\.\?\w$\xA0-\uFFFF]/,tu=/\s+[.[]\s*|\s*[.[]\s+/g,nu=e=>{e=e.trim().replace(tu,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function hu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const mu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let vu=gu,yu=null,bu="",Su=null,_u=null,xu="",Cu=-1,ku=-1,wu=0,Iu=!1,Eu=null;const Tu=[],Du=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=La,this.delimiterClose=Fa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=La,this.delimiterClose=Fa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||$a(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Va.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Tu,{onerr:Ju,ontext(e,t){Pu(Nu(e,t),e,t)},ontextentity(e,t,n){Pu(e,t,n)},oninterpolation(e,t){if(Iu)return Pu(Nu(e,t),e,t);let n=e+Du.delimiterOpen.length,o=t-Du.delimiterClose.length;for(;$a(bu.charCodeAt(n));)n++;for(;$a(bu.charCodeAt(o-1));)o--;let r=Nu(n,o);r.includes("&")&&(r=vu.decodeEntities(r,!1)),qu({type:5,content:Ku(r,!1,Wu(n,o)),loc:Wu(e,t)})},onopentagname(e,t){const n=Nu(e,t);Su={type:1,tag:n,ns:vu.getNamespace(n,Tu[0],vu.ns),tagType:0,props:[],children:[],loc:Wu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Nu(e,t);if(!vu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ju(24,Tu[0].loc.start.offset);for(let n=0;n<=e;n++)Mu(Tu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ju(2,t)},onattribend(e,t){if(Su&&_u){if(zu(_u.loc,t),0!==e)if(xu.includes("&")&&(xu=vu.decodeEntities(xu,!0)),6===_u.type)"class"===_u.name&&(xu=Uu(xu).trim()),1!==e||xu||Ju(13,t),_u.value={type:2,content:xu,loc:1===e?Wu(Cu,ku):Wu(Cu-1,ku+1)},Du.inSFCRoot&&"template"===Su.tag&&"lang"===_u.name&&xu&&"html"!==xu&&Du.enterRCDATA(Ha("{const r=t.start.offset+n;return Ku(e,!1,Wu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Au);if(u){c=c.replace(Au,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(_u.exp));let t=-1;"bind"===_u.name&&(t=_u.modifiers.indexOf("sync"))>-1&&Wa("COMPILER_V_BIND_SYNC",vu,_u.loc,_u.rawName)&&(_u.name="model",_u.modifiers.splice(t,1))}7===_u.type&&"pre"===_u.name||Su.props.push(_u)}xu="",Cu=ku=-1},oncomment(e,t){vu.comments&&qu({type:3,content:Nu(e,t),loc:Wu(e-4,t+3)})},onend(){const e=bu.length;for(let t=0;t64&&n<91||Xa(e)||vu.isBuiltInComponent&&vu.isBuiltInComponent(e)||vu.isNativeTag&&!vu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wa("COMPILER_INLINE_TEMPLATE",vu,n.loc)&&e.children.length&&(n.value={type:2,content:Nu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(e,t){let n=e;for(;bu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fu=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&nd(r,t)>=2){const n=od(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Qu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Qu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=Ta(e)),E.hoists.push(e);const t=Ta(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ca}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);id(e,n),t.hoistStatic&&Xu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Yu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Ma(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=ka(t,n(Fc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(lu))return;const i=[];for(let s=0;s`${xa[e]}: _${xa[e]}`;function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Zc:"component"===t?Xc:Qc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,h,a]),t),n(")"),d&&n(")"),u&&(n(", "),pd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(ld),n(i+"(",-2,e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),f(s)?ud(s,t):pd(s,t)):l&&pd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Qa(n.content);e&&s("("),fd(n,t),e&&s(")")}else s("("),pd(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),pd(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,pd(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ha)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),pd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(ha)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function hd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ka(28,t.loc)),t.exp=Ta("true",!1,o)}if("if"===t.name){const r=vd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ka(30,e.loc)),n.removeNode();const r=vd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);id(r,n),i&&i(),n.currentNode=null}else n.onError(Ka(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=yd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=yd(t,s+e.branches.length-1,n)}}}))));function vd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ou(e,"for")?e.children:[e],userKey:ru(e,"key"),isTemplateIf:n}}function yd(e,t,n){return e.condition?Na(e.condition,bd(e,t,n),Aa(n.helper(Gc),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=Ea("key",Ta(`${t}`,!1,Ca,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return pu(e,r,n),e}{let t=64;return q[64],ka(n,o(Fc),Ia([r]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===Sa?l.arguments[1].returns:l;return 13===t.type&&Ma(t,n),pu(t,r,n),e}var l}const Sd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(Ka(52,i.loc)),{props:[Ea(i,Ta("",!0,r))]};_d(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(da)}(${i.content})`:(i.children.unshift(`${n.helperString(da)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(i,"."),o.includes("attr")&&xd(i,"^")),{props:[Ea(i,s)]}},_d=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=Ta(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cd=sd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ka(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ka(32,t.loc));kd(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:cu(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const f=o&&o(p);return()=>{l.vFor--,f&&f()}}(e,t,n,(t=>{const i=Aa(o(ta),[t.source]),s=cu(e),l=ou(e,"memo"),c=ru(e,"key",!1,!0);c&&7===c.type&&!c.exp&&_d(c);const a=c&&(6===c.type?c.value?Ta(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=ka(n,o(Fc),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,f=1!==p.length||1!==p[0].type,h=au(e)?e:s&&1===e.children.length&&au(e.children[0])?e.children[0]:null;if(h?(c=h.codegenNode,s&&u&&pu(c,u,n)):f?c=ka(n,o(Fc),u?Ia([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&pu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Vc),r(Pa(n.inSSR,c.isComponent))):r(Ra(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Vc),o(Pa(n.inSSR,c.isComponent))):o(Ra(n.inSSR,c.isComponent))),l){const e=Oa(wd(t.parseResult,[Ta("_cached")]));e.body={type:21,body:[Da(["const _memo = (",l.exp,")"]),Da(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(_a)}(_cached, _memo)) return _cached`]),Da(["const _item = ",c]),Ta("_item.memo = _memo"),Ta("return _item")],loc:Ca},i.arguments.push(e,Ta("_cache"),Ta(String(n.cached++)))}else i.arguments.push(Oa(wd(t.parseResult),c,!0))}}))}));function kd(e,t){e.finalized||(e.finalized=!0)}function wd({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ta("_".repeat(t+1),!1)))}([e,t,n,...o])}const Id=Ta("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ou(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Dd(e,t,n=Td){t.helper(va);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ou(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ja(e)&&(l=!0),i.push(Ea(e||Ta("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let f=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ea("default",i)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Ka(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const h=l?2:Od(e.children)?3:1;let m=Ia(i.concat(Ea("_",Ta(h+"",!1))),r);return s.length&&(m=Aa(t.helper(oa),[m,wa(s)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",Ta(String(n),!0))),Ia(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),i=ru(e,"is",!1,!0);if(i)if(r||qa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ta(i.value.content,!0):(e=i.exp,e||(e=Ta("is",!1,i.loc))),e)return Aa(t.helper(Yc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=Xa(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(Xc),t.components.add(o),hu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Yc;let l,c,a,u,d,p=0,f=s||i===Bc||i===$c||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Md(e,t,void 0,r,s);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?wa(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Qc),t.directives.add(e.name),n.push(hu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ta("true",!1,r);n.push(Ia(e.modifiers.map((e=>Ea(e,t))),r))}return wa(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(i===jc&&(f=!0,p|=1024),r&&i!==Bc&&i!==jc){const{slots:n,hasDynamicSlots:o}=Dd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&i!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Zu(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(d.push(Ia(Ld(u),c)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(Ea(Ta("ref_for",!0),Ta("true")))},I=({key:e,value:n})=>{if(Ja(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Zu(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?Aa(t.helper(ia),d,c):d[0]):u.length&&(D=Ia(Ld(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),h||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(au(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Md(e,t,r,!1,!1);n=o,i.length&&t.onError(Ka(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Aa(t.helper(na),s,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(Ka(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ta(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(O(e)):`on:${e}`,!0,s.loc)}else l=Da([`${n.helperString(fa)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=nu(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Da([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||Ta("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ou(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(ha),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Wd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ka(41,e.loc)),zd();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(Ka(44,o.loc)),zd();if(!s.trim()||!nu(s))return n.onError(Ka(42,o.loc)),zd();const c=r||Ta("modelValue",!0),a=r?Ja(r)?`onUpdate:${O(r.content)}`:Da(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Da([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Qa(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ja(r)?`${r.content}Modifiers`:Da([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,Ta(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Kd=(e,t)=>{qa("COMPILER_FILTERS",t)&&(5===e.type?Jd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Jd(e.exp,t)})))};function Jd(e,t){if(4===e.type)Xd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===s?(h=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i{if(1===e.type){const n=ou(e,"memo");if(!n||Qd.has(e))return;return Qd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Ma(o,t),e.codegenNode=Aa(t.helper(Sa),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function ep(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ka(47)):o&&n(Ka(48)),t.cacheHandlers&&n(Ka(49)),t.scopeId&&!o&&n(Ka(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Du.reset(),Su=null,_u=null,xu="",Cu=-1,ku=-1,Tu.length=0,bu=e,vu=a({},gu),t){let e;for(e in t)null!=t[e]&&(vu[e]=t[e])}Du.mode="html"===vu.parseMode?1:"sfc"===vu.parseMode?2:0,Du.inXML=1===vu.ns||2===vu.ns;const n=t&&t.delimiters;n&&(Du.delimiterOpen=Ha(n[0]),Du.delimiterClose=Ha(n[1]));const o=yu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ca}}(0,e);return Du.parse(bu),o.loc=Wu(0,e.length),o.children=ju(o.children),yu=null,o}(e,r):e,[s,l]=[[qd,gd,Zd,Cd,Kd,$d,Pd,Ed,Vd],{on:Hd,bind:Sd,model:Wd}];return rd(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){f.code+=e},indent(){h(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:h(--f.indentLevel)},newline(){h(f.indentLevel)}};function h(e){f.push("\n"+" ".repeat(e),0)}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,f=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Wc,zc,Gc,Kc,Jc].filter((e=>u.includes(e))).map(cd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ad(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?pd(e.codegenNode,n):r("null"),f&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol("");var dp;let pp;dp={[tp]:"vModelRadio",[np]:"vModelCheckbox",[op]:"vModelText",[rp]:"vModelSelect",[ip]:"vModelDynamic",[sp]:"withModifiers",[lp]:"withKeys",[cp]:"vShow",[ap]:"Transition",[up]:"TransitionGroup"},Object.getOwnPropertySymbols(dp).forEach((e=>{xa[e]=dp[e]}));const fp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return pp||(pp=document.createElement("div")),t?(pp.innerHTML=`
            `,pp.children[0].getAttribute("foo")):(pp.innerHTML=e,pp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ap:"TransitionGroup"===e||"transition-group"===e?up:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},hp=(e,t)=>{const n=X(e);return Ta(JSON.stringify(n),!1,t,3)};function mp(e,t){return Ka(e,t)}const gp=n("passive,once,capture"),vp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=n("left,right"),bp=n("onkeyup,onkeydown,onkeypress",!0),Sp=(e,t)=>Ja(e)&&"onclick"===e.content.toLowerCase()?Ta(t,!0):4!==e.type?Da(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,_p=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ta("style",!0,t.loc),exp:hp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(53,r)),t.children.length&&(n.onError(mp(54,r)),t.children.length=0),{props:[Ea(Ta("innerHTML",!0,r),o||Ta("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(55,r)),t.children.length&&(n.onError(mp(56,r)),t.children.length=0),{props:[Ea(Ta("textContent",!0),o?Zu(o,n)>0?o:Aa(n.helperString(ra),[o],r):Ta("",!0))]}},model:(e,t,n)=>{const o=Wd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(mp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=op,l=!1;if("input"===r||i){const o=ru(t,"type");if(o){if(7===o.type)s=ip;else if(o.value)switch(o.value.content){case"radio":s=tp;break;case"checkbox":s=np;break;case"file":l=!0,n.onError(mp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=ip)}else"select"===r&&(s=rp);l||(o.needRuntime=n.helper(s))}else n.onError(mp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],i=[];for(let s=0;s{const{exp:o,loc:r}=e;return o||n.onError(mp(61,r)),{props:[],needRuntime:n.helper(cp)}}},kp=new WeakMap;Ps((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=kp.get(null!=e?e:o);return t||(t=Object.create(null),kp.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return ep(e,a({},fp,t,{nodeTransforms:[_p,...xp,...t.nodeTransforms||[]],directiveTransforms:a({},Cp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const wp={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Hs((function(){return e.iconList})),appIsGettingData:Hs((function(){return e.appIsGettingData})),appIsPublishing:Hs((function(){return e.appIsPublishing})),isEditingMode:Hs((function(){return e.isEditingMode})),designData:Hs((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Hs((function(){return e.showFormDialog})),dialogTitle:Hs((function(){return e.dialogTitle})),dialogFormContent:Hs((function(){return e.dialogFormContent})),dialogButtonText:Hs((function(){return e.dialogButtonText})),formSaveFunction:Hs((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},Ip="undefined"!=typeof document;const Ep=Object.assign;function Tp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ap(r)?r.map(e):e(r)}return n}const Dp=()=>{},Ap=Array.isArray,Op=/#/g,Np=/&/g,Rp=/\//g,Pp=/=/g,Mp=/\?/g,Lp=/\+/g,Fp=/%5B/g,Bp=/%5D/g,$p=/%5E/g,jp=/%60/g,Hp=/%7B/g,Vp=/%7C/g,Up=/%7D/g,qp=/%20/g;function Wp(e){return encodeURI(""+e).replace(Vp,"|").replace(Fp,"[").replace(Bp,"]")}function zp(e){return Wp(e).replace(Lp,"%2B").replace(qp,"+").replace(Op,"%23").replace(Np,"%26").replace(jp,"`").replace(Hp,"{").replace(Up,"}").replace($p,"^")}function Gp(e){return null==e?"":function(e){return Wp(e).replace(Op,"%23").replace(Mp,"%3F")}(e).replace(Rp,"%2F")}function Kp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Jp=/\/$/,Xp=e=>e.replace(Jp,"");function Yp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Kp(s)}}function Qp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Zp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ef(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tf(e[n],t[n]))return!1;return!0}function tf(e,t){return Ap(e)?nf(e,t):Ap(t)?nf(t,e):e===t}function nf(e,t){return Ap(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const of={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rf,sf;!function(e){e.pop="pop",e.push="push"}(rf||(rf={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(sf||(sf={}));const lf=/^[^#]+#/;function cf(e,t){return e.replace(lf,"#")+t}const af=()=>({left:window.scrollX,top:window.scrollY});function uf(e,t){return(history.state?history.state.position-t:-1)+e}const df=new Map;let pf=()=>location.protocol+"//"+location.host;function ff(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Qp(n,"")}return Qp(n,e)+o+r}function hf(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?af():null}}function mf(e){return"string"==typeof e||"symbol"==typeof e}const gf=Symbol("");var vf;function yf(e,t){return Ep(new Error,{type:e,[gf]:!0},t)}function bf(e,t){return e instanceof Error&&gf in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(vf||(vf={}));const Sf="[^/]+?",_f={sensitive:!1,strict:!1,start:!0,end:!0},xf=/[.+*?^${}()[\]/\\]/g;function Cf(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function kf(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const If={type:0,value:""},Ef=/[a-zA-Z0-9_]/;function Tf(e,t,n){const o=function(e,t){const n=Ep({},_f,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;cEp(e,t.meta)),{})}function Rf(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Pf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mf(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&zp(e))):[o&&zp(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Ff(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ap(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Bf=Symbol(""),$f=Symbol(""),jf=Symbol(""),Hf=Symbol(""),Vf=Symbol("");function Uf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function qf(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(yf(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(yf(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function Wf(e,t,n,o,r=e=>e()){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push(qf(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&qf(a,n,o,l,e,r)()}))))}}var s;return i}function zf(e){const t=xr(jf),n=xr(Hf),o=Hs((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Hs((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Zp.bind(null,r));if(s>-1)return s;const l=Kf(e[t-2]);return t>1&&Kf(r)===l&&i[i.length-1].path!==l?i.findIndex(Zp.bind(null,e[t-2])):s})),i=Hs((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ap(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Hs((()=>r.value>-1&&r.value===n.matched.length-1&&ef(n.params,o.value.params)));return{route:o,href:Hs((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Dp):Promise.resolve()}}}const Gf=to({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zf,setup(e,{slots:t}){const n=wt(zf(e)),{options:o}=xr(jf),r=Hs((()=>({[Jf(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jf(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Kf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jf=(e,t,n)=>null!=e?e:null!=t?t:n;function Xf(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Yf=to({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=xr(Vf),r=Hs((()=>e.route||o.value)),i=xr($f,0),s=Hs((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Hs((()=>r.value.matched[s.value]));_r($f,Hs((()=>s.value+1))),_r(Bf,l),_r(Vf,r);const c=Vt();return bi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Zp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return Xf(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Vs(a,Ep({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return Xf(n.default,{Component:p,route:o})||p}}}),Qf={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
            \n

            {{ menuItem.title }}

            \n
            {{ menuItem.subtitle }}
            \n
            \n
            '};function Zf(e){return Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zf(e)}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function th(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
            \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:sh(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=sh(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

            '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var f=!1;for(var h in t.getQuery().terms)if("stepID"==t.getQuery().terms[h].id&&"="==t.getQuery().terms[h].operator&&"deleted"==t.getQuery().terms[h].match){f=!0;break}return f||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

            Searching for records...

            ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n \n
            '};function ah(e){return ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(e)}function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dh(e,t,n){return(t=function(e){var t=function(e){if("object"!=ah(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ah(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ph,fh=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Hs((function(){return e.menuItem})),menuDirection:Hs((function(){return e.menuDirection})),menuItemList:Hs((function(){return e.menuItemList})),chosenHeaders:Hs((function(){return e.chosenHeaders})),menuIsUpdating:Hs((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",ariaLabel:"",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){var e;this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.ariaLabel=(null===(e=document.querySelector(".leaf-vue-dialog-title"))||void 0===e?void 0:e.textContent)||"";var t=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=t+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var n=document.activeElement;null===(null!==n?n.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n
            \n \n
            \n
            '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Qf},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
            \n

            Card Preview

            \n
            \n \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n Icon Selections\n
            \n \n
            \n
            \n
            '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Qf},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return th({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(th({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
            \n
            \n

            Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

            \n
            \n \n
            \n \n \n \n
            \n
            '},CustomSearch:ch},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

            Menu Editor

            "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
            \n Loading... \n \n
            \n
            \n

            \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

            \n

            This page is {{ enabled ? \'\' : \'not\'}} enabled

            \n \n
            TODO banner section
            \n
            \n \n \n
            \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
            '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
            \n Loading... \n \n
            \n

            Test View

            '}}],hh=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Af(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Rf(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ep({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=Tf(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Of(d)&&i(e.name)),Pf(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:Dp}function i(e){if(mf(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;kf(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Pf(t)&&0===kf(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Of(e)&&o.set(e.record.name,e)}return t=Rf({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw yf(1,{location:e});s=r.record.name,l=Ep(Df(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Df(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw yf(1,{location:e,currentLocation:t});s=r.record.name,l=Ep({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Nf(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Mf,o=e.stringifyQuery||Lf,r=e.history,i=Uf(),s=Uf(),l=Uf(),c=Ut(of);let a=of;Ip&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Tp.bind(null,(e=>""+e)),d=Tp.bind(null,Gp),p=Tp.bind(null,Kp);function f(e,i){if(i=Ep({},i||c.value),"string"==typeof e){const o=Yp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return Ep(o,s,{params:p(s.params),hash:Kp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=Ep({},e,{path:Yp(n,e.path,i.path).path});else{const t=Ep({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ep({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ep({},e,{hash:(h=a,Wp(h).replace(Hp,"{").replace(Up,"}").replace($p,"^")),path:l.path}));var h;const m=r.createHref(f);return Ep({fullPath:f,hash:a,query:o===Lf?Ff(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Yp(n,e,c.value.path):Ep({},e)}function m(e,t){if(a!==e)return yf(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ep({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=f(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(Ep(h(u),{state:"object"==typeof u?Ep({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Zp(t.matched[o],n.matched[r])&&ef(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=yf(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>bf(e)?bf(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(bf(e,2))return y(Ep({replace:l},h(e.to),{state:"object"==typeof e.to?Ep({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Zp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=Wf(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(qf(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),M(n).then((()=>{n=[];for(const o of i.list())n.push(qf(o,e,t));return n.push(c),M(n)})).then((()=>{n=Wf(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(qf(o,e,t))}));return n.push(c),M(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ap(o.beforeEnter))for(const r of o.beforeEnter)n.push(qf(r,e,t));else n.push(qf(o.beforeEnter,e,t));return n.push(c),M(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Wf(l,"beforeRouteEnter",e,t,S),n.push(c),M(n)))).then((()=>{n=[];for(const o of s.list())n.push(qf(o,e,t));return n.push(c),M(n)})).catch((e=>bf(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===of,a=Ip?history.state:{};n&&(o||l?r.replace(e.fullPath,Ep({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let k;let w,I=Uf(),E=Uf();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return w||(w=!e,k||(k=r.listen(((e,t,n)=>{if(!P.listening)return;const o=f(e),i=v(o);if(i)return void y(Ep(i,{replace:!0}),o).catch(Dp);a=o;const s=c.value;var l,u;Ip&&(l=uf(s.fullPath,n.delta),u=af(),df.set(l,u)),_(o,s).catch((e=>bf(e,12)?e:bf(e,2)?(y(e.to,o).then((e=>{bf(e,20)&&!n.delta&&n.type===rf.pop&&r.go(-1,!1)})).catch(Dp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!bf(e,8)?r.go(-n.delta,!1):n.type===rf.pop&&bf(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Dp)}))),I.list().forEach((([t,n])=>e?n(e):t())),I.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!Ip||!i)return Promise.resolve();const s=!o&&function(e){const t=df.get(e);return df.delete(e),t}(uf(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return mf(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(Ep(h(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return w&&c.value!==of?Promise.resolve():new Promise(((e,t)=>{I.add([e,t])}))},install(e){e.component("RouterLink",Gf),e.component("RouterView",Yf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),Ip&&!N&&c.value===of&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in of)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(jf,this),e.provide(Hf,It(t)),e.provide(Vf,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=of,k&&k(),k=null,c.value=of,N=!1,w=!1),n()}}};function M(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((ph=location.host?ph||location.pathname+location.search:"").includes("#")||(ph+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ff(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:pf()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ep({},r.value,t.state,{forward:e,scroll:af()});i(s.current,s,!0),i(e,Ep({},hf(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ep({},t.state,hf(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(Ip){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ff(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:rf.pop,direction:u?u>0?sf.forward:sf.back:sf.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Ep({},e.state,{scroll:af()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=Ep({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:cf.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(ph)),routes:fh});const mh=hh;var gh=Oc(wp);gh.use(mh),gh.mount("#site-designer-app")})(); \ No newline at end of file diff --git a/docker/vue-app/src/common/components/HistoryDialog.js b/docker/vue-app/src/common/components/HistoryDialog.js index 3c78dbf20..c32e3e180 100644 --- a/docker/vue-app/src/common/components/HistoryDialog.js +++ b/docker/vue-app/src/common/components/HistoryDialog.js @@ -54,7 +54,7 @@ export default { template:`
            Loading... - loading... +
            diff --git a/docker/vue-app/src/form_editor/LEAF_FormEditor.scss b/docker/vue-app/src/form_editor/LEAF_FormEditor.scss index 5e780bf05..7737cf9ff 100644 --- a/docker/vue-app/src/form_editor/LEAF_FormEditor.scss +++ b/docker/vue-app/src/form_editor/LEAF_FormEditor.scss @@ -496,38 +496,41 @@ table[class$="SelectorTable"] th { height: 100%; left: 0; top: 0; - .icon_move_container { + } + .icon_move_container { + @include flexcenter; + cursor: move; + position: absolute; + width: 1rem; + left: 0; + top: 0; + flex-direction: column; + gap: 0.625rem; + .icon_drag { + opacity: 0.6; + } + .icon_move { @include flexcenter; - align-self: flex-start; - flex-direction: column; - gap: 0.5rem; - .icon_drag { - opacity: 0.6; - } - .icon_move { - @include flexcenter; - cursor: pointer; - width: 0; - height: 0; - background-color: transparent; - border-radius: 2px; - border: 6px solid transparent; - &.up { - margin-top: 0.25rem; - border-bottom: 10px solid $BG-DarkNavy; - border-top: 2px; - &:hover, &:focus, &:active { - outline: none !important; - border-bottom: 10px solid $USWDS_Cyan; - } + cursor: pointer; + width: 0; + height: 0; + background-color: transparent; + border-radius: 2px; + border: 7px solid transparent; + &.up { + border-bottom: 12px solid $BG-DarkNavy; + border-top: 2px; + &:hover, &:focus, &:active { + outline: none !important; + border-bottom: 12px solid $USWDS_Cyan; } - &.down { - border-top: 10px solid $BG-DarkNavy; - border-bottom: 2px; - &:hover, &:focus, &:active { - outline: none !important; - border-top: 10px solid $USWDS_Cyan; - } + } + &.down { + border-top: 12px solid $BG-DarkNavy; + border-bottom: 2px; + &:hover, &:focus, &:active { + outline: none !important; + border-top: 12px solid $USWDS_Cyan; } } } diff --git a/docker/vue-app/src/form_editor/components/dialog_content/ConditionsEditorDialog.js b/docker/vue-app/src/form_editor/components/dialog_content/ConditionsEditorDialog.js index 32b456427..09cd036b4 100644 --- a/docker/vue-app/src/form_editor/components/dialog_content/ConditionsEditorDialog.js +++ b/docker/vue-app/src/form_editor/components/dialog_content/ConditionsEditorDialog.js @@ -632,7 +632,7 @@ export default { template: `
            - Loading... loading... + Loading...
            diff --git a/docker/vue-app/src/form_editor/components/dialog_content/IndicatorEditingDialog.js b/docker/vue-app/src/form_editor/components/dialog_content/IndicatorEditingDialog.js index 41df04d9c..2821bc03a 100644 --- a/docker/vue-app/src/form_editor/components/dialog_content/IndicatorEditingDialog.js +++ b/docker/vue-app/src/form_editor/components/dialog_content/IndicatorEditingDialog.js @@ -643,7 +643,7 @@ export default { aria-atomic="true" aria-live="polite" role="status">
            -  Columns ({{gridJSON.length}}): diff --git a/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js b/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js index 1c9dfe169..5a2776922 100644 --- a/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js +++ b/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js @@ -76,18 +76,20 @@ export default { +
            + +
            +
            +
            +
            +
            Loading... - loading... +
            diff --git a/docker/vue-app/src/form_editor/views/FormEditorView.js b/docker/vue-app/src/form_editor/views/FormEditorView.js index 5cfa1cb93..def291e69 100644 --- a/docker/vue-app/src/form_editor/views/FormEditorView.js +++ b/docker/vue-app/src/form_editor/views/FormEditorView.js @@ -775,7 +775,7 @@ export default {
            Loading... - loading... +
            The form you are looking for ({{ queryID }}) was not found. diff --git a/docker/vue-app/src/form_editor/views/RestoreFieldsView.js b/docker/vue-app/src/form_editor/views/RestoreFieldsView.js index e16bc5be1..50a875a5c 100644 --- a/docker/vue-app/src/form_editor/views/RestoreFieldsView.js +++ b/docker/vue-app/src/form_editor/views/RestoreFieldsView.js @@ -74,7 +74,7 @@ export default {
            Loading... - loading... +
            diff --git a/docker/vue-app/src/site_designer/views/Homepage.js b/docker/vue-app/src/site_designer/views/Homepage.js index 8d2b8ad7c..1b8979b77 100644 --- a/docker/vue-app/src/site_designer/views/Homepage.js +++ b/docker/vue-app/src/site_designer/views/Homepage.js @@ -186,7 +186,7 @@ export default { template: `
            Loading... - loading... +

            diff --git a/docker/vue-app/src/site_designer/views/TestView.js b/docker/vue-app/src/site_designer/views/TestView.js index 127b6ad65..674850c6f 100644 --- a/docker/vue-app/src/site_designer/views/TestView.js +++ b/docker/vue-app/src/site_designer/views/TestView.js @@ -13,7 +13,7 @@ export default { template: `
            Loading... - loading... +

            Test View

            ` } \ No newline at end of file diff --git a/libs/js/LEAF/formSearch.js b/libs/js/LEAF/formSearch.js index 29a0f3cc4..7ee6fa248 100644 --- a/libs/js/LEAF/formSearch.js +++ b/libs/js/LEAF/formSearch.js @@ -1125,9 +1125,9 @@ var LeafFormSearch = function (containerID) { prefixID + "widgetRemove_" + widgetCounter + - '">\ + 'dynicons/?img=list-remove.svg&w=16" style="cursor: pointer">\
            \n \n \n \n \n \n \n \n '}},computed:{activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(m({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))}},template:''},g={name:"form-browser-view",components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:r.A,BrowserMenu:{name:"browser-menu",inject:["siteSettings","openNewFormDialog","openImportFormDialog"],template:'
            \n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
            \n
            \n Loading... \n \n
            \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[776],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},s=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=n,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},223:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var o=n(392),i=n(448),r=n(105);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t0},categoryName:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryName||"Untitled")},formDescription:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryDescription)},workflowDescription:function(){var e;return e=this.workflowID>0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow",this.decodeAndStripHTML(e)}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'
            \n \n \n \n \n \n \n \n '}},computed:{activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(m({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))}},template:''},f={name:"form-browser-view",components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:r.A,BrowserMenu:{name:"browser-menu",inject:["siteSettings","openNewFormDialog","openImportFormDialog"],template:'
            \n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
            \n
            \n Loading... \n \n
            \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js index 6611fa8f0..f6a0434c9 100644 --- a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
            \n
            \n Loading...\n \n
            \n
            \n
            \n \n \n
            \n
            '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
            \n Move column left\n Move column right
            \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
            \n \n \n
            \n
            \n \n \n \n \n
            \n
            '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(o){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
            \n Special access restrictions\n
            \n This prevents anyone from reading stored data unless they\'re part of the following groups.
            \n If a group is assigned below, everyone else will see "[protected data]".\n
            \n \n
            {{ statusMessageError }}
            \n \n
            \n \n
            \n
            '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},showDefaultTextarea:function(){return!["","raw_data","fileupload","image","grid","checkboxes","multiselect"].includes(this.format)},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
              ","
            1. ","
              ","

              ","

            \n \n \n \n \n \n \n \n '}},computed:{activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(m({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))}},template:''},f={name:"form-browser-view",components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:r.A,BrowserMenu:{name:"browser-menu",inject:["siteSettings","openNewFormDialog","openImportFormDialog"],template:'
            \n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
            \n
            \n Loading... \n \n
            \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[776],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elModal.style.left=window.scrollX+window.innerWidth/2-this.elModal.clientWidth/2+"px",this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.checkSizes(),window.addEventListener("resize",this.checkSizes),this.makeDraggable(this.elModal);var e=document.activeElement;null===(null!==e?e.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus(),this.setAriaHiddenValue()},beforeUnmount:function(){var e;window.removeEventListener("resize",this.checkSizes);var t=(null===(e=this.lastFocus)||void 0===e?void 0:e.id)||null;if(null!==t){var n=document.getElementById(t);null!==n&&n.focus()}else null!==this.lastFocus&&this.lastFocus.focus()},methods:{setAriaHiddenValue:function(){var e=this;Array.from(document.querySelectorAll("body > *")).forEach((function(t){(null==t?void 0:t.id)!==e.modalElementID&&"LeafSession_dialog"!==t.id&&t.setAttribute("aria-hidden",!0)}))},checkSizes:function(){var e=Math.max(this.elModal.clientWidth,this.elBody.clientWidth);this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,a=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},s=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n \n \n '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var r=o,i={};i.categoryID=r,i.categoryName=t,i.categoryDescription=n,i.parentID=e.newFormParentID,i.workflowID=0,i.needToKnow=0,i.visible=1,i.sort=0,i.type="",i.stapledFormIDs=[],i.destructionAge=null,e.addNewCategory(r,i),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:r}}):e.$emit("get-form",r),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},223:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var o=n(392),r=n(448),i=n(105);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t0},categoryName:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryName||"Untitled")},formDescription:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryDescription)},workflowDescription:function(){var e;return e=this.workflowID>0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow",this.decodeAndStripHTML(e)}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'
            \n \n \n \n \n \n \n \n '}},computed:{activeForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&1===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},inactiveForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0!==parseInt(this.categories[t].workflowID)&&0===parseInt(this.categories[t].visible)&&e.push(m({},this.categories[t]));return e.sort((function(e,t){return e.sort-t.sort}))},supplementalForms:function(){var e=[];for(var t in this.categories)""===this.categories[t].parentID&&0===parseInt(this.categories[t].workflowID)&&e.push(m({},this.categories[t]));return e=e.sort((function(e,t){return e.sort-t.sort}))}},template:''},f={name:"form-browser-view",components:{LeafFormDialog:o.A,NewFormDialog:r.A,ImportFormDialog:i.A,BrowserMenu:{name:"browser-menu",inject:["siteSettings","openNewFormDialog","openImportFormDialog"],template:'
            \n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},FormBrowser:p},inject:["getSiteSettings","setDefaultAjaxResponseMessage","getEnabledCategories","showFormDialog","dialogFormContent","appIsLoadingCategories"],beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage(),e.getSiteSettings(),!1===e.appIsLoadingCategories&&e.getEnabledCategories()}))},template:'\n
            \n
            \n Loading... \n \n
            \n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js index f6a0434c9..d16fa5c71 100644 --- a/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/form-editor-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
            \n
            \n Loading...\n \n
            \n
            \n
            \n \n \n
            \n
            '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
            \n Move column left\n Move column right
            \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
            \n \n \n
            \n
            \n \n \n \n \n
            \n
            '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(o){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
            \n Special access restrictions\n
            \n This prevents anyone from reading stored data unless they\'re part of the following groups.
            \n If a group is assigned below, everyone else will see "[protected data]".\n
            \n \n
            {{ statusMessageError }}
            \n \n
            \n \n
            \n
            '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},showDefaultTextarea:function(){return!["","raw_data","fileupload","image","grid","checkboxes","multiselect"].includes(this.format)},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
              ","
            1. ","
              ","

              ","

            Date: Fri, 16 Aug 2024 06:28:30 -0400 Subject: [PATCH 16/32] LEAF 4425 add events, email_templates record tests. reorganize --- LEAF_Request_Portal/sources/Workflow.php | 2 +- x-test/API-tests/events.go | 12 +- x-test/API-tests/events_test.go | 160 ++++++++++++++++++----- 3 files changed, 140 insertions(+), 34 deletions(-) diff --git a/LEAF_Request_Portal/sources/Workflow.php b/LEAF_Request_Portal/sources/Workflow.php index f7e11de74..3d63a389e 100644 --- a/LEAF_Request_Portal/sources/Workflow.php +++ b/LEAF_Request_Portal/sources/Workflow.php @@ -522,7 +522,7 @@ public function editEvent($name = null, $newName = null, $desc = '', $type = nul } $desc = trim($desc); - //Check for an existing email_templates record with a label that matches desc to avoid inconsistencies. + //Check for other existing email_templates records with a label that matches desc to avoid inconsistencies. //Return information for user if a match is found. Trim for back compat. $vars = array( ':label' => $desc, diff --git a/x-test/API-tests/events.go b/x-test/API-tests/events.go index ed14d1866..b22c0e3ab 100644 --- a/x-test/API-tests/events.go +++ b/x-test/API-tests/events.go @@ -7,4 +7,14 @@ type WorkflowEvent struct{ EventDescription string `json:"eventDescription"` EventType string `json:"eventType"` EventData string `json:"eventData"` -} \ No newline at end of file +} + +type EmailTemplatesRecord struct{ + DisplayName string `displayName` + FileName string `fileName` + EmailToFileName string `emailTo` + EmailCcFileName string `emailCc` + SubjectFileName string `subject` +} + +type EmailTemplatesResponse []EmailTemplatesRecord diff --git a/x-test/API-tests/events_test.go b/x-test/API-tests/events_test.go index 10530cc49..abfe592a9 100644 --- a/x-test/API-tests/events_test.go +++ b/x-test/API-tests/events_test.go @@ -20,16 +20,13 @@ func getEvent(url string) (WorkflowEventsResponse, error) { return ev, err } -func postEvent(postUrl string, event WorkflowEvent, addOptions bool) (string, error) { +func postEvent(postUrl string, event WorkflowEvent, options map[string]string) (string, error) { postData := url.Values{} postData.Set("name", event.EventID) postData.Set("description", event.EventDescription) postData.Set("type", event.EventType) - if(addOptions == true) { - //revisit: more ideal as a struct, but there are key and type differences that complicate this - postData.Set("data[Notify Requestor]", "true") - postData.Set("data[Notify Next]", "true") - postData.Set("data[Notify Group]", "203") + for k, v := range options { + postData.Set(k, v) } postData.Set("CSRFToken", CsrfToken) @@ -44,51 +41,120 @@ func postEvent(postUrl string, event WorkflowEvent, addOptions bool) (string, er return string(bodyBytes), nil } -func TestEvents_NewValidEmailEvent(t *testing.T) { - eventName := "CustomEvent_event_valid" - ev_valid := WorkflowEvent{ - EventID: eventName, - EventDescription: "test event description", - EventType: "Email", - } - res, err := postEvent(RootURL+`api/workflow/events`, ev_valid, true) +func getEmailTemplatesResponse(url string) (EmailTemplatesResponse, error) { + res, _ := client.Get(url) + b, _ := io.ReadAll(res.Body) + + var emailTemplatesResponse EmailTemplatesResponse + err := json.Unmarshal(b, &emailTemplatesResponse) if err != nil { - t.Error(err) + return nil, err } + return emailTemplatesResponse, err +} - got := res - want := `"1"` - if !cmp.Equal(got, want) { - t.Errorf("event should have saved because name and descr are valid. got = %v, want = %v", got, want) - } - event, err := getEvent(RootURL + `api/workflow/event/_` + eventName) +/* get a WorkflowEvent from a given eventID and confirm expected property values */ +func confirmEventsRecordValues(t *testing.T, expectedEvent WorkflowEvent, expected_JSON_options string) { + event, err := getEvent(RootURL + `api/workflow/event/_` + expectedEvent.EventID) if err != nil { t.Error(err) } - got = event[0].EventID - want = ev_valid.EventID + got := event[0].EventID + want := expectedEvent.EventID if !cmp.Equal(got, want) { t.Errorf("EventID not as expected. got = %v, want = %v", got, want) } got = event[0].EventDescription - want = ev_valid.EventDescription + want = expectedEvent.EventDescription if !cmp.Equal(got, want) { t.Errorf("EventDescription not as expected. got = %v, want = %v", got, want) } got = event[0].EventType - want = ev_valid.EventType + want = expectedEvent.EventType if !cmp.Equal(got, want) { t.Errorf("EventType not as expected. got = %v, want = %v", got, want) } got = event[0].EventData - want = `{"NotifyRequestor":"true","NotifyNext":"true","NotifyGroup":"203"}` + want = expected_JSON_options if !cmp.Equal(got, want) { t.Errorf("EventData not as expected. got = %v, want = %v", got, want) } } +/* +* Get emailTemplates records and search by eventDescription / email_templates label. +* Confirm that a record is found and has the expected property values based on the eventID. +*/ +func confirmEmailTemplatesRecordValues(t *testing.T, eventID string, eventDescription string) { + emailTemplatesResponse, err := getEmailTemplatesResponse(RootURL + `api/emailTemplates`) + if err != nil { + t.Error(err) + } + var newEmailTemplatesRecord EmailTemplatesRecord + for i := 0; i < len(emailTemplatesResponse); i++ { + emailTempRec := emailTemplatesResponse[i]; + if(emailTempRec.DisplayName == eventDescription) { + newEmailTemplatesRecord = emailTempRec + } + } + if (newEmailTemplatesRecord.FileName == "") { + t.Errorf("Did not find expected email templates record") + } else { + got := newEmailTemplatesRecord.FileName + want := eventID + "_body.tpl" + if !cmp.Equal(got, want) { + t.Errorf("Did not find expected body file name. got = %v, want = %v", got, want) + } + got = newEmailTemplatesRecord.EmailToFileName + want = eventID + "_emailTo.tpl" + if !cmp.Equal(got, want) { + t.Errorf("Did not find expected emailTo file name. got = %v, want = %v", got, want) + } + got = newEmailTemplatesRecord.EmailCcFileName + want = eventID + "_emailCc.tpl" + if !cmp.Equal(got, want) { + t.Errorf("Did not find expected emailCc file name. got = %v, want = %v", got, want) + } + got = newEmailTemplatesRecord.SubjectFileName + want = eventID + "_subject.tpl" + if !cmp.Equal(got, want) { + t.Errorf("Did not find expected subject file name. got = %v, want = %v", got, want) + } + } +} -func TestEvents_ReservedPrefixes(t *testing.T) { +/* +* Event posts successfully and associated events and email_templates table records have expected values +*/ +func TestEvents_NewValidCustomEmailEvent(t *testing.T) { + eventName := "CustomEvent_event_valid" + optionsIn := map[string]string { + "data[Notify Requestor]": "true", + "data[Notify Next]": "true", + "data[Notify Group]": "203", + } + expectedJSON := `{"NotifyRequestor":"true","NotifyNext":"true","NotifyGroup":"203"}` + ev_valid := WorkflowEvent{ + EventID: eventName, + EventDescription: "test event description", + EventType: "Email", + } + res, err := postEvent(RootURL+`api/workflow/events`, ev_valid, optionsIn) + if err != nil { + t.Error(err) + } + + got := res + want := `"1"` + if !cmp.Equal(got, want) { + t.Errorf("event should have saved because name and descr are valid. got = %v, want = %v", got, want) + } + confirmEventsRecordValues(t, ev_valid, expectedJSON) + + confirmEmailTemplatesRecordValues(t, ev_valid.EventID, ev_valid.EventDescription) +} + +func TestEvents_ReservedPrefixes_NotAllowed(t *testing.T) { ev_leafsecure := WorkflowEvent{ EventID: "LeafSecure_prefix", EventDescription: "prefix is reserved 1", @@ -100,7 +166,7 @@ func TestEvents_ReservedPrefixes(t *testing.T) { EventType: "Email", } - res, err := postEvent(RootURL+`api/workflow/events`, ev_leafsecure, false) + res, err := postEvent(RootURL+`api/workflow/events`, ev_leafsecure, map[string]string{}) if err != nil { t.Error(err) } @@ -110,7 +176,7 @@ func TestEvents_ReservedPrefixes(t *testing.T) { t.Errorf("event should not post because leafsecure prefix is reserved. got = %v, want = %v", got, want) } - res, err = postEvent(RootURL+`api/workflow/events`, ev_std_email, false) + res, err = postEvent(RootURL+`api/workflow/events`, ev_std_email, map[string]string{}) if err != nil { t.Error(err) } @@ -121,14 +187,14 @@ func TestEvents_ReservedPrefixes(t *testing.T) { } } -func TestEvents_DuplicateDescriptionEmailEvent(t *testing.T) { +func TestEvents_DuplicateDescription_NotAllowed(t *testing.T) { ev_desc_dup := WorkflowEvent{ EventID: "CustomEvent_event_desc_dup", EventDescription: "test event description", EventType: "Email", } - res, err := postEvent(RootURL+`api/workflow/events`, ev_desc_dup, false) + res, err := postEvent(RootURL+`api/workflow/events`, ev_desc_dup, map[string]string{}) if err != nil { t.Error(err) } @@ -137,4 +203,34 @@ func TestEvents_DuplicateDescriptionEmailEvent(t *testing.T) { if !cmp.Equal(got, want) { t.Errorf("alert text should be returned because description is not unique. got = %v, want = %v", got, want) } -} \ No newline at end of file +} + +func TestEvents_EditValidCustomEmailEvent(t *testing.T) { + oldEventName := "CustomEvent_event_valid" + newEventName := "CustonEvent_event_valid_edited" + newOptionsIn := map[string]string { + "data[Notify Requestor]": "false", + "data[Notify Next]": "false", + "data[Notify Group]": "101", + "newName": newEventName, + } + newExpectedJSON := `{"NotifyRequestor":"false","NotifyNext":"false","NotifyGroup":"101"}` + new_ev_valid := WorkflowEvent{ + EventID: newEventName, + EventDescription: "test edited event description", + EventType: "Email", + } + res, err := postEvent(RootURL+`api/workflow/editEvent/_` + oldEventName, new_ev_valid, newOptionsIn) + if err != nil { + t.Error(err) + } + + got := res + want := `"1"` + if !cmp.Equal(got, want) { + t.Errorf("event edit should have saved because values are valid. got = %v, want = %v", got, want) + } + confirmEventsRecordValues(t, new_ev_valid, newExpectedJSON) + + confirmEmailTemplatesRecordValues(t, new_ev_valid.EventID, new_ev_valid.EventDescription) +} From a686b220e7cdda1ab5ea946335ff0f9b59c51e16 Mon Sep 17 00:00:00 2001 From: Carrie Hanscom Date: Fri, 16 Aug 2024 08:18:40 -0400 Subject: [PATCH 17/32] LEAF 4464 add inbox aria toggle and view status, rm titles flagged by WAVE --- .../generic_confirm_xhrDialog.tpl | 2 +- .../site_elements/generic_OkDialog.tpl | 2 +- .../site_elements/generic_xhrDialog.tpl | 2 +- .../admin/templates/mod_system.tpl | 6 ++--- .../site_elements/generic_OkDialog.tpl | 2 +- .../templates/reports/LEAF_Inbox.tpl | 23 +++++++++++++++++-- .../site_elements/generic_OkDialog.tpl | 2 +- .../generic_confirm_xhrDialog.tpl | 2 +- 8 files changed, 30 insertions(+), 11 deletions(-) diff --git a/LEAF_Nexus/admin/templates/site_elements/generic_confirm_xhrDialog.tpl b/LEAF_Nexus/admin/templates/site_elements/generic_confirm_xhrDialog.tpl index de4a204af..999b685b1 100644 --- a/LEAF_Nexus/admin/templates/site_elements/generic_confirm_xhrDialog.tpl +++ b/LEAF_Nexus/admin/templates/site_elements/generic_confirm_xhrDialog.tpl @@ -1,7 +1,7 @@
            \n \n {{ categoryName }}\n \n {{ formDescription }}{{ workflowDescription }}\n
            \n 📑 Stapled\n
            \n
            \n
            \n \n  Need to Know enabled\n
            \n
            \n \n
            \n \n {{ categoryName }}\n \n {{ formDescription }}{{ workflowDescription }}\n
            \n 📑 Stapled\n
            \n
            \n
            \n \n  Need to Know enabled\n
            \n
            \n \n
            ","

            ","

            ","

            ","

            ","","
            "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),b=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),I=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),I&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),b&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
            \n
            \n \n \n
            \n \n \n
            \n
            \n
            \n
            \n \n
            {{shortlabelCharsRemaining}}
            \n
            \n \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n

            Format Information

            \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n  Columns ({{gridJSON.length}}):\n
            \n
            \n \n \n
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n Attributes\n
            \n \n \n
            \n \n \n \n This field will be archived.  It can be
            re-enabled by using Restore Fields.\n
            \n \n Deleted items can only be re-enabled
            within 30 days by using Restore Fields.\n
            \n
            \n
            '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
            \n
            Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
            {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
            {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

            \n
            \n html (for pages where the user can edit data): \n \n
            \n
            \n
            \n htmlPrint (for pages where the user can only read data): \n \n
            \n \n
            \n
            \n
            \n Notice:
            \n

            Please go to LEAF Programmer\n to ensure continued access to this area.

            \n
            '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!=+t?alert(t):(e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
            \n

            Stapled forms will show up on the same page as the primary form.

            \n

            The order of the forms will be determined by the forms\' assigned sort values.

            \n
            \n
              \n
            • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
            • \n
            \n

            \n
            \n \n
            There are no available forms to merge
            \n
            \n
            '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(o){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
            \n

            What is this?

            \n

            With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

            \n
            \n

            To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

            \n
            \n

            The following groups can update {{formNameStripped()}} records at any time:

            \n
            \n \n \n

            \n
            \n \n
            There are no available groups to add
            \n
            \n
            '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
            \n
            Are you sure you want to delete this form?
            \n
            {{formName}}
            \n
            {{formDescription}}
            \n
            ⚠️ This form still has stapled forms attached
            \n
            '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue="",e&&(this.ariaStatus="Entering new condition")},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){if("Invalid Token."!==e){t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1),t.ariaStatus="Updated question conditions";var o=document.getElementById("leaf-vue-dialog-close");null!==o&&o.focus()}else console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.ariaStatus="Editing conditions",this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s;var c=document.querySelector(".child_prefill_entry_multi input.choices__input");null!==c&&(c.setAttribute("aria-label","child prefill value choices"),c.setAttribute("role","searchbox"))}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var d=e.conditions.selectedChildValue.split("\n")||[];d=d.map((function(t){return e.decodeAndStripHTML(t).trim()}));var u=e.selectedChildValueOptions;u=u.map((function(e){return{value:e.trim(),label:e.trim(),selected:d.includes(e.trim())}}));var p=new Choices(i,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:u.filter((function(e){return""!==e.value}))});i.choicesjs=p;var m=document.querySelector(".parent_compValue_entry_multi input.choices__input");null!==m&&(m.setAttribute("aria-label","parent value choices"),m.setAttribute("role","searchbox"))}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},conditionOverviewText:function(){return"crosswalk"!==this.selectedOutcome.toLowerCase()?"If ".concat(this.getIndicatorName(this.parentIndID)," ").concat(this.getOperatorText(this.conditions)," ").concat(this.decodeAndStripHTML(this.selectedParentValue),"\n then ").concat(this.selectedOutcome," this question."):"Question options loaded from ".concat(this.conditions.crosswalkFile)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
            \n \x3c!-- LOADING SPINNER --\x3e\n
            \n Loading... \n
            \n
            \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
            \n
            \n
            Choose Delete to remove this condition, or cancel to return to the editor
            \n
            {{ conditionOverviewText }}
            \n
            \n \n \n
            \n
            \n \n
            \n
            '};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}var c=document.querySelector("#".concat(this.inputElID," ~ input.choices__input"));null!==c&&(c.setAttribute("aria-labelledby",this.labelSelector),c.setAttribute("role","searchbox"));break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
            \n \n \n\n \n\n \n\n \n\n \n\n \n \n
            File Attachment(s)\n

            Select File to attach:

            \n \n
            \n\n \n\n \n \n \n \n \n\n \n
            '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
            '.concat(this.formPage+1,"
            "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'📌 ':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
            \n
            \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n\n \x3c!-- TOOLBAR --\x3e\n
            \n\n
            \n \n \n \n \n
            \n \n \n \n 🔒\n ⛓️\n ⚙️\n
            \n
            \n
            \n \x3c!-- NAME --\x3e\n
            \n
            \n
            \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
            '},T={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
          4. \n
            \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
              \n\n \n \n
            \n
            \n \n
            \n
            \n
          5. '},_={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},mounted:function(){this.focusedFormIsSensitive&&0==+this.needToKnow&&this.updateNeedToKnow(!0)},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?1:this.needToKnow;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:t,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",t),e.needToKnow=t,e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
            \n {{formID}}\n (internal for {{formParentID}})\n \n
            \n \n \n \n \n \n
            \n
            \n
            \n \n
            \n \n
            This is an Internal Form
            \n
            \n
            '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(P({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(P({},t.categories[i]));o.push(P(P({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(P(P({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=P(P({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):this.previewTree=[]},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=P({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
            \n
            \n Loading... \n \n
            \n
            \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
            \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
            \n
            \n Loading...\n \n
            \n
            \n
            \n \n \n
            \n
            '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
            \n Move column left\n Move column right
            \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
            \n \n \n
            \n
            \n \n \n \n \n
            \n
            '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(o){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
            \n Special access restrictions\n
            \n This prevents anyone from reading stored data unless they\'re part of the following groups.
            \n If a group is assigned below, everyone else will see "[protected data]".\n
            \n \n
            {{ statusMessageError }}
            \n \n
            \n \n
            \n
            '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},showDefaultTextarea:function(){return!["","raw_data","fileupload","image","grid","checkboxes","multiselect"].includes(this.format)},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
              ","
            1. ","
              ","

              ","

            ","

            ","

            ","

            ","

            ","","
            "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),b=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),I=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),I&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),b&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
            \n
            \n \n \n
            \n \n \n
            \n
            \n
            \n
            \n \n
            {{shortlabelCharsRemaining}}
            \n
            \n \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n

            Format Information

            \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n  Columns ({{gridJSON.length}}):\n
            \n
            \n \n \n
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n Attributes\n
            \n \n \n
            \n \n \n \n This field will be archived.  It can be
            re-enabled by using Restore Fields.\n
            \n \n Deleted items can only be re-enabled
            within 30 days by using Restore Fields.\n
            \n
            \n
            '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
            \n
            Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
            {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
            {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

            \n
            \n html (for pages where the user can edit data): \n \n
            \n
            \n
            \n htmlPrint (for pages where the user can only read data): \n \n
            \n \n
            \n
            \n
            \n Notice:
            \n

            Please go to LEAF Programmer\n to ensure continued access to this area.

            \n
            '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!=+t?alert(t):(e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
            \n

            Stapled forms will show up on the same page as the primary form.

            \n

            The order of the forms will be determined by the forms\' assigned sort values.

            \n
            \n
              \n
            • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
            • \n
            \n

            \n
            \n \n
            There are no available forms to merge
            \n
            \n
            '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(o){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
            \n

            What is this?

            \n

            With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

            \n
            \n

            To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

            \n
            \n

            The following groups can update {{formNameStripped()}} records at any time:

            \n
            \n \n \n

            \n
            \n \n
            There are no available groups to add
            \n
            \n
            '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
            \n
            Are you sure you want to delete this form?
            \n
            {{formName}}
            \n
            {{formDescription}}
            \n
            ⚠️ This form still has stapled forms attached
            \n
            '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue="",e&&(this.ariaStatus="Entering new condition")},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){if("Invalid Token."!==e){t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1),t.ariaStatus="Updated question conditions";var o=document.getElementById("leaf-vue-dialog-close");null!==o&&o.focus()}else console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.ariaStatus="Editing conditions",this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s;var c=document.querySelector(".child_prefill_entry_multi input.choices__input");null!==c&&(c.setAttribute("aria-label","child prefill value choices"),c.setAttribute("role","searchbox"))}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var d=e.conditions.selectedChildValue.split("\n")||[];d=d.map((function(t){return e.decodeAndStripHTML(t).trim()}));var u=e.selectedChildValueOptions;u=u.map((function(e){return{value:e.trim(),label:e.trim(),selected:d.includes(e.trim())}}));var p=new Choices(i,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:u.filter((function(e){return""!==e.value}))});i.choicesjs=p;var m=document.querySelector(".parent_compValue_entry_multi input.choices__input");null!==m&&(m.setAttribute("aria-label","parent value choices"),m.setAttribute("role","searchbox"))}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},conditionOverviewText:function(){return"crosswalk"!==this.selectedOutcome.toLowerCase()?"If ".concat(this.getIndicatorName(this.parentIndID)," ").concat(this.getOperatorText(this.conditions)," ").concat(this.decodeAndStripHTML(this.selectedParentValue),"\n then ").concat(this.selectedOutcome," this question."):"Question options loaded from ".concat(this.conditions.crosswalkFile)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
            \n \x3c!-- LOADING SPINNER --\x3e\n
            \n Loading... \n
            \n
            \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
            \n
            \n
            Choose Delete to remove this condition, or cancel to return to the editor
            \n
            {{ conditionOverviewText }}
            \n
            \n \n \n
            \n
            \n \n
            \n
            '};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}var c=document.querySelector("#".concat(this.inputElID," ~ input.choices__input"));null!==c&&(c.setAttribute("aria-labelledby",this.labelSelector),c.setAttribute("role","searchbox"));break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
            \n \n \n\n \n\n \n\n \n\n \n\n \n \n
            File Attachment(s)\n

            Select File to attach:

            \n \n
            \n\n \n\n \n \n \n \n \n\n \n
            '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
            '.concat(this.formPage+1,"
            "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
            \n
            \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n
            \n \n \n \n
            \n\n \x3c!-- TOOLBAR --\x3e\n
            \n\n
            \n \n \n \n \n
            \n \n \n \n 🔒\n ⛓️\n ⚙️\n
            \n
            \n
            \n \x3c!-- NAME --\x3e\n
            \n
            \n
            \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
            '},T={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
          6. \n
            \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
              \n\n \n \n
            \n
            \n \n
            \n
            \n
          7. '},_={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},mounted:function(){this.focusedFormIsSensitive&&0==+this.needToKnow&&this.updateNeedToKnow(!0)},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?1:this.needToKnow;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:t,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",t),e.needToKnow=t,e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
            \n {{formID}}\n (internal for {{formParentID}})\n \n
            \n \n \n \n \n \n
            \n
            \n
            \n \n
            \n \n
            This is an Internal Form
            \n
            \n
            '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(P({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(P({},t.categories[i]));o.push(P(P({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(P(P({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=P(P({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):this.previewTree=[]},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=P({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
            \n
            \n Loading... \n \n
            \n
            \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
            \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js index 7cba6b479..e39ea4ef6 100644 --- a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",s()},r=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=r,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
            \n \n

            List of disabled fields available for recovery

            \n
            Deleted fields and associated data will be not display in the Report Builder
            \n\n
            \n Loading...\n \n
            \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            indicatorIDFormField NameInput FormatStatusRestore
            {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
            \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",r()},s=function(){document.onmouseup=null,document.onmousemove=null},r=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
            \n \n

            List of disabled fields available for recovery

            \n
            Deleted fields and associated data will be not display in the Report Builder
            \n\n
            \n Loading...\n \n
            \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            indicatorIDFormField NameInput FormatStatusRestore
            {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
            \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js index 362fec450..1c8325ef8 100644 --- a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js +++ b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js @@ -1,2 +1,2 @@ /*! For license information please see LEAF_Designer.js.LICENSE.txt */ -(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Kn,BaseTransitionPropsValidators:()=>zn,Comment:()=>qi,DeprecationTypes:()=>el,EffectScope:()=>fe,ErrorCodes:()=>cn,ErrorTypeStrings:()=>Ks,Fragment:()=>Vi,KeepAlive:()=>so,ReactiveEffect:()=>ye,Static:()=>Wi,Suspense:()=>Li,Teleport:()=>Xr,Text:()=>Ui,TrackOpTypes:()=>rn,Transition:()=>ll,TransitionGroup:()=>ec,TriggerOpTypes:()=>sn,VueElement:()=>Kl,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>us,compatUtils:()=>Zs,computed:()=>Hs,createApp:()=>Oc,createBlock:()=>ts,createCommentVNode:()=>fs,createElementBlock:()=>es,createElementVNode:()=>ls,createHydrationRenderer:()=>ii,createPropsRestProxy:()=>rr,createRenderer:()=>ri,createSSRApp:()=>Nc,createSlots:()=>Lo,createStaticVNode:()=>ps,createTextVNode:()=>ds,createVNode:()=>cs,customRef:()=>Qt,defineAsyncComponent:()=>oo,defineComponent:()=>to,defineCustomElement:()=>Wl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Xo,defineOptions:()=>Ko,defineProps:()=>Wo,defineSSRCustomElement:()=>zl,defineSlots:()=>Jo,devtools:()=>Js,effect:()=>Ce,effectScope:()=>he,getCurrentInstance:()=>Cs,getCurrentScope:()=>ge,getTransitionRawChildren:()=>eo,guardReactiveProps:()=>as,h:()=>Vs,handleError:()=>dn,hasInjectionContext:()=>Cr,hydrate:()=>Ac,initCustomFormatter:()=>Us,initDirectivesForSSR:()=>Lc,inject:()=>xr,isMemoSame:()=>Ws,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>Ms,isShallow:()=>Nt,isVNode:()=>ns,markRaw:()=>Mt,mergeDefaults:()=>nr,mergeModels:()=>or,mergeProps:()=>vs,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>co,onBeforeMount:()=>vo,onBeforeUnmount:()=>_o,onBeforeUpdate:()=>bo,onDeactivated:()=>ao,onErrorCaptured:()=>wo,onMounted:()=>yo,onRenderTracked:()=>Io,onRenderTriggered:()=>ko,onScopeDispose:()=>ve,onServerPrefetch:()=>Co,onUnmounted:()=>xo,onUpdated:()=>So,openBlock:()=>Ki,popScopeId:()=>Fn,provide:()=>_r,proxyRefs:()=>Xt,pushScopeId:()=>Ln,queuePostFlushCb:()=>kn,reactive:()=>It,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ps,render:()=>Dc,renderList:()=>Mo,renderSlot:()=>Fo,resolveComponent:()=>Do,resolveDirective:()=>No,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Qs,resolveTransitionHooks:()=>Xn,setBlockTracking:()=>Qi,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Zn,shallowReactive:()=>wt,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>fi,ssrUtils:()=>Ys,stop:()=>ke,toDisplayString:()=>ce,toHandlerKey:()=>M,toHandlers:()=>$o,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>rs,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Zo,useCssModule:()=>Jl,useCssVars:()=>Tl,useModel:()=>ki,useSSRContext:()=>hi,useSlots:()=>Qo,useTransitionState:()=>qn,vModelCheckbox:()=>ac,vModelDynamic:()=>gc,vModelRadio:()=>dc,vModelSelect:()=>pc,vModelText:()=>cc,vShow:()=>Il,version:()=>zs,warn:()=>Gs,watch:()=>bi,watchEffect:()=>mi,watchPostEffect:()=>gi,watchSyncEffect:()=>vi,withAsyncContext:()=>ir,withCtx:()=>$n,withDefaults:()=>Yo,withDirectives:()=>jn,withKeys:()=>Cc,withMemo:()=>qs,withModifiers:()=>_c,withScopeId:()=>Bn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,h=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>C(e).slice(8,-1),I=e=>"[object Object]"===C(e),w=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=D((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":f(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||f(t)||I(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ie,t=pe;try{return Ie=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,Ie=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function ke(e){e.effect.stop()}let Ie=!0,we=0;const Ee=[];function Te(){Ee.push(Ie),Ie=!1}function De(){const e=Ee.pop();Ie=void 0===e||e}function Ae(){we++}function Oe(){for(we--;!we&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Le=new WeakMap,Fe=Symbol(""),Be=Symbol("");function $e(e,t,n){if(Ie&&pe){let t=Le.get(e);t||Le.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me((()=>t.delete(n)))),Ne(pe,o)}}function je(e,t,n,o,r,i){const s=Le.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&f(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":f(e)?w(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"delete":f(e)||(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"set":h(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return $e(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?kt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||$e(e,0,t),r?s:Ht(s)?i&&w(t)?s:s.value:S(s)?o?Et(s):It(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!f(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=f(e)&&w(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(L(t,i)&&$e(r,0,t),$e(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Lt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(L(e,r)&&$e(o,0,e),$e(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e,t=!1){t||Nt(e)||Ot(e)||(e=Pt(e));const n=Pt(this);return et(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Nt(t)||Ot(t)||(t=Pt(t));const o=Pt(this),{has:r,get:i}=et(o);let s=r.call(o,e);s||(e=Pt(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?L(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Lt;return!e&&$e(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=h(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Lt;return!t&&$e(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add(e){return rt.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ft,ht,mt]=dt();function gt(e,t){const n=t?e?mt:ht:e?ft:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,kt=new WeakMap;function It(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function wt(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,kt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Mt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Lt=e=>S(e)?It(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||jt(e,4),$t(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function $t(e){var t;Ie&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Me((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Lt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Lt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Le.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(f(e)){const r=[];for(let i=0;i>>1,r=hn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){fn=!1,pn=!0,hn.sort(Tn);try{for(mn=0;mn$n;function $n(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qi(-1);const r=Mn(t);let i;try{i=e(...n)}finally{Mn(r),o._d&&Qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Rn)return e;const n=$s(Rn),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),_o((()=>{e.isUnmounting=!0})),e}const Wn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wn,onEnter:Wn,onAfterEnter:Wn,onEnterCancelled:Wn,onBeforeLeave:Wn,onLeave:Wn,onAfterLeave:Wn,onLeaveCancelled:Wn,onBeforeAppear:Wn,onAppear:Wn,onAfterAppear:Wn,onAppearCancelled:Wn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Kn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Cs(),o=qn();return()=>{const r=t.default&&eo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==qi){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return Yn(i);const c=Qn(i);if(!c)return Yn(i);let a=Xn(c,s,o,n,(e=>a=e));Zn(c,a);const u=n.subTree,d=u&&Qn(u);if(d&&d.type!==qi&&!os(c,d)&&Gn(n).type!==qi){const e=Xn(d,s,o,n);if(Zn(d,e),"out-in"===l&&c.type!==qi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Yn(i);"in-out"===l&&c.type!==qi&&(e.delayLeave=(e,t,n)=>{Jn(o,d)[String(d.key)]=d,e[Vn]=()=>{t(),e[Vn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function Jn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xn(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=Jn(n,e),C=(e,t)=>{e&&un(e,o,9,t)},k=(e,t)=>{const n=t[1];C(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},I={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[Vn]&&t[Vn](!0);const r=x[_];r&&os(e,r)&&r.el[Vn]&&r.el[Vn](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[Un]=t=>{s||(s=!0,C(t?r:o,[e]),I.delayedLeave&&I.delayedLeave(),e[Un]=void 0)};t?k(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Un]&&t[Un](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[Vn]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[Vn]=void 0,x[r]===e&&delete x[r])};x[r]=e,h?k(h,[t,s]):s()},clone(e){const i=Xn(e,t,n,o,r);return r&&r(i),i}};return I}function Yn(e){if(io(e))return(e=us(e)).children=null,e}function Qn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Zn(e,t){6&e.shapeFlag&&e.component?Zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ea({name:e.name},t,{setup:e}))():e}const no=e=>!!e.type.__asyncLoader;function oo(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return to({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xs;if(c)return()=>ro(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||Os)return d().then((t=>()=>ro(t,e))).catch((e=>(t(e),()=>o?cs(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?ro(c,e):u.value&&o?cs(o,{error:u.value}):n&&!p.value?cs(n):void 0}})}function ro(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=cs(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const io=e=>e.type.__isKeepAlive,so={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Cs(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function f(e){fo(e),u(e,n,l,!0)}function h(e){r.forEach(((t,n)=>{const o=js(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&os(t,s)?s&&fo(s):f(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),oi((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ys(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;pi(t.m),pi(t.a),a(e,p,null,1,l),oi((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ys(n,t.parent,e),t.isDeactivated=!0}),l)},bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>lo(e,t))),t&&h((e=>!lo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Pi(n.subTree.type)?oi((()=>{r.set(g,ho(n.subTree))}),n.subTree.suspense):r.set(g,ho(n.subTree)))};return yo(v),So(v),_o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=ho(t);if(e.type!==r.type||e.key!==r.key)f(e);else{fo(r);const e=r.component.da;e&&oi(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ns(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=ho(o);const c=l.type,a=js(no(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!lo(u,a))||d&&a&&lo(d,a))return s=l,o;const f=null==l.key?c:l.key,h=r.get(f);return l.el&&(l=us(l),128&o.shapeFlag&&(o.ssContent=l)),g=f,h?(l.el=h.el,l.component=h.component,l.transition&&Zn(l,l.transition),l.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,Pi(o.type)?o:l}}};function lo(e,t){return f(e)?e.some((e=>lo(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function co(e,t){uo(e,"a",t)}function ao(e,t){uo(e,"da",t)}function uo(e,t,n=xs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(mo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&po(o,t,n,e),e=e.parent}}function po(e,t,n,o){const r=mo(t,e,o,!0);xo((()=>{u(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ho(e){return 128&e.shapeFlag?e.ssContent:e}function mo(e,t,n=xs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=ws(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const go=e=>(t,n=xs)=>{Os&&"sp"!==e||mo(e,((...e)=>t(...e)),n)},vo=go("bm"),yo=go("m"),bo=go("bu"),So=go("u"),_o=go("bum"),xo=go("um"),Co=go("sp"),ko=go("rtg"),Io=go("rtc");function wo(e,t=xs){mo("ec",e,t)}const Eo="components",To="directives";function Do(e,t){return Ro(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function Oo(e){return y(e)?Ro(Eo,e,!1)||e:e||Ao}function No(e){return Ro(To,e)}function Ro(e,t,n=!0,o=!1){const r=Rn||xs;if(r){const n=r.type;if(e===Eo){const e=js(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Po(r[e]||n[e],t)||Po(r.appContext[e],t);return!i&&o?n:i}}function Po(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Mo(e,t,n,o){let r;const i=n&&n[o];if(f(e)||y(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Fo(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&no(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),cs("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ki();const s=i&&Bo(i(n)),l=ts(Vi,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bo(e){return e.some((e=>!ns(e)||e.type!==qi&&!(e.type===Vi&&!Bo(e.children))))?e:null}function $o(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ts(e)?$s(e):jo(e.parent):null,Ho=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ar(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>_i.bind(e)}),Vo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Uo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Vo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];sr&&(l[t]=0)}}const d=Ho[t];let f,h;return d?("$attrs"===t&&$e(e.attrs,0,""),d(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==o&&p(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,p(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Vo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Vo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Ho,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=a({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function Wo(){return null}function zo(){return null}function Go(e){}function Ko(e){}function Jo(){return null}function Xo(){}function Yo(e,t){return null}function Qo(){return er().slots}function Zo(){return er().attrs}function er(){const e=Cs();return e.setupContext||(e.setupContext=Bs(e))}function tr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function nr(e,t){const n=tr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?f(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function or(e,t){return e&&t?f(e)&&f(t)?e.concat(t):a({},tr(e),tr(t)):e||t}function rr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Cs();let n=e();return Es(),_(n)&&(n=n.catch((e=>{throw ws(t),e}))),[n,()=>ws(t)]}let sr=!0;function lr(e,t,n){un(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function cr(e,t,n,o){const r=o.includes(".")?xi(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&bi(r,n)}else if(v(e))bi(r,e.bind(n));else if(S(e))if(f(e))e.forEach((e=>cr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&bi(r,o,e)}}function ar(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>ur(c,e,s,!0))),ur(c,t,s)):c=t,S(t)&&i.set(t,c),c}function ur(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ur(e,i,n,!0),r&&r.forEach((t=>ur(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=dr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const dr={data:pr,props:gr,emits:gr,methods:mr,computed:mr,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=hr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return mr(fr(e),fr(t))}};function pr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function fr(e){if(f(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=cs(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,$s(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Sr;Sr=l;try{return e()}finally{Sr=t}}};return l}}let Sr=null;function _r(e,t){if(xs){let n=xs.provides;const o=xs.parent&&xs.parent.provides;o===n&&(n=xs.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xs||Rn;if(o||Sr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function Cr(){return!!(xs||Rn||Sr)}const kr={},Ir=()=>Object.create(kr),wr=e=>Object.getPrototypeOf(e)===kr;function Er(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ti(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Ar(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(f(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const h=[c,u];return S(e)&&i.set(e,h),h}function Or(e){return"$"!==e[0]&&!E(e)}function Nr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Rr(e,t){return Nr(e)===Nr(t)}function Pr(e,t){return f(t)?t.findIndex((t=>Rr(t,e))):v(t)&&Rr(t,e)?0:-1}const Mr=e=>"_"===e[0]||"$stable"===e,Lr=e=>f(e)?e.map(hs):[hs(e)],Fr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>Lr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Mr(n))continue;const r=e[n];if(v(r))t[n]=Fr(0,r,o);else if(null!=r){const e=Lr(r);t[n]=()=>e}}},$r=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Hr=(e,t,n)=>{const o=e.slots=Ir();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&B(o,"_",e,!0)):Br(t,o)}else t&&$r(e,t)},Vr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:jr(i,t,n):(s=!t.$stable,Br(t,i)),l=t}else t&&($r(e,t),l={default:1});if(s)for(const e in i)Mr(e)||null!=l[e]||delete i[e]};function Ur(e,t,n,r,i=!1){if(f(e))return void e.forEach(((e,o)=>Ur(e,t&&(f(t)?t[o]:t),n,r,i)));if(no(r)&&!i)return;const s=4&r.shapeFlag?$s(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,h=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(h[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,h]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:h[a]:a.value;i?f(n)&&u(n,s):f(n)?n.includes(s)||n.push(s):t?(h[a]=[s],p(m,a)&&(m[a]=h[a])):(a.value=[s],e.k&&(h[e.k]=a.value))}else t?(h[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(h[e.k]=l))};l?(r.id=-1,oi(r,n)):r()}}}const qr=Symbol("_vte"),Wr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Jr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Wr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Wr(e.props),g=m?n:u,y=m?o:f;if("svg"===s||zr(u)?s="svg":("mathml"===s||Gr(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),ui(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Kr(t.props,h);e&&Jr(t,e,null,a,0)}else m&&Jr(t,u,f,a,1)}Yr(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),i&&r(c),16&s){const e=i||!Wr(p);for(let r=0;r{Qr||(console.error("Hydration completed but contains mismatches."),Qr=!0)},ei=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ti=e=>8===e.nodeType;function ni(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ti(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:k,patchFlag:I}=o;let w=n.nodeType;o.el=n,-2===I&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Ui:3!==w?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Zr(),n.data=o.children),E=i(n));break;case qi:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==w||S?_():i(n);break;case Wi:if(S&&(w=(n=i(n)).nodeType),1===w||3===w){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:h,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){h&&Hn(t,null,n,"created");let a,b=!1;if(y(e)){b=ai(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=f(e.firstChild,t,e,n,r,i,s);for(;o;){Zr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Zr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&At(u.style))for(const e in u.style)u.style[e];(a=u&&u.onVnodeBeforeMount)&&ys(a,n,t),h&&Hn(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||h||b)&&ji((()=>{a&&ys(a,n,t),b&&m.enter(e),h&&Hn(t,null,n,"mounted")}),r)}return e.nextSibling},f=(e,t,o,s,l,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,f=p.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=f(i(e),t,d,n,o,r,l);return p&&ti(p)&&"]"===p.data?i(t.anchor=p):(Zr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Zr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,ei(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&ti(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),wn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),wn(),t._vnode=e},d]}const oi=ji;function ri(e){return si(e)}function ii(e){return si(e,ni)}function si(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:f,parentNode:h,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Ui:b(e,t,n,o);break;case qi:S(e,t,n,o);break;case Wi:null==e&&_(t,n,o,s);break;case Vi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Ur(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):w(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,h&&h.is,h),8&m?f(d,e.children):16&m&&I(e.children,d,null,r,i,li(e,s),a,u),v&&Hn(e,null,r,"created"),k(d,e,e.scopeId,a,r),h){for(const e in h)"value"===e||E(e)||l(d,e,null,h[e],s,r);"value"in h&&l(d,"value",null,h.value,s),(p=h.onVnodeBeforeMount)&&ys(p,r,e)}v&&Hn(e,null,r,"beforeMount");const y=ai(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||y||v)&&oi((()=>{p&&ys(p,r,e),y&&g.enter(d),v&&Hn(e,null,r,"mounted")}),i)},k=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let g;if(n&&ci(n,!1),(g=m.onVnodeBeforeUpdate)&&ys(g,n,t,e),p&&Hn(t,e,n,"beforeUpdate"),n&&ci(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&f(a,""),d?T(e.dynamicChildren,d,a,n,r,li(t,i),s):c||$(e,t,a,null,n,r,li(t,i),s,!1),u>0){if(16&u)D(a,h,m,n,i);else if(2&u&&h.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ys(g,n,t,e),p&&Hn(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(t!==n){if(t!==o)for(const o in t)E(o)||o in n||l(e,o,t[o],null,i,r);for(const o in n){if(E(o))continue;const s=n[o],c=t[o];s!==c&&"value"!==o&&l(e,o,c,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),I(t.children||[],o,p,i,s,l,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&ui(e,t,!0)):$(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):M(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=_s(e,o,r);if(io(e)&&(l.ctx.renderer=Q),Ns(l,!1,s),l.asyncDep){if(r&&r.registerDep(l,L,s),!e.el){const e=l.subTree=cs(qi);S(null,e,t,n)}}else L(l,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||Ni(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?Ni(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&hn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=di(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;ci(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ys(u,i,t,a),ci(e,!0);const p=Di(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Ri(e,p.el),o&&oi(o,r),(u=t.props&&t.props.onVnodeUpdated)&&oi((()=>ys(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=no(t);if(ci(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&ys(i,d,t),ci(e,!0),l&&ee){const n=()=>{e.subTree=Di(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Di(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&oi(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;oi((()=>ys(i,d,e)),r)}(256&t.shapeFlag||d&&no(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&oi(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,ci(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;Er(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Tr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void j(a,d,n,o,r,i,s,l,c)}8&h?(16&u&&K(a,r,i),d!==a&&f(n,d)):16&u?16&h?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&f(n,""),16&h&&I(d,n,o,r,i,s,l,c))},j=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?K(e,i,s,!0,!1,p):I(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const o=e[u],r=t[u]=a?ms(t[u]):hs(t[u]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=f;){const o=e[p],r=t[f]=a?ms(t[f]):hs(t[f]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,f--}if(u>p){if(u<=f){const e=f+1,r=ef)for(;u<=p;)q(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=a?ms(t[u]):hs(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=f-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=f;v++)if(0===C[v-m]&&os(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const k=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=k.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Vi)if(l!==Wi)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),oi((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(r=!1),null!=l&&Ur(l,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,m=!no(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&ys(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Hn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&!a.hasOnce&&(i!==Vi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Vi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||h)&&oi((()=>{g&&ys(g,t,e),h&&Hn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Vi)return void z(n,o);if(t===Wi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;pi(c),pi(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&oi(l,t),oi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[qr];return n?m(n):t};let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,In(),wn(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:I,pc:$,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:br(Y,Z)}}function li({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let e=0;exr(fi);function mi(e,t){return Si(e,null,t)}function gi(e,t){return Si(e,null,{flush:"post"})}function vi(e,t){return Si(e,null,{flush:"sync"})}const yi={};function bi(e,t,n){return Si(e,t,n)}function Si(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),w()}}const d=xs,p=e=>!0===r?e:Ci(e,!1===r?1:void 0);let h,m,g=!1,y=!1;if(Ht(e)?(h=()=>e.value,g=Nt(e)):At(e)?(h=()=>p(e),g=!0):f(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),h=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):h=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=h;h=()=>Ci(e())}let b,S=e=>{m=k.onStop=()=>{an(e,d,4),m=k.onStop=void 0}};if(Os){if(S=i,t?n&&un(t,d,3,[h(),y?[]:void 0,S]):h(),"sync"!==s)return i;{const e=hi();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(yi):yi;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(r||g||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(m&&m(),un(t,d,3,[e,_===yi?void 0:y&&_[0]===yi?[]:_,S]),_=e)}else k.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>oi(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new ye(h,i,C),I=ge(),w=()=>{k.stop(),I&&u(I.effects,k)};return t?n?x():_=k.run():"post"===s?oi(k.run.bind(k),d&&d.suspense):k.run(),b&&b.push(w),w}function _i(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?xi(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=ws(this),l=Si(r,i.bind(o),n);return s(),l}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ci(e,t,n)}));else if(I(e)){for(const o in e)Ci(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ci(e[o],t,n)}return e}function ki(e,t,n=o){const r=Cs(),i=O(t),s=R(t),l=Ii(e,t),c=Qt(((o,l)=>{let c,a,u;return vi((()=>{const n=e[t];L(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){if(!L(e,c))return;const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||(c=e,l());const d=n.set?n.set(e):e;r.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o:c,done:!1}:{done:!0}}},c}const Ii=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${R(t)}Modifiers`];function wi(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const s=t.startsWith("update:"),l=s&&Ii(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>y(e)?e.trim():e))),l.number&&(i=n.map(j)));let a=r[c=M(t)]||r[c=M(O(t))];!a&&s&&(a=r[c=M(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Ei(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Ei(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(f(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ti(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function Di(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=Mn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=hs(u.call(t,e,d,p,h,f,m)),b=l}else{const e=t;y=hs(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:Ai(l)}}catch(t){zi.length=0,dn(t,e,1),y=cs(qi)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Oi(b,i)),S=us(S,b,!1,!0))}return n.dirs&&(S=us(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Mn(v),y}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Oi=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ni(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Mi=0;const Li={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bi(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Fi(e,"onPending"),Fi(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),Hi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,os(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(h,f,n,o,r,null,i,s,l),Hi(d,f)))):(d.pendingId=Mi++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(h,f,n,o,r,null,i,s,l),Hi(d,f))):h&&os(p,h)?(c(h,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(h&&os(p,h))c(h,p,n,o,r,d,i,s,l),Hi(d,p);else if(Fi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Mi++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=Bi(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=$i(o?n.default:n),e.ssFallback=o?$i(n.fallback):cs(qi)}};function Fi(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Bi(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:f,n:h,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:Mi++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?h(r):i,0),kn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=h(r)),f(r,a,_,!0)),d||p(s,u,i,0)),Hi(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||kn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Fi(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;Fi(t,"onFallback");const s=h(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),Hi(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,f(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&h(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Rs(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:h(e.subTree),_,s,n),c&&g(c),Ri(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,n,e,t),_.pendingBranch&&f(_.pendingBranch,n,e,t)}};return _}function $i(e){let t;if(v(e)){const n=Yi&&e._c;n&&(e._d=!1,Ki()),e=e(),n&&(e._d=!0,t=Gi,Ji())}if(f(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function ji(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Hi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ri(o,r))}const Vi=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),qi=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),zi=[];let Gi=null;function Ki(e=!1){zi.push(Gi=e?null:[])}function Ji(){zi.pop(),Gi=zi[zi.length-1]||null}let Xi,Yi=1;function Qi(e){Yi+=e,e<0&&Gi&&(Gi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?Gi||r:null,Ji(),Yi>0&&Gi&&Gi.push(e),e}function es(e,t,n,o,r,i){return Zi(ls(e,t,n,o,r,i,!0))}function ts(e,t,n,o,r){return Zi(cs(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}function rs(e){Xi=e}const is=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,o=0,r=null,i=(e===Vi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&is(t),ref:t&&ss(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return l?(gs(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!s&&Gi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Gi.push(c),c}const cs=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Ao||(e=qi),ns(e)){const o=us(e,t,!0);return n&&gs(o,n),Yi>0&&!i&&Gi&&(6&o.shapeFlag?Gi[Gi.indexOf(e)]=o:Gi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=as(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!f(n)&&(n=a({},n)),t.style=z(n))}var s;return ls(e,t,n,o,r,y(e)?1:Pi(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function as(e){return e?Rt(e)||wr(e)?a({},e):e:null}function us(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?vs(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&is(a),ref:t&&t.ref?n&&i?f(i)?i.concat(ss(t)):[i,ss(t)]:ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Zn(u,c.clone(u)),u}function ds(e=" ",t=0){return cs(Ui,null,e,t)}function ps(e,t){const n=cs(Wi,null,e);return n.staticCount=t,n}function fs(e="",t=!1){return t?(Ki(),ts(qi,null,e)):cs(qi,null,e)}function hs(e){return null==e||"boolean"==typeof e?cs(qi):f(e)?cs(Vi,null,e.slice()):"object"==typeof e?ms(e):cs(Ui,null,String(e))}function ms(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:us(e)}function gs(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),gs(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||wr(t)?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else v(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nxs||Rn;let ks,Is;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ks=t("__VUE_INSTANCE_SETTERS__",(e=>xs=e)),Is=t("__VUE_SSR_SETTERS__",(e=>Os=e))}const ws=e=>{const t=xs;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Es=()=>{xs&&xs.scope.off(),ks(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Ds,As,Os=!1;function Ns(e,t=!1,n=!1){t&&Is(t);const{props:o,children:r}=e.vnode,i=Ts(e);!function(e,t,n,o=!1){const r={},i=Ir();e.propsDefaults=Object.create(null),Er(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:wt(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,o,i,t),Hr(e,r,n);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bs(e):null,r=ws(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(Es,Es),t)return i.then((n=>{Rs(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Rs(e,i,t)}else Ls(e,t)}(e,t):void 0;return t&&Is(!1),s}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Ls(e,n)}function Ps(e){Ds=e,As=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qo))}}const Ms=()=>!Ds;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const t=o.template||ar(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ds(t,l)}}e.render=o.render||i,As&&As(e)}{const t=ws(e);Te();try{!function(e){const t=ar(e),n=e.proxy,o=e.ctx;sr=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:k,render:I,renderTracked:w,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t){f(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=It(t))}if(sr=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Hs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)cr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{_r(t,e[t])}))}function M(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&lr(d,e,"c"),M(vo,p),M(yo,h),M(bo,m),M(So,g),M(co,y),M(ao,b),M(wo,T),M(Io,w),M(ko,E),M(_o,x),M(xo,k),M(Co,D),f(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});I&&e.render===i&&(e.render=I),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Fs={get:(e,t)=>($e(e,0,""),e[t])};function Bs(e){return{attrs:new Proxy(e.attrs,Fs),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Mt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ho?Ho[n](e):void 0,has:(e,t)=>t in e||t in Ho})):e.proxy}function js(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Os);function Vs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!f(t)?ns(t)?cs(e,null,[t]):cs(e,t):cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),cs(e,t,n))}function Us(){}function qs(e,t,n,o){const r=n[o];if(r&&Ws(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function Ws(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gi&&Gi.push(e),!0}const zs="3.4.33",Gs=i,Ks={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Js=An,Xs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Ys={createComponentInstance:_s,setupComponent:Ns,renderComponentRoot:Di,setCurrentRenderingInstance:Mn,isVNode:ns,normalizeVNode:hs,getComponentPublicInstance:$s},Qs=null,Zs=null,el=null,tl="undefined"!=typeof document?document:null,nl=tl&&tl.createElement("template"),ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?tl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?tl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?tl.createElement(e,{is:n}):tl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>tl.createTextNode(e),createComment:e=>tl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{nl.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",il="animation",sl=Symbol("_vtc"),ll=(e,{slots:t})=>Vs(Kn,pl(e),t);ll.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},al=ll.props=a({},zn,cl),ul=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},dl=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function pl(e){const t={};for(const n in e)n in cl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:I=b,onAppearCancelled:w=_}=t,E=(e,t,n)=>{ml(e,t?d:l),ml(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,ml(e,p),ml(e,h),ml(e,f),t&&t()},D=e=>(t,n)=>{const r=e?I:b,s=()=>E(t,e,n);ul(r,[t,s]),gl((()=>{ml(t,e?c:i),hl(t,e?d:l),dl(r)||yl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){ul(y,[e]),hl(e,i),hl(e,s)},onBeforeAppear(e){ul(k,[e]),hl(e,c),hl(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);hl(e,p),hl(e,f),xl(),gl((()=>{e._isLeaving&&(ml(e,p),hl(e,h),dl(x)||yl(e,o,v,n))})),ul(x,[e,n])},onEnterCancelled(e){E(e,!1),ul(_,[e])},onAppearCancelled(e){E(e,!0),ul(w,[e])},onLeaveCancelled(e){T(e),ul(C,[e])}})}function fl(e){return H(e)}function hl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[sl]||(e[sl]=new Set)).add(t)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[sl];n&&(n.delete(t),n.size||(e[sl]=void 0))}function gl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let vl=0;function yl(e,t,n,o){const r=e._endId=++vl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=bl(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${rl}Delay`),i=o(`${rl}Duration`),s=Sl(r,i),l=o(`${il}Delay`),c=o(`${il}Duration`),a=Sl(l,c);let u=null,d=0,p=0;return t===rl?s>0&&(u=rl,d=s,p=i.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?rl:il:null,p=u?u===rl?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===rl&&/\b(transform|all)(,|$)/.test(o(`${rl}Property`).toString())}}function Sl(e,t){for(;e.length_l(t)+_l(e[n]))))}function _l(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const Cl=Symbol("_vod"),kl=Symbol("_vsh"),Il={beforeMount(e,{value:t},{transition:n}){e[Cl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):wl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),wl(e,!0),o.enter(e)):o.leave(e,(()=>{wl(e,!1)})):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e[Cl]:"none",e[kl]=!t}const El=Symbol("");function Tl(e){const t=Cs();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Al(e,n)))},o=()=>{const o=e(t.proxy);Dl(t.subTree,o),n(o)};yo((()=>{gi(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Dl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Dl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Al(e.el,t);else if(e.type===Vi)e.children.forEach((e=>Dl(e,t)));else if(e.type===Wi){let{el:n,anchor:o}=e;for(;n&&(Al(n,t),n!==o);)n=n.nextSibling}}function Al(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Ol=/(^|;)\s*display\s*:/,Nl=/\s*!important$/;function Rl(e,t,n){if(f(n))n.forEach((n=>Rl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ml[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ml[t]=o;o=P(o);for(let n=0;nHl||(Vl.then((()=>Hl=0)),Hl=Date.now()),ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Wl(e,t,n){const o=to(e,t);class r extends Kl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Wl(e,t,Ac),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Dc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!f(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Dc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=cs(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Jl(e="$style"){{const t=Cs();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const Xl=new WeakMap,Yl=new WeakMap,Ql=Symbol("_moveCb"),Zl=Symbol("_enterCb"),ec={name:"TransitionGroup",props:a({},al,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cs(),o=qn();let r,i;return So((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[sl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=bl(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(tc),r.forEach(nc);const o=r.filter(oc);xl(),o.forEach((e=>{const n=e.el,o=n.style;hl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ql]=null,ml(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=pl(s);let c=s.tag||Vi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>F(t,e):t};function ic(e){e.target.composing=!0}function sc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lc=Symbol("_assign"),cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lc]=rc(r);const i=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[lc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",sc),Bl(e,"change",sc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[lc]=rc(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ac={deep:!0,created(e,t,n){e[lc]=rc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=hc(e),o=e.checked,r=e[lc];if(f(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(mc(e,o))}))},mounted:uc,beforeUpdate(e,t,n){e[lc]=rc(n),uc(e,t,n)}};function uc(e,{value:t,oldValue:n},o){e._modelValue=t,f(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,mc(e,!0)))}const dc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[lc]=rc(n),Bl(e,"change",(()=>{e[lc](hc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[lc]=rc(o),t!==n&&(e.checked=ie(t,o.props.value))}},pc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(hc(e)):hc(e)));e[lc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[lc]=rc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[lc]=rc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=f(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(hc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function hc(e){return"_value"in e?e._value:e.value}function mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gc={created(e,t,n){yc(e,t,n,null,"created")},mounted(e,t,n){yc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){yc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){yc(e,t,n,o,"updated")}};function vc(e,t){switch(e){case"SELECT":return pc;case"TEXTAREA":return cc;default:switch(t){case"checkbox":return ac;case"radio":return dc;default:return cc}}}function yc(e,t,n,o,r){const i=vc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const bc=["ctrl","shift","alt","meta"],Sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>bc.some((n=>e[`${n}Key`]&&!t.includes(n)))},_c=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},kc=a({patchProp:(e,t,n,o,r,i)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[sl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Rl(o,t,"")}else for(const e in t)null==n[e]&&Rl(o,e,"");for(const e in n)"display"===e&&(i=!0),Rl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,i=Ol.test(n)}}else t&&e.removeAttribute("style");Cl in e&&(e[Cl]=i?o.display:"",e[kl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[$l]||(e[$l]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ul(),n}(o,r);Bl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!y(n))&&t in e}(e,t,o,s))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Fl(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Fl(e,t,o,s))}},ol);let Ic,wc=!1;function Ec(){return Ic||(Ic=ri(kc))}function Tc(){return Ic=wc?Ic:ii(kc),wc=!0,Ic}const Dc=(...e)=>{Ec().render(...e)},Ac=(...e)=>{Tc().hydrate(...e)},Oc=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Pc(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Nc=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Rc(t))},t};function Rc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){return y(e)?document.querySelector(e):e}let Mc=!1;const Lc=()=>{Mc||(Mc=!0,cc.getSSRProps=({value:e})=>({value:e}),dc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ac.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=vc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Il.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Fc=Symbol(""),Bc=Symbol(""),$c=Symbol(""),jc=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),fa=Symbol(""),ha=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa={[Fc]:"Fragment",[Bc]:"Teleport",[$c]:"Suspense",[jc]:"KeepAlive",[Hc]:"BaseTransition",[Vc]:"openBlock",[Uc]:"createBlock",[qc]:"createElementBlock",[Wc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Kc]:"createTextVNode",[Jc]:"createStaticVNode",[Xc]:"resolveComponent",[Yc]:"resolveDynamicComponent",[Qc]:"resolveDirective",[Zc]:"resolveFilter",[ea]:"withDirectives",[ta]:"renderList",[na]:"renderSlot",[oa]:"createSlots",[ra]:"toDisplayString",[ia]:"mergeProps",[sa]:"normalizeClass",[la]:"normalizeStyle",[ca]:"normalizeProps",[aa]:"guardReactiveProps",[ua]:"toHandlers",[da]:"camelize",[pa]:"capitalize",[fa]:"toHandlerKey",[ha]:"setBlockTracking",[ma]:"pushScopeId",[ga]:"popScopeId",[va]:"withCtx",[ya]:"unref",[ba]:"isRef",[Sa]:"withMemo",[_a]:"isMemoSame"},Ca={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ka(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=Ca){return e&&(l?(e.helper(Vc),e.helper(Pa(e.inSSR,a))):e.helper(Ra(e.inSSR,a)),s&&e.helper(ea)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ia(e,t=Ca){return{type:17,loc:t,elements:e}}function wa(e,t=Ca){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Ca,key:y(e)?Ta(e,!0):e,value:t}}function Ta(e,t=!1,n=Ca,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Da(e,t=Ca){return{type:8,loc:t,children:e}}function Aa(e,t=[],n=Ca){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ca){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Na(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ca}}function Ra(e,t){return e||t?Wc:zc}function Pa(e,t){return e||t?Uc:qc}function Ma(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Ra(o,e.isComponent)),t(Vc),t(Pa(o,e.isComponent)))}const La=new Uint8Array([123,123]),Fa=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function $a(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||$a(e)}function Ha(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Xa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return $c;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Hc}}const Ya=/^\d|[^\$\w\xA0-\uFFFF]/,Qa=e=>!Ya.test(e),Za=/[A-Za-z_$\xA0-\uFFFF]/,eu=/[\.\?\w$\xA0-\uFFFF]/,tu=/\s+[.[]\s*|\s*[.[]\s+/g,nu=e=>{e=e.trim().replace(tu,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function hu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const mu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let vu=gu,yu=null,bu="",Su=null,_u=null,xu="",Cu=-1,ku=-1,Iu=0,wu=!1,Eu=null;const Tu=[],Du=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=La,this.delimiterClose=Fa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=La,this.delimiterClose=Fa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||$a(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Va.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Tu,{onerr:Ju,ontext(e,t){Pu(Nu(e,t),e,t)},ontextentity(e,t,n){Pu(e,t,n)},oninterpolation(e,t){if(wu)return Pu(Nu(e,t),e,t);let n=e+Du.delimiterOpen.length,o=t-Du.delimiterClose.length;for(;$a(bu.charCodeAt(n));)n++;for(;$a(bu.charCodeAt(o-1));)o--;let r=Nu(n,o);r.includes("&")&&(r=vu.decodeEntities(r,!1)),qu({type:5,content:Ku(r,!1,Wu(n,o)),loc:Wu(e,t)})},onopentagname(e,t){const n=Nu(e,t);Su={type:1,tag:n,ns:vu.getNamespace(n,Tu[0],vu.ns),tagType:0,props:[],children:[],loc:Wu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Nu(e,t);if(!vu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ju(24,Tu[0].loc.start.offset);for(let n=0;n<=e;n++)Mu(Tu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ju(2,t)},onattribend(e,t){if(Su&&_u){if(zu(_u.loc,t),0!==e)if(xu.includes("&")&&(xu=vu.decodeEntities(xu,!0)),6===_u.type)"class"===_u.name&&(xu=Uu(xu).trim()),1!==e||xu||Ju(13,t),_u.value={type:2,content:xu,loc:1===e?Wu(Cu,ku):Wu(Cu-1,ku+1)},Du.inSFCRoot&&"template"===Su.tag&&"lang"===_u.name&&xu&&"html"!==xu&&Du.enterRCDATA(Ha("{const r=t.start.offset+n;return Ku(e,!1,Wu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Au);if(u){c=c.replace(Au,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(_u.exp));let t=-1;"bind"===_u.name&&(t=_u.modifiers.indexOf("sync"))>-1&&Wa("COMPILER_V_BIND_SYNC",vu,_u.loc,_u.rawName)&&(_u.name="model",_u.modifiers.splice(t,1))}7===_u.type&&"pre"===_u.name||Su.props.push(_u)}xu="",Cu=ku=-1},oncomment(e,t){vu.comments&&qu({type:3,content:Nu(e,t),loc:Wu(e-4,t+3)})},onend(){const e=bu.length;for(let t=0;t64&&n<91||Xa(e)||vu.isBuiltInComponent&&vu.isBuiltInComponent(e)||vu.isNativeTag&&!vu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wa("COMPILER_INLINE_TEMPLATE",vu,n.loc)&&e.children.length&&(n.value={type:2,content:Nu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(e,t){let n=e;for(;bu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fu=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&nd(r,t)>=2){const n=od(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Qu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Qu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=Ta(e)),E.hoists.push(e);const t=Ta(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ca}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);id(e,n),t.hoistStatic&&Xu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Yu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Ma(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=ka(t,n(Fc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(lu))return;const i=[];for(let s=0;s`${xa[e]}: _${xa[e]}`;function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Zc:"component"===t?Xc:Qc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,h,a]),t),n(")"),d&&n(")"),u&&(n(", "),pd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(ld),n(i+"(",-2,e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),f(s)?ud(s,t):pd(s,t)):l&&pd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Qa(n.content);e&&s("("),fd(n,t),e&&s(")")}else s("("),pd(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),pd(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,pd(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ha)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),pd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(ha)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function hd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ka(28,t.loc)),t.exp=Ta("true",!1,o)}if("if"===t.name){const r=vd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ka(30,e.loc)),n.removeNode();const r=vd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);id(r,n),i&&i(),n.currentNode=null}else n.onError(Ka(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=yd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=yd(t,s+e.branches.length-1,n)}}}))));function vd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ou(e,"for")?e.children:[e],userKey:ru(e,"key"),isTemplateIf:n}}function yd(e,t,n){return e.condition?Na(e.condition,bd(e,t,n),Aa(n.helper(Gc),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=Ea("key",Ta(`${t}`,!1,Ca,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return pu(e,r,n),e}{let t=64;return q[64],ka(n,o(Fc),wa([r]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===Sa?l.arguments[1].returns:l;return 13===t.type&&Ma(t,n),pu(t,r,n),e}var l}const Sd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(Ka(52,i.loc)),{props:[Ea(i,Ta("",!0,r))]};_d(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(da)}(${i.content})`:(i.children.unshift(`${n.helperString(da)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(i,"."),o.includes("attr")&&xd(i,"^")),{props:[Ea(i,s)]}},_d=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=Ta(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cd=sd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ka(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ka(32,t.loc));kd(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:cu(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const f=o&&o(p);return()=>{l.vFor--,f&&f()}}(e,t,n,(t=>{const i=Aa(o(ta),[t.source]),s=cu(e),l=ou(e,"memo"),c=ru(e,"key",!1,!0);c&&7===c.type&&!c.exp&&_d(c);const a=c&&(6===c.type?c.value?Ta(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=ka(n,o(Fc),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,f=1!==p.length||1!==p[0].type,h=au(e)?e:s&&1===e.children.length&&au(e.children[0])?e.children[0]:null;if(h?(c=h.codegenNode,s&&u&&pu(c,u,n)):f?c=ka(n,o(Fc),u?wa([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&pu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Vc),r(Pa(n.inSSR,c.isComponent))):r(Ra(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Vc),o(Pa(n.inSSR,c.isComponent))):o(Ra(n.inSSR,c.isComponent))),l){const e=Oa(Id(t.parseResult,[Ta("_cached")]));e.body={type:21,body:[Da(["const _memo = (",l.exp,")"]),Da(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(_a)}(_cached, _memo)) return _cached`]),Da(["const _item = ",c]),Ta("_item.memo = _memo"),Ta("return _item")],loc:Ca},i.arguments.push(e,Ta("_cache"),Ta(String(n.cached++)))}else i.arguments.push(Oa(Id(t.parseResult),c,!0))}}))}));function kd(e,t){e.finalized||(e.finalized=!0)}function Id({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ta("_".repeat(t+1),!1)))}([e,t,n,...o])}const wd=Ta("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ou(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Dd(e,t,n=Td){t.helper(va);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ou(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ja(e)&&(l=!0),i.push(Ea(e||Ta("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let f=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ea("default",i)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Ka(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const h=l?2:Od(e.children)?3:1;let m=wa(i.concat(Ea("_",Ta(h+"",!1))),r);return s.length&&(m=Aa(t.helper(oa),[m,Ia(s)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",Ta(String(n),!0))),wa(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),i=ru(e,"is",!1,!0);if(i)if(r||qa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ta(i.value.content,!0):(e=i.exp,e||(e=Ta("is",!1,i.loc))),e)return Aa(t.helper(Yc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=Xa(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(Xc),t.components.add(o),hu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Yc;let l,c,a,u,d,p=0,f=s||i===Bc||i===$c||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Md(e,t,void 0,r,s);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?Ia(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Qc),t.directives.add(e.name),n.push(hu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ta("true",!1,r);n.push(wa(e.modifiers.map((e=>Ea(e,t))),r))}return Ia(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(i===jc&&(f=!0,p|=1024),r&&i!==Bc&&i!==jc){const{slots:n,hasDynamicSlots:o}=Dd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&i!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Zu(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(d.push(wa(Ld(u),c)),u=[]),e&&d.push(e)},I=()=>{t.scopes.vFor>0&&u.push(Ea(Ta("ref_for",!0),Ta("true")))},w=({key:e,value:n})=>{if(Ja(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Zu(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?Aa(t.helper(ia),d,c):d[0]):u.length&&(D=wa(Ld(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),h||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(au(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Md(e,t,r,!1,!1);n=o,i.length&&t.onError(Ka(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Aa(t.helper(na),s,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(Ka(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ta(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(O(e)):`on:${e}`,!0,s.loc)}else l=Da([`${n.helperString(fa)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=nu(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Da([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||Ta("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ou(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(ha),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Wd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ka(41,e.loc)),zd();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(Ka(44,o.loc)),zd();if(!s.trim()||!nu(s))return n.onError(Ka(42,o.loc)),zd();const c=r||Ta("modelValue",!0),a=r?Ja(r)?`onUpdate:${O(r.content)}`:Da(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Da([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Qa(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ja(r)?`${r.content}Modifiers`:Da([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,Ta(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Kd=(e,t)=>{qa("COMPILER_FILTERS",t)&&(5===e.type?Jd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Jd(e.exp,t)})))};function Jd(e,t){if(4===e.type)Xd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===s?(h=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i{if(1===e.type){const n=ou(e,"memo");if(!n||Qd.has(e))return;return Qd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Ma(o,t),e.codegenNode=Aa(t.helper(Sa),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function ep(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ka(47)):o&&n(Ka(48)),t.cacheHandlers&&n(Ka(49)),t.scopeId&&!o&&n(Ka(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Du.reset(),Su=null,_u=null,xu="",Cu=-1,ku=-1,Tu.length=0,bu=e,vu=a({},gu),t){let e;for(e in t)null!=t[e]&&(vu[e]=t[e])}Du.mode="html"===vu.parseMode?1:"sfc"===vu.parseMode?2:0,Du.inXML=1===vu.ns||2===vu.ns;const n=t&&t.delimiters;n&&(Du.delimiterOpen=Ha(n[0]),Du.delimiterClose=Ha(n[1]));const o=yu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ca}}(0,e);return Du.parse(bu),o.loc=Wu(0,e.length),o.children=ju(o.children),yu=null,o}(e,r):e,[s,l]=[[qd,gd,Zd,Cd,Kd,$d,Pd,Ed,Vd],{on:Hd,bind:Sd,model:Wd}];return rd(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){f.code+=e},indent(){h(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:h(--f.indentLevel)},newline(){h(f.indentLevel)}};function h(e){f.push("\n"+" ".repeat(e),0)}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,f=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Wc,zc,Gc,Kc,Jc].filter((e=>u.includes(e))).map(cd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ad(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?pd(e.codegenNode,n):r("null"),f&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol("");var dp;let pp;dp={[tp]:"vModelRadio",[np]:"vModelCheckbox",[op]:"vModelText",[rp]:"vModelSelect",[ip]:"vModelDynamic",[sp]:"withModifiers",[lp]:"withKeys",[cp]:"vShow",[ap]:"Transition",[up]:"TransitionGroup"},Object.getOwnPropertySymbols(dp).forEach((e=>{xa[e]=dp[e]}));const fp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return pp||(pp=document.createElement("div")),t?(pp.innerHTML=`
            `,pp.children[0].getAttribute("foo")):(pp.innerHTML=e,pp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ap:"TransitionGroup"===e||"transition-group"===e?up:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},hp=(e,t)=>{const n=X(e);return Ta(JSON.stringify(n),!1,t,3)};function mp(e,t){return Ka(e,t)}const gp=n("passive,once,capture"),vp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=n("left,right"),bp=n("onkeyup,onkeydown,onkeypress",!0),Sp=(e,t)=>Ja(e)&&"onclick"===e.content.toLowerCase()?Ta(t,!0):4!==e.type?Da(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,_p=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ta("style",!0,t.loc),exp:hp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(53,r)),t.children.length&&(n.onError(mp(54,r)),t.children.length=0),{props:[Ea(Ta("innerHTML",!0,r),o||Ta("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(55,r)),t.children.length&&(n.onError(mp(56,r)),t.children.length=0),{props:[Ea(Ta("textContent",!0),o?Zu(o,n)>0?o:Aa(n.helperString(ra),[o],r):Ta("",!0))]}},model:(e,t,n)=>{const o=Wd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(mp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=op,l=!1;if("input"===r||i){const o=ru(t,"type");if(o){if(7===o.type)s=ip;else if(o.value)switch(o.value.content){case"radio":s=tp;break;case"checkbox":s=np;break;case"file":l=!0,n.onError(mp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=ip)}else"select"===r&&(s=rp);l||(o.needRuntime=n.helper(s))}else n.onError(mp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],i=[];for(let s=0;s{const{exp:o,loc:r}=e;return o||n.onError(mp(61,r)),{props:[],needRuntime:n.helper(cp)}}},kp=new WeakMap;Ps((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=kp.get(null!=e?e:o);return t||(t=Object.create(null),kp.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return ep(e,a({},fp,t,{nodeTransforms:[_p,...xp,...t.nodeTransforms||[]],directiveTransforms:a({},Cp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const Ip={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Hs((function(){return e.iconList})),appIsGettingData:Hs((function(){return e.appIsGettingData})),appIsPublishing:Hs((function(){return e.appIsPublishing})),isEditingMode:Hs((function(){return e.isEditingMode})),designData:Hs((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Hs((function(){return e.showFormDialog})),dialogTitle:Hs((function(){return e.dialogTitle})),dialogFormContent:Hs((function(){return e.dialogFormContent})),dialogButtonText:Hs((function(){return e.dialogButtonText})),formSaveFunction:Hs((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},wp="undefined"!=typeof document;const Ep=Object.assign;function Tp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ap(r)?r.map(e):e(r)}return n}const Dp=()=>{},Ap=Array.isArray,Op=/#/g,Np=/&/g,Rp=/\//g,Pp=/=/g,Mp=/\?/g,Lp=/\+/g,Fp=/%5B/g,Bp=/%5D/g,$p=/%5E/g,jp=/%60/g,Hp=/%7B/g,Vp=/%7C/g,Up=/%7D/g,qp=/%20/g;function Wp(e){return encodeURI(""+e).replace(Vp,"|").replace(Fp,"[").replace(Bp,"]")}function zp(e){return Wp(e).replace(Lp,"%2B").replace(qp,"+").replace(Op,"%23").replace(Np,"%26").replace(jp,"`").replace(Hp,"{").replace(Up,"}").replace($p,"^")}function Gp(e){return null==e?"":function(e){return Wp(e).replace(Op,"%23").replace(Mp,"%3F")}(e).replace(Rp,"%2F")}function Kp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Jp=/\/$/,Xp=e=>e.replace(Jp,"");function Yp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Kp(s)}}function Qp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Zp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ef(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tf(e[n],t[n]))return!1;return!0}function tf(e,t){return Ap(e)?nf(e,t):Ap(t)?nf(t,e):e===t}function nf(e,t){return Ap(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const of={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rf,sf;!function(e){e.pop="pop",e.push="push"}(rf||(rf={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(sf||(sf={}));const lf=/^[^#]+#/;function cf(e,t){return e.replace(lf,"#")+t}const af=()=>({left:window.scrollX,top:window.scrollY});function uf(e,t){return(history.state?history.state.position-t:-1)+e}const df=new Map;let pf=()=>location.protocol+"//"+location.host;function ff(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Qp(n,"")}return Qp(n,e)+o+r}function hf(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?af():null}}function mf(e){return"string"==typeof e||"symbol"==typeof e}const gf=Symbol("");var vf;function yf(e,t){return Ep(new Error,{type:e,[gf]:!0},t)}function bf(e,t){return e instanceof Error&&gf in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(vf||(vf={}));const Sf="[^/]+?",_f={sensitive:!1,strict:!1,start:!0,end:!0},xf=/[.+*?^${}()[\]/\\]/g;function Cf(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function kf(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const wf={type:0,value:""},Ef=/[a-zA-Z0-9_]/;function Tf(e,t,n){const o=function(e,t){const n=Ep({},_f,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;cEp(e,t.meta)),{})}function Rf(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Pf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mf(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&zp(e))):[o&&zp(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Ff(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ap(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Bf=Symbol(""),$f=Symbol(""),jf=Symbol(""),Hf=Symbol(""),Vf=Symbol("");function Uf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function qf(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(yf(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(yf(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function Wf(e,t,n,o,r=e=>e()){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push(qf(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&qf(a,n,o,l,e,r)()}))))}}var s;return i}function zf(e){const t=xr(jf),n=xr(Hf),o=Hs((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Hs((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Zp.bind(null,r));if(s>-1)return s;const l=Kf(e[t-2]);return t>1&&Kf(r)===l&&i[i.length-1].path!==l?i.findIndex(Zp.bind(null,e[t-2])):s})),i=Hs((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ap(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Hs((()=>r.value>-1&&r.value===n.matched.length-1&&ef(n.params,o.value.params)));return{route:o,href:Hs((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Dp):Promise.resolve()}}}const Gf=to({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zf,setup(e,{slots:t}){const n=It(zf(e)),{options:o}=xr(jf),r=Hs((()=>({[Jf(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jf(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Kf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jf=(e,t,n)=>null!=e?e:null!=t?t:n;function Xf(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Yf=to({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=xr(Vf),r=Hs((()=>e.route||o.value)),i=xr($f,0),s=Hs((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Hs((()=>r.value.matched[s.value]));_r($f,Hs((()=>s.value+1))),_r(Bf,l),_r(Vf,r);const c=Vt();return bi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Zp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return Xf(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Vs(a,Ep({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return Xf(n.default,{Component:p,route:o})||p}}}),Qf={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
            \n

            {{ menuItem.title }}

            \n
            {{ menuItem.subtitle }}
            \n
            \n
            '};function Zf(e){return Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zf(e)}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function th(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
            \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:sh(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=sh(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

            '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var f=!1;for(var h in t.getQuery().terms)if("stepID"==t.getQuery().terms[h].id&&"="==t.getQuery().terms[h].operator&&"deleted"==t.getQuery().terms[h].match){f=!0;break}return f||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

            Searching for records...

            ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n \n
            '};function ah(e){return ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(e)}function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dh(e,t,n){return(t=function(e){var t=function(e){if("object"!=ah(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ah(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ph,fh=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Hs((function(){return e.menuItem})),menuDirection:Hs((function(){return e.menuDirection})),menuItemList:Hs((function(){return e.menuItemList})),chosenHeaders:Hs((function(){return e.chosenHeaders})),menuIsUpdating:Hs((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes)},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n
            \n \n
            \n
            '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Qf},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
            \n

            Card Preview

            \n
            \n \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n Icon Selections\n
            \n \n
            \n
            \n
            '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Qf},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return th({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(th({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
            \n
            \n

            Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

            \n
            \n \n
            \n \n \n \n
            \n
            '},CustomSearch:ch},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

            Menu Editor

            "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
            \n Loading... \n \n
            \n
            \n

            \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

            \n

            This page is {{ enabled ? \'\' : \'not\'}} enabled

            \n \n
            TODO banner section
            \n
            \n \n \n
            \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
            '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
            \n Loading... \n \n
            \n

            Test View

            '}}],hh=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Af(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Rf(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ep({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=Tf(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Of(d)&&i(e.name)),Pf(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:Dp}function i(e){if(mf(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;kf(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Pf(t)&&0===kf(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Of(e)&&o.set(e.record.name,e)}return t=Rf({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw yf(1,{location:e});s=r.record.name,l=Ep(Df(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Df(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw yf(1,{location:e,currentLocation:t});s=r.record.name,l=Ep({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Nf(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Mf,o=e.stringifyQuery||Lf,r=e.history,i=Uf(),s=Uf(),l=Uf(),c=Ut(of);let a=of;wp&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Tp.bind(null,(e=>""+e)),d=Tp.bind(null,Gp),p=Tp.bind(null,Kp);function f(e,i){if(i=Ep({},i||c.value),"string"==typeof e){const o=Yp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return Ep(o,s,{params:p(s.params),hash:Kp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=Ep({},e,{path:Yp(n,e.path,i.path).path});else{const t=Ep({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ep({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ep({},e,{hash:(h=a,Wp(h).replace(Hp,"{").replace(Up,"}").replace($p,"^")),path:l.path}));var h;const m=r.createHref(f);return Ep({fullPath:f,hash:a,query:o===Lf?Ff(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Yp(n,e,c.value.path):Ep({},e)}function m(e,t){if(a!==e)return yf(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ep({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=f(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(Ep(h(u),{state:"object"==typeof u?Ep({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Zp(t.matched[o],n.matched[r])&&ef(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=yf(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>bf(e)?bf(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(bf(e,2))return y(Ep({replace:l},h(e.to),{state:"object"==typeof e.to?Ep({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Zp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=Wf(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(qf(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),M(n).then((()=>{n=[];for(const o of i.list())n.push(qf(o,e,t));return n.push(c),M(n)})).then((()=>{n=Wf(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(qf(o,e,t))}));return n.push(c),M(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ap(o.beforeEnter))for(const r of o.beforeEnter)n.push(qf(r,e,t));else n.push(qf(o.beforeEnter,e,t));return n.push(c),M(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Wf(l,"beforeRouteEnter",e,t,S),n.push(c),M(n)))).then((()=>{n=[];for(const o of s.list())n.push(qf(o,e,t));return n.push(c),M(n)})).catch((e=>bf(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===of,a=wp?history.state:{};n&&(o||l?r.replace(e.fullPath,Ep({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let k;let I,w=Uf(),E=Uf();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return I||(I=!e,k||(k=r.listen(((e,t,n)=>{if(!P.listening)return;const o=f(e),i=v(o);if(i)return void y(Ep(i,{replace:!0}),o).catch(Dp);a=o;const s=c.value;var l,u;wp&&(l=uf(s.fullPath,n.delta),u=af(),df.set(l,u)),_(o,s).catch((e=>bf(e,12)?e:bf(e,2)?(y(e.to,o).then((e=>{bf(e,20)&&!n.delta&&n.type===rf.pop&&r.go(-1,!1)})).catch(Dp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!bf(e,8)?r.go(-n.delta,!1):n.type===rf.pop&&bf(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Dp)}))),w.list().forEach((([t,n])=>e?n(e):t())),w.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!wp||!i)return Promise.resolve();const s=!o&&function(e){const t=df.get(e);return df.delete(e),t}(uf(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return mf(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(Ep(h(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return I&&c.value!==of?Promise.resolve():new Promise(((e,t)=>{w.add([e,t])}))},install(e){e.component("RouterLink",Gf),e.component("RouterView",Yf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),wp&&!N&&c.value===of&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in of)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(jf,this),e.provide(Hf,wt(t)),e.provide(Vf,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=of,k&&k(),k=null,c.value=of,N=!1,I=!1),n()}}};function M(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((ph=location.host?ph||location.pathname+location.search:"").includes("#")||(ph+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ff(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:pf()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ep({},r.value,t.state,{forward:e,scroll:af()});i(s.current,s,!0),i(e,Ep({},hf(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ep({},t.state,hf(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(wp){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ff(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:rf.pop,direction:u?u>0?sf.forward:sf.back:sf.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Ep({},e.state,{scroll:af()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=Ep({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:cf.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(ph)),routes:fh});const mh=hh;var gh=Oc(Ip);gh.use(mh),gh.mount("#site-designer-app")})(); \ No newline at end of file +(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Kn,BaseTransitionPropsValidators:()=>zn,Comment:()=>qi,DeprecationTypes:()=>el,EffectScope:()=>he,ErrorCodes:()=>cn,ErrorTypeStrings:()=>Ks,Fragment:()=>Vi,KeepAlive:()=>so,ReactiveEffect:()=>ye,Static:()=>Wi,Suspense:()=>Li,Teleport:()=>Xr,Text:()=>Ui,TrackOpTypes:()=>rn,Transition:()=>ll,TransitionGroup:()=>ec,TriggerOpTypes:()=>sn,VueElement:()=>Kl,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>us,compatUtils:()=>Zs,computed:()=>Hs,createApp:()=>Oc,createBlock:()=>ts,createCommentVNode:()=>hs,createElementBlock:()=>es,createElementVNode:()=>ls,createHydrationRenderer:()=>ii,createPropsRestProxy:()=>rr,createRenderer:()=>ri,createSSRApp:()=>Nc,createSlots:()=>Lo,createStaticVNode:()=>ps,createTextVNode:()=>ds,createVNode:()=>cs,customRef:()=>Qt,defineAsyncComponent:()=>oo,defineComponent:()=>to,defineCustomElement:()=>Wl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Xo,defineOptions:()=>Ko,defineProps:()=>Wo,defineSSRCustomElement:()=>zl,defineSlots:()=>Jo,devtools:()=>Js,effect:()=>Ce,effectScope:()=>fe,getCurrentInstance:()=>Cs,getCurrentScope:()=>ge,getTransitionRawChildren:()=>eo,guardReactiveProps:()=>as,h:()=>Vs,handleError:()=>dn,hasInjectionContext:()=>Cr,hydrate:()=>Ac,initCustomFormatter:()=>Us,initDirectivesForSSR:()=>Lc,inject:()=>xr,isMemoSame:()=>Ws,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>Ms,isShallow:()=>Nt,isVNode:()=>ns,markRaw:()=>Mt,mergeDefaults:()=>nr,mergeModels:()=>or,mergeProps:()=>vs,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>co,onBeforeMount:()=>vo,onBeforeUnmount:()=>_o,onBeforeUpdate:()=>bo,onDeactivated:()=>ao,onErrorCaptured:()=>wo,onMounted:()=>yo,onRenderTracked:()=>Io,onRenderTriggered:()=>ko,onScopeDispose:()=>ve,onServerPrefetch:()=>Co,onUnmounted:()=>xo,onUpdated:()=>So,openBlock:()=>Ki,popScopeId:()=>Fn,provide:()=>_r,proxyRefs:()=>Xt,pushScopeId:()=>Ln,queuePostFlushCb:()=>kn,reactive:()=>It,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ps,render:()=>Dc,renderList:()=>Mo,renderSlot:()=>Fo,resolveComponent:()=>Do,resolveDirective:()=>No,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Qs,resolveTransitionHooks:()=>Xn,setBlockTracking:()=>Qi,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Zn,shallowReactive:()=>wt,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>hi,ssrUtils:()=>Ys,stop:()=>ke,toDisplayString:()=>ce,toHandlerKey:()=>M,toHandlers:()=>$o,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>rs,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Zo,useCssModule:()=>Jl,useCssVars:()=>Tl,useModel:()=>ki,useSSRContext:()=>fi,useSlots:()=>Qo,useTransitionState:()=>qn,vModelCheckbox:()=>ac,vModelDynamic:()=>gc,vModelRadio:()=>dc,vModelSelect:()=>pc,vModelText:()=>cc,vShow:()=>Il,version:()=>zs,warn:()=>Gs,watch:()=>bi,watchEffect:()=>mi,watchPostEffect:()=>gi,watchSyncEffect:()=>vi,withAsyncContext:()=>ir,withCtx:()=>$n,withDefaults:()=>Yo,withDirectives:()=>jn,withKeys:()=>Cc,withMemo:()=>qs,withModifiers:()=>_c,withScopeId:()=>Bn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>C(e).slice(8,-1),I=e=>"[object Object]"===C(e),w=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=D((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(h(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":h(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||h(t)||I(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class he{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ie,t=pe;try{return Ie=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,Ie=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function ke(e){e.effect.stop()}let Ie=!0,we=0;const Ee=[];function Te(){Ee.push(Ie),Ie=!1}function De(){const e=Ee.pop();Ie=void 0===e||e}function Ae(){we++}function Oe(){for(we--;!we&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Le=new WeakMap,Fe=Symbol(""),Be=Symbol("");function $e(e,t,n){if(Ie&&pe){let t=Le.get(e);t||Le.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me((()=>t.delete(n)))),Ne(pe,o)}}function je(e,t,n,o,r,i){const s=Le.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&h(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":h(e)?w(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),f(e)&&l.push(s.get(Be)));break;case"delete":h(e)||(l.push(s.get(Fe)),f(e)&&l.push(s.get(Be)));break;case"set":f(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return $e(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?kt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=h(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||$e(e,0,t),r?s:Ht(s)?i&&w(t)?s:s.value:S(s)?o?Et(s):It(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!h(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=h(e)&&w(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(L(t,i)&&$e(r,0,t),$e(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Lt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(L(e,r)&&$e(o,0,e),$e(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e,t=!1){t||Nt(e)||Ot(e)||(e=Pt(e));const n=Pt(this);return et(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Nt(t)||Ot(t)||(t=Pt(t));const o=Pt(this),{has:r,get:i}=et(o);let s=r.call(o,e);s||(e=Pt(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?L(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Lt;return!e&&$e(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=f(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Lt;return!t&&$e(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add(e){return rt.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ht,ft,mt]=dt();function gt(e,t){const n=t?e?mt:ft:e?ht:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,kt=new WeakMap;function It(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function wt(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,kt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Mt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Lt=e=>S(e)?It(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||jt(e,4),$t(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function $t(e){var t;Ie&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Me((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Lt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Lt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Le.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(h(e)){const r=[];for(let i=0;i>>1,r=fn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){hn=!1,pn=!0,fn.sort(Tn);try{for(mn=0;mn$n;function $n(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qi(-1);const r=Mn(t);let i;try{i=e(...n)}finally{Mn(r),o._d&&Qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Rn)return e;const n=$s(Rn),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),_o((()=>{e.isUnmounting=!0})),e}const Wn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wn,onEnter:Wn,onAfterEnter:Wn,onEnterCancelled:Wn,onBeforeLeave:Wn,onLeave:Wn,onAfterLeave:Wn,onLeaveCancelled:Wn,onBeforeAppear:Wn,onAppear:Wn,onAfterAppear:Wn,onAppearCancelled:Wn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Kn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Cs(),o=qn();return()=>{const r=t.default&&eo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==qi){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return Yn(i);const c=Qn(i);if(!c)return Yn(i);let a=Xn(c,s,o,n,(e=>a=e));Zn(c,a);const u=n.subTree,d=u&&Qn(u);if(d&&d.type!==qi&&!os(c,d)&&Gn(n).type!==qi){const e=Xn(d,s,o,n);if(Zn(d,e),"out-in"===l&&c.type!==qi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Yn(i);"in-out"===l&&c.type!==qi&&(e.delayLeave=(e,t,n)=>{Jn(o,d)[String(d.key)]=d,e[Vn]=()=>{t(),e[Vn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function Jn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xn(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=Jn(n,e),C=(e,t)=>{e&&un(e,o,9,t)},k=(e,t)=>{const n=t[1];C(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},I={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[Vn]&&t[Vn](!0);const r=x[_];r&&os(e,r)&&r.el[Vn]&&r.el[Vn](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[Un]=t=>{s||(s=!0,C(t?r:o,[e]),I.delayedLeave&&I.delayedLeave(),e[Un]=void 0)};t?k(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Un]&&t[Un](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[Vn]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[Vn]=void 0,x[r]===e&&delete x[r])};x[r]=e,f?k(f,[t,s]):s()},clone(e){const i=Xn(e,t,n,o,r);return r&&r(i),i}};return I}function Yn(e){if(io(e))return(e=us(e)).children=null,e}function Qn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Zn(e,t){6&e.shapeFlag&&e.component?Zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ea({name:e.name},t,{setup:e}))():e}const no=e=>!!e.type.__asyncLoader;function oo(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return to({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xs;if(c)return()=>ro(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||Os)return d().then((t=>()=>ro(t,e))).catch((e=>(t(e),()=>o?cs(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?ro(c,e):u.value&&o?cs(o,{error:u.value}):n&&!p.value?cs(n):void 0}})}function ro(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=cs(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const io=e=>e.type.__isKeepAlive,so={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Cs(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){ho(e),u(e,n,l,!0)}function f(e){r.forEach(((t,n)=>{const o=js(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&os(t,s)?s&&ho(s):h(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),oi((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ys(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;pi(t.m),pi(t.a),a(e,p,null,1,l),oi((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ys(n,t.parent,e),t.isDeactivated=!0}),l)},bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>lo(e,t))),t&&f((e=>!lo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Pi(n.subTree.type)?oi((()=>{r.set(g,fo(n.subTree))}),n.subTree.suspense):r.set(g,fo(n.subTree)))};return yo(v),So(v),_o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=fo(t);if(e.type!==r.type||e.key!==r.key)h(e);else{ho(r);const e=r.component.da;e&&oi(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ns(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=fo(o);const c=l.type,a=js(no(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!lo(u,a))||d&&a&&lo(d,a))return s=l,o;const h=null==l.key?c:l.key,f=r.get(h);return l.el&&(l=us(l),128&o.shapeFlag&&(o.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&Zn(l,l.transition),l.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,Pi(o.type)?o:l}}};function lo(e,t){return h(e)?e.some((e=>lo(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function co(e,t){uo(e,"a",t)}function ao(e,t){uo(e,"da",t)}function uo(e,t,n=xs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(mo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&po(o,t,n,e),e=e.parent}}function po(e,t,n,o){const r=mo(t,e,o,!0);xo((()=>{u(o[t],r)}),n)}function ho(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fo(e){return 128&e.shapeFlag?e.ssContent:e}function mo(e,t,n=xs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=ws(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const go=e=>(t,n=xs)=>{Os&&"sp"!==e||mo(e,((...e)=>t(...e)),n)},vo=go("bm"),yo=go("m"),bo=go("bu"),So=go("u"),_o=go("bum"),xo=go("um"),Co=go("sp"),ko=go("rtg"),Io=go("rtc");function wo(e,t=xs){mo("ec",e,t)}const Eo="components",To="directives";function Do(e,t){return Ro(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function Oo(e){return y(e)?Ro(Eo,e,!1)||e:e||Ao}function No(e){return Ro(To,e)}function Ro(e,t,n=!0,o=!1){const r=Rn||xs;if(r){const n=r.type;if(e===Eo){const e=js(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Po(r[e]||n[e],t)||Po(r.appContext[e],t);return!i&&o?n:i}}function Po(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Mo(e,t,n,o){let r;const i=n&&n[o];if(h(e)||y(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Fo(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&no(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),cs("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ki();const s=i&&Bo(i(n)),l=ts(Vi,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bo(e){return e.some((e=>!ns(e)||e.type!==qi&&!(e.type===Vi&&!Bo(e.children))))?e:null}function $o(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ts(e)?$s(e):jo(e.parent):null,Ho=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ar(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>_i.bind(e)}),Vo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Uo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Vo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];sr&&(l[t]=0)}}const d=Ho[t];let h,f;return d?("$attrs"===t&&$e(e.attrs,0,""),d(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(l[t]=4,n[t]):(f=a.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Vo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Vo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Ho,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=a({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function Wo(){return null}function zo(){return null}function Go(e){}function Ko(e){}function Jo(){return null}function Xo(){}function Yo(e,t){return null}function Qo(){return er().slots}function Zo(){return er().attrs}function er(){const e=Cs();return e.setupContext||(e.setupContext=Bs(e))}function tr(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function nr(e,t){const n=tr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?h(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function or(e,t){return e&&t?h(e)&&h(t)?e.concat(t):a({},tr(e),tr(t)):e||t}function rr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Cs();let n=e();return Es(),_(n)&&(n=n.catch((e=>{throw ws(t),e}))),[n,()=>ws(t)]}let sr=!0;function lr(e,t,n){un(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function cr(e,t,n,o){const r=o.includes(".")?xi(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&bi(r,n)}else if(v(e))bi(r,e.bind(n));else if(S(e))if(h(e))e.forEach((e=>cr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&bi(r,o,e)}}function ar(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>ur(c,e,s,!0))),ur(c,t,s)):c=t,S(t)&&i.set(t,c),c}function ur(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ur(e,i,n,!0),r&&r.forEach((t=>ur(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=dr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const dr={data:pr,props:gr,emits:gr,methods:mr,computed:mr,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=fr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return mr(hr(e),hr(t))}};function pr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function hr(e){if(h(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=cs(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,$s(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Sr;Sr=l;try{return e()}finally{Sr=t}}};return l}}let Sr=null;function _r(e,t){if(xs){let n=xs.provides;const o=xs.parent&&xs.parent.provides;o===n&&(n=xs.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xs||Rn;if(o||Sr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function Cr(){return!!(xs||Rn||Sr)}const kr={},Ir=()=>Object.create(kr),wr=e=>Object.getPrototypeOf(e)===kr;function Er(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ti(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Ar(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(h(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const f=[c,u];return S(e)&&i.set(e,f),f}function Or(e){return"$"!==e[0]&&!E(e)}function Nr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Rr(e,t){return Nr(e)===Nr(t)}function Pr(e,t){return h(t)?t.findIndex((t=>Rr(t,e))):v(t)&&Rr(t,e)?0:-1}const Mr=e=>"_"===e[0]||"$stable"===e,Lr=e=>h(e)?e.map(fs):[fs(e)],Fr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>Lr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Mr(n))continue;const r=e[n];if(v(r))t[n]=Fr(0,r,o);else if(null!=r){const e=Lr(r);t[n]=()=>e}}},$r=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Hr=(e,t,n)=>{const o=e.slots=Ir();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&B(o,"_",e,!0)):Br(t,o)}else t&&$r(e,t)},Vr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:jr(i,t,n):(s=!t.$stable,Br(t,i)),l=t}else t&&($r(e,t),l={default:1});if(s)for(const e in i)Mr(e)||null!=l[e]||delete i[e]};function Ur(e,t,n,r,i=!1){if(h(e))return void e.forEach(((e,o)=>Ur(e,t&&(h(t)?t[o]:t),n,r,i)));if(no(r)&&!i)return;const s=4&r.shapeFlag?$s(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,f=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(f[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,f]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:f[a]:a.value;i?h(n)&&u(n,s):h(n)?n.includes(s)||n.push(s):t?(f[a]=[s],p(m,a)&&(m[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else t?(f[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(f[e.k]=l))};l?(r.id=-1,oi(r,n)):r()}}}const qr=Symbol("_vte"),Wr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Jr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Wr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Wr(e.props),g=m?n:u,y=m?o:h;if("svg"===s||zr(u)?s="svg":("mathml"===s||Gr(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),ui(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Kr(t.props,f);e&&Jr(t,e,null,a,0)}else m&&Jr(t,u,h,a,1)}Yr(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),i&&r(c),16&s){const e=i||!Wr(p);for(let r=0;r{Qr||(console.error("Hydration completed but contains mismatches."),Qr=!0)},ei=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ti=e=>8===e.nodeType;function ni(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ti(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:k,patchFlag:I}=o;let w=n.nodeType;o.el=n,-2===I&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Ui:3!==w?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Zr(),n.data=o.children),E=i(n));break;case qi:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==w||S?_():i(n);break;case Wi:if(S&&(w=(n=i(n)).nodeType),1===w||3===w){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){f&&Hn(t,null,n,"created");let a,b=!1;if(y(e)){b=ai(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=h(e.firstChild,t,e,n,r,i,s);for(;o;){Zr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Zr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&At(u.style))for(const e in u.style)u.style[e];(a=u&&u.onVnodeBeforeMount)&&ys(a,n,t),f&&Hn(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||f||b)&&ji((()=>{a&&ys(a,n,t),b&&m.enter(e),f&&Hn(t,null,n,"mounted")}),r)}return e.nextSibling},h=(e,t,o,s,l,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=h(i(e),t,d,n,o,r,l);return p&&ti(p)&&"]"===p.data?i(t.anchor=p):(Zr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Zr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,ei(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&ti(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),wn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),wn(),t._vnode=e},d]}const oi=ji;function ri(e){return si(e)}function ii(e){return si(e,ni)}function si(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Ui:b(e,t,n,o);break;case qi:S(e,t,n,o);break;case Wi:null==e&&_(t,n,o,s);break;case Vi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Ur(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):w(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,f&&f.is,f),8&m?h(d,e.children):16&m&&I(e.children,d,null,r,i,li(e,s),a,u),v&&Hn(e,null,r,"created"),k(d,e,e.scopeId,a,r),f){for(const e in f)"value"===e||E(e)||l(d,e,null,f[e],s,r);"value"in f&&l(d,"value",null,f.value,s),(p=f.onVnodeBeforeMount)&&ys(p,r,e)}v&&Hn(e,null,r,"beforeMount");const y=ai(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=f&&f.onVnodeMounted)||y||v)&&oi((()=>{p&&ys(p,r,e),y&&g.enter(d),v&&Hn(e,null,r,"mounted")}),i)},k=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||o,m=t.props||o;let g;if(n&&ci(n,!1),(g=m.onVnodeBeforeUpdate)&&ys(g,n,t,e),p&&Hn(t,e,n,"beforeUpdate"),n&&ci(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(a,""),d?T(e.dynamicChildren,d,a,n,r,li(t,i),s):c||$(e,t,a,null,n,r,li(t,i),s,!1),u>0){if(16&u)D(a,f,m,n,i);else if(2&u&&f.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ys(g,n,t,e),p&&Hn(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(t!==n){if(t!==o)for(const o in t)E(o)||o in n||l(e,o,t[o],null,i,r);for(const o in n){if(E(o))continue;const s=n[o],c=t[o];s!==c&&"value"!==o&&l(e,o,c,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),I(t.children||[],o,p,i,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(T(e.dynamicChildren,f,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&ui(e,t,!0)):$(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):M(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=_s(e,o,r);if(io(e)&&(l.ctx.renderer=Q),Ns(l,!1,s),l.asyncDep){if(r&&r.registerDep(l,L,s),!e.el){const e=l.subTree=cs(qi);S(null,e,t,n)}}else L(l,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||Ni(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?Ni(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&fn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=di(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;ci(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ys(u,i,t,a),ci(e,!0);const p=Di(e),h=e.subTree;e.subTree=p,y(h,p,f(h.el),J(h),e,r,s),t.el=p.el,null===d&&Ri(e,p.el),o&&oi(o,r),(u=t.props&&t.props.onVnodeUpdated)&&oi((()=>ys(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=no(t);if(ci(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&ys(i,d,t),ci(e,!0),l&&ee){const n=()=>{e.subTree=Di(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Di(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&oi(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;oi((()=>ys(i,d,e)),r)}(256&t.shapeFlag||d&&no(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&oi(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,ci(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;Er(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Tr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void j(a,d,n,o,r,i,s,l,c)}8&f?(16&u&&K(a,r,i),d!==a&&h(n,d)):16&u?16&f?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&h(n,""),16&f&&I(d,n,o,r,i,s,l,c))},j=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?K(e,i,s,!0,!1,p):I(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=a?ms(t[u]):fs(t[u]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=a?ms(t[h]):fs(t[h]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,h--}if(u>p){if(u<=h){const e=h+1,r=eh)for(;u<=p;)q(e[u],i,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=a?ms(t[u]):fs(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=h-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=h;v++)if(0===C[v-m]&&os(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const k=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=k.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Vi)if(l!==Wi)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),oi((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(r=!1),null!=l&&Ur(l,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!no(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&ys(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&Hn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&!a.hasOnce&&(i!==Vi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Vi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||f)&&oi((()=>{g&&ys(g,t,e),f&&Hn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Vi)return void z(n,o);if(t===Wi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;pi(c),pi(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&oi(l,t),oi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[qr];return n?m(n):t};let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,In(),wn(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:I,pc:$,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:br(Y,Z)}}function li({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const o=e.children,r=t.children;if(h(o)&&h(r))for(let e=0;exr(hi);function mi(e,t){return Si(e,null,t)}function gi(e,t){return Si(e,null,{flush:"post"})}function vi(e,t){return Si(e,null,{flush:"sync"})}const yi={};function bi(e,t,n){return Si(e,t,n)}function Si(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),w()}}const d=xs,p=e=>!0===r?e:Ci(e,!1===r?1:void 0);let f,m,g=!1,y=!1;if(Ht(e)?(f=()=>e.value,g=Nt(e)):At(e)?(f=()=>p(e),g=!0):h(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),f=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):f=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=f;f=()=>Ci(e())}let b,S=e=>{m=k.onStop=()=>{an(e,d,4),m=k.onStop=void 0}};if(Os){if(S=i,t?n&&un(t,d,3,[f(),y?[]:void 0,S]):f(),"sync"!==s)return i;{const e=fi();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(yi):yi;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(r||g||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(m&&m(),un(t,d,3,[e,_===yi?void 0:y&&_[0]===yi?[]:_,S]),_=e)}else k.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>oi(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new ye(f,i,C),I=ge(),w=()=>{k.stop(),I&&u(I.effects,k)};return t?n?x():_=k.run():"post"===s?oi(k.run.bind(k),d&&d.suspense):k.run(),b&&b.push(w),w}function _i(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?xi(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=ws(this),l=Si(r,i.bind(o),n);return s(),l}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ci(e,t,n)}));else if(I(e)){for(const o in e)Ci(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ci(e[o],t,n)}return e}function ki(e,t,n=o){const r=Cs(),i=O(t),s=R(t),l=Ii(e,t),c=Qt(((o,l)=>{let c,a,u;return vi((()=>{const n=e[t];L(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){if(!L(e,c))return;const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||(c=e,l());const d=n.set?n.set(e):e;r.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o:c,done:!1}:{done:!0}}},c}const Ii=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${R(t)}Modifiers`];function wi(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const s=t.startsWith("update:"),l=s&&Ii(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>y(e)?e.trim():e))),l.number&&(i=n.map(j)));let a=r[c=M(t)]||r[c=M(O(t))];!a&&s&&(a=r[c=M(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Ei(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Ei(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(h(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ti(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function Di(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,v=Mn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=fs(u.call(t,e,d,p,f,h,m)),b=l}else{const e=t;y=fs(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:Ai(l)}}catch(t){zi.length=0,dn(t,e,1),y=cs(qi)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Oi(b,i)),S=us(S,b,!1,!0))}return n.dirs&&(S=us(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Mn(v),y}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Oi=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ni(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Mi=0;const Li={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bi(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Fi(e,"onPending"),Fi(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),Hi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,os(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(f,h,n,o,r,null,i,s,l),Hi(d,h)))):(d.pendingId=Mi++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(f,h,n,o,r,null,i,s,l),Hi(d,h))):f&&os(p,f)?(c(f,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(f&&os(p,f))c(f,p,n,o,r,d,i,s,l),Hi(d,p);else if(Fi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Mi++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=Bi(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=$i(o?n.default:n),e.ssFallback=o?$i(n.fallback):cs(qi)}};function Fi(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Bi(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:Mi++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?f(r):i,0),kn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=f(r)),h(r,a,_,!0)),d||p(s,u,i,0)),Hi(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||kn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Fi(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;Fi(t,"onFallback");const s=f(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),Hi(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Rs(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:f(e.subTree),_,s,n),c&&g(c),Ri(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function $i(e){let t;if(v(e)){const n=Yi&&e._c;n&&(e._d=!1,Ki()),e=e(),n&&(e._d=!0,t=Gi,Ji())}if(h(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function ji(e,t){t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Hi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ri(o,r))}const Vi=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),qi=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),zi=[];let Gi=null;function Ki(e=!1){zi.push(Gi=e?null:[])}function Ji(){zi.pop(),Gi=zi[zi.length-1]||null}let Xi,Yi=1;function Qi(e){Yi+=e,e<0&&Gi&&(Gi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?Gi||r:null,Ji(),Yi>0&&Gi&&Gi.push(e),e}function es(e,t,n,o,r,i){return Zi(ls(e,t,n,o,r,i,!0))}function ts(e,t,n,o,r){return Zi(cs(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}function rs(e){Xi=e}const is=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,o=0,r=null,i=(e===Vi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&is(t),ref:t&&ss(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return l?(gs(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!s&&Gi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Gi.push(c),c}const cs=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Ao||(e=qi),ns(e)){const o=us(e,t,!0);return n&&gs(o,n),Yi>0&&!i&&Gi&&(6&o.shapeFlag?Gi[Gi.indexOf(e)]=o:Gi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=as(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!h(n)&&(n=a({},n)),t.style=z(n))}var s;return ls(e,t,n,o,r,y(e)?1:Pi(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function as(e){return e?Rt(e)||wr(e)?a({},e):e:null}function us(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?vs(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&is(a),ref:t&&t.ref?n&&i?h(i)?i.concat(ss(t)):[i,ss(t)]:ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Zn(u,c.clone(u)),u}function ds(e=" ",t=0){return cs(Ui,null,e,t)}function ps(e,t){const n=cs(Wi,null,e);return n.staticCount=t,n}function hs(e="",t=!1){return t?(Ki(),ts(qi,null,e)):cs(qi,null,e)}function fs(e){return null==e||"boolean"==typeof e?cs(qi):h(e)?cs(Vi,null,e.slice()):"object"==typeof e?ms(e):cs(Ui,null,String(e))}function ms(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:us(e)}function gs(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(h(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),gs(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||wr(t)?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else v(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nxs||Rn;let ks,Is;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ks=t("__VUE_INSTANCE_SETTERS__",(e=>xs=e)),Is=t("__VUE_SSR_SETTERS__",(e=>Os=e))}const ws=e=>{const t=xs;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Es=()=>{xs&&xs.scope.off(),ks(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Ds,As,Os=!1;function Ns(e,t=!1,n=!1){t&&Is(t);const{props:o,children:r}=e.vnode,i=Ts(e);!function(e,t,n,o=!1){const r={},i=Ir();e.propsDefaults=Object.create(null),Er(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:wt(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,o,i,t),Hr(e,r,n);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bs(e):null,r=ws(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(Es,Es),t)return i.then((n=>{Rs(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Rs(e,i,t)}else Ls(e,t)}(e,t):void 0;return t&&Is(!1),s}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Ls(e,n)}function Ps(e){Ds=e,As=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qo))}}const Ms=()=>!Ds;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const t=o.template||ar(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ds(t,l)}}e.render=o.render||i,As&&As(e)}{const t=ws(e);Te();try{!function(e){const t=ar(e),n=e.proxy,o=e.ctx;sr=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:k,render:I,renderTracked:w,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t){h(e)&&(e=hr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=It(t))}if(sr=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Hs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)cr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{_r(t,e[t])}))}function M(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&lr(d,e,"c"),M(vo,p),M(yo,f),M(bo,m),M(So,g),M(co,y),M(ao,b),M(wo,T),M(Io,w),M(ko,E),M(_o,x),M(xo,k),M(Co,D),h(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});I&&e.render===i&&(e.render=I),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Fs={get:(e,t)=>($e(e,0,""),e[t])};function Bs(e){return{attrs:new Proxy(e.attrs,Fs),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Mt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ho?Ho[n](e):void 0,has:(e,t)=>t in e||t in Ho})):e.proxy}function js(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Os);function Vs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!h(t)?ns(t)?cs(e,null,[t]):cs(e,t):cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),cs(e,t,n))}function Us(){}function qs(e,t,n,o){const r=n[o];if(r&&Ws(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function Ws(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gi&&Gi.push(e),!0}const zs="3.4.33",Gs=i,Ks={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Js=An,Xs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Ys={createComponentInstance:_s,setupComponent:Ns,renderComponentRoot:Di,setCurrentRenderingInstance:Mn,isVNode:ns,normalizeVNode:fs,getComponentPublicInstance:$s},Qs=null,Zs=null,el=null,tl="undefined"!=typeof document?document:null,nl=tl&&tl.createElement("template"),ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?tl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?tl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?tl.createElement(e,{is:n}):tl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>tl.createTextNode(e),createComment:e=>tl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{nl.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",il="animation",sl=Symbol("_vtc"),ll=(e,{slots:t})=>Vs(Kn,pl(e),t);ll.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},al=ll.props=a({},zn,cl),ul=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},dl=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function pl(e){const t={};for(const n in e)n in cl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[hl(e.enter),hl(e.leave)];{const t=hl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:I=b,onAppearCancelled:w=_}=t,E=(e,t,n)=>{ml(e,t?d:l),ml(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,ml(e,p),ml(e,f),ml(e,h),t&&t()},D=e=>(t,n)=>{const r=e?I:b,s=()=>E(t,e,n);ul(r,[t,s]),gl((()=>{ml(t,e?c:i),fl(t,e?d:l),dl(r)||yl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){ul(y,[e]),fl(e,i),fl(e,s)},onBeforeAppear(e){ul(k,[e]),fl(e,c),fl(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);fl(e,p),fl(e,h),xl(),gl((()=>{e._isLeaving&&(ml(e,p),fl(e,f),dl(x)||yl(e,o,v,n))})),ul(x,[e,n])},onEnterCancelled(e){E(e,!1),ul(_,[e])},onAppearCancelled(e){E(e,!0),ul(w,[e])},onLeaveCancelled(e){T(e),ul(C,[e])}})}function hl(e){return H(e)}function fl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[sl]||(e[sl]=new Set)).add(t)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[sl];n&&(n.delete(t),n.size||(e[sl]=void 0))}function gl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let vl=0;function yl(e,t,n,o){const r=e._endId=++vl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=bl(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${rl}Delay`),i=o(`${rl}Duration`),s=Sl(r,i),l=o(`${il}Delay`),c=o(`${il}Duration`),a=Sl(l,c);let u=null,d=0,p=0;return t===rl?s>0&&(u=rl,d=s,p=i.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?rl:il:null,p=u?u===rl?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===rl&&/\b(transform|all)(,|$)/.test(o(`${rl}Property`).toString())}}function Sl(e,t){for(;e.length_l(t)+_l(e[n]))))}function _l(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const Cl=Symbol("_vod"),kl=Symbol("_vsh"),Il={beforeMount(e,{value:t},{transition:n}){e[Cl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):wl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),wl(e,!0),o.enter(e)):o.leave(e,(()=>{wl(e,!1)})):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e[Cl]:"none",e[kl]=!t}const El=Symbol("");function Tl(e){const t=Cs();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Al(e,n)))},o=()=>{const o=e(t.proxy);Dl(t.subTree,o),n(o)};yo((()=>{gi(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Dl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Dl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Al(e.el,t);else if(e.type===Vi)e.children.forEach((e=>Dl(e,t)));else if(e.type===Wi){let{el:n,anchor:o}=e;for(;n&&(Al(n,t),n!==o);)n=n.nextSibling}}function Al(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Ol=/(^|;)\s*display\s*:/,Nl=/\s*!important$/;function Rl(e,t,n){if(h(n))n.forEach((n=>Rl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ml[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ml[t]=o;o=P(o);for(let n=0;nHl||(Vl.then((()=>Hl=0)),Hl=Date.now()),ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Wl(e,t,n){const o=to(e,t);class r extends Kl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Wl(e,t,Ac),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Dc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!h(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=h(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Dc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=cs(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Jl(e="$style"){{const t=Cs();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const Xl=new WeakMap,Yl=new WeakMap,Ql=Symbol("_moveCb"),Zl=Symbol("_enterCb"),ec={name:"TransitionGroup",props:a({},al,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cs(),o=qn();let r,i;return So((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[sl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=bl(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(tc),r.forEach(nc);const o=r.filter(oc);xl(),o.forEach((e=>{const n=e.el,o=n.style;fl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ql]=null,ml(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=pl(s);let c=s.tag||Vi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return h(t)?e=>F(t,e):t};function ic(e){e.target.composing=!0}function sc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lc=Symbol("_assign"),cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lc]=rc(r);const i=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[lc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",sc),Bl(e,"change",sc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[lc]=rc(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ac={deep:!0,created(e,t,n){e[lc]=rc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=fc(e),o=e.checked,r=e[lc];if(h(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(mc(e,o))}))},mounted:uc,beforeUpdate(e,t,n){e[lc]=rc(n),uc(e,t,n)}};function uc(e,{value:t,oldValue:n},o){e._modelValue=t,h(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,mc(e,!0)))}const dc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[lc]=rc(n),Bl(e,"change",(()=>{e[lc](fc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[lc]=rc(o),t!==n&&(e.checked=ie(t,o.props.value))}},pc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(fc(e)):fc(e)));e[lc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[lc]=rc(o)},mounted(e,{value:t,modifiers:{number:n}}){hc(e,t)},beforeUpdate(e,t,n){e[lc]=rc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||hc(e,t)}};function hc(e,t,n){const o=e.multiple,r=h(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(fc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function fc(e){return"_value"in e?e._value:e.value}function mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gc={created(e,t,n){yc(e,t,n,null,"created")},mounted(e,t,n){yc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){yc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){yc(e,t,n,o,"updated")}};function vc(e,t){switch(e){case"SELECT":return pc;case"TEXTAREA":return cc;default:switch(t){case"checkbox":return ac;case"radio":return dc;default:return cc}}}function yc(e,t,n,o,r){const i=vc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const bc=["ctrl","shift","alt","meta"],Sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>bc.some((n=>e[`${n}Key`]&&!t.includes(n)))},_c=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},kc=a({patchProp:(e,t,n,o,r,i)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[sl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Rl(o,t,"")}else for(const e in t)null==n[e]&&Rl(o,e,"");for(const e in n)"display"===e&&(i=!0),Rl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,i=Ol.test(n)}}else t&&e.removeAttribute("style");Cl in e&&(e[Cl]=i?o.display:"",e[kl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[$l]||(e[$l]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ul(),n}(o,r);Bl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!y(n))&&t in e}(e,t,o,s))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Fl(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Fl(e,t,o,s))}},ol);let Ic,wc=!1;function Ec(){return Ic||(Ic=ri(kc))}function Tc(){return Ic=wc?Ic:ii(kc),wc=!0,Ic}const Dc=(...e)=>{Ec().render(...e)},Ac=(...e)=>{Tc().hydrate(...e)},Oc=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Pc(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Nc=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Rc(t))},t};function Rc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){return y(e)?document.querySelector(e):e}let Mc=!1;const Lc=()=>{Mc||(Mc=!0,cc.getSSRProps=({value:e})=>({value:e}),dc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ac.getSSRProps=({value:e},t)=>{if(h(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=vc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Il.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Fc=Symbol(""),Bc=Symbol(""),$c=Symbol(""),jc=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),fa=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa={[Fc]:"Fragment",[Bc]:"Teleport",[$c]:"Suspense",[jc]:"KeepAlive",[Hc]:"BaseTransition",[Vc]:"openBlock",[Uc]:"createBlock",[qc]:"createElementBlock",[Wc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Kc]:"createTextVNode",[Jc]:"createStaticVNode",[Xc]:"resolveComponent",[Yc]:"resolveDynamicComponent",[Qc]:"resolveDirective",[Zc]:"resolveFilter",[ea]:"withDirectives",[ta]:"renderList",[na]:"renderSlot",[oa]:"createSlots",[ra]:"toDisplayString",[ia]:"mergeProps",[sa]:"normalizeClass",[la]:"normalizeStyle",[ca]:"normalizeProps",[aa]:"guardReactiveProps",[ua]:"toHandlers",[da]:"camelize",[pa]:"capitalize",[ha]:"toHandlerKey",[fa]:"setBlockTracking",[ma]:"pushScopeId",[ga]:"popScopeId",[va]:"withCtx",[ya]:"unref",[ba]:"isRef",[Sa]:"withMemo",[_a]:"isMemoSame"},Ca={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ka(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=Ca){return e&&(l?(e.helper(Vc),e.helper(Pa(e.inSSR,a))):e.helper(Ra(e.inSSR,a)),s&&e.helper(ea)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ia(e,t=Ca){return{type:17,loc:t,elements:e}}function wa(e,t=Ca){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Ca,key:y(e)?Ta(e,!0):e,value:t}}function Ta(e,t=!1,n=Ca,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Da(e,t=Ca){return{type:8,loc:t,children:e}}function Aa(e,t=[],n=Ca){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ca){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Na(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ca}}function Ra(e,t){return e||t?Wc:zc}function Pa(e,t){return e||t?Uc:qc}function Ma(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Ra(o,e.isComponent)),t(Vc),t(Pa(o,e.isComponent)))}const La=new Uint8Array([123,123]),Fa=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function $a(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||$a(e)}function Ha(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Xa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return $c;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Hc}}const Ya=/^\d|[^\$\w\xA0-\uFFFF]/,Qa=e=>!Ya.test(e),Za=/[A-Za-z_$\xA0-\uFFFF]/,eu=/[\.\?\w$\xA0-\uFFFF]/,tu=/\s+[.[]\s*|\s*[.[]\s+/g,nu=e=>{e=e.trim().replace(tu,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function fu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const mu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let vu=gu,yu=null,bu="",Su=null,_u=null,xu="",Cu=-1,ku=-1,Iu=0,wu=!1,Eu=null;const Tu=[],Du=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=La,this.delimiterClose=Fa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=La,this.delimiterClose=Fa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||$a(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Va.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Tu,{onerr:Ju,ontext(e,t){Pu(Nu(e,t),e,t)},ontextentity(e,t,n){Pu(e,t,n)},oninterpolation(e,t){if(wu)return Pu(Nu(e,t),e,t);let n=e+Du.delimiterOpen.length,o=t-Du.delimiterClose.length;for(;$a(bu.charCodeAt(n));)n++;for(;$a(bu.charCodeAt(o-1));)o--;let r=Nu(n,o);r.includes("&")&&(r=vu.decodeEntities(r,!1)),qu({type:5,content:Ku(r,!1,Wu(n,o)),loc:Wu(e,t)})},onopentagname(e,t){const n=Nu(e,t);Su={type:1,tag:n,ns:vu.getNamespace(n,Tu[0],vu.ns),tagType:0,props:[],children:[],loc:Wu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Nu(e,t);if(!vu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ju(24,Tu[0].loc.start.offset);for(let n=0;n<=e;n++)Mu(Tu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ju(2,t)},onattribend(e,t){if(Su&&_u){if(zu(_u.loc,t),0!==e)if(xu.includes("&")&&(xu=vu.decodeEntities(xu,!0)),6===_u.type)"class"===_u.name&&(xu=Uu(xu).trim()),1!==e||xu||Ju(13,t),_u.value={type:2,content:xu,loc:1===e?Wu(Cu,ku):Wu(Cu-1,ku+1)},Du.inSFCRoot&&"template"===Su.tag&&"lang"===_u.name&&xu&&"html"!==xu&&Du.enterRCDATA(Ha("{const r=t.start.offset+n;return Ku(e,!1,Wu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Au);if(u){c=c.replace(Au,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(_u.exp));let t=-1;"bind"===_u.name&&(t=_u.modifiers.indexOf("sync"))>-1&&Wa("COMPILER_V_BIND_SYNC",vu,_u.loc,_u.rawName)&&(_u.name="model",_u.modifiers.splice(t,1))}7===_u.type&&"pre"===_u.name||Su.props.push(_u)}xu="",Cu=ku=-1},oncomment(e,t){vu.comments&&qu({type:3,content:Nu(e,t),loc:Wu(e-4,t+3)})},onend(){const e=bu.length;for(let t=0;t64&&n<91||Xa(e)||vu.isBuiltInComponent&&vu.isBuiltInComponent(e)||vu.isNativeTag&&!vu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wa("COMPILER_INLINE_TEMPLATE",vu,n.loc)&&e.children.length&&(n.value={type:2,content:Nu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(e,t){let n=e;for(;bu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fu=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&nd(r,t)>=2){const n=od(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Qu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Qu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=Ta(e)),E.hoists.push(e);const t=Ta(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ca}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);id(e,n),t.hoistStatic&&Xu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Yu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Ma(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=ka(t,n(Fc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(lu))return;const i=[];for(let s=0;s`${xa[e]}: _${xa[e]}`;function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Zc:"component"===t?Xc:Qc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,f,a]),t),n(")"),d&&n(")"),u&&(n(", "),pd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(ld),n(i+"(",-2,e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),h(s)?ud(s,t):pd(s,t)):l&&pd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Qa(n.content);e&&s("("),hd(n,t),e&&s(")")}else s("("),pd(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),pd(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,pd(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(fa)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),pd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(fa)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function hd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function fd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ka(28,t.loc)),t.exp=Ta("true",!1,o)}if("if"===t.name){const r=vd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ka(30,e.loc)),n.removeNode();const r=vd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);id(r,n),i&&i(),n.currentNode=null}else n.onError(Ka(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=yd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=yd(t,s+e.branches.length-1,n)}}}))));function vd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ou(e,"for")?e.children:[e],userKey:ru(e,"key"),isTemplateIf:n}}function yd(e,t,n){return e.condition?Na(e.condition,bd(e,t,n),Aa(n.helper(Gc),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=Ea("key",Ta(`${t}`,!1,Ca,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return pu(e,r,n),e}{let t=64;return q[64],ka(n,o(Fc),wa([r]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===Sa?l.arguments[1].returns:l;return 13===t.type&&Ma(t,n),pu(t,r,n),e}var l}const Sd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(Ka(52,i.loc)),{props:[Ea(i,Ta("",!0,r))]};_d(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(da)}(${i.content})`:(i.children.unshift(`${n.helperString(da)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(i,"."),o.includes("attr")&&xd(i,"^")),{props:[Ea(i,s)]}},_d=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=Ta(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cd=sd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ka(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ka(32,t.loc));kd(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:cu(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const h=o&&o(p);return()=>{l.vFor--,h&&h()}}(e,t,n,(t=>{const i=Aa(o(ta),[t.source]),s=cu(e),l=ou(e,"memo"),c=ru(e,"key",!1,!0);c&&7===c.type&&!c.exp&&_d(c);const a=c&&(6===c.type?c.value?Ta(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=ka(n,o(Fc),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=au(e)?e:s&&1===e.children.length&&au(e.children[0])?e.children[0]:null;if(f?(c=f.codegenNode,s&&u&&pu(c,u,n)):h?c=ka(n,o(Fc),u?wa([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&pu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Vc),r(Pa(n.inSSR,c.isComponent))):r(Ra(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Vc),o(Pa(n.inSSR,c.isComponent))):o(Ra(n.inSSR,c.isComponent))),l){const e=Oa(Id(t.parseResult,[Ta("_cached")]));e.body={type:21,body:[Da(["const _memo = (",l.exp,")"]),Da(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(_a)}(_cached, _memo)) return _cached`]),Da(["const _item = ",c]),Ta("_item.memo = _memo"),Ta("return _item")],loc:Ca},i.arguments.push(e,Ta("_cache"),Ta(String(n.cached++)))}else i.arguments.push(Oa(Id(t.parseResult),c,!0))}}))}));function kd(e,t){e.finalized||(e.finalized=!0)}function Id({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ta("_".repeat(t+1),!1)))}([e,t,n,...o])}const wd=Ta("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ou(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Dd(e,t,n=Td){t.helper(va);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ou(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ja(e)&&(l=!0),i.push(Ea(e||Ta("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ea("default",i)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Ka(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const f=l?2:Od(e.children)?3:1;let m=wa(i.concat(Ea("_",Ta(f+"",!1))),r);return s.length&&(m=Aa(t.helper(oa),[m,Ia(s)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",Ta(String(n),!0))),wa(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),i=ru(e,"is",!1,!0);if(i)if(r||qa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ta(i.value.content,!0):(e=i.exp,e||(e=Ta("is",!1,i.loc))),e)return Aa(t.helper(Yc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=Xa(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(Xc),t.components.add(o),fu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Yc;let l,c,a,u,d,p=0,h=s||i===Bc||i===$c||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Md(e,t,void 0,r,s);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?Ia(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Qc),t.directives.add(e.name),n.push(fu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ta("true",!1,r);n.push(wa(e.modifiers.map((e=>Ea(e,t))),r))}return Ia(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(i===jc&&(h=!0,p|=1024),r&&i!==Bc&&i!==jc){const{slots:n,hasDynamicSlots:o}=Dd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&i!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Zu(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(d.push(wa(Ld(u),c)),u=[]),e&&d.push(e)},I=()=>{t.scopes.vFor>0&&u.push(Ea(Ta("ref_for",!0),Ta("true")))},w=({key:e,value:n})=>{if(Ja(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Zu(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?Aa(t.helper(ia),d,c):d[0]):u.length&&(D=wa(Ld(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),f||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(au(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Md(e,t,r,!1,!1);n=o,i.length&&t.onError(Ka(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Aa(t.helper(na),s,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(Ka(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ta(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(O(e)):`on:${e}`,!0,s.loc)}else l=Da([`${n.helperString(ha)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(ha)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=nu(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Da([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||Ta("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ou(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(fa),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Wd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ka(41,e.loc)),zd();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(Ka(44,o.loc)),zd();if(!s.trim()||!nu(s))return n.onError(Ka(42,o.loc)),zd();const c=r||Ta("modelValue",!0),a=r?Ja(r)?`onUpdate:${O(r.content)}`:Da(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Da([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Qa(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ja(r)?`${r.content}Modifiers`:Da([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,Ta(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Kd=(e,t)=>{qa("COMPILER_FILTERS",t)&&(5===e.type?Jd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Jd(e.exp,t)})))};function Jd(e,t){if(4===e.type)Xd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===s?(f=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(f,i).trim()),f=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==f&&g(),m.length){for(i=0;i{if(1===e.type){const n=ou(e,"memo");if(!n||Qd.has(e))return;return Qd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Ma(o,t),e.codegenNode=Aa(t.helper(Sa),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function ep(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ka(47)):o&&n(Ka(48)),t.cacheHandlers&&n(Ka(49)),t.scopeId&&!o&&n(Ka(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Du.reset(),Su=null,_u=null,xu="",Cu=-1,ku=-1,Tu.length=0,bu=e,vu=a({},gu),t){let e;for(e in t)null!=t[e]&&(vu[e]=t[e])}Du.mode="html"===vu.parseMode?1:"sfc"===vu.parseMode?2:0,Du.inXML=1===vu.ns||2===vu.ns;const n=t&&t.delimiters;n&&(Du.delimiterOpen=Ha(n[0]),Du.delimiterClose=Ha(n[1]));const o=yu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ca}}(0,e);return Du.parse(bu),o.loc=Wu(0,e.length),o.children=ju(o.children),yu=null,o}(e,r):e,[s,l]=[[qd,gd,Zd,Cd,Kd,$d,Pd,Ed,Vd],{on:Hd,bind:Sd,model:Wd}];return rd(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Wc,zc,Gc,Kc,Jc].filter((e=>u.includes(e))).map(cd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ad(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?pd(e.codegenNode,n):r("null"),h&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol("");var dp;let pp;dp={[tp]:"vModelRadio",[np]:"vModelCheckbox",[op]:"vModelText",[rp]:"vModelSelect",[ip]:"vModelDynamic",[sp]:"withModifiers",[lp]:"withKeys",[cp]:"vShow",[ap]:"Transition",[up]:"TransitionGroup"},Object.getOwnPropertySymbols(dp).forEach((e=>{xa[e]=dp[e]}));const hp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return pp||(pp=document.createElement("div")),t?(pp.innerHTML=`
            `,pp.children[0].getAttribute("foo")):(pp.innerHTML=e,pp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ap:"TransitionGroup"===e||"transition-group"===e?up:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},fp=(e,t)=>{const n=X(e);return Ta(JSON.stringify(n),!1,t,3)};function mp(e,t){return Ka(e,t)}const gp=n("passive,once,capture"),vp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=n("left,right"),bp=n("onkeyup,onkeydown,onkeypress",!0),Sp=(e,t)=>Ja(e)&&"onclick"===e.content.toLowerCase()?Ta(t,!0):4!==e.type?Da(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,_p=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ta("style",!0,t.loc),exp:fp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(53,r)),t.children.length&&(n.onError(mp(54,r)),t.children.length=0),{props:[Ea(Ta("innerHTML",!0,r),o||Ta("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(55,r)),t.children.length&&(n.onError(mp(56,r)),t.children.length=0),{props:[Ea(Ta("textContent",!0),o?Zu(o,n)>0?o:Aa(n.helperString(ra),[o],r):Ta("",!0))]}},model:(e,t,n)=>{const o=Wd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(mp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=op,l=!1;if("input"===r||i){const o=ru(t,"type");if(o){if(7===o.type)s=ip;else if(o.value)switch(o.value.content){case"radio":s=tp;break;case"checkbox":s=np;break;case"file":l=!0,n.onError(mp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=ip)}else"select"===r&&(s=rp);l||(o.needRuntime=n.helper(s))}else n.onError(mp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],i=[];for(let s=0;s{const{exp:o,loc:r}=e;return o||n.onError(mp(61,r)),{props:[],needRuntime:n.helper(cp)}}},kp=new WeakMap;Ps((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=kp.get(null!=e?e:o);return t||(t=Object.create(null),kp.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return ep(e,a({},hp,t,{nodeTransforms:[_p,...xp,...t.nodeTransforms||[]],directiveTransforms:a({},Cp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const Ip={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Hs((function(){return e.iconList})),appIsGettingData:Hs((function(){return e.appIsGettingData})),appIsPublishing:Hs((function(){return e.appIsPublishing})),isEditingMode:Hs((function(){return e.isEditingMode})),designData:Hs((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Hs((function(){return e.showFormDialog})),dialogTitle:Hs((function(){return e.dialogTitle})),dialogFormContent:Hs((function(){return e.dialogFormContent})),dialogButtonText:Hs((function(){return e.dialogButtonText})),formSaveFunction:Hs((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},wp="undefined"!=typeof document;const Ep=Object.assign;function Tp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ap(r)?r.map(e):e(r)}return n}const Dp=()=>{},Ap=Array.isArray,Op=/#/g,Np=/&/g,Rp=/\//g,Pp=/=/g,Mp=/\?/g,Lp=/\+/g,Fp=/%5B/g,Bp=/%5D/g,$p=/%5E/g,jp=/%60/g,Hp=/%7B/g,Vp=/%7C/g,Up=/%7D/g,qp=/%20/g;function Wp(e){return encodeURI(""+e).replace(Vp,"|").replace(Fp,"[").replace(Bp,"]")}function zp(e){return Wp(e).replace(Lp,"%2B").replace(qp,"+").replace(Op,"%23").replace(Np,"%26").replace(jp,"`").replace(Hp,"{").replace(Up,"}").replace($p,"^")}function Gp(e){return null==e?"":function(e){return Wp(e).replace(Op,"%23").replace(Mp,"%3F")}(e).replace(Rp,"%2F")}function Kp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Jp=/\/$/,Xp=e=>e.replace(Jp,"");function Yp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Kp(s)}}function Qp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Zp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!th(e[n],t[n]))return!1;return!0}function th(e,t){return Ap(e)?nh(e,t):Ap(t)?nh(t,e):e===t}function nh(e,t){return Ap(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const oh={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rh,ih;!function(e){e.pop="pop",e.push="push"}(rh||(rh={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(ih||(ih={}));const sh=/^[^#]+#/;function lh(e,t){return e.replace(sh,"#")+t}const ch=()=>({left:window.scrollX,top:window.scrollY});function ah(e,t){return(history.state?history.state.position-t:-1)+e}const uh=new Map;let dh=()=>location.protocol+"//"+location.host;function ph(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Qp(n,"")}return Qp(n,e)+o+r}function hh(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ch():null}}function fh(e){return"string"==typeof e||"symbol"==typeof e}const mh=Symbol("");var gh;function vh(e,t){return Ep(new Error,{type:e,[mh]:!0},t)}function yh(e,t){return e instanceof Error&&mh in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(gh||(gh={}));const bh="[^/]+?",Sh={sensitive:!1,strict:!1,start:!0,end:!0},_h=/[.+*?^${}()[\]/\\]/g;function xh(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Ch(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Ih={type:0,value:""},wh=/[a-zA-Z0-9_]/;function Eh(e,t,n){const o=function(e,t){const n=Ep({},Sh,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;cEp(e,t.meta)),{})}function Nh(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Rh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ph(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&zp(e))):[o&&zp(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Lh(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ap(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Fh=Symbol(""),Bh=Symbol(""),$h=Symbol(""),jh=Symbol(""),Hh=Symbol("");function Vh(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Uh(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(vh(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(vh(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function qh(e,t,n,o,r=e=>e()){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push(Uh(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&Uh(a,n,o,l,e,r)()}))))}}var s;return i}function Wh(e){const t=xr($h),n=xr(jh),o=Hs((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Hs((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Zp.bind(null,r));if(s>-1)return s;const l=Gh(e[t-2]);return t>1&&Gh(r)===l&&i[i.length-1].path!==l?i.findIndex(Zp.bind(null,e[t-2])):s})),i=Hs((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ap(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Hs((()=>r.value>-1&&r.value===n.matched.length-1&&eh(n.params,o.value.params)));return{route:o,href:Hs((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Dp):Promise.resolve()}}}const zh=to({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Wh,setup(e,{slots:t}){const n=It(Wh(e)),{options:o}=xr($h),r=Hs((()=>({[Kh(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Kh(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Gh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kh=(e,t,n)=>null!=e?e:null!=t?t:n;function Jh(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Xh=to({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=xr(Hh),r=Hs((()=>e.route||o.value)),i=xr(Bh,0),s=Hs((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Hs((()=>r.value.matched[s.value]));_r(Bh,Hs((()=>s.value+1))),_r(Fh,l),_r(Hh,r);const c=Vt();return bi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Zp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return Jh(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Vs(a,Ep({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return Jh(n.default,{Component:p,route:o})||p}}}),Yh={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
            \n

            {{ menuItem.title }}

            \n
            {{ menuItem.subtitle }}
            \n
            \n
            '};function Qh(e){return Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qh(e)}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ef(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
            \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:sf(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=sf(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

            '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var h=!1;for(var f in t.getQuery().terms)if("stepID"==t.getQuery().terms[f].id&&"="==t.getQuery().terms[f].operator&&"deleted"==t.getQuery().terms[f].match){h=!0;break}return h||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

            Searching for records...

            ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n \n
            '};function af(e){return af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},af(e)}function uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function df(e,t,n){return(t=function(e){var t=function(e){if("object"!=af(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=af(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==af(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pf,hf=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Hs((function(){return e.menuItem})),menuDirection:Hs((function(){return e.menuDirection})),menuItemList:Hs((function(){return e.menuItemList})),chosenHeaders:Hs((function(){return e.chosenHeaders})),menuIsUpdating:Hs((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n
            \n \n
            \n
            '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Yh},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
            \n

            Card Preview

            \n
            \n \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n Icon Selections\n
            \n \n
            \n
            \n
            '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Yh},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return ef({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(ef({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
            \n
            \n

            Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

            \n
            \n \n
            \n \n \n \n
            \n
            '},CustomSearch:cf},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

            Menu Editor

            "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
            \n Loading... \n \n
            \n
            \n

            \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

            \n

            This page is {{ enabled ? \'\' : \'not\'}} enabled

            \n \n
            TODO banner section
            \n
            \n \n \n
            \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
            '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
            \n Loading... \n \n
            \n

            Test View

            '}}],ff=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Nh(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ep({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=Eh(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Ah(d)&&i(e.name)),Rh(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:Dp}function i(e){if(fh(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;Ch(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Rh(t)&&0===Ch(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Ah(e)&&o.set(e.record.name,e)}return t=Nh({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw vh(1,{location:e});s=r.record.name,l=Ep(Th(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Th(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw vh(1,{location:e,currentLocation:t});s=r.record.name,l=Ep({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Oh(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Ph,o=e.stringifyQuery||Mh,r=e.history,i=Vh(),s=Vh(),l=Vh(),c=Ut(oh);let a=oh;wp&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Tp.bind(null,(e=>""+e)),d=Tp.bind(null,Gp),p=Tp.bind(null,Kp);function h(e,i){if(i=Ep({},i||c.value),"string"==typeof e){const o=Yp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return Ep(o,s,{params:p(s.params),hash:Kp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=Ep({},e,{path:Yp(n,e.path,i.path).path});else{const t=Ep({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ep({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const h=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ep({},e,{hash:(f=a,Wp(f).replace(Hp,"{").replace(Up,"}").replace($p,"^")),path:l.path}));var f;const m=r.createHref(h);return Ep({fullPath:h,hash:a,query:o===Mh?Lh(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?Yp(n,e,c.value.path):Ep({},e)}function m(e,t){if(a!==e)return vh(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),Ep({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=h(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(Ep(f(u),{state:"object"==typeof u?Ep({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Zp(t.matched[o],n.matched[r])&&eh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=vh(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>yh(e)?yh(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(yh(e,2))return y(Ep({replace:l},f(e.to),{state:"object"==typeof e.to?Ep({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Zp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=qh(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Uh(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),M(n).then((()=>{n=[];for(const o of i.list())n.push(Uh(o,e,t));return n.push(c),M(n)})).then((()=>{n=qh(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Uh(o,e,t))}));return n.push(c),M(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ap(o.beforeEnter))for(const r of o.beforeEnter)n.push(Uh(r,e,t));else n.push(Uh(o.beforeEnter,e,t));return n.push(c),M(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=qh(l,"beforeRouteEnter",e,t,S),n.push(c),M(n)))).then((()=>{n=[];for(const o of s.list())n.push(Uh(o,e,t));return n.push(c),M(n)})).catch((e=>yh(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===oh,a=wp?history.state:{};n&&(o||l?r.replace(e.fullPath,Ep({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let k;let I,w=Vh(),E=Vh();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return I||(I=!e,k||(k=r.listen(((e,t,n)=>{if(!P.listening)return;const o=h(e),i=v(o);if(i)return void y(Ep(i,{replace:!0}),o).catch(Dp);a=o;const s=c.value;var l,u;wp&&(l=ah(s.fullPath,n.delta),u=ch(),uh.set(l,u)),_(o,s).catch((e=>yh(e,12)?e:yh(e,2)?(y(e.to,o).then((e=>{yh(e,20)&&!n.delta&&n.type===rh.pop&&r.go(-1,!1)})).catch(Dp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!yh(e,8)?r.go(-n.delta,!1):n.type===rh.pop&&yh(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Dp)}))),w.list().forEach((([t,n])=>e?n(e):t())),w.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!wp||!i)return Promise.resolve();const s=!o&&function(e){const t=uh.get(e);return uh.delete(e),t}(ah(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return fh(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:g,replace:function(e){return g(Ep(f(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return I&&c.value!==oh?Promise.resolve():new Promise(((e,t)=>{w.add([e,t])}))},install(e){e.component("RouterLink",zh),e.component("RouterView",Xh),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),wp&&!N&&c.value===oh&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in oh)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide($h,this),e.provide(jh,wt(t)),e.provide(Hh,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=oh,k&&k(),k=null,c.value=oh,N=!1,I=!1),n()}}};function M(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((pf=location.host?pf||location.pathname+location.search:"").includes("#")||(pf+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ph(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:dh()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ep({},r.value,t.state,{forward:e,scroll:ch()});i(s.current,s,!0),i(e,Ep({},hh(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ep({},t.state,hh(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(wp){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ph(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:rh.pop,direction:u?u>0?ih.forward:ih.back:ih.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Ep({},e.state,{scroll:ch()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=Ep({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:lh.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(pf)),routes:hf});const mf=ff;var gf=Oc(Ip);gf.use(mf),gf.mount("#site-designer-app")})(); \ No newline at end of file diff --git a/docker/vue-app/src/common/components/LeafFormDialog.js b/docker/vue-app/src/common/components/LeafFormDialog.js index 6229653b0..42a274822 100644 --- a/docker/vue-app/src/common/components/LeafFormDialog.js +++ b/docker/vue-app/src/common/components/LeafFormDialog.js @@ -10,6 +10,7 @@ export default { elModal: null, elBackground: null, elClose: null, + lastFocus: null, } }, inject: [ @@ -19,6 +20,9 @@ export default { 'dialogButtonText', 'lastModalTab' ], + created(){ + this.lastFocus = document.activeElement || null; + }, mounted() { this.elBody = document.querySelector('body'); this.elModal = document.getElementById(this.modalElementID); @@ -40,6 +44,9 @@ export default { }, beforeUnmount() { window.removeEventListener('resize', this.checkSizes); + if(this.lastFocus !== null) { + this.lastFocus.focus(); + } }, methods: { checkSizes() { diff --git a/docker/vue-app/src/form_editor/LEAF_FormEditor.scss b/docker/vue-app/src/form_editor/LEAF_FormEditor.scss index 7737cf9ff..5cf013ccd 100644 --- a/docker/vue-app/src/form_editor/LEAF_FormEditor.scss +++ b/docker/vue-app/src/form_editor/LEAF_FormEditor.scss @@ -490,7 +490,7 @@ table[class$="SelectorTable"] th { cursor: move; position: absolute; padding: 0; - border: 1px solid $BG_Pearl; + border: 1px solid $BG_Pearl !important; border-radius: 4px 0 0 4px; width: 1rem; height: 100%; @@ -514,23 +514,23 @@ table[class$="SelectorTable"] th { cursor: pointer; width: 0; height: 0; + padding: 0; background-color: transparent; - border-radius: 2px; - border: 7px solid transparent; + border: 7.5px solid transparent; &.up { - border-bottom: 12px solid $BG-DarkNavy; + border-bottom: 14px solid $BG-DarkNavy; border-top: 2px; &:hover, &:focus, &:active { outline: none !important; - border-bottom: 12px solid $USWDS_Cyan; + border-bottom: 14px solid $USWDS_Cyan; } } &.down { - border-top: 12px solid $BG-DarkNavy; + border-top: 14px solid $BG-DarkNavy; border-bottom: 2px; &:hover, &:focus, &:active { outline: none !important; - border-top: 12px solid $USWDS_Cyan; + border-top: 14px solid $USWDS_Cyan; } } } @@ -669,12 +669,11 @@ table[class$="SelectorTable"] th { > div { display: flex; align-items: center; - gap: 3px; + gap: 4px 5px; min-width: 260px; } button { padding: 4px; - margin: 2px; font-weight: normal; } img { diff --git a/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js b/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js index 0a55024a4..8adbe0b09 100644 --- a/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js +++ b/docker/vue-app/src/form_editor/components/form_editor_view/FormQuestionDisplay.js @@ -50,7 +50,7 @@ export default { const page = this.depth === 0 ? `
            ${this.formPage + 1}
            `: ''; const contentRequired = this.required ? `* Required` : ''; const shortLabel = (this.formNode?.description || '') !== '' && !this.previewMode ? ` (${this.formNode.description})` : ''; - const staple = this.depth === 0 && this.formNode.categoryID !== this.focusedFormID ? `📌 ` : ''; + const staple = this.depth === 0 && this.formNode.categoryID !== this.focusedFormID ? `` : ''; const name = this.formNode.name.trim() !== '' ? this.formNode.name.trim() : '[ blank ]'; return `${page}${staple}${name}${shortLabel}${contentRequired}`; }, @@ -69,20 +69,19 @@ export default {
            -
            -
            -
            + +
            + @click.stop="moveListItem($event, indicatorID, false)"> +
            @@ -96,7 +95,7 @@ export default { :style="{ 'grid-area': depth === 0 ? '1' : '1 / 1 / 3 / 2', 'height': depth === 0 ? 'auto' : '100%' }" @click.exact="editQuestion(parseInt(indicatorID))" :title="'edit indicator ' + indicatorID"> - ✏️  {{ depth === 0 ? 'Edit Header' : 'Edit' }} + {{ depth === 0 ? 'Edit Header' : 'Edit' }}
            - {if isset($isAdmin)} -
          8. OC Admin Panel
          9. - {/if} diff --git a/LEAF_Nexus/templates/menu.tpl b/LEAF_Nexus/templates/menu.tpl index 1958d94f3..adb93433c 100644 --- a/LEAF_Nexus/templates/menu.tpl +++ b/LEAF_Nexus/templates/menu.tpl @@ -5,6 +5,9 @@ Main Page {/if} + {if isset($isAdmin)} +
          10. OC Admin Panel
          11. + {/if}
          12. - {if isset($isAdmin)} -
          13. OC Admin Panel
          14. - {/if} diff --git a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css index f9a616fa3..716846028 100644 --- a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css +++ b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.css @@ -1 +1 @@ -body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#vue-formeditor-app a.btn-general,#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal;text-decoration:none}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#vue-formeditor-app a.btn-general:not(.disabled):hover,#vue-formeditor-app a.btn-general:not(.disabled):focus,#vue-formeditor-app a.btn-general:not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,a.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,a.btn-general:not(.disabled):hover,a.btn-general:not(.disabled):focus,a.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,a.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,a.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,a.btn-general a,a.btn-general a:visited,a.btn-general a:active,a.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem;border:0;background-color:rgba(0,0,0,0)}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}#history-slice td{word-break:break-word}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}nav#top-menu-nav{width:100%}nav#top-menu-nav ul{display:flex;justify-content:center;align-items:center;justify-content:flex-start;color:#252f3e;background-color:#e8f2ff;border-bottom:1px solid #252f3e;position:relative;z-index:10;margin-bottom:1rem}nav#top-menu-nav li{display:flex;justify-content:center;align-items:center;position:relative;height:32px;font-size:14px;font-weight:bolder}nav#top-menu-nav li:not(:last-child)::after{content:"";position:absolute;right:0;display:block;height:50%;border-radius:2px;width:2px;background-color:#000}nav#top-menu-nav li button,nav#top-menu-nav li a{margin:0;padding-right:.4rem;display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;text-decoration:inherit;color:inherit;width:100%;height:100%;border:2px solid rgba(0,0,0,0)}nav#top-menu-nav li button:hover,nav#top-menu-nav li button:focus,nav#top-menu-nav li button:active,nav#top-menu-nav li a:hover,nav#top-menu-nav li a:focus,nav#top-menu-nav li a:active{border:2px solid #2491ff;outline:none !important;background-color:#005ea2;color:#fff}nav#top-menu-nav li span[role=img]{margin-left:.25rem}#page_breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:.125rem}#form_browser_tables h3{color:#000}#form_browser_tables table{width:100%;background-color:#fff;border-collapse:collapse;border:1px solid #252f3e;border-radius:2px;margin-bottom:2rem}#form_browser_tables table td,#form_browser_tables table th{padding:.25rem .5rem;border:1px solid #252f3e}#form_browser_tables table td a,#form_browser_tables table th a{padding:.25rem .5rem;display:flex;height:100%;align-items:center;color:inherit;border:2px solid rgba(0,0,0,0)}#form_browser_tables table td a:hover,#form_browser_tables table td a:focus,#form_browser_tables table td a:active,#form_browser_tables table th a:hover,#form_browser_tables table th a:focus,#form_browser_tables table th a:active{background-color:#e8f2ff;border:2px solid #2491ff !important}#form_browser_tables table td.form-name{padding:0}#form_browser_tables table th{background-color:#252f3e;color:#fff;border:1px solid #000}#form_browser_tables table tr:not(.header-row){color:#000;border-bottom:1px solid #252f3e}#form_browser_tables table tr.sub-row{color:#333;background-color:#f6f6ff;font-size:85%}#form_browser_tables table tr.sub-row .form-name{padding-left:.75rem}#form_browser_tables table .need-to-know-enabled{display:flex;justify-content:center;align-items:center;color:#c00;font-size:12px}div[class$=SelectorBorder]{display:flex}div[class$=SelectorBorder] div{display:flex;justify-content:center;align-items:center}div[class$=SelectorBorder] input{width:100%;border:1px solid #bbb}table[class$=SelectorTable] th{color:#252f3e}#advanced_options_dialog_content{min-height:50px}#advanced_options_dialog_content fieldset{min-width:700px;padding:.5em;margin:0}#advanced_options_dialog_content fieldset table.table{border-collapse:collapse;margin:0;width:100%}#advanced_options_dialog_content fieldset>div.save_code{display:flex;justify-content:space-between;align-items:flex-end}#advanced_options_dialog_content fieldset>div.save_code img{width:16px;height:16px}#indicator-editing-dialog-content>div{margin-bottom:2rem}#indicator-editing-dialog-content button{font-size:80%}#indicator-editing-dialog-content input,#indicator-editing-dialog-content select{min-height:24px}#indicator-editing-dialog-content #name{width:100%;margin-bottom:.4rem;padding:.2rem .4rem;display:block}#indicator-editing-dialog-content #description,#indicator-editing-dialog-content #indicatorType,#indicator-editing-dialog-content #defaultValue,#indicator-editing-dialog-content #indicatorMultiAnswer{width:100%;max-width:100%}#indicator-editing-dialog-content #formatDetails{margin:.5rem 0}#indicator-editing-dialog-content #indicator-editing-attributes{position:relative;margin-top:1.5rem;padding:0;min-width:-moz-fit-content;min-width:fit-content}#indicator-editing-dialog-content #indicator-editing-attributes .attribute-row{display:flex;align-items:stretch;justify-content:flex-start;margin:1rem 0}#indicator-editing-dialog-content #indicator-editing-attributes #archived-warning,#indicator-editing-dialog-content #indicator-editing-attributes #deletion-warning{position:absolute;right:0;top:0;color:#a00;font-size:90%}#indicator-editing-dialog-content #indicator-editing-attributes #indicatorPrivileges{line-height:1.4}#indicator-editing-dialog-content div.cell{width:200px;min-width:200px;text-align:center;border:1px gray solid;padding:10px;vertical-align:top;display:table-cell}#indicator-editing-dialog-content div.cell span.columnNumber{display:flex;justify-content:center;align-items:center;margin-bottom:1rem;font-weight:bolder}#indicator-editing-dialog-content div.cell input,#indicator-editing-dialog-content div.cell select{width:100%;margin-bottom:1rem}#edit-properties-panel{padding:0;position:relative;display:flex;margin-bottom:.75rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:hidden}#edit-properties-panel>div{min-width:400px;padding:.75rem;display:flex;flex-direction:column;width:50%}#edit-properties-panel input,#edit-properties-panel select{border:1px inset #dde;border-radius:2px;line-height:normal;min-height:24px}#edit-properties-panel input{padding-left:.4em}#edit-properties-panel #edit-properties-description{display:flex;flex-direction:column;height:100%;align-self:center;border-right:1px solid #252f3e;min-width:400px}#edit-properties-panel #edit-properties-description #categoryName{width:100%;margin-bottom:1rem}#edit-properties-panel #edit-properties-description textarea{width:100%;height:100%;padding:.2rem .5rem;border:1px inset #dde;border-radius:2px;resize:none}#edit-properties-panel #edit-properties-description span{margin-left:auto;font-size:80%;align-self:flex-end}#edit-properties-panel .form-id{position:absolute;right:.75rem;bottom:1px;font-size:.75rem}#edit-properties-panel #editFormPermissions:hover,#edit-properties-panel #editFormPermissions:focus,#edit-properties-panel #editFormPermissions:active span{color:#fff}#edit-properties-panel .panel-properties{flex-wrap:wrap;gap:.5rem 1rem;display:flex;margin-top:1rem;height:100%}#edit-properties-panel .panel-properties input,#edit-properties-panel .panel-properties select{margin-left:3px}#edit-properties-panel .panel-properties input[type=number]{width:50px}#edit-properties-panel .panel-properties label{margin-bottom:0}#edit-properties-panel .panel-properties #workflow_info{display:flex;gap:2px;align-items:center}#edit-properties-panel .panel-properties #workflow_info #view_workflow{font-size:14px;height:26px}#form_properties_last_update{color:#005ea2;font-size:90%;background-color:rgba(0,0,0,0);border:2px solid rgba(0,0,0,0)}#history-slice td{font-size:14px !important}#history-page-buttons button#next,#history-slice button#prev{width:135px}#form_index_and_editing{display:flex;gap:1rem}#form_index_display{margin-top:.5rem;position:relative;padding:.875rem .75rem;width:330px;flex:0 0 330px;align-self:flex-start;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);max-height:90vh;overflow-y:auto}#form_index_display button.preview{width:134px;margin-bottom:1rem}#form_index_display ul li.form_menu_preview{padding:.5rem 0}#form_index_display ul li.form_menu_preview:not(:last-child){border-bottom:1px solid #f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li{min-height:46px;border:2px solid #f0f0f0;border-radius:2px}#form_index_display ul[id^=layoutFormRecords_]>li:not(:last-child){margin-bottom:1rem}#form_index_display ul[id^=layoutFormRecords_]>li button.layout-listitem{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;border:0;background-clip:padding-box;overflow:hidden;border-radius:0;padding:0 .5rem;color:#252f3e;background-color:#f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li.selected button.layout-listitem{color:#fff;background-color:#005ea2;cursor:default}#form_index_display div.internal_forms{padding:.75rem;padding-top:0}#form_index_display ul[id^=internalFormRecords_]{border-left:4px solid #f2f2f6;padding-top:.75rem}#form_index_display ul[id^=internalFormRecords_]>li:not(:last-child){margin-bottom:.5rem}#form_index_display ul[id^=internalFormRecords_]>li button{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;overflow:hidden;border:2px solid rgba(0,0,0,0);border-radius:1px}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse){background-color:#f2f2f6}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse).selected{cursor:auto;color:#fff;background-color:#005ea2;border:2px solid #2491ff}#form_index_display ul[id^=internalFormRecords_]>li button:hover,#form_index_display ul[id^=internalFormRecords_]>li button:focus,#form_index_display ul[id^=internalFormRecords_]>li button:active{border:2px solid #2491ff;outline:none !important}#form_index_display button#indicator_toolbar_toggle,#form_index_display button[id^=addInternalUse_],#form_index_display button[id^=addStaple_]{margin-bottom:1rem;height:2.25rem;width:100%;border:2px solid #005ea2;justify-content:flex-start}#form_entry_and_preview{position:relative;top:0;display:flex;flex-direction:column;align-self:flex-start;width:100%;min-width:420px;padding:0;background-color:rgba(0,0,0,0);border-radius:4px}#form_entry_and_preview ul[id^=base_drop_area]{position:relative;padding:1px 0}#form_entry_and_preview ul[id^=base_drop_area].entered-drop-zone,#form_entry_and_preview ul[id^=base_drop_area] ul.entered-drop-zone{background-color:rgba(0,0,25,.15)}#form_entry_and_preview ul[id^=base_drop_area] ul[id^=drop_area_parent_]{position:relative}#form_entry_and_preview ul[id^=base_drop_area] ul.form-index-listing-ul{margin:0;display:flex;flex-direction:column;background-clip:content-box;min-height:8px}#form_entry_and_preview ul[id^=base_drop_area] li{position:relative;margin:.375rem 0}#form_entry_and_preview ul[id^=base_drop_area] li:first-child{margin-top:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li:last-child{margin-bottom:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button{cursor:move;position:absolute;padding:0;border:1px solid #f2f2f6 !important;border-radius:4px 0 0 4px;width:1rem;height:100%;left:0;top:0}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container{display:flex;justify-content:center;align-items:center;cursor:move;position:absolute;width:1rem;left:0;top:0;flex-direction:column;gap:.625rem}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_drag{opacity:.6}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move{display:flex;justify-content:center;align-items:center;cursor:pointer;width:0;height:0;padding:0;background-color:rgba(0,0,0,0);border:7.5px solid rgba(0,0,0,0)}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up{border-bottom:14px solid #162e51;border-top:2px}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up:hover,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up:focus,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up:active{outline:none !important;border-bottom:14px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down{border-top:14px solid #162e51;border-bottom:2px}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down:hover,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down:focus,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down:active{outline:none !important;border-top:14px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area]>li{background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);margin-bottom:1.25rem}#form_entry_and_preview .form_page{display:inline-flex;justify-content:center;align-items:center;font-weight:bold;color:#fff;background-color:#000;font-size:1.5rem;height:2.25rem;padding:.2em 9px;border-radius:3px;margin-right:.4rem}#form_entry_and_preview div.printformblock{height:auto;position:relative;break-inside:avoid;height:auto;max-height:none}#form_entry_and_preview div.printformblock div.printResponse{position:relative;padding:0;padding-left:1rem;float:none;border-radius:4px;background-color:#fff}#form_entry_and_preview div.printformblock div.printResponse.form-header,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header{border-top:.3125rem solid #000}#form_entry_and_preview div.printformblock div.printResponse.form-header>.form_editing_area,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>.form_editing_area{border-radius:4px}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>ul{padding:.5em}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header li{margin:0}#form_entry_and_preview div.printformblock div.printResponse.preview{border:0;padding-left:0}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview){margin-left:.5rem;border:1px solid #c1c1c1;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);transition:box-shadow .5s}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview):hover{box-shadow:1px 1px 10px 5px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview{margin-top:.5rem;background-color:#fff;border-radius:4px;padding:.75rem;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview button{border:2px dashed #c5c5d7;width:100%;height:2rem}#form_entry_and_preview button.new_section_question{height:2rem;width:100%;border:2px dashed #c5c5d7}#form_entry_and_preview .form_editing_area{display:flex;flex-direction:column;margin-bottom:.25rem;background-color:#fff}#form_entry_and_preview .form_editing_area .name_and_toolbar{width:100%}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header{font-weight:bolder;background-color:#e0e0e0;border-radius:0}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header .indicator-name-preview{padding:.5em}#form_entry_and_preview .form_editing_area .name_and_toolbar:not(.preview){min-height:60px}#form_entry_and_preview .form_editing_area .name_and_toolbar button{border:1px solid #1476bd}#form_entry_and_preview .form_editing_area .name_and_toolbar button:hover,#form_entry_and_preview .form_editing_area .name_and_toolbar button:focus,#form_entry_and_preview .form_editing_area .name_and_toolbar button:active{border:1px solid #2491ff !important;outline:1px solid #2491ff}#form_entry_and_preview .form_editing_area .indicator-name-preview{padding:.25rem .25rem .75rem .5rem;width:100%}#form_entry_and_preview .form_editing_area .indicator-name-preview .required-sensitive{color:#a00;margin-left:.4em}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]{float:right;margin-left:.25rem;padding:.25rem;border-radius:3px;display:flex;flex-direction:column;align-items:stretch;font-size:90%;gap:3px 2px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]>div{display:flex;align-items:center;gap:4px 5px;min-width:260px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] button{padding:4px;font-weight:normal}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] img{width:16px;height:16px}#form_entry_and_preview .form_editing_area .format_preview{padding:.5rem .25rem .75rem .5rem}#form_entry_and_preview .form_editing_area .format_preview .text_input_preview{display:inline-block;width:75%;font-size:1.3em;font-family:monospace;background-color:#fff;border:1px solid gray;padding:.25em}#form_entry_and_preview .form_editing_area .format_preview .textarea_input_preview{width:75%;padding:.5em;font-size:1.3em;font-family:monospace}#form_entry_and_preview .form_editing_area .format_preview div[id*=textarea_format_button_],#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box,#form_entry_and_preview .form_editing_area .format_preview .choices,#form_entry_and_preview .form_editing_area .format_preview fieldset{width:75%}#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box{margin-left:0}#form_entry_and_preview .form_editing_area .format_preview div.tableinput{overflow-x:auto;max-width:900px}#form_entry_and_preview .form_editing_area .format_preview .employeeSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .groupSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .positionSelectorInput{margin-bottom:.5em;width:75%}#form_entry_and_preview .form_editing_area .format_preview div[class*=SelectorBorder]{background-color:rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area .format_preview tr[class*=Selector]:hover{background-color:#e1f3f8}#condition_editor_dialog_content{min-width:700px;max-width:900px;margin:auto;background-color:#fff}#condition_editor_dialog_content #ifthen_deletion_dialog{margin-bottom:-0.75rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options{display:flex;justify-content:space-between;margin-top:2rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options button{width:120px}#condition_editor_dialog_content #savedConditionsLists{padding-bottom:.5em}#condition_editor_dialog_content #savedConditionsLists ul{margin-bottom:1rem}#condition_editor_dialog_content #savedConditionsLists button.btn_remove_condition{width:1.75em}#condition_editor_dialog_content #outcome_select{max-width:700px}#condition_editor_dialog_content #condition_editor_inputs>div{padding:1rem 0}#condition_editor_dialog_content #condition_editor_inputs>div .choices__inner{width:100%;max-width:700px}#condition_editor_dialog_content #if-then-setup{display:flex;max-width:700px;gap:.75rem;align-items:center;min-height:60px;padding-bottom:0}#condition_editor_dialog_content #if-then-setup>select,#condition_editor_dialog_content #if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content #if-then-setup input{width:35%;margin:0}#condition_editor_dialog_content #if-then-setup #operator_select{width:25%}#condition_editor_dialog_content #if-then-setup>div.crosswalks{display:flex;flex-wrap:wrap;gap:1rem 2rem;max-width:600px}#condition_editor_dialog_content #if-then-setup .choices__inner{max-width:300px}#condition_editor_dialog_content select,#condition_editor_dialog_content input:not(.choices__input){font-size:1rem;padding:2px;text-overflow:ellipsis;width:100%;border:1px inset gray}#condition_editor_dialog_content select:not(:last-child),#condition_editor_dialog_content input:not(.choices__input):not(:last-child){margin-bottom:1em}#condition_editor_dialog_content li.savedConditionsCard{display:flex;align-items:center;margin-bottom:.5rem}#condition_editor_dialog_content button.btnSavedConditions{display:block;width:100%;text-align:left;font-weight:normal;background-color:#fff;padding:6px;border:1px outset #005ea2;box-shadow:1px 1px 6px rgba(0,0,25,.5);border-radius:3px;margin-right:1rem;white-space:normal;max-width:700px;overflow:hidden;transition:box-shadow .1s ease}#condition_editor_dialog_content button.btnSavedConditions.isOrphan{background-color:#d8d8d8;color:#000;border:1px solid #000}#condition_editor_dialog_content button.btnSavedConditions:hover:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:focus:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:active:not(.isOrphan){color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content button.btn-confirm.new{padding:4px 6px}#condition_editor_dialog_content .changesDetected{color:#c80000}#condition_editor_dialog_content .selectedConditionEdit .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:hover .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:focus .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:active .changesDetected{color:#fff}#condition_editor_dialog_content button.selectedConditionEdit{color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content .btn_remove_condition{background-color:#922;border:1px solid #922;color:#fff}#condition_editor_dialog_content .btn_remove_condition:hover,#condition_editor_dialog_content .btn_remove_condition:active,#condition_editor_dialog_content .btn_remove_condition:focus{border:1px solid #000 !important;background-color:#600}#condition_editor_dialog_content .ifthen_label{font-weight:bolder;color:#005ea2}@media only screen and (max-width: 600px){#leaf_dialog_content{min-width:400px}#vue-formeditor-app{min-width:400px}#vue-formeditor-app>div{flex-direction:column}#vue-formeditor-app main>section{margin:0;padding:0}#vue-formeditor-app nav#top-menu-nav{width:100%}#vue-formeditor-app nav#top-menu-nav ul{flex-direction:column;height:fit-content}#vue-formeditor-app nav#top-menu-nav ul li{width:100%;height:fit-content;flex-direction:column}#vue-formeditor-app nav#top-menu-nav ul li::after{content:"";background-color:rgba(0,0,0,0)}#vue-formeditor-app nav#top-menu-nav ul li button,#vue-formeditor-app nav#top-menu-nav ul li a{height:36px;padding:0;border-radius:0;justify-content:center !important}#vue-formeditor-app nav#top-menu-nav ul li button span,#vue-formeditor-app nav#top-menu-nav ul li a span{margin-left:10px}#vue-formeditor-app #secure_forms_info{display:flex;flex-wrap:wrap;justify-content:space-between}#vue-formeditor-app #edit-properties-panel{flex-direction:column;border-radius:0}#vue-formeditor-app #edit-properties-panel>div{width:100%}#vue-formeditor-app #edit-properties-panel #edit-properties-description{border-right:0;border-bottom:1px solid #252f3e}#vue-formeditor-app #internalFormRecordsDisplay{min-width:100%}#vue-formeditor-app #form_index_and_editing{flex-direction:column;gap:1.25rem}#vue-formeditor-app #form_index_and_editing>div{border-radius:0}#vue-formeditor-app #form_index_and_editing #form_index_display{width:100%;flex:0 0 100%}#vue-formeditor-app #form_index_and_editing .tableinput{max-width:580px}#condition_editor_dialog_content{width:100%;min-width:400px;border:0}#condition_editor_dialog_content div#if-then-setup{flex-direction:column}#condition_editor_dialog_content div#if-then-setup>select,#condition_editor_dialog_content div#if-then-setup>h3,#condition_editor_dialog_content div#if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content div#if-then-setup #operator_select{width:100%}#condition_editor_dialog_content div#if-then-setup .choices__inner{max-width:100%}} +body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#vue-formeditor-app a.btn-general,#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal;text-decoration:none}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#vue-formeditor-app a.btn-general:not(.disabled):hover,#vue-formeditor-app a.btn-general:not(.disabled):focus,#vue-formeditor-app a.btn-general:not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,a.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,a.btn-general:not(.disabled):hover,a.btn-general:not(.disabled):focus,a.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,a.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,a.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,a.btn-general a,a.btn-general a:visited,a.btn-general a:active,a.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:99;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:100;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem;border:0;background-color:rgba(0,0,0,0)}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}#history-slice td{word-break:break-word}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}nav#top-menu-nav{width:100%}nav#top-menu-nav ul{display:flex;justify-content:center;align-items:center;justify-content:flex-start;color:#252f3e;background-color:#e8f2ff;border-bottom:1px solid #252f3e;position:relative;z-index:10;margin-bottom:1rem}nav#top-menu-nav li{display:flex;justify-content:center;align-items:center;position:relative;height:32px;font-size:14px;font-weight:bolder}nav#top-menu-nav li:not(:last-child)::after{content:"";position:absolute;right:0;display:block;height:50%;border-radius:2px;width:2px;background-color:#000}nav#top-menu-nav li button,nav#top-menu-nav li a{margin:0;padding-right:.4rem;display:flex;justify-content:center;align-items:center;position:relative;background-color:inherit;text-decoration:inherit;color:inherit;width:100%;height:100%;border:2px solid rgba(0,0,0,0)}nav#top-menu-nav li button:hover,nav#top-menu-nav li button:focus,nav#top-menu-nav li button:active,nav#top-menu-nav li a:hover,nav#top-menu-nav li a:focus,nav#top-menu-nav li a:active{border:2px solid #2491ff;outline:none !important;background-color:#005ea2;color:#fff}nav#top-menu-nav li span[role=img]{margin-left:.25rem}#page_breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:.125rem}#form_browser_tables h3{color:#000}#form_browser_tables table{width:100%;background-color:#fff;border-collapse:collapse;border:1px solid #252f3e;border-radius:2px;margin-bottom:2rem}#form_browser_tables table td,#form_browser_tables table th{padding:.25rem .5rem;border:1px solid #252f3e}#form_browser_tables table td a,#form_browser_tables table th a{padding:.25rem .5rem;display:flex;height:100%;align-items:center;color:inherit;border:2px solid rgba(0,0,0,0)}#form_browser_tables table td a:hover,#form_browser_tables table td a:focus,#form_browser_tables table td a:active,#form_browser_tables table th a:hover,#form_browser_tables table th a:focus,#form_browser_tables table th a:active{background-color:#e8f2ff;border:2px solid #2491ff !important}#form_browser_tables table td.form-name{padding:0}#form_browser_tables table th{background-color:#252f3e;color:#fff;border:1px solid #000}#form_browser_tables table tr:not(.header-row){color:#000;border-bottom:1px solid #252f3e}#form_browser_tables table tr.sub-row{color:#333;background-color:#f6f6ff;font-size:85%}#form_browser_tables table tr.sub-row .form-name{padding-left:.75rem}#form_browser_tables table .need-to-know-enabled{display:flex;justify-content:center;align-items:center;color:#c00;font-size:12px}div[class$=SelectorBorder]{display:flex}div[class$=SelectorBorder] div{display:flex;justify-content:center;align-items:center}div[class$=SelectorBorder] input{width:100%;border:1px solid #bbb}table[class$=SelectorTable] th{color:#252f3e}#advanced_options_dialog_content{min-height:50px}#advanced_options_dialog_content fieldset{min-width:700px;padding:.5em;margin:0}#advanced_options_dialog_content fieldset table.table{border-collapse:collapse;margin:0;width:100%}#advanced_options_dialog_content fieldset>div.save_code{display:flex;justify-content:space-between;align-items:flex-end}#advanced_options_dialog_content fieldset>div.save_code img{width:16px;height:16px}#indicator-editing-dialog-content>div{margin-bottom:2rem}#indicator-editing-dialog-content button{font-size:80%}#indicator-editing-dialog-content input,#indicator-editing-dialog-content select{min-height:24px}#indicator-editing-dialog-content #name{width:100%;margin-bottom:.4rem;padding:.2rem .4rem;display:block}#indicator-editing-dialog-content #description,#indicator-editing-dialog-content #indicatorType,#indicator-editing-dialog-content #defaultValue,#indicator-editing-dialog-content #indicatorMultiAnswer{width:100%;max-width:100%}#indicator-editing-dialog-content #formatDetails{margin:.5rem 0}#indicator-editing-dialog-content #indicator-editing-attributes{position:relative;margin-top:1.5rem;padding:0;min-width:-moz-fit-content;min-width:fit-content}#indicator-editing-dialog-content #indicator-editing-attributes .attribute-row{display:flex;align-items:stretch;justify-content:flex-start;margin:1rem 0}#indicator-editing-dialog-content #indicator-editing-attributes #archived-warning,#indicator-editing-dialog-content #indicator-editing-attributes #deletion-warning{position:absolute;right:0;top:0;color:#a00;font-size:90%}#indicator-editing-dialog-content #indicator-editing-attributes #indicatorPrivileges{line-height:1.4}#indicator-editing-dialog-content div.cell{width:200px;min-width:200px;text-align:center;border:1px gray solid;padding:10px;vertical-align:top;display:table-cell}#indicator-editing-dialog-content div.cell span.columnNumber{display:flex;justify-content:center;align-items:center;margin-bottom:1rem;font-weight:bolder}#indicator-editing-dialog-content div.cell input,#indicator-editing-dialog-content div.cell select{width:100%;margin-bottom:1rem}#edit-properties-panel{padding:0;position:relative;display:flex;margin-bottom:.75rem;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);overflow:hidden}#edit-properties-panel>div{min-width:400px;padding:.75rem;display:flex;flex-direction:column;width:50%}#edit-properties-panel input,#edit-properties-panel select{border:1px inset #dde;border-radius:2px;line-height:normal;min-height:24px}#edit-properties-panel input{padding-left:.4em}#edit-properties-panel #edit-properties-description{display:flex;flex-direction:column;height:100%;align-self:center;border-right:1px solid #252f3e;min-width:400px}#edit-properties-panel #edit-properties-description #categoryName{width:100%;margin-bottom:1rem}#edit-properties-panel #edit-properties-description textarea{width:100%;height:100%;padding:.2rem .5rem;border:1px inset #dde;border-radius:2px;resize:none}#edit-properties-panel #edit-properties-description span{margin-left:auto;font-size:80%;align-self:flex-end}#edit-properties-panel .form-id{position:absolute;right:.75rem;bottom:1px;font-size:.75rem}#edit-properties-panel #editFormPermissions:hover,#edit-properties-panel #editFormPermissions:focus,#edit-properties-panel #editFormPermissions:active span{color:#fff}#edit-properties-panel .panel-properties{flex-wrap:wrap;gap:.5rem 1rem;display:flex;margin-top:1rem;height:100%}#edit-properties-panel .panel-properties input,#edit-properties-panel .panel-properties select{margin-left:3px}#edit-properties-panel .panel-properties input[type=number]{width:50px}#edit-properties-panel .panel-properties label{margin-bottom:0}#edit-properties-panel .panel-properties #workflow_info{display:flex;gap:2px;align-items:center}#edit-properties-panel .panel-properties #workflow_info #view_workflow{font-size:14px;height:26px}#form_properties_last_update{color:#005ea2;font-size:90%;background-color:rgba(0,0,0,0);border:2px solid rgba(0,0,0,0)}#history-slice td{font-size:14px !important}#history-page-buttons button#next,#history-slice button#prev{width:135px}#form_index_and_editing{display:flex;gap:1rem}#form_index_display{margin-top:.5rem;position:relative;padding:.875rem .75rem;width:330px;flex:0 0 330px;align-self:flex-start;background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);max-height:90vh;overflow-y:auto}#form_index_display button.preview{width:134px;margin-bottom:1rem}#form_index_display ul li.form_menu_preview{padding:.5rem 0}#form_index_display ul li.form_menu_preview:not(:last-child){border-bottom:1px solid #f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li{min-height:46px;border:2px solid #f0f0f0;border-radius:2px}#form_index_display ul[id^=layoutFormRecords_]>li:not(:last-child){margin-bottom:1rem}#form_index_display ul[id^=layoutFormRecords_]>li button.layout-listitem{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;border:0;background-clip:padding-box;overflow:hidden;border-radius:0;padding:0 .5rem;color:#252f3e;background-color:#f2f2f6}#form_index_display ul[id^=layoutFormRecords_]>li.selected button.layout-listitem{color:#fff;background-color:#005ea2;cursor:default}#form_index_display div.internal_forms{padding:.75rem;padding-top:0}#form_index_display ul[id^=internalFormRecords_]{border-left:4px solid #f2f2f6;padding-top:.75rem}#form_index_display ul[id^=internalFormRecords_]>li:not(:last-child){margin-bottom:.5rem}#form_index_display ul[id^=internalFormRecords_]>li button{padding:.25rem;display:flex;justify-content:flex-start;width:100%;height:46px;overflow:hidden;border:2px solid rgba(0,0,0,0);border-radius:1px}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse){background-color:#f2f2f6}#form_index_display ul[id^=internalFormRecords_]>li button:not(#addInternalUse).selected{cursor:auto;color:#fff;background-color:#005ea2;border:2px solid #2491ff}#form_index_display ul[id^=internalFormRecords_]>li button:hover,#form_index_display ul[id^=internalFormRecords_]>li button:focus,#form_index_display ul[id^=internalFormRecords_]>li button:active{border:2px solid #2491ff;outline:none !important}#form_index_display button#indicator_toolbar_toggle,#form_index_display button[id^=addInternalUse_],#form_index_display button[id^=addStaple_]{margin-bottom:1rem;height:2.25rem;width:100%;border:2px solid #005ea2;justify-content:flex-start}#form_entry_and_preview{position:relative;top:0;display:flex;flex-direction:column;align-self:flex-start;width:100%;min-width:420px;padding:0;background-color:rgba(0,0,0,0);border-radius:4px}#form_entry_and_preview ul[id^=base_drop_area]{position:relative;padding:1px 0}#form_entry_and_preview ul[id^=base_drop_area].entered-drop-zone,#form_entry_and_preview ul[id^=base_drop_area] ul.entered-drop-zone{background-color:rgba(0,0,25,.15)}#form_entry_and_preview ul[id^=base_drop_area] ul[id^=drop_area_parent_]{position:relative}#form_entry_and_preview ul[id^=base_drop_area] ul.form-index-listing-ul{margin:0;display:flex;flex-direction:column;background-clip:content-box;min-height:8px}#form_entry_and_preview ul[id^=base_drop_area] li{position:relative;margin:.375rem 0}#form_entry_and_preview ul[id^=base_drop_area] li:first-child{margin-top:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li:last-child{margin-bottom:.5rem}#form_entry_and_preview ul[id^=base_drop_area] li button.drag_question_button{cursor:move;position:absolute;padding:0;border:1px solid #f2f2f6 !important;border-radius:4px 0 0 4px;width:1rem;height:100%;left:0;top:0}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container{display:flex;justify-content:center;align-items:center;cursor:move;position:absolute;width:1rem;left:0;top:0;flex-direction:column;gap:.625rem}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_drag{opacity:.6}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move{display:flex;justify-content:center;align-items:center;cursor:pointer;width:0;height:0;padding:0;background-color:rgba(0,0,0,0);border:7.5px solid rgba(0,0,0,0)}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up{border-bottom:14px solid #162e51;border-top:2px}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up:hover,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up:focus,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.up:active{outline:none !important;border-bottom:14px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down{border-top:14px solid #162e51;border-bottom:2px}#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down:hover,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down:focus,#form_entry_and_preview ul[id^=base_drop_area] li .icon_move_container .icon_move.down:active{outline:none !important;border-top:14px solid #00bde3}#form_entry_and_preview ul[id^=base_drop_area]>li{background-color:#fff;border-radius:4px;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);margin-bottom:1.25rem}#form_entry_and_preview .form_page{display:inline-flex;justify-content:center;align-items:center;font-weight:bold;color:#fff;background-color:#000;font-size:1.5rem;height:2.25rem;padding:.2em 9px;border-radius:3px;margin-right:.4rem}#form_entry_and_preview div.printformblock{height:auto;position:relative;break-inside:avoid;height:auto;max-height:none}#form_entry_and_preview div.printformblock div.printResponse{position:relative;padding:0;padding-left:1rem;float:none;border-radius:4px;background-color:#fff}#form_entry_and_preview div.printformblock div.printResponse.form-header,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header{border-top:.3125rem solid #000}#form_entry_and_preview div.printformblock div.printResponse.form-header>.form_editing_area,#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>.form_editing_area{border-radius:4px}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header>ul{padding:.5em}#form_entry_and_preview div.printformblock div.printResponse.preview.form-header li{margin:0}#form_entry_and_preview div.printformblock div.printResponse.preview{border:0;padding-left:0}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview){margin-left:.5rem;border:1px solid #c1c1c1;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4);transition:box-shadow .5s}#form_entry_and_preview div.printformblock div.printResponse:not(.form-header):not(.preview):hover{box-shadow:1px 1px 10px 5px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview{margin-top:.5rem;background-color:#fff;border-radius:4px;padding:.75rem;box-shadow:1px 1px 2px 1px rgba(0,0,20,.4)}#form_entry_and_preview #blank_section_preview button{border:2px dashed #c5c5d7;width:100%;height:2rem}#form_entry_and_preview button.new_section_question{height:2rem;width:100%;border:2px dashed #c5c5d7}#form_entry_and_preview .form_editing_area{display:flex;flex-direction:column;margin-bottom:.25rem;background-color:#fff}#form_entry_and_preview .form_editing_area .name_and_toolbar{width:100%}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header{font-weight:bolder;background-color:#e0e0e0;border-radius:0}#form_entry_and_preview .form_editing_area .name_and_toolbar.form-header .indicator-name-preview{padding:.5em}#form_entry_and_preview .form_editing_area .name_and_toolbar:not(.preview){min-height:60px}#form_entry_and_preview .form_editing_area .name_and_toolbar button:not(.icon_move){border:1px solid #1476bd}#form_entry_and_preview .form_editing_area .name_and_toolbar button:not(.icon_move):hover,#form_entry_and_preview .form_editing_area .name_and_toolbar button:not(.icon_move):focus,#form_entry_and_preview .form_editing_area .name_and_toolbar button:not(.icon_move):active{border:1px solid #2491ff !important;outline:1px solid #2491ff}#form_entry_and_preview .form_editing_area .indicator-name-preview{padding:.25rem .25rem .75rem .5rem;width:100%}#form_entry_and_preview .form_editing_area .indicator-name-preview .required-sensitive{color:#a00;margin-left:.4em}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]{float:right;margin-left:.25rem;padding:.25rem;border-radius:3px;display:flex;flex-direction:column;align-items:stretch;font-size:90%;gap:3px 2px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_]>div{display:flex;align-items:center;gap:4px 5px;min-width:260px}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] button{padding:4px;font-weight:normal}#form_entry_and_preview .form_editing_area div[id^=form_editing_toolbar_] img{width:16px;height:16px}#form_entry_and_preview .form_editing_area .format_preview{padding:.5rem .25rem .75rem .5rem}#form_entry_and_preview .form_editing_area .format_preview .text_input_preview{display:inline-block;width:75%;font-size:1.3em;font-family:monospace;background-color:#fff;border:1px solid gray;padding:.25em}#form_entry_and_preview .form_editing_area .format_preview .textarea_input_preview{width:75%;padding:.5em;font-size:1.3em;font-family:monospace}#form_entry_and_preview .form_editing_area .format_preview div[id*=textarea_format_button_],#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box,#form_entry_and_preview .form_editing_area .format_preview .choices,#form_entry_and_preview .form_editing_area .format_preview fieldset{width:75%}#form_entry_and_preview .form_editing_area .format_preview .trumbowyg-box{margin-left:0}#form_entry_and_preview .form_editing_area .format_preview div.tableinput{overflow-x:auto;max-width:900px}#form_entry_and_preview .form_editing_area .format_preview .employeeSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .groupSelectorInput,#form_entry_and_preview .form_editing_area .format_preview .positionSelectorInput{margin-bottom:.5em;width:75%}#form_entry_and_preview .form_editing_area .format_preview div[class*=SelectorBorder]{background-color:rgba(0,0,0,0)}#form_entry_and_preview .form_editing_area .format_preview tr[class*=Selector]:hover{background-color:#e1f3f8}#condition_editor_dialog_content{min-width:700px;max-width:900px;margin:auto;background-color:#fff}#condition_editor_dialog_content #ifthen_deletion_dialog{margin-bottom:-0.75rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options{display:flex;justify-content:space-between;margin-top:2rem}#condition_editor_dialog_content #ifthen_deletion_dialog .options button{width:120px}#condition_editor_dialog_content #savedConditionsLists{padding-bottom:.5em}#condition_editor_dialog_content #savedConditionsLists ul{margin-bottom:1rem}#condition_editor_dialog_content #savedConditionsLists button.btn_remove_condition{width:1.75em}#condition_editor_dialog_content #outcome_select{max-width:700px}#condition_editor_dialog_content #condition_editor_inputs>div{padding:1rem 0}#condition_editor_dialog_content #condition_editor_inputs>div .choices__inner{width:100%;max-width:700px}#condition_editor_dialog_content #if-then-setup{display:flex;max-width:700px;gap:.75rem;align-items:center;min-height:60px;padding-bottom:0}#condition_editor_dialog_content #if-then-setup>select,#condition_editor_dialog_content #if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content #if-then-setup input{width:35%;margin:0}#condition_editor_dialog_content #if-then-setup #operator_select{width:25%}#condition_editor_dialog_content #if-then-setup>div.crosswalks{display:flex;flex-wrap:wrap;gap:1rem 2rem;max-width:600px}#condition_editor_dialog_content #if-then-setup .choices__inner{max-width:300px}#condition_editor_dialog_content select,#condition_editor_dialog_content input:not(.choices__input){font-size:1rem;padding:2px;text-overflow:ellipsis;width:100%;border:1px inset gray}#condition_editor_dialog_content select:not(:last-child),#condition_editor_dialog_content input:not(.choices__input):not(:last-child){margin-bottom:1em}#condition_editor_dialog_content li.savedConditionsCard{display:flex;align-items:center;margin-bottom:.5rem}#condition_editor_dialog_content button.btnSavedConditions{display:block;width:100%;text-align:left;font-weight:normal;background-color:#fff;padding:6px;border:1px outset #005ea2;box-shadow:1px 1px 6px rgba(0,0,25,.5);border-radius:3px;margin-right:1rem;white-space:normal;max-width:700px;overflow:hidden;transition:box-shadow .1s ease}#condition_editor_dialog_content button.btnSavedConditions.isOrphan{background-color:#d8d8d8;color:#000;border:1px solid #000}#condition_editor_dialog_content button.btnSavedConditions:hover:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:focus:not(.isOrphan),#condition_editor_dialog_content button.btnSavedConditions:active:not(.isOrphan){color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content button.btn-confirm.new{padding:4px 6px}#condition_editor_dialog_content .changesDetected{color:#c80000}#condition_editor_dialog_content .selectedConditionEdit .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:hover .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:focus .changesDetected,#condition_editor_dialog_content button.btnSavedConditions:active .changesDetected{color:#fff}#condition_editor_dialog_content button.selectedConditionEdit{color:#fff;border:1px outset #005ea2 !important;background-color:#005ea2;box-shadow:0px 0px 2px rgba(0,0,25,.75)}#condition_editor_dialog_content .btn_remove_condition{background-color:#922;border:1px solid #922;color:#fff}#condition_editor_dialog_content .btn_remove_condition:hover,#condition_editor_dialog_content .btn_remove_condition:active,#condition_editor_dialog_content .btn_remove_condition:focus{border:1px solid #000 !important;background-color:#600}#condition_editor_dialog_content .ifthen_label{font-weight:bolder;color:#005ea2}@media only screen and (max-width: 600px){#leaf_dialog_content{min-width:400px}#vue-formeditor-app{min-width:400px}#vue-formeditor-app>div{flex-direction:column}#vue-formeditor-app main>section{margin:0;padding:0}#vue-formeditor-app nav#top-menu-nav{width:100%}#vue-formeditor-app nav#top-menu-nav ul{flex-direction:column;height:fit-content}#vue-formeditor-app nav#top-menu-nav ul li{width:100%;height:fit-content;flex-direction:column}#vue-formeditor-app nav#top-menu-nav ul li::after{content:"";background-color:rgba(0,0,0,0)}#vue-formeditor-app nav#top-menu-nav ul li button,#vue-formeditor-app nav#top-menu-nav ul li a{height:36px;padding:0;border-radius:0;justify-content:center !important}#vue-formeditor-app nav#top-menu-nav ul li button span,#vue-formeditor-app nav#top-menu-nav ul li a span{margin-left:10px}#vue-formeditor-app #secure_forms_info{display:flex;flex-wrap:wrap;justify-content:space-between}#vue-formeditor-app #edit-properties-panel{flex-direction:column;border-radius:0}#vue-formeditor-app #edit-properties-panel>div{width:100%}#vue-formeditor-app #edit-properties-panel #edit-properties-description{border-right:0;border-bottom:1px solid #252f3e}#vue-formeditor-app #internalFormRecordsDisplay{min-width:100%}#vue-formeditor-app #form_index_and_editing{flex-direction:column;gap:1.25rem}#vue-formeditor-app #form_index_and_editing>div{border-radius:0}#vue-formeditor-app #form_index_and_editing #form_index_display{width:100%;flex:0 0 100%}#vue-formeditor-app #form_index_and_editing .tableinput{max-width:580px}#condition_editor_dialog_content{width:100%;min-width:400px;border:0}#condition_editor_dialog_content div#if-then-setup{flex-direction:column}#condition_editor_dialog_content div#if-then-setup>select,#condition_editor_dialog_content div#if-then-setup>h3,#condition_editor_dialog_content div#if-then-setup #parent_choices_wrapper,#condition_editor_dialog_content div#if-then-setup #operator_select{width:100%}#condition_editor_dialog_content div#if-then-setup .choices__inner{max-width:100%}} diff --git a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js index b2fbd08f0..7a54a8721 100644 --- a/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js +++ b/app/libs/js/vue-dest/form_editor/LEAF_FormEditor.js @@ -1,2 +1,2 @@ /*! For license information please see LEAF_FormEditor.js.LICENSE.txt */ -(()=>{"use strict";var e,t,n={425:(e,t,n)=>{n.d(t,{EW:()=>Ui,Ef:()=>Oc,pM:()=>no,h:()=>Hi,WQ:()=>xr,dY:()=>Cn,Gt:()=>Cr,Kh:()=>Tt,KR:()=>Ht,Gc:()=>kt,IJ:()=>qt,R1:()=>Gt,wB:()=>Ss});var o={};function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(o),n.d(o,{BaseTransition:()=>Jn,BaseTransitionPropsValidators:()=>zn,Comment:()=>Ws,DeprecationTypes:()=>tl,EffectScope:()=>fe,ErrorCodes:()=>an,ErrorTypeStrings:()=>Ji,Fragment:()=>Hs,KeepAlive:()=>lo,ReactiveEffect:()=>be,Static:()=>Ks,Suspense:()=>Ms,Teleport:()=>Qr,Text:()=>qs,TrackOpTypes:()=>sn,Transition:()=>cl,TransitionGroup:()=>tc,TriggerOpTypes:()=>ln,VueElement:()=>Jl,assertNumber:()=>cn,callWithAsyncErrorHandling:()=>dn,callWithErrorHandling:()=>un,camelize:()=>D,capitalize:()=>P,cloneVNode:()=>di,compatUtils:()=>el,computed:()=>Ui,createApp:()=>Oc,createBlock:()=>ni,createCommentVNode:()=>fi,createElementBlock:()=>ti,createElementVNode:()=>ci,createHydrationRenderer:()=>is,createPropsRestProxy:()=>sr,createRenderer:()=>ss,createSSRApp:()=>Dc,createSlots:()=>Mo,createStaticVNode:()=>hi,createTextVNode:()=>pi,createVNode:()=>ai,customRef:()=>Zt,defineAsyncComponent:()=>ro,defineComponent:()=>no,defineCustomElement:()=>Kl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Qo,defineOptions:()=>Jo,defineProps:()=>Ko,defineSSRCustomElement:()=>zl,defineSlots:()=>Yo,devtools:()=>Yi,effect:()=>Ee,effectScope:()=>me,getCurrentInstance:()=>Ei,getCurrentScope:()=>ve,getTransitionRawChildren:()=>to,guardReactiveProps:()=>ui,h:()=>Hi,handleError:()=>pn,hasInjectionContext:()=>Er,hydrate:()=>Rc,initCustomFormatter:()=>qi,initDirectivesForSSR:()=>Mc,inject:()=>xr,isMemoSame:()=>Ki,isProxy:()=>Ft,isReactive:()=>Rt,isReadonly:()=>Ot,isRef:()=>Ut,isRuntimeOnly:()=>Pi,isShallow:()=>Dt,isVNode:()=>oi,markRaw:()=>Pt,mergeDefaults:()=>or,mergeModels:()=>rr,mergeProps:()=>yi,nextTick:()=>Cn,normalizeClass:()=>X,normalizeProps:()=>Z,normalizeStyle:()=>z,onActivated:()=>ao,onBeforeMount:()=>yo,onBeforeUnmount:()=>Co,onBeforeUpdate:()=>So,onDeactivated:()=>uo,onErrorCaptured:()=>ko,onMounted:()=>bo,onRenderTracked:()=>To,onRenderTriggered:()=>wo,onScopeDispose:()=>ye,onServerPrefetch:()=>Eo,onUnmounted:()=>xo,onUpdated:()=>_o,openBlock:()=>Js,popScopeId:()=>$n,provide:()=>Cr,proxyRefs:()=>Qt,pushScopeId:()=>Mn,queuePostFlushCb:()=>wn,reactive:()=>Tt,readonly:()=>At,ref:()=>Ht,registerRuntimeCompiler:()=>Li,render:()=>Nc,renderList:()=>Po,renderSlot:()=>$o,resolveComponent:()=>No,resolveDirective:()=>Do,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Zi,resolveTransitionHooks:()=>Qn,setBlockTracking:()=>Zs,setDevtoolsHook:()=>Qi,setTransitionHooks:()=>eo,shallowReactive:()=>kt,shallowReadonly:()=>It,shallowRef:()=>qt,ssrContextKey:()=>fs,ssrUtils:()=>Xi,stop:()=>we,toDisplayString:()=>ae,toHandlerKey:()=>M,toHandlers:()=>Vo,toRaw:()=>Lt,toRef:()=>on,toRefs:()=>en,toValue:()=>Jt,transformVNodeArgs:()=>si,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>er,useCssModule:()=>Yl,useCssVars:()=>Il,useModel:()=>ws,useSSRContext:()=>ms,useSlots:()=>Zo,useTransitionState:()=>Wn,vModelCheckbox:()=>uc,vModelDynamic:()=>vc,vModelRadio:()=>pc,vModelSelect:()=>hc,vModelText:()=>ac,vShow:()=>Tl,version:()=>zi,warn:()=>Gi,watch:()=>Ss,watchEffect:()=>gs,watchPostEffect:()=>vs,watchSyncEffect:()=>ys,withAsyncContext:()=>ir,withCtx:()=>Vn,withDefaults:()=>Xo,withDirectives:()=>jn,withKeys:()=>Ec,withMemo:()=>Wi,withModifiers:()=>Cc,withScopeId:()=>Bn});const s={},i=[],l=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),d=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,f=(e,t)=>h.call(e,t),m=Array.isArray,g=e=>"[object Map]"===w(e),v=e=>"[object Set]"===w(e),y=e=>"[object Date]"===w(e),b=e=>"function"==typeof e,S=e=>"string"==typeof e,_=e=>"symbol"==typeof e,C=e=>null!==e&&"object"==typeof e,x=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,w=e=>E.call(e),T=e=>w(e).slice(8,-1),k=e=>"[object Object]"===w(e),A=e=>S(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),N=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),R=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-(\w)/g,D=R((e=>e.replace(O,((e,t)=>t?t.toUpperCase():"")))),F=/\B([A-Z])/g,L=R((e=>e.replace(F,"-$1").toLowerCase())),P=R((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=R((e=>e?`on${P(e)}`:"")),$=(e,t)=>!Object.is(e,t),B=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=S(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const q=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),W={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},K=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(m(e)){const t={};for(let n=0;n{if(e){const n=e.split(J);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function X(e){let t="";if(S(e))t=e;else if(m(e))for(let n=0;nie(e,t)))}const ce=e=>!(!e||!0!==e.__v_isRef),ae=e=>S(e)?e:null==e?"":m(e)||C(e)&&(e.toString===E||!b(e.toString))?ce(e)?ae(e.value):JSON.stringify(e,ue,2):String(e),ue=(e,t)=>ce(t)?ue(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[de(t,o)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>de(e)))}:_(t)?de(t):!C(t)||m(t)||k(t)?t:String(t),de=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let pe,he;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pe,!e&&pe&&(this.index=(pe.scopes||(pe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=pe;try{return pe=this,e()}finally{pe=t}}}on(){pe=this}off(){pe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ne()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Te,t=he;try{return Te=!0,he=this,this._runnings++,_e(this),this.fn()}finally{Ce(this),this._runnings--,he=t,Te=e}}stop(){this.active&&(_e(this),Ce(this),this.onStop&&this.onStop(),this.active=!1)}}function Se(e){return e.value}function _e(e){e._trackId++,e._depsLength=0}function Ce(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(d(n,t),t.scope&&ge(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function we(e){e.effect.stop()}let Te=!0,ke=0;const Ae=[];function Ie(){Ae.push(Te),Te=!1}function Ne(){const e=Ae.pop();Te=void 0===e||e}function Re(){ke++}function Oe(){for(ke--;!ke&&Fe.length;)Fe.shift()()}function De(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fe=[];function Le(e,t,n){Re();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Me=new WeakMap,$e=Symbol(""),Be=Symbol("");function Ve(e,t,n){if(Te&&he){let t=Me.get(e);t||Me.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Pe((()=>t.delete(n)))),De(he,o)}}function je(e,t,n,o,r,s){const i=Me.get(e);if(!i)return;let l=[];if("clear"===t)l=[...i.values()];else if("length"===n&&m(e)){const e=Number(o);i.forEach(((t,n)=>{("length"===n||!_(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":m(e)?A(n)&&l.push(i.get("length")):(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"delete":m(e)||(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"set":g(e)&&l.push(i.get($e))}Re();for(const e of l)e&&Le(e,4);Oe()}const Ue=r("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(_)),qe=We();function We(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Lt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Ie(),Re();const n=Lt(this)[t].apply(this,e);return Oe(),Ne(),n}})),e}function Ke(e){_(e)||(e=String(e));const t=Lt(this);return Ve(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?wt:Et:r?xt:Ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=m(e);if(!o){if(s&&f(qe,t))return Reflect.get(qe,t,n);if("hasOwnProperty"===t)return Ke}const i=Reflect.get(e,t,n);return(_(t)?He.has(t):Ue(t))?i:(o||Ve(e,0,t),r?i:Ut(i)?s&&A(t)?i:i.value:C(i)?o?At(i):Tt(i):i)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Dt(n)||Ot(n)||(r=Lt(r),n=Lt(n)),!m(e)&&Ut(r)&&!Ut(n))return!t&&(r.value=n,!0)}const s=m(e)&&A(t)?Number(t)e,tt=e=>Reflect.getPrototypeOf(e);function nt(e,t,n=!1,o=!1){const r=Lt(e=e.__v_raw),s=Lt(t);n||($(t,s)&&Ve(r,0,t),Ve(r,0,s));const{has:i}=tt(r),l=o?et:n?$t:Mt;return i.call(r,t)?l(e.get(t)):i.call(r,s)?l(e.get(s)):void(e!==r&&e.get(t))}function ot(e,t=!1){const n=this.__v_raw,o=Lt(n),r=Lt(e);return t||($(e,r)&&Ve(o,0,e),Ve(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function rt(e,t=!1){return e=e.__v_raw,!t&&Ve(Lt(e),0,$e),Reflect.get(e,"size",e)}function st(e,t=!1){t||Dt(e)||Ot(e)||(e=Lt(e));const n=Lt(this);return tt(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Dt(t)||Ot(t)||(t=Lt(t));const o=Lt(this),{has:r,get:s}=tt(o);let i=r.call(o,e);i||(e=Lt(e),i=r.call(o,e));const l=s.call(o,e);return o.set(e,t),i?$(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function lt(e){const t=Lt(this),{has:n,get:o}=tt(t);let r=n.call(t,e);r||(e=Lt(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&je(t,"delete",e,void 0),s}function ct(){const e=Lt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function at(e,t){return function(n,o){const r=this,s=r.__v_raw,i=Lt(s),l=t?et:e?$t:Mt;return!e&&Ve(i,0,$e),s.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function ut(e,t,n){return function(...o){const r=this.__v_raw,s=Lt(r),i=g(s),l="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,a=r[e](...o),u=n?et:t?$t:Mt;return!t&&Ve(s,0,c?Be:$e),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function dt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function pt(){const e={get(e){return nt(this,e)},get size(){return rt(this)},has:ot,add:st,set:it,delete:lt,clear:ct,forEach:at(!1,!1)},t={get(e){return nt(this,e,!1,!0)},get size(){return rt(this)},has:ot,add(e){return st.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:lt,clear:ct,forEach:at(!1,!0)},n={get(e){return nt(this,e,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!1)},o={get(e){return nt(this,e,!0,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ut(r,!1,!1),n[r]=ut(r,!0,!1),t[r]=ut(r,!1,!0),o[r]=ut(r,!0,!0)})),[e,n,t,o]}const[ht,ft,mt,gt]=pt();function vt(e,t){const n=t?e?gt:mt:e?ft:ht;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(f(n,o)&&o in t?n:t,o,r)}const yt={get:vt(!1,!1)},bt={get:vt(!1,!0)},St={get:vt(!0,!1)},_t={get:vt(!0,!0)},Ct=new WeakMap,xt=new WeakMap,Et=new WeakMap,wt=new WeakMap;function Tt(e){return Ot(e)?e:Nt(e,!1,Ye,yt,Ct)}function kt(e){return Nt(e,!1,Xe,bt,xt)}function At(e){return Nt(e,!0,Qe,St,Et)}function It(e){return Nt(e,!0,Ze,_t,wt)}function Nt(e,t,n,o,r){if(!C(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(T(l));var l;if(0===i)return e;const c=new Proxy(e,2===i?o:n);return r.set(e,c),c}function Rt(e){return Ot(e)?Rt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Ft(e){return!!e&&!!e.__v_raw}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}function Pt(e){return Object.isExtensible(e)&&V(e,"__v_skip",!0),e}const Mt=e=>C(e)?Tt(e):e,$t=e=>C(e)?At(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new be((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Lt(this);return e._cacheable&&!e.effect.dirty||!$(e._value,e._value=e.effect.run())||jt(e,4),Vt(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Vt(e){var t;Te&&he&&(e=Lt(e),De(he,null!=(t=e.dep)?t:e.dep=Pe((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Lt(e)).dep;r&&Le(r,t)}function Ut(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return Wt(e,!1)}function qt(e){return Wt(e,!0)}function Wt(e,t){return Ut(e)?e:new Kt(e,t)}class Kt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lt(e),this._value=t?e:Mt(e)}get value(){return Vt(this),this._value}set value(e){const t=this.__v_isShallow||Dt(e)||Ot(e);e=t?e:Lt(e),$(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Mt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ut(e)?e.value:e}function Jt(e){return b(e)?e():Gt(e)}const Yt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ut(r)&&!Ut(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Qt(e){return Rt(e)?e:new Proxy(e,Yt)}class Xt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Vt(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Zt(e){return new Xt(e)}function en(e){const t=m(e)?new Array(e.length):{};for(const n in e)t[n]=rn(e,n);return t}class tn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Me.get(e);return n&&n.get(t)}(Lt(this._object),this._key)}}class nn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function on(e,t,n){return Ut(e)?e:b(e)?new nn(e):C(e)&&arguments.length>1?rn(e,t,n):Ht(e)}function rn(e,t,n){const o=e[t];return Ut(o)?o:new tn(e,t,n)}const sn={GET:"get",HAS:"has",ITERATE:"iterate"},ln={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function cn(e,t){}const an={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function un(e,t,n,o){try{return o?e(...o):e()}catch(e){pn(e,t,n)}}function dn(e,t,n,o){if(b(e)){const r=un(e,t,n,o);return r&&x(r)&&r.catch((e=>{pn(e,t,n)})),r}if(m(e)){const r=[];for(let s=0;s>>1,r=mn[o],s=An(r);sAn(e)-An(t)));if(vn.length=0,yn)return void yn.push(...e);for(yn=e,bn=0;bnnull==e.id?1/0:e.id,In=(e,t)=>{const n=An(e)-An(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nn(e){fn=!1,hn=!0,mn.sort(In);try{for(gn=0;gnVn;function Vn(e,t=Fn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Zs(-1);const r=Pn(t);let s;try{s=e(...n)}finally{Pn(r),o._d&&Zs(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Fn)return e;const n=Vi(Fn),o=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),Co((()=>{e.isUnmounting=!0})),e}const Kn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kn,onEnter:Kn,onAfterEnter:Kn,onEnterCancelled:Kn,onBeforeLeave:Kn,onLeave:Kn,onAfterLeave:Kn,onLeaveCancelled:Kn,onBeforeAppear:Kn,onAppear:Kn,onAfterAppear:Kn,onAppearCancelled:Kn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Jn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Ei(),o=Wn();return()=>{const r=t.default&&to(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==Ws){s=t,e=!0;break}}const i=Lt(e),{mode:l}=i;if(o.isLeaving)return Xn(s);const c=Zn(s);if(!c)return Xn(s);let a=Qn(c,i,o,n,(e=>a=e));eo(c,a);const u=n.subTree,d=u&&Zn(u);if(d&&d.type!==Ws&&!ri(c,d)&&Gn(n).type!==Ws){const e=Qn(d,i,o,n);if(eo(d,e),"out-in"===l&&c.type!==Ws)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Xn(s);"in-out"===l&&c.type!==Ws&&(e.delayLeave=(e,t,n)=>{Yn(o,d)[String(d.key)]=d,e[Hn]=()=>{t(),e[Hn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return s}}};function Yn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Qn(e,t,n,o,r){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),C=Yn(n,e),x=(e,t)=>{e&&dn(e,o,9,t)},E=(e,t)=>{const n=t[1];x(e,t),m(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:i,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!s)return;o=v||c}t[Hn]&&t[Hn](!0);const r=C[_];r&&ri(e,r)&&r.el[Hn]&&r.el[Hn](),x(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!s)return;t=y||a,o=b||u,r=S||d}let i=!1;const l=e[qn]=t=>{i||(i=!0,x(t?r:o,[e]),w.delayedLeave&&w.delayedLeave(),e[qn]=void 0)};t?E(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[qn]&&t[qn](!0),n.isUnmounting)return o();x(p,[t]);let s=!1;const i=t[Hn]=n=>{s||(s=!0,o(),x(n?g:f,[t]),t[Hn]=void 0,C[r]===e&&delete C[r])};C[r]=e,h?E(h,[t,i]):i()},clone(e){const s=Qn(e,t,n,o,r);return r&&r(s),s}};return w}function Xn(e){if(io(e))return(e=di(e)).children=null,e}function Zn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function eo(e,t){6&e.shapeFlag&&e.component?eo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function to(e,t=!1,n){let o=[],r=0;for(let s=0;s1)for(let e=0;ed({name:e.name},t,{setup:e}))():e}const oo=e=>!!e.type.__asyncLoader;function ro(e){b(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:i=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return no({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xi;if(c)return()=>so(c,e);const t=t=>{a=null,pn(t,e,13,!o)};if(i&&e.suspense||Oi)return d().then((t=>()=>so(t,e))).catch((e=>(t(e),()=>o?ai(o,{error:e}):null)));const l=Ht(!1),u=Ht(),p=Ht(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?so(c,e):u.value&&o?ai(o,{error:u.value}):n&&!p.value?ai(n):void 0}})}function so(e,t){const{ref:n,props:o,children:r,ce:s}=t.vnode,i=ai(e,o,r);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const io=e=>e.type.__isKeepAlive,lo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ei(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,s=new Set;let i=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){fo(e),u(e,n,l,!0)}function f(e){r.forEach(((t,n)=>{const o=ji(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);i&&ri(t,i)?i&&fo(i):h(t),r.delete(e),s.delete(e)}o.activate=(e,t,n,o,r)=>{const s=e.component;a(e,t,n,0,l),c(s.vnode,e,t,n,s,l,o,e.slotScopeIds,r),rs((()=>{s.isDeactivated=!1,s.a&&B(s.a);const t=e.props&&e.props.onVnodeMounted;t&&bi(t,s.parent,e)}),l)},o.deactivate=e=>{const t=e.component;hs(t.m),hs(t.a),a(e,p,null,1,l),rs((()=>{t.da&&B(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&bi(n,t.parent,e),t.isDeactivated=!0}),l)},Ss((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>co(e,t))),t&&f((e=>!co(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Ls(n.subTree.type)?rs((()=>{r.set(g,mo(n.subTree))}),n.subTree.suspense):r.set(g,mo(n.subTree)))};return bo(v),_o(v),Co((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=mo(t);if(e.type!==r.type||e.key!==r.key)h(e);else{fo(r);const e=r.component.da;e&&rs(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!oi(o)||!(4&o.shapeFlag||128&o.shapeFlag))return i=null,o;let l=mo(o);const c=l.type,a=ji(oo(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!co(u,a))||d&&a&&co(d,a))return i=l,o;const h=null==l.key?c:l.key,f=r.get(h);return l.el&&(l=di(l),128&o.shapeFlag&&(o.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&eo(l,l.transition),l.shapeFlag|=512,s.delete(h),s.add(h)):(s.add(h),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),l.shapeFlag|=256,i=l,Ls(o.type)?o:l}}};function co(e,t){return m(e)?e.some((e=>co(e,t))):S(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&e.test(t)}function ao(e,t){po(e,"a",t)}function uo(e,t){po(e,"da",t)}function po(e,t,n=xi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(go(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&ho(o,t,n,e),e=e.parent}}function ho(e,t,n,o){const r=go(t,e,o,!0);xo((()=>{p(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mo(e){return 128&e.shapeFlag?e.ssContent:e}function go(e,t,n=xi,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Ie();const r=ki(n),s=dn(t,n,e,o);return r(),Ne(),s});return o?r.unshift(s):r.push(s),s}}const vo=e=>(t,n=xi)=>{Oi&&"sp"!==e||go(e,((...e)=>t(...e)),n)},yo=vo("bm"),bo=vo("m"),So=vo("bu"),_o=vo("u"),Co=vo("bum"),xo=vo("um"),Eo=vo("sp"),wo=vo("rtg"),To=vo("rtc");function ko(e,t=xi){go("ec",e,t)}const Ao="components",Io="directives";function No(e,t){return Fo(Ao,e,!0,t)||e}const Ro=Symbol.for("v-ndc");function Oo(e){return S(e)?Fo(Ao,e,!1)||e:e||Ro}function Do(e){return Fo(Io,e)}function Fo(e,t,n=!0,o=!1){const r=Fn||xi;if(r){const n=r.type;if(e===Ao){const e=ji(n,!1);if(e&&(e===t||e===D(t)||e===P(D(t))))return n}const s=Lo(r[e]||n[e],t)||Lo(r.appContext[e],t);return!s&&o?n:s}}function Lo(e,t){return e&&(e[t]||e[D(t)]||e[P(D(t))])}function Po(e,t,n,o){let r;const s=n&&n[o];if(m(e)||S(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function $o(e,t,n={},o,r){if(Fn.isCE||Fn.parent&&oo(Fn.parent)&&Fn.parent.isCE)return"default"!==t&&(n.name=t),ai("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),Js();const i=s&&Bo(s(n)),l=ni(Hs,{key:(n.key||i&&i.key||`_${t}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Bo(e){return e.some((e=>!oi(e)||e.type!==Ws&&!(e.type===Hs&&!Bo(e.children))))?e:null}function Vo(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ii(e)?Vi(e):jo(e.parent):null,Uo=d(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ur(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>Cs.bind(e)}),Ho=(e,t)=>e!==s&&!e.__isScriptSetup&&f(e,t),qo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Ho(o,t))return l[t]=1,o[t];if(r!==s&&f(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&f(u,t))return l[t]=3,i[t];if(n!==s&&f(n,t))return l[t]=4,n[t];lr&&(l[t]=0)}}const d=Uo[t];let p,h;return d?("$attrs"===t&&Ve(e.attrs,0,""),d(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==s&&f(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,f(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Ho(r,t)?(r[t]=n,!0):o!==s&&f(o,t)?(o[t]=n,!0):!(f(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},l){let c;return!!n[l]||e!==s&&f(e,l)||Ho(t,l)||(c=i[0])&&f(c,l)||f(o,l)||f(Uo,l)||f(r.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:f(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Wo=d({},qo,{get(e,t){if(t!==Symbol.unscopables)return qo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!K(t)});function Ko(){return null}function zo(){return null}function Go(e){}function Jo(e){}function Yo(){return null}function Qo(){}function Xo(e,t){return null}function Zo(){return tr().slots}function er(){return tr().attrs}function tr(){const e=Ei();return e.setupContext||(e.setupContext=Bi(e))}function nr(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function or(e,t){const n=nr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?m(o)||b(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function rr(e,t){return e&&t?m(e)&&m(t)?e.concat(t):d({},nr(e),nr(t)):e||t}function sr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Ei();let n=e();return Ai(),x(n)&&(n=n.catch((e=>{throw ki(t),e}))),[n,()=>ki(t)]}let lr=!0;function cr(e,t,n){dn(m(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ar(e,t,n,o){const r=o.includes(".")?xs(n,o):()=>n[o];if(S(e)){const n=t[e];b(n)&&Ss(r,n)}else if(b(e))Ss(r,e.bind(n));else if(C(e))if(m(e))e.forEach((e=>ar(e,t,n,o)));else{const o=b(e.handler)?e.handler.bind(n):t[e.handler];b(o)&&Ss(r,o,e)}}function ur(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>dr(c,e,i,!0))),dr(c,t,i)):c=t,C(t)&&s.set(t,c),c}function dr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&dr(e,s,n,!0),r&&r.forEach((t=>dr(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=pr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const pr={data:hr,props:vr,emits:vr,methods:gr,computed:gr,beforeCreate:mr,created:mr,beforeMount:mr,mounted:mr,beforeUpdate:mr,updated:mr,beforeDestroy:mr,beforeUnmount:mr,destroyed:mr,unmounted:mr,activated:mr,deactivated:mr,errorCaptured:mr,serverPrefetch:mr,components:gr,directives:gr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);for(const o in t)n[o]=mr(e[o],t[o]);return n},provide:hr,inject:function(e,t){return gr(fr(e),fr(t))}};function hr(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function fr(e){if(m(e)){const t={};for(let n=0;n(s.has(e)||(e&&b(e.install)?(s.add(e),e.install(l,...t)):b(e)&&(s.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(s,c,a){if(!i){const u=ai(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,s):e(u,s,a),i=!0,l._container=s,s.__vue_app__=l,Vi(u.component)}},unmount(){i&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=_r;_r=l;try{return e()}finally{_r=t}}};return l}}let _r=null;function Cr(e,t){if(xi){let n=xi.provides;const o=xi.parent&&xi.parent.provides;o===n&&(n=xi.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xi||Fn;if(o||_r){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:_r._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&b(t)?t.call(o&&o.proxy):t}}function Er(){return!!(xi||Fn||_r)}const wr={},Tr=()=>Object.create(wr),kr=e=>Object.getPrototypeOf(e)===wr;function Ar(e,t,n,o){const[r,i]=e.propsOptions;let l,c=!1;if(t)for(let s in t){if(I(s))continue;const a=t[s];let u;r&&f(r,u=D(s))?i&&i.includes(u)?(l||(l={}))[u]=a:n[u]=a:Is(e.emitsOptions,s)||s in o&&a===o[s]||(o[s]=a,c=!0)}if(i){const t=Lt(n),o=l||s;for(let s=0;s{u=!0;const[n,o]=Rr(e,t,!0);d(c,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!u)return C(e)&&o.set(e,i),i;if(m(l))for(let e=0;e-1,o[1]=n<0||e-1||f(o,"default"))&&a.push(t)}}}const p=[c,a];return C(e)&&o.set(e,p),p}function Or(e){return"$"!==e[0]&&!I(e)}function Dr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Fr(e,t){return Dr(e)===Dr(t)}function Lr(e,t){return m(t)?t.findIndex((t=>Fr(t,e))):b(t)&&Fr(t,e)?0:-1}const Pr=e=>"_"===e[0]||"$stable"===e,Mr=e=>m(e)?e.map(mi):[mi(e)],$r=(e,t,n)=>{if(t._n)return t;const o=Vn(((...e)=>Mr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Pr(n))continue;const r=e[n];if(b(r))t[n]=$r(0,r,o);else if(null!=r){const e=Mr(r);t[n]=()=>e}}},Vr=(e,t)=>{const n=Mr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Ur=(e,t,n)=>{const o=e.slots=Tr();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&V(o,"_",e,!0)):Br(t,o)}else t&&Vr(e,t)},Hr=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=s;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:jr(r,t,n):(i=!t.$stable,Br(t,r)),l=t}else t&&(Vr(e,t),l={default:1});if(i)for(const e in r)Pr(e)||null!=l[e]||delete r[e]};function qr(e,t,n,o,r=!1){if(m(e))return void e.forEach(((e,s)=>qr(e,t&&(m(t)?t[s]:t),n,o,r)));if(oo(o)&&!r)return;const i=4&o.shapeFlag?Vi(o.component):o.el,l=r?null:i,{i:c,r:a}=e,u=t&&t.r,d=c.refs===s?c.refs={}:c.refs,h=c.setupState;if(null!=u&&u!==a&&(S(u)?(d[u]=null,f(h,u)&&(h[u]=null)):Ut(u)&&(u.value=null)),b(a))un(a,c,12,[l,d]);else{const t=S(a),o=Ut(a);if(t||o){const s=()=>{if(e.f){const n=t?f(h,a)?h[a]:d[a]:a.value;r?m(n)&&p(n,i):m(n)?n.includes(i)||n.push(i):t?(d[a]=[i],f(h,a)&&(h[a]=d[a])):(a.value=[i],e.k&&(d[e.k]=a.value))}else t?(d[a]=l,f(h,a)&&(h[a]=l)):o&&(a.value=l,e.k&&(d[e.k]=l))};l?(s.id=-1,rs(s,n)):s()}}}const Wr=Symbol("_vte"),Kr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Jr=(e,t)=>{const n=e&&e.to;return S(n)?t?t(n):null:n};function Yr(e,t,n,{o:{insert:o},m:r},s=2){0===s&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===s;if(d&&o(i,t,n),(!d||Kr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,s,i,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Kr(e.props),g=m?n:u,y=m?o:h;if("svg"===i||zr(u)?i="svg":("mathml"===i||Gr(u))&&(i="mathml"),S?(p(e.dynamicChildren,S,g,r,s,i,l),ds(e,t,!0)):c||d(e,t,g,y,r,s,i,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Yr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Jr(t.props,f);e&&Yr(t,e,null,a,0)}else m&&Yr(t,u,h,a,1)}Xr(t)},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:i,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),s&&r(c),16&i){const e=s||!Kr(p);for(let r=0;r{Zr||(console.error("Hydration completed but contains mismatches."),Zr=!0)},ts=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ns=e=>8===e.nodeType;function os(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:s,parentNode:i,remove:l,insert:c,createComment:u}}=e,d=(n,o,l,a,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ns(n)&&"["===n.data,_=()=>m(n,o,l,a,u,S),{type:C,ref:x,shapeFlag:E,patchFlag:w}=o;let T=n.nodeType;o.el=n,-2===w&&(b=!1,o.dynamicChildren=null);let k=null;switch(C){case qs:3!==T?""===o.children?(c(o.el=r(""),i(n),n),k=n):k=_():(n.data!==o.children&&(es(),n.data=o.children),k=s(n));break;case Ws:y(n)?(k=s(n),v(o.el=n.content.firstChild,n,l)):k=8!==T||S?_():s(n);break;case Ks:if(S&&(T=(n=s(n)).nodeType),1===T||3===T){k=n;const e=!o.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===c||"option"===c;if(g||-1!==d){f&&Un(t,null,n,"created");let c,b=!1;if(y(e)){b=us(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=h(e.firstChild,t,e,n,r,s,i);for(;o;){es();const e=o;o=o.nextSibling,l(e)}}else 8&p&&e.textContent!==t.children&&(es(),e.textContent=t.children);if(u)if(g||!i||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||a(t)&&!I(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&Rt(u.style))for(const e in u.style)u.style[e];(c=u&&u.onVnodeBeforeMount)&&bi(c,n,t),f&&Un(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f||b)&&js((()=>{c&&bi(c,n,t),b&&m.enter(e),f&&Un(t,null,n,"mounted")}),r)}return e.nextSibling},h=(e,t,o,i,l,a,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(r=r?r.concat(a):a);const d=i(e),p=h(s(e),t,d,n,o,r,l);return p&&ns(p)&&"]"===p.data?s(t.anchor=p):(es(),c(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,c,a)=>{if(es(),t.el=null,a){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;l(n)}}const u=s(e),d=i(e);return l(e),n(null,t,d,u,o,r,ts(d),c),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=s(e))&&ns(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return s(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),kn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),kn(),t._vnode=e},d]}const rs=js;function ss(e){return ls(e)}function is(e){return ls(e,os)}function ls(e,t){q().__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:c,createText:a,createComment:u,setText:d,setElementText:p,parentNode:h,nextSibling:m,setScopeId:g=l,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,s=null,i=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!ri(e,t)&&(o=J(e),H(e,r,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case qs:b(e,t,n,o);break;case Ws:S(e,t,n,o);break;case Ks:null==e&&_(t,n,o,i);break;case Hs:N(e,t,n,o,r,s,i,l,c);break;default:1&d?C(e,t,n,o,r,s,i,l,c):6&d?R(e,t,n,o,r,s,i,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,s,i,l,c,X)}null!=u&&r&&qr(u,e&&e.ref,s,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},C=(e,t,n,o,r,s,i,l,c)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?x(t,n,o,r,s,i,l,c):T(e,t,r,s,i,l,c)},x=(e,t,o,s,i,l,a,u)=>{let d,h;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,l,f&&f.is,f),8&m?p(d,e.children):16&m&&w(e.children,d,null,s,i,cs(e,l),a,u),v&&Un(e,null,s,"created"),E(d,e,e.scopeId,a,s),f){for(const e in f)"value"===e||I(e)||r(d,e,null,f[e],l,s);"value"in f&&r(d,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&bi(h,s,e)}v&&Un(e,null,s,"beforeMount");const y=us(i,g);y&&g.beforeEnter(d),n(d,t,o),((h=f&&f.onVnodeMounted)||y||v)&&rs((()=>{h&&bi(h,s,e),y&&g.enter(d),v&&Un(e,null,s,"mounted")}),i)},E=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&as(n,!1),(g=m.onVnodeBeforeUpdate)&&bi(g,n,t,e),h&&Un(t,e,n,"beforeUpdate"),n&&as(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&p(a,""),d?k(e.dynamicChildren,d,a,n,o,cs(t,i),l):c||$(e,t,a,null,n,o,cs(t,i),l,!1),u>0){if(16&u)A(a,f,m,n,i);else if(2&u&&f.class!==m.class&&r(a,"class",null,m.class,i),4&u&&r(a,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&bi(g,n,t,e),h&&Un(t,e,n,"updated")}),o)},k=(e,t,n,o,r,s,i)=>{for(let l=0;l{if(t!==n){if(t!==s)for(const s in t)I(s)||s in n||r(e,s,t[s],null,i,o);for(const s in n){if(I(s))continue;const l=n[s],c=t[s];l!==c&&"value"!==s&&r(e,s,c,l,i,o)}"value"in n&&r(e,"value",t.value,n.value,i)}},N=(e,t,o,r,s,i,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),w(t.children||[],o,p,s,i,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(k(e.dynamicChildren,f,o,s,i,l,c),(null!=t.key||s&&t===s.subTree)&&ds(e,t,!0)):$(e,t,o,p,s,i,l,c,u)},R=(e,t,n,o,r,s,i,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,c):O(t,n,o,r,s,i,c):F(e,t,c)},O=(e,t,n,o,r,s,i)=>{const l=e.component=Ci(e,o,r);if(io(e)&&(l.ctx.renderer=X),Di(l,!1,i),l.asyncDep){if(r&&r.registerDep(l,P,i),!e.el){const e=l.subTree=ai(Ws);S(null,e,t,n)}}else P(l,e,t,n,r,s,i)},F=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:c}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||Ds(o,i,a):!!i);if(1024&c)return!0;if(16&c)return o?Ds(o,i,a):!!i;if(8&c){const e=t.dynamicProps;for(let t=0;tgn&&mn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},P=(e,t,n,o,r,s,i)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:a}=e;{const n=ps(e);if(n)return t&&(t.el=a.el,M(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;as(e,!1),t?(t.el=a.el,M(e,t,i)):t=a,n&&B(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&bi(u,l,t,a),as(e,!0);const p=Ns(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Fs(e,p.el),o&&rs(o,r),(u=t.props&&t.props.onVnodeUpdated)&&rs((()=>bi(u,l,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=oo(t);if(as(e,!1),a&&B(a),!p&&(i=c&&c.onVnodeBeforeMount)&&bi(i,d,t),as(e,!0),l&&ee){const n=()=>{e.subTree=Ns(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Ns(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&rs(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;rs((()=>bi(i,d,e)),r)}(256&t.shapeFlag||d&&oo(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&rs(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new be(c,l,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,as(e,!0),u()},M=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=Lt(r),[c]=e.propsOptions;let a=!1;if(!(o||i>0)||16&i){let o;Ar(e,t,r,s)&&(a=!0);for(const s in l)t&&(f(t,s)||(o=L(s))!==s&&f(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Ir(c,l,s,void 0,e,!0)):delete r[s]);if(s!==l)for(const e in s)t&&f(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void j(a,d,n,o,r,s,i,l,c);if(256&h)return void V(a,d,n,o,r,s,i,l,c)}8&f?(16&u&&G(a,r,s),d!==a&&p(n,d)):16&u?16&f?j(a,d,n,o,r,s,i,l,c):G(a,r,s,!0):(8&u&&p(n,""),16&f&&w(d,n,o,r,s,i,l,c))},V=(e,t,n,o,r,s,l,c,a)=>{t=t||i;const u=(e=e||i).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?G(e,r,s,!0,!1,p):w(t,n,o,r,s,l,c,a,p)},j=(e,t,n,o,r,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],i=t[u]=a?gi(t[u]):mi(t[u]);if(!ri(o,i))break;y(o,i,n,null,r,s,l,c,a),u++}for(;u<=p&&u<=h;){const o=e[p],i=t[h]=a?gi(t[h]):mi(t[h]);if(!ri(o,i))break;y(o,i,n,null,r,s,l,c,a),p--,h--}if(u>p){if(u<=h){const e=h+1,i=eh)for(;u<=p;)H(e[u],r,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=a?gi(t[u]):mi(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=h-m+1;let _=!1,C=0;const x=new Array(S);for(u=0;u=S){H(o,r,s,!0);continue}let i;if(null!=o.key)i=g.get(o.key);else for(v=m;v<=h;v++)if(0===x[v-m]&&ri(o,t[v])){i=v;break}void 0===i?H(o,r,s,!0):(x[i-m]=u+1,i>=C?C=i:_=!0,y(o,t[i],n,null,r,s,l,c,a),b++)}const E=_?function(e){const t=e.slice(),n=[0];let o,r,s,i,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}(x):i;for(v=E.length-1,u=S-1;u>=0;u--){const e=m+u,i=t[e],p=e+1{const{el:i,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)U(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,X);else if(l!==Hs)if(l!==Ks)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(i),n(i,t,o),rs((()=>c.enter(i)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=c,l=()=>n(i,t,o),a=()=>{e(i,(()=>{l(),s&&s()}))};r?r(i,l,a):a()}else n(i,t,o);else(({el:e,anchor:t},o,r)=>{let s;for(;e&&e!==t;)s=m(e),n(e,o,r),e=s;n(t,o,r)})(e,t,o);else{n(i,t,o);for(let e=0;e{const{type:s,props:i,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(r=!1),null!=l&&qr(l,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!oo(e);let g;if(m&&(g=i&&i.onVnodeBeforeUnmount)&&bi(g,t,e),6&u)z(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&Un(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,o):a&&!a.hasOnce&&(s!==Hs||d>0&&64&d)?G(a,t,n,!1,!0):(s===Hs&&384&d||!r&&16&u)&&G(c,t,n),o&&W(e)}(m&&(g=i&&i.onVnodeUnmounted)||f)&&rs((()=>{g&&bi(g,t,e),f&&Un(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===Hs)return void K(n,r);if(t===Ks)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),o(e),e=n;o(t)})(e);const i=()=>{o(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=m(e),o(e),e=n;o(t)},z=(e,t,n)=>{const{bum:o,scope:r,update:s,subTree:i,um:l,m:c,a}=e;hs(c),hs(a),o&&B(o),r.stop(),s&&(s.active=!1,H(i,e,t,n)),l&&rs(l,t),rs((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,o=!1,r=!1,s=0)=>{for(let i=s;i{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[Wr];return n?m(n):t};let Y=!1;const Q=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Y||(Y=!0,Tn(),kn(),Y=!1),t._vnode=e},X={p:y,um:H,m:U,r:W,mt:O,mc:w,pc:$,pbc:k,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(X)),{render:Q,hydrate:Z,createApp:Sr(Q,Z)}}function cs({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function as({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function us(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ds(e,t,n=!1){const o=e.children,r=t.children;if(m(o)&&m(r))for(let e=0;exr(fs);function gs(e,t){return _s(e,null,t)}function vs(e,t){return _s(e,null,{flush:"post"})}function ys(e,t){return _s(e,null,{flush:"sync"})}const bs={};function Ss(e,t,n){return _s(e,t,n)}function _s(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:c,onTrigger:a}=s){if(t&&i){const e=t;t=(...t)=>{e(...t),T()}}const u=xi,d=e=>!0===o?e:Es(e,!1===o?1:void 0);let h,f,g=!1,v=!1;if(Ut(e)?(h=()=>e.value,g=Dt(e)):Rt(e)?(h=()=>d(e),g=!0):m(e)?(v=!0,g=e.some((e=>Rt(e)||Dt(e))),h=()=>e.map((e=>Ut(e)?e.value:Rt(e)?d(e):b(e)?un(e,u,2):void 0))):h=b(e)?t?()=>un(e,u,2):()=>(f&&f(),dn(e,u,3,[S])):l,t&&o){const e=h;h=()=>Es(e())}let y,S=e=>{f=E.onStop=()=>{un(e,u,4),f=E.onStop=void 0}};if(Oi){if(S=l,t?n&&dn(t,u,3,[h(),v?[]:void 0,S]):h(),"sync"!==r)return l;{const e=ms();y=e.__watcherHandles||(e.__watcherHandles=[])}}let _=v?new Array(e.length).fill(bs):bs;const C=()=>{if(E.active&&E.dirty)if(t){const e=E.run();(o||g||(v?e.some(((e,t)=>$(e,_[t]))):$(e,_)))&&(f&&f(),dn(t,u,3,[e,_===bs?void 0:v&&_[0]===bs?[]:_,S]),_=e)}else E.run()};let x;C.allowRecurse=!!t,"sync"===r?x=C:"post"===r?x=()=>rs(C,u&&u.suspense):(C.pre=!0,u&&(C.id=u.uid),x=()=>xn(C));const E=new be(h,l,x),w=ve(),T=()=>{E.stop(),w&&p(w.effects,E)};return t?n?C():_=E.run():"post"===r?rs(E.run.bind(E),u&&u.suspense):E.run(),y&&y.push(T),T}function Cs(e,t,n){const o=this.proxy,r=S(e)?e.includes(".")?xs(o,e):()=>o[e]:e.bind(o,o);let s;b(t)?s=t:(s=t.handler,n=t);const i=ki(this),l=_s(r,s.bind(o),n);return i(),l}function xs(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Es(e,t,n)}));else if(k(e)){for(const o in e)Es(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Es(e[o],t,n)}return e}function ws(e,t,n=s){const o=Ei(),r=D(t),i=L(t),l=Ts(e,t),c=Zt(((s,l)=>{let c,a,u;return ys((()=>{const n=e[t];$(c,n)&&(c=n,l())})),{get:()=>(s(),n.get?n.get(c):c),set(e){if(!$(e,c))return;const s=o.vnode.props;s&&(t in s||r in s||i in s)&&(`onUpdate:${t}`in s||`onUpdate:${r}`in s||`onUpdate:${i}`in s)||(c=e,l());const d=n.set?n.set(e):e;o.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||s:c,done:!1}:{done:!0}}},c}const Ts=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${L(t)}Modifiers`];function ks(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||s;let r=n;const i=t.startsWith("update:"),l=i&&Ts(o,t.slice(7));let c;l&&(l.trim&&(r=n.map((e=>S(e)?e.trim():e))),l.number&&(r=n.map(j)));let a=o[c=M(t)]||o[c=M(D(t))];!a&&i&&(a=o[c=M(L(t))]),a&&dn(a,e,6,r);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,dn(u,e,6,r)}}function As(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},l=!1;if(!b(e)){const o=e=>{const n=As(e,t,!0);n&&(l=!0,d(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?(m(s)?s.forEach((e=>i[e]=null)):d(i,s),C(e)&&o.set(e,i),i):(C(e)&&o.set(e,null),null)}function Is(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),f(e,t[0].toLowerCase()+t.slice(1))||f(e,L(t))||f(e,t))}function Ns(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:l,emit:c,render:a,renderCache:d,props:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,v=Pn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=mi(a.call(t,e,d,p,f,h,m)),b=l}else{const e=t;y=mi(e.length>1?e(p,{attrs:l,slots:i,emit:c}):e(p,null)),b=t.props?l:Rs(l)}}catch(t){zs.length=0,pn(t,e,1),y=ai(Ws)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(s&&e.some(u)&&(b=Os(b,s)),S=di(S,b,!1,!0))}return n.dirs&&(S=di(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Pn(v),y}const Rs=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Os=(e,t)=>{const n={};for(const o in e)u(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ds(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Ps=0;const Ms={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,s,i,l,c,a){if(null==e)!function(e,t,n,o,r,s,i,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bs(e,r,o,t,d,n,s,i,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,s,i),p.deps>0?($s(e,"onPending"),$s(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,s,i),Us(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,s,i,l,c,a);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,s,i,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,ri(p,m)?(c(m,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():g&&(v||(c(f,h,n,o,r,null,s,i,l),Us(d,h)))):(d.pendingId=Ps++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():(c(f,h,n,o,r,null,s,i,l),Us(d,h))):f&&ri(p,f)?(c(f,p,n,o,r,d,s,i,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0&&d.resolve()));else if(f&&ri(p,f))c(f,p,n,o,r,d,s,i,l),Us(d,p);else if($s(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Ps++,c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,i,l,c,a)}},hydrate:function(e,t,n,o,r,s,i,l,c){const a=t.suspense=Bs(t,o,n,e.parentNode,document.createElement("div"),null,r,s,i,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,s,i);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=Vs(o?n.default:n),e.ssFallback=o?Vs(n.fallback):ai(Ws)}};function $s(e,t){const n=e.props&&e.props[t];b(n)&&n()}function Bs(e,t,n,o,r,s,i,l,c,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?U(e.props.timeout):void 0,S=s,_={vnode:e,parent:t,parentComponent:n,namespace:i,container:o,hiddenContainer:r,deps:0,pendingId:Ps++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:i,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&i.transition&&"out-in"===i.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(i,u,s===S?f(r):s,0),wn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(s=f(r)),h(r,a,_,!0)),d||p(i,u,s,0)),Us(_,i),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||wn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),$s(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:s}=_;$s(t,"onFallback");const i=f(n),a=()=>{_.isInFallback&&(d(null,e,r,i,o,null,s,l,c),Us(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{pn(t,e,0)})).then((s=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Fi(e,s,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:f(e.subTree),_,i,n),c&&g(c),Fs(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function Vs(e){let t;if(b(e)){const n=Xs&&e._c;n&&(e._d=!1,Js()),e=e(),n&&(e._d=!0,t=Gs,Ys())}if(m(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function js(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):wn(e)}function Us(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Fs(o,r))}const Hs=Symbol.for("v-fgt"),qs=Symbol.for("v-txt"),Ws=Symbol.for("v-cmt"),Ks=Symbol.for("v-stc"),zs=[];let Gs=null;function Js(e=!1){zs.push(Gs=e?null:[])}function Ys(){zs.pop(),Gs=zs[zs.length-1]||null}let Qs,Xs=1;function Zs(e){Xs+=e,e<0&&Gs&&(Gs.hasOnce=!0)}function ei(e){return e.dynamicChildren=Xs>0?Gs||i:null,Ys(),Xs>0&&Gs&&Gs.push(e),e}function ti(e,t,n,o,r,s){return ei(ci(e,t,n,o,r,s,!0))}function ni(e,t,n,o,r){return ei(ai(e,t,n,o,r,!0))}function oi(e){return!!e&&!0===e.__v_isVNode}function ri(e,t){return e.type===t.type&&e.key===t.key}function si(e){Qs=e}const ii=({key:e})=>null!=e?e:null,li=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?S(e)||Ut(e)||b(e)?{i:Fn,r:e,k:t,f:!!n}:e:null);function ci(e,t=null,n=null,o=0,r=null,s=(e===Hs?0:1),i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&li(t),scopeId:Ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Fn};return l?(vi(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=S(n)?8:16),Xs>0&&!i&&Gs&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Gs.push(c),c}const ai=function(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Ro||(e=Ws),oi(e)){const o=di(e,t,!0);return n&&vi(o,n),Xs>0&&!s&&Gs&&(6&o.shapeFlag?Gs[Gs.indexOf(e)]=o:Gs.push(o)),o.patchFlag=-2,o}if(i=e,b(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=ui(t);let{class:e,style:n}=t;e&&!S(e)&&(t.class=X(e)),C(n)&&(Ft(n)&&!m(n)&&(n=d({},n)),t.style=z(n))}var i;return ci(e,t,n,o,r,S(e)?1:Ls(e)?128:(e=>e.__isTeleport)(e)?64:C(e)?4:b(e)?2:0,s,!0)};function ui(e){return e?Ft(e)||kr(e)?d({},e):e:null}function di(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:l,transition:c}=e,a=t?yi(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ii(a),ref:t&&t.ref?n&&s?m(s)?s.concat(li(t)):[s,li(t)]:li(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Hs?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&di(e.ssContent),ssFallback:e.ssFallback&&di(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&eo(u,c.clone(u)),u}function pi(e=" ",t=0){return ai(qs,null,e,t)}function hi(e,t){const n=ai(Ks,null,e);return n.staticCount=t,n}function fi(e="",t=!1){return t?(Js(),ni(Ws,null,e)):ai(Ws,null,e)}function mi(e){return null==e||"boolean"==typeof e?ai(Ws):m(e)?ai(Hs,null,e.slice()):"object"==typeof e?gi(e):ai(qs,null,String(e))}function gi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:di(e)}function vi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),vi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kr(t)?3===o&&Fn&&(1===Fn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Fn}}else b(t)?(t={default:t,_ctx:Fn},n=32):(t=String(t),64&o?(n=16,t=[pi(t)]):n=8);e.children=t,e.shapeFlag|=n}function yi(...e){const t={};for(let n=0;nxi||Fn;let wi,Ti;{const e=q(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};wi=t("__VUE_INSTANCE_SETTERS__",(e=>xi=e)),Ti=t("__VUE_SSR_SETTERS__",(e=>Oi=e))}const ki=e=>{const t=xi;return wi(e),e.scope.on(),()=>{e.scope.off(),wi(t)}},Ai=()=>{xi&&xi.scope.off(),wi(null)};function Ii(e){return 4&e.vnode.shapeFlag}let Ni,Ri,Oi=!1;function Di(e,t=!1,n=!1){t&&Ti(t);const{props:o,children:r}=e.vnode,s=Ii(e);!function(e,t,n,o=!1){const r={},s=Tr();e.propsDefaults=Object.create(null),Ar(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:kt(r):e.type.props?e.props=r:e.props=s,e.attrs=s}(e,o,s,t),Ur(e,r,n);const i=s?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bi(e):null,r=ki(e);Ie();const s=un(o,e,0,[e.props,n]);if(Ne(),r(),x(s)){if(s.then(Ai,Ai),t)return s.then((n=>{Fi(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=s}else Fi(e,s,t)}else Mi(e,t)}(e,t):void 0;return t&&Ti(!1),i}function Fi(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:C(t)&&(e.setupState=Qt(t)),Mi(e,n)}function Li(e){Ni=e,Ri=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Wo))}}const Pi=()=>!Ni;function Mi(e,t,n){const o=e.type;if(!e.render){if(!t&&Ni&&!o.render){const t=o.template||ur(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:i}=o,l=d(d({isCustomElement:n,delimiters:s},r),i);o.render=Ni(t,l)}}e.render=o.render||l,Ri&&Ri(e)}{const t=ki(e);Ie();try{!function(e){const t=ur(e),n=e.proxy,o=e.ctx;lr=!1,t.beforeCreate&&cr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:f,updated:g,activated:v,deactivated:y,beforeDestroy:S,beforeUnmount:_,destroyed:x,unmounted:E,render:w,renderTracked:T,renderTriggered:k,errorCaptured:A,serverPrefetch:I,expose:N,inheritAttrs:R,components:O,directives:D,filters:F}=t;if(u&&function(e,t){m(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=C(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ut(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),i)for(const e in i){const t=i[e];b(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);C(t)&&(e.data=Tt(t))}if(lr=!0,s)for(const e in s){const t=s[e],r=b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):l,i=!b(t)&&b(t.set)?t.set.bind(n):l,c=Ui({get:r,set:i});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)ar(c[e],o,n,e);if(a){const e=b(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{Cr(t,e[t])}))}function L(e,t){m(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&cr(d,e,"c"),L(yo,p),L(bo,h),L(So,f),L(_o,g),L(ao,v),L(uo,y),L(ko,A),L(To,T),L(wo,k),L(Co,_),L(xo,E),L(Eo,I),m(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===l&&(e.render=w),null!=R&&(e.inheritAttrs=R),O&&(e.components=O),D&&(e.directives=D)}(e)}finally{Ne(),t()}}}const $i={get:(e,t)=>(Ve(e,0,""),e[t])};function Bi(e){return{attrs:new Proxy(e.attrs,$i),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Vi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qt(Pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Uo?Uo[n](e):void 0,has:(e,t)=>t in e||t in Uo})):e.proxy}function ji(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}const Ui=(e,t)=>function(e,t,n=!1){let o,r;const s=b(e);return s?(o=e,r=l):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Oi);function Hi(e,t,n){const o=arguments.length;return 2===o?C(t)&&!m(t)?oi(t)?ai(e,null,[t]):ai(e,t):ai(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&oi(n)&&(n=[n]),ai(e,t,n))}function qi(){}function Wi(e,t,n,o){const r=n[o];if(r&&Ki(r,e))return r;const s=t();return s.memo=e.slice(),s.cacheIndex=o,n[o]=s}function Ki(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gs&&Gs.push(e),!0}const zi="3.4.33",Gi=l,Ji={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Yi=Rn,Qi=function e(t,n){var o,r;Rn=t,Rn?(Rn.enabled=!0,On.forEach((({event:e,args:t})=>Rn.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Rn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Dn=!0,On=[])}),3e3)):(Dn=!0,On=[])},Xi={createComponentInstance:Ci,setupComponent:Di,renderComponentRoot:Ns,setCurrentRenderingInstance:Pn,isVNode:oi,normalizeVNode:mi,getComponentPublicInstance:Vi},Zi=null,el=null,tl=null,nl="undefined"!=typeof document?document:null,ol=nl&&nl.createElement("template"),rl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?nl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?nl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?nl.createElement(e,{is:n}):nl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>nl.createTextNode(e),createComment:e=>nl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{ol.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=ol.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},sl="transition",il="animation",ll=Symbol("_vtc"),cl=(e,{slots:t})=>Hi(Jn,hl(e),t);cl.displayName="Transition";const al={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ul=cl.props=d({},zn,al),dl=(e,t=[])=>{m(e)?e.forEach((e=>e(...t))):e&&e(...t)},pl=e=>!!e&&(m(e)?e.some((e=>e.length>1)):e.length>1);function hl(e){const t={};for(const n in e)n in al||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:a=i,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(C(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:S,onLeave:_,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:w=b,onAppearCancelled:T=S}=t,k=(e,t,n)=>{gl(e,t?u:l),gl(e,t?a:i),n&&n()},A=(e,t)=>{e._isLeaving=!1,gl(e,p),gl(e,f),gl(e,h),t&&t()},I=e=>(t,n)=>{const r=e?w:b,i=()=>k(t,e,n);dl(r,[t,i]),vl((()=>{gl(t,e?c:s),ml(t,e?u:l),pl(r)||bl(t,o,g,i)}))};return d(t,{onBeforeEnter(e){dl(y,[e]),ml(e,s),ml(e,i)},onBeforeAppear(e){dl(E,[e]),ml(e,c),ml(e,a)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);ml(e,p),ml(e,h),xl(),vl((()=>{e._isLeaving&&(gl(e,p),ml(e,f),pl(_)||bl(e,o,v,n))})),dl(_,[e,n])},onEnterCancelled(e){k(e,!1),dl(S,[e])},onAppearCancelled(e){k(e,!0),dl(T,[e])},onLeaveCancelled(e){A(e),dl(x,[e])}})}function fl(e){return U(e)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[ll]||(e[ll]=new Set)).add(t)}function gl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[ll];n&&(n.delete(t),n.size||(e[ll]=void 0))}function vl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let yl=0;function bl(e,t,n,o){const r=e._endId=++yl,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:c}=Sl(e,t);if(!i)return o();const a=i+"end";let u=0;const d=()=>{e.removeEventListener(a,p),s()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${sl}Delay`),s=o(`${sl}Duration`),i=_l(r,s),l=o(`${il}Delay`),c=o(`${il}Duration`),a=_l(l,c);let u=null,d=0,p=0;return t===sl?i>0&&(u=sl,d=i,p=s.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(i,a),u=d>0?i>a?sl:il:null,p=u?u===sl?s.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===sl&&/\b(transform|all)(,|$)/.test(o(`${sl}Property`).toString())}}function _l(e,t){for(;e.lengthCl(t)+Cl(e[n]))))}function Cl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const El=Symbol("_vod"),wl=Symbol("_vsh"),Tl={beforeMount(e,{value:t},{transition:n}){e[El]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):kl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),kl(e,!0),o.enter(e)):o.leave(e,(()=>{kl(e,!1)})):kl(e,t))},beforeUnmount(e,{value:t}){kl(e,t)}};function kl(e,t){e.style.display=t?e[El]:"none",e[wl]=!t}const Al=Symbol("");function Il(e){const t=Ei();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Rl(e,n)))},o=()=>{const o=e(t.proxy);Nl(t.subTree,o),n(o)};bo((()=>{vs(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Nl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Nl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Rl(e.el,t);else if(e.type===Hs)e.children.forEach((e=>Nl(e,t)));else if(e.type===Ks){let{el:n,anchor:o}=e;for(;n&&(Rl(n,t),n!==o);)n=n.nextSibling}}function Rl(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[Al]=o}}const Ol=/(^|;)\s*display\s*:/,Dl=/\s*!important$/;function Fl(e,t,n){if(m(n))n.forEach((n=>Fl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Pl[t];if(n)return n;let o=D(t);if("filter"!==o&&o in e)return Pl[t]=o;o=P(o);for(let n=0;nUl||(Hl.then((()=>Ul=0)),Ul=Date.now()),Wl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Kl(e,t,n){const o=no(e,t);class r extends Jl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Kl(e,t,Rc),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Jl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Cn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Nc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=U(this._props[e])),(r||(r=Object.create(null)))[D(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=D(e);this._numberProps&&this._numberProps[n]&&(t=U(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(L(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(L(e),t+""):t||this.removeAttribute(L(e))))}_update(){Nc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ai(this._def,d({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Jl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Yl(e="$style"){{const t=Ei();if(!t)return s;const n=t.type.__cssModules;if(!n)return s;return n[e]||s}}const Ql=new WeakMap,Xl=new WeakMap,Zl=Symbol("_moveCb"),ec=Symbol("_enterCb"),tc={name:"TransitionGroup",props:d({},ul,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ei(),o=Wn();let r,s;return _o((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[ll];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(o);const{hasTransform:i}=Sl(o);return s.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(nc),r.forEach(oc);const o=r.filter(rc);xl(),o.forEach((e=>{const n=e.el,o=n.style;ml(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Zl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Zl]=null,gl(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const i=Lt(e),l=hl(i);let c=i.tag||Hs;if(r=[],s)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>B(t,e):t};function ic(e){e.target.composing=!0}function lc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cc=Symbol("_assign"),ac={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[cc]=sc(r);const s=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=j(o)),e[cc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",lc),Bl(e,"change",lc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(e[cc]=sc(i),e.composing)return;const l=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},uc={deep:!0,created(e,t,n){e[cc]=sc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=mc(e),o=e.checked,r=e[cc];if(m(t)){const e=le(t,n),s=-1!==e;if(o&&!s)r(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),r(n)}}else if(v(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(gc(e,o))}))},mounted:dc,beforeUpdate(e,t,n){e[cc]=sc(n),dc(e,t,n)}};function dc(e,{value:t,oldValue:n},o){e._modelValue=t,m(t)?e.checked=le(t,o.props.value)>-1:v(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,gc(e,!0)))}const pc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[cc]=sc(n),Bl(e,"change",(()=>{e[cc](mc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[cc]=sc(o),t!==n&&(e.checked=ie(t,o.props.value))}},hc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=v(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(mc(e)):mc(e)));e[cc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,Cn((()=>{e._assigning=!1}))})),e[cc]=sc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[cc]=sc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=m(t);if(!o||r||v(t)){for(let n=0,s=e.options.length;nString(e)===String(i))):le(t,i)>-1}else s.selected=t.has(i);else if(ie(mc(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function mc(e){return"_value"in e?e._value:e.value}function gc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const vc={created(e,t,n){bc(e,t,n,null,"created")},mounted(e,t,n){bc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){bc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){bc(e,t,n,o,"updated")}};function yc(e,t){switch(e){case"SELECT":return hc;case"TEXTAREA":return ac;default:switch(t){case"checkbox":return uc;case"radio":return pc;default:return ac}}}function bc(e,t,n,o,r){const s=yc(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,o)}const Sc=["ctrl","shift","alt","meta"],_c={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Sc.some((n=>e[`${n}Key`]&&!t.includes(n)))},Cc=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=L(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},wc=d({patchProp:(e,t,n,o,r,s)=>{const i="svg"===r;"class"===t?function(e,t,n){const o=e[ll];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,r=S(n);let s=!1;if(n&&!r){if(t)if(S(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Fl(o,t,"")}else for(const e in t)null==n[e]&&Fl(o,e,"");for(const e in n)"display"===e&&(s=!0),Fl(o,e,n[e])}else if(r){if(t!==n){const e=o[Al];e&&(n+=";"+e),o.cssText=n,s=Ol.test(n)}}else t&&e.removeAttribute("style");El in e&&(e[El]=s?o.display:"",e[wl]&&(o.display="none"))}(e,n,o):a(t)?u(t)||function(e,t,n,o,r=null){const s=e[Vl]||(e[Vl]={}),i=s[t];if(o&&i)i.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):L(e.slice(2)),t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();dn(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ql(),n}(o,r);Bl(e,n,i,l)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),s[t]=void 0)}}(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Wl(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Wl(t)||!S(n))&&t in e}(e,t,o,i))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,s=null==n?"":String(n);return r===s&&"_value"in e||(e.value=s),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=se(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||$l(e,t,o,i,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),$l(e,t,o,i))}},rl);let Tc,kc=!1;function Ac(){return Tc||(Tc=ss(wc))}function Ic(){return Tc=kc?Tc:is(wc),kc=!0,Tc}const Nc=(...e)=>{Ac().render(...e)},Rc=(...e)=>{Ic().hydrate(...e)},Oc=(...e)=>{const t=Ac().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Lc(e);if(!o)return;const r=t._component;b(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,Fc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},Dc=(...e)=>{const t=Ic().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Lc(e);if(t)return n(t,!0,Fc(t))},t};function Fc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Lc(e){return S(e)?document.querySelector(e):e}let Pc=!1;const Mc=()=>{Pc||(Pc=!0,ac.getSSRProps=({value:e})=>({value:e}),pc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},uc.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&le(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},vc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=yc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Tl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},$c=Symbol(""),Bc=Symbol(""),Vc=Symbol(""),jc=Symbol(""),Uc=Symbol(""),Hc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),Kc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Jc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Xc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),sa=Symbol(""),ia=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),fa=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),Ca=Symbol(""),xa={[$c]:"Fragment",[Bc]:"Teleport",[Vc]:"Suspense",[jc]:"KeepAlive",[Uc]:"BaseTransition",[Hc]:"openBlock",[qc]:"createBlock",[Wc]:"createElementBlock",[Kc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Jc]:"createTextVNode",[Yc]:"createStaticVNode",[Qc]:"resolveComponent",[Xc]:"resolveDynamicComponent",[Zc]:"resolveDirective",[ea]:"resolveFilter",[ta]:"withDirectives",[na]:"renderList",[oa]:"renderSlot",[ra]:"createSlots",[sa]:"toDisplayString",[ia]:"mergeProps",[la]:"normalizeClass",[ca]:"normalizeStyle",[aa]:"normalizeProps",[ua]:"guardReactiveProps",[da]:"toHandlers",[pa]:"camelize",[ha]:"capitalize",[fa]:"toHandlerKey",[ma]:"setBlockTracking",[ga]:"pushScopeId",[va]:"popScopeId",[ya]:"withCtx",[ba]:"unref",[Sa]:"isRef",[_a]:"withMemo",[Ca]:"isMemoSame"},Ea={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wa(e,t,n,o,r,s,i,l=!1,c=!1,a=!1,u=Ea){return e&&(l?(e.helper(Hc),e.helper(La(e.inSSR,a))):e.helper(Fa(e.inSSR,a)),i&&e.helper(ta)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:i,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ta(e,t=Ea){return{type:17,loc:t,elements:e}}function ka(e,t=Ea){return{type:15,loc:t,properties:e}}function Aa(e,t){return{type:16,loc:Ea,key:S(e)?Ia(e,!0):e,value:t}}function Ia(e,t=!1,n=Ea,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Na(e,t=Ea){return{type:8,loc:t,children:e}}function Ra(e,t=[],n=Ea){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ea){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Da(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ea}}function Fa(e,t){return e||t?Kc:zc}function La(e,t){return e||t?qc:Wc}function Pa(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Fa(o,e.isComponent)),t(Hc),t(La(o,e.isComponent)))}const Ma=new Uint8Array([123,123]),$a=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function Va(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||Va(e)}function Ua(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Qa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return Vc;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Uc}}const Xa=/^\d|[^\$\w\xA0-\uFFFF]/,Za=e=>!Xa.test(e),eu=/[A-Za-z_$\xA0-\uFFFF]/,tu=/[\.\?\w$\xA0-\uFFFF]/,nu=/\s+[.[]\s*|\s*[.[]\s+/g,ou=e=>{e=e.trim().replace(nu,(e=>e.trim()));let t=0,n=[],o=0,r=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===o))}return n}function mu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const gu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,vu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:c,isPreTag:c,isCustomElement:c,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let yu=vu,bu=null,Su="",_u=null,Cu=null,xu="",Eu=-1,wu=-1,Tu=0,ku=!1,Au=null;const Iu=[],Nu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Ma,this.delimiterClose=$a,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Ma,this.delimiterClose=$a}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Va(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Ha.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Iu,{onerr:Yu,ontext(e,t){Lu(Du(e,t),e,t)},ontextentity(e,t,n){Lu(e,t,n)},oninterpolation(e,t){if(ku)return Lu(Du(e,t),e,t);let n=e+Nu.delimiterOpen.length,o=t-Nu.delimiterClose.length;for(;Va(Su.charCodeAt(n));)n++;for(;Va(Su.charCodeAt(o-1));)o--;let r=Du(n,o);r.includes("&")&&(r=yu.decodeEntities(r,!1)),Wu({type:5,content:Ju(r,!1,Ku(n,o)),loc:Ku(e,t)})},onopentagname(e,t){const n=Du(e,t);_u={type:1,tag:n,ns:yu.getNamespace(n,Iu[0],yu.ns),tagType:0,props:[],children:[],loc:Ku(e-1,t),codegenNode:void 0}},onopentagend(e){Fu(e)},onclosetag(e,t){const n=Du(e,t);if(!yu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Yu(24,Iu[0].loc.start.offset);for(let n=0;n<=e;n++)Pu(Iu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Yu(2,t)},onattribend(e,t){if(_u&&Cu){if(zu(Cu.loc,t),0!==e)if(xu.includes("&")&&(xu=yu.decodeEntities(xu,!0)),6===Cu.type)"class"===Cu.name&&(xu=qu(xu).trim()),1!==e||xu||Yu(13,t),Cu.value={type:2,content:xu,loc:1===e?Ku(Eu,wu):Ku(Eu-1,wu+1)},Nu.inSFCRoot&&"template"===_u.tag&&"lang"===Cu.name&&xu&&"html"!==xu&&Nu.enterRCDATA(Ua("{const r=t.start.offset+n;return Ju(e,!1,Ku(r,r+e.length),0,o?1:0)},l={source:i(s.trim(),n.indexOf(s,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Ru);if(u){c=c.replace(Ru,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=i(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=i(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=i(c,a,!0)),l}(Cu.exp));let t=-1;"bind"===Cu.name&&(t=Cu.modifiers.indexOf("sync"))>-1&&Ka("COMPILER_V_BIND_SYNC",yu,Cu.loc,Cu.rawName)&&(Cu.name="model",Cu.modifiers.splice(t,1))}7===Cu.type&&"pre"===Cu.name||_u.props.push(Cu)}xu="",Eu=wu=-1},oncomment(e,t){yu.comments&&Wu({type:3,content:Du(e,t),loc:Ku(e-4,t+3)})},onend(){const e=Su.length;for(let t=0;t64&&n<91||Qa(e)||yu.isBuiltInComponent&&yu.isBuiltInComponent(e)||yu.isNativeTag&&!yu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Ka("COMPILER_INLINE_TEMPLATE",yu,n.loc)&&e.children.length&&(n.value={type:2,content:Du(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Mu(e,t){let n=e;for(;Su.charCodeAt(n)!==t&&n>=0;)n--;return n}const $u=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&od(r,t)>=2){const n=rd(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Zu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Zu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:l,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){S(e)&&(e=Ia(e)),k.hoists.push(e);const t=Ia(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ea}}(k.cached++,e,t)};return k.filters=new Set,k}(e,t);id(e,n),t.hoistStatic&&Qu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Xu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Pa(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;W[64],e.codegenNode=wa(t,n($c),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(cu))return;const s=[];for(let i=0;i`${xa[e]}: _${xa[e]}`;function ud(e,t,{helper:n,push:o,newline:r,isTS:s}){const i=n("filter"===t?ea:"component"===t?Qc:Zc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),pd(e,t,n),n&&t.deindent(),t.push("]")}function pd(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let i=0;ie||"null"))}([s,i,l,f,a]),t),n(")"),d&&n(")"),u&&(n(", "),hd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=S(e.callee)?e.callee:o(e.callee);r&&n(cd),n(s+"(",-2,e),pd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const l=i.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),i?(c&&n("return "),m(i)?dd(i,t):hd(i,t)):l&&hd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:i,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Za(n.content);e&&i("("),fd(n,t),e&&i(")")}else i("("),hd(n,t),i(")");s&&l(),t.indentLevel++,s||i(" "),i("? "),hd(o,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===r.type;u||t.indentLevel++,hd(r,t),u||t.indentLevel--,s&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ma)}(-1),`),i(),n("(")),n(`_cache[${e.index}] = `),hd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),i(),n(`${o(ma)}(1),`),i(),n(`_cache[${e.index}]`),s()),n(")")}(e,t);break;case 21:pd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function md(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ja(28,t.loc)),t.exp=Ia("true",!1,o)}if("if"===t.name){const r=yd(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const i=r[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Ja(30,e.loc)),n.removeNode();const r=yd(e,t);i.branches.push(r);const s=o&&o(i,r,!1);id(r,n),s&&s(),n.currentNode=null}else n.onError(Ja(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),i=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(o)e.codegenNode=bd(t,i,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=bd(t,i+e.branches.length-1,n)}}}))));function yd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ru(e,"for")?e.children:[e],userKey:su(e,"key"),isTemplateIf:n}}function bd(e,t,n){return e.condition?Da(e.condition,Sd(e,t,n),Ra(n.helper(Gc),['""',"true"])):Sd(e,t,n)}function Sd(e,t,n){const{helper:o}=n,r=Aa("key",Ia(`${t}`,!1,Ea,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return hu(e,r,n),e}{let t=64;return W[64],wa(n,o($c),ka([r]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(l=e).type&&l.callee===_a?l.arguments[1].returns:l;return 13===t.type&&Pa(t,n),hu(t,r,n),e}var l}const _d=(e,t,n)=>{const{modifiers:o,loc:r}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Ja(52,s.loc)),{props:[Aa(s,Ia("",!0,r))]};Cd(e),i=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),o.includes("camel")&&(4===s.type?s.isStatic?s.content=D(s.content):s.content=`${n.helperString(pa)}(${s.content})`:(s.children.unshift(`${n.helperString(pa)}(`),s.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(s,"."),o.includes("attr")&&xd(s,"^")),{props:[Aa(s,i)]}},Cd=(e,t)=>{const n=e.arg,o=D(n.content);e.exp=Ia(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ed=ld("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ja(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ja(32,t.loc));wd(r);const{addIdentifiers:s,removeIdentifiers:i,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:au(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const h=o&&o(p);return()=>{l.vFor--,h&&h()}}(e,t,n,(t=>{const s=Ra(o(na),[t.source]),i=au(e),l=ru(e,"memo"),c=su(e,"key",!1,!0);c&&7===c.type&&!c.exp&&Cd(c);const a=c&&(6===c.type?c.value?Ia(c.value.content,!0):void 0:c.exp),u=c&&a?Aa("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=wa(n,o($c),void 0,s,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=uu(e)?e:i&&1===e.children.length&&uu(e.children[0])?e.children[0]:null;if(f?(c=f.codegenNode,i&&u&&hu(c,u,n)):h?c=wa(n,o($c),u?ka([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,i&&u&&hu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Hc),r(La(n.inSSR,c.isComponent))):r(Fa(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Hc),o(La(n.inSSR,c.isComponent))):o(Fa(n.inSSR,c.isComponent))),l){const e=Oa(Td(t.parseResult,[Ia("_cached")]));e.body={type:21,body:[Na(["const _memo = (",l.exp,")"]),Na(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(Ca)}(_cached, _memo)) return _cached`]),Na(["const _item = ",c]),Ia("_item.memo = _memo"),Ia("return _item")],loc:Ea},s.arguments.push(e,Ia("_cache"),Ia(String(n.cached++)))}else s.arguments.push(Oa(Td(t.parseResult),c,!0))}}))}));function wd(e,t){e.finalized||(e.finalized=!0)}function Td({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ia("_".repeat(t+1),!1)))}([e,t,n,...o])}const kd=Ia("undefined",!1),Ad=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ru(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Id=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Nd(e,t,n=Id){t.helper(ya);const{children:o,loc:r}=e,s=[],i=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ru(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ya(e)&&(l=!0),s.push(Aa(e||Ia("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e{const s=n(e,void 0,o,r);return t.compatConfig&&(s.isNonScopedSlot=!0),Aa("default",s)};a?d.length&&d.some((e=>Dd(e)))&&(u?t.onError(Ja(39,d[0].loc)):s.push(e(void 0,d))):s.push(e(void 0,o))}const f=l?2:Od(e.children)?3:1;let m=ka(s.concat(Aa("_",Ia(f+"",!1))),r);return i.length&&(m=Ra(t.helper(ra),[m,Ta(i)])),{slots:m,hasDynamicSlots:l}}function Rd(e,t,n){const o=[Aa("name",e),Aa("fn",t)];return null!=n&&o.push(Aa("key",Ia(String(n),!0))),ka(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let s=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),s=su(e,"is",!1,!0);if(s)if(r||Wa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&Ia(s.value.content,!0):(e=s.exp,e||(e=Ia("is",!1,s.loc))),e)return Ra(t.helper(Xc),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(o=s.value.content.slice(4));const i=Qa(o)||t.isBuiltInComponent(o);return i?(n||t.helper(i),i):(t.helper(Qc),t.components.add(o),mu(o,"component"))}(e,t):`"${n}"`;const i=C(s)&&s.callee===Xc;let l,c,a,u,d,p=0,h=i||s===Bc||s===Vc||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Pd(e,t,void 0,r,i);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?Ta(o.map((e=>function(e,t){const n=[],o=Fd.get(e);o?n.push(t.helperString(o)):(t.helper(Zc),t.directives.add(e.name),n.push(mu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ia("true",!1,r);n.push(ka(e.modifiers.map((e=>Aa(e,t))),r))}return Ta(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(s===jc&&(h=!0,p|=1024),r&&s!==Bc&&s!==jc){const{slots:n,hasDynamicSlots:o}=Nd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&s!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===ed(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,v=!1,y=!1,b=!1,S=!1,C=!1;const x=[],E=e=>{u.length&&(d.push(ka(Md(u),l)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(Aa(Ia("ref_for",!0),Ia("true")))},T=({key:e,value:n})=>{if(Ya(e)){const s=e.content,i=a(s);if(!i||o&&!r||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||I(s)||(b=!0),i&&I(s)&&(C=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&ed(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||x.includes(s)||x.push(s),!o||"class"!==s&&"style"!==s||x.includes(s)||x.push(s)}else S=!0};for(let r=0;r1?Ra(t.helper(ia),d,l):d[0]):u.length&&(k=ka(Md(u),l)),S?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),x.length&&(m|=8),b&&(m|=32)),f||0!==m&&32!==m||!(g||C||p.length>0)||(m|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(uu(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:s}=Pd(e,t,r,!1,!1);n=o,s.length&&t.onError(Ja(36,s[0].loc))}return{slotName:o,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;s&&(i[2]=s,l=3),n.length&&(i[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),i.splice(l),e.codegenNode=Ra(t.helper(oa),i,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ud=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:i}=e;let l;if(e.exp||s.length||n.onError(Ja(35,r)),4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ia(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(D(e)):`on:${e}`,!0,i.loc)}else l=Na([`${n.helperString(fa)}(`,i,")"]);else l=i,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=ou(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Na([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Aa(l,c||Ia("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Hd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ru(e,"once",!0)){if(qd.has(e)||t.inVOnce||t.inSSR)return;return qd.add(e),t.inVOnce=!0,t.helper(ma),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Kd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ja(41,e.loc)),zd();const s=o.loc.source,i=4===o.type?o.content:s,l=n.bindingMetadata[s];if("props"===l||"props-aliased"===l)return n.onError(Ja(44,o.loc)),zd();if(!i.trim()||!ou(i))return n.onError(Ja(42,o.loc)),zd();const c=r||Ia("modelValue",!0),a=r?Ya(r)?`onUpdate:${D(r.content)}`:Na(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Na([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Aa(c,e.exp),Aa(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Za(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ya(r)?`${r.content}Modifiers`:Na([r,' + "Modifiers"']):"modelModifiers";d.push(Aa(n,Ia(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Jd=(e,t)=>{Wa("COMPILER_FILTERS",t)&&(5===e.type?Yd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Yd(e.exp,t)})))};function Yd(e,t){if(4===e.type)Qd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===i?(f=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(f,s).trim()),f=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==f&&g(),m.length){for(s=0;s{if(1===e.type){const n=ru(e,"memo");if(!n||Zd.has(e))return;return Zd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Pa(o,t),e.codegenNode=Ra(t.helper(_a),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function tp(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ja(47)):o&&n(Ja(48)),t.cacheHandlers&&n(Ja(49)),t.scopeId&&!o&&n(Ja(50));const r=d({},t,{prefixIdentifiers:!1}),s=S(e)?function(e,t){if(Nu.reset(),_u=null,Cu=null,xu="",Eu=-1,wu=-1,Iu.length=0,Su=e,yu=d({},vu),t){let e;for(e in t)null!=t[e]&&(yu[e]=t[e])}Nu.mode="html"===yu.parseMode?1:"sfc"===yu.parseMode?2:0,Nu.inXML=1===yu.ns||2===yu.ns;const n=t&&t.delimiters;n&&(Nu.delimiterOpen=Ua(n[0]),Nu.delimiterClose=Ua(n[1]));const o=bu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ea}}(0,e);return Nu.parse(Su),o.loc=Ku(0,e.length),o.children=ju(o.children),bu=null,o}(e,r):e,[i,l]=[[Wd,vd,ep,Ed,Jd,Vd,Ld,Ad,Hd],{on:Ud,bind:_d,model:Kd}];return sd(s,d({},r,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:d({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:i,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:i,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!s&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:s,runtimeModuleName:i,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Kc,zc,Gc,Jc,Yc].filter((e=>u.includes(e))).map(ad).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:s,mode:i}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ud(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ud(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?hd(e.codegenNode,n):r("null"),h&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(s,r)}const np=Symbol(""),op=Symbol(""),rp=Symbol(""),sp=Symbol(""),ip=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol(""),dp=Symbol("");var pp;let hp;pp={[np]:"vModelRadio",[op]:"vModelCheckbox",[rp]:"vModelText",[sp]:"vModelSelect",[ip]:"vModelDynamic",[lp]:"withModifiers",[cp]:"withKeys",[ap]:"vShow",[up]:"Transition",[dp]:"TransitionGroup"},Object.getOwnPropertySymbols(pp).forEach((e=>{xa[e]=pp[e]}));const fp={parseMode:"html",isVoidTag:oe,isNativeTag:e=>ee(e)||te(e)||ne(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return hp||(hp=document.createElement("div")),t?(hp.innerHTML=`
            `,hp.children[0].getAttribute("foo")):(hp.innerHTML=e,hp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?up:"TransitionGroup"===e||"transition-group"===e?dp:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},mp=(e,t)=>{const n=Q(e);return Ia(JSON.stringify(n),!1,t,3)};function gp(e,t){return Ja(e,t)}const vp=r("passive,once,capture"),yp=r("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),bp=r("left,right"),Sp=r("onkeyup,onkeydown,onkeypress",!0),_p=(e,t)=>Ya(e)&&"onclick"===e.content.toLowerCase()?Ia(t,!0):4!==e.type?Na(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Cp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ia("style",!0,t.loc),exp:mp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Ep={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(gp(53,r)),t.children.length&&(n.onError(gp(54,r)),t.children.length=0),{props:[Aa(Ia("innerHTML",!0,r),o||Ia("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(gp(55,r)),t.children.length&&(n.onError(gp(56,r)),t.children.length=0),{props:[Aa(Ia("textContent",!0),o?ed(o,n)>0?o:Ra(n.helperString(sa),[o],r):Ia("",!0))]}},model:(e,t,n)=>{const o=Kd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(gp(58,e.arg.loc));const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let i=rp,l=!1;if("input"===r||s){const o=su(t,"type");if(o){if(7===o.type)i=ip;else if(o.value)switch(o.value.content){case"radio":i=np;break;case"checkbox":i=op;break;case"file":l=!0,n.onError(gp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=ip)}else"select"===r&&(i=sp);l||(o.needRuntime=n.helper(i))}else n.onError(gp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Ud(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],s=[];for(let i=0;i{const{exp:o,loc:r}=e;return o||n.onError(gp(61,r)),{props:[],needRuntime:n.helper(ap)}}},wp=new WeakMap;Li((function(e,t){if(!S(e)){if(!e.nodeType)return l;e=e.innerHTML}const n=e,r=function(e){let t=wp.get(null!=e?e:s);return t||(t=Object.create(null),wp.set(null!=e?e:s,t)),t}(t),i=r[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=d({hoistStatic:!0,onError:void 0,onWarn:l},t);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return tp(e,d({},fp,t,{nodeTransforms:[Cp,...xp,...t.nodeTransforms||[]],directiveTransforms:d({},Ep,t.directiveTransforms||{}),transformHoist:null}))}(e,c),u=new Function("Vue",a)(o);return u._rc=!0,r[n]=u}))}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={exports:{}};return n[e](s,s.exports,r),s.exports}r.m=n,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>({245:"form-editor-view",776:"form-browser-view",951:"restore-fields-view"}[e]+".chunk.js"),r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="leaf_vue:",r.l=(n,o,s,i)=>{if(e[n])e[n].push(o);else{var l,c;if(void 0!==s)for(var a=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(h);var r=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach((e=>e(o))),t)return t(o)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),c&&document.head.appendChild(l)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={763:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var s=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=s);var i=r.p+r.u(t),l=new Error;r.l(i,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",l.name="ChunkLoadError",l.type=s,l.request=i,o[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,s,[i,l,c]=n,a=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);c&&c(r)}for(t&&t(n);ae.length)&&(t=e.length);for(var n=0,o=Array(t);n{{ message }}
            '}},created:function(){var e=this;this.getEnabledCategories(),document.addEventListener("keydown",(function(t){"escape"===((null==t?void 0:t.key)||"").toLowerCase()&&!0===e.showFormDialog&&e.closeFormDialog()}))},methods:{truncateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length<=t?e:e.slice(0,t)+n},decodeAndStripHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,XSSHelpers.stripAllTags(t.innerText)},updateChosenAttributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"List Selection",o=document.querySelector("#".concat(e,"_chosen input.chosen-search-input")),r=document.querySelector("#".concat(e,"-chosen-search-results"));null!==o&&(o.setAttribute("role","combobox"),o.setAttribute("aria-labelledby",t)),null!==r&&(r.setAttribute("title",n),r.setAttribute("role","listbox"))},showLastUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(new Date).toLocaleString(),n=document.getElementById(e);null!==n&&(n.style.display="flex",n.innerText="last modified: ".concat(t),n.style.border="2px solid #20a0f0",setTimeout((function(){n.style.border="2px solid transparent"}),750))},setDefaultAjaxResponseMessage:function(){var e=this;$.ajax({type:"POST",url:"ajaxIndex.php?a=checkstatus",data:{CSRFToken},success:function(t){e.ajaxResponseMessage=t||""},error:function(e){return reject(e)}})},initializeOrgSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"employee",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s="group"===(e=e.toLowerCase())?"group#":"#",i={};(i="group"===e?new groupSelector("".concat(n,"orgSel_").concat(t)):"position"===e?new positionSelector("".concat(n,"orgSel_").concat(t)):new employeeSelector("".concat(n,"orgSel_").concat(t))).apiPath="".concat(this.orgchartPath,"/api/"),i.rootPath="".concat(this.orgchartPath,"/"),i.basePath="".concat(this.orgchartPath,"/"),i.setSelectHandler((function(){var t=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));null!==t&&(t.value="".concat(s)+i.selection)})),"function"==typeof r&&i.setResultHandler((function(){return r(i)})),i.initialize();var l=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));""!==o&&null!==l&&(l.value="".concat(s)+o)},getEnabledCategories:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.appIsLoadingCategories=!0;try{fetch("".concat(this.APIroot,"formStack/categoryList/allWithStaples")).then((function(n){n.json().then((function(n){for(var o in e.allStapledFormCatIDs={},e.categories={},n)e.categories[n[o].categoryID]=n[o],n[o].stapledFormIDs.forEach((function(t){e.allStapledFormCatIDs[t]=void 0===e.allStapledFormCatIDs[t]?1:e.allStapledFormCatIDs[t]+1}));e.appIsLoadingCategories=!1,t&&!0===/^form_[0-9a-f]{5}$/i.test(t)&&e.$router.push({name:"category",query:{formID:t}})}))}))}catch(e){console.log("error getting categories",e)}},getSiteSettings:function(){var e=this;try{fetch("".concat(this.APIroot,"system/settings")).then((function(t){t.json().then((function(t){e.siteSettings=t,+(null==t?void 0:t.leafSecure)>=1&&e.getSecureFormsInfo()}))}))}catch(e){console.log("error getting site settings",e)}},fetchLEAFSRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t,n){var o=new LeafFormQuery;o.setRootURL("../"),o.addTerm("categoryID","=","leaf_secure"),!0===e?(o.addTerm("stepID","=","resolved"),o.join("recordResolutionData")):o.addTerm("stepID","!=","resolved"),o.onSuccess((function(e){return t(e)})),o.execute()}))},getSecureFormsInfo:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list?x-filterData=timeAdded"),success:function(e){},error:function(e){return console.log(e)}}),this.fetchLEAFSRequests(!0)];Promise.all(t).then((function(t){var n=t[0],o=t[1];e.checkLeafSRequestStatus(n,o)})).catch((function(e){return console.log("an error has occurred",e)}))},checkLeafSRequestStatus:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!1,r=0;for(var s in n)"approved"===n[s].recordResolutionData.lastStatus.toLowerCase()&&n[s].recordResolutionData.fulfillmentTime>r&&(r=n[s].recordResolutionData.fulfillmentTime);var i=new Date(1e3*parseInt(r));for(var l in t)if(new Date(t[l].timeAdded).getTime()>i.getTime()){o=!0;break}!0===o?(this.showCertificationStatus=!0,this.fetchLEAFSRequests(!1).then((function(t){if(0===Object.keys(t).length)e.secureStatusText="Forms have been modified.",e.secureBtnText="Please Recertify Your Site",e.secureBtnLink="../report.php?a=LEAF_start_leaf_secure_certification";else{var n=t[Object.keys(t)[0]].recordID;e.secureStatusText="Re-certification in progress.",e.secureBtnText="Check Certification Progress",e.secureBtnLink="../index.php?a=printview&recordID="+n}})).catch((function(e){return console.log("an error has occurred",e)}))):this.showCertificationStatus=!1},updateCategoriesProperty:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";void 0!==this.categories[e][t]&&(this.categories[e][t]=n)},updateStapledFormsInfo:function(){var e,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!0===(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?(this.categories[o].stapledFormIDs=this.categories[o].stapledFormIDs.filter((function(e){return e!==n})),(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[n])>0?this.allStapledFormCatIDs[n]=this.allStapledFormCatIDs[n]-1:console.log("check staple calc")):(this.allStapledFormCatIDs[n]=void 0===this.allStapledFormCatIDs[n]?1:this.allStapledFormCatIDs[n]+1,this.categories[o].stapledFormIDs=Array.from(new Set([].concat(function(e){if(Array.isArray(e))return i(e)}(t=this.categories[o].stapledFormIDs)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[n]))))},addNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.categories[e]=t},removeCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";delete this.categories[e]},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"},this.formSaveFunction=null,this.dialogData=null},lastModalTab:function(e){if(!1===(null==e?void 0:e.shiftKey)){var t=document.getElementById("leaf-vue-dialog-close");null!==t&&(t.focus(),e.preventDefault())}},setCustomDialogTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setFormDialogComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)},checkRequiredData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=Object.keys((null==this?void 0:this.dialogData)||{});e.forEach((function(e){n.includes(e)||t.push(e)})),t.length>0&&console.warn("expected dialogData key was not found",t)},openConfirmDeleteFormDialog:function(){this.setCustomDialogTitle("

            Delete this form

            "),this.setFormDialogComponent("confirm-delete-dialog"),this.dialogButtonText={confirm:"Yes",cancel:"No"},this.showFormDialog=!0},openStapleFormsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={mainFormID:e},this.setCustomDialogTitle("

            Editing Stapled Forms

            "),this.setFormDialogComponent("staple-form-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openEditCollaboratorsDialog:function(){this.setCustomDialogTitle("

            Customize Write Access

            "),this.setFormDialogComponent("edit-collaborators-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openIfThenDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled",n=this.truncateText(this.decodeAndStripHTML(t),35);this.dialogData={indicatorID:e},this.dialogButtonText={confirm:"Save",cancel:"Close"},this.setCustomDialogTitle('

            Conditions For '.concat(n," (").concat(e,")

            ")),this.setFormDialogComponent("conditions-editor-dialog"),this.showFormDialog=!0},openIndicatorEditingDialog:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=null===t&&null===n?"

            Adding new Section

            ":null===t?"

            Adding question to ".concat(n,"

            "):"

            Editing indicatorID ".concat(t,"

            "),this.dialogData={indicatorID:t,parentID:n,indicator:o},this.setCustomDialogTitle(e),this.setFormDialogComponent("indicator-editing-dialog"),this.showFormDialog=!0},openAdvancedOptionsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.dialogData={indicatorID:e.indicatorID,html:(null==e?void 0:e.html)||"",htmlPrint:(null==e?void 0:e.htmlPrint)||""},this.setCustomDialogTitle("

            Advanced Options for indicator ".concat(e.indicatorID,"

            ")),this.setFormDialogComponent("advanced-options-dialog"),this.showFormDialog=!0},openNewFormDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={parentID:e};var t=""===e?"

            New Form

            ":"

            New Internal Use Form

            ";this.setCustomDialogTitle(t),this.setFormDialogComponent("new-form-dialog"),this.showFormDialog=!0},openImportFormDialog:function(){this.setCustomDialogTitle("

            Import Form

            "),this.setFormDialogComponent("import-form-dialog"),this.dialogButtonText={confirm:"Import",cancel:"Close"},this.showFormDialog=!0},openFormHistoryDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={historyType:"form",historyID:e},this.setCustomDialogTitle("

            Form History

            "),this.setFormDialogComponent("history-dialog"),this.showFormDialog=!0}}},c="undefined"!=typeof document;const a=Object.assign;function u(e,t){const n={};for(const o in t){const r=t[o];n[o]=p(r)?r.map(e):e(r)}return n}const d=()=>{},p=Array.isArray,h=/#/g,f=/&/g,m=/\//g,g=/=/g,v=/\?/g,y=/\+/g,b=/%5B/g,S=/%5D/g,_=/%5E/g,C=/%60/g,x=/%7B/g,E=/%7C/g,w=/%7D/g,T=/%20/g;function k(e){return encodeURI(""+e).replace(E,"|").replace(b,"[").replace(S,"]")}function A(e){return k(e).replace(y,"%2B").replace(T,"+").replace(h,"%23").replace(f,"%26").replace(C,"`").replace(x,"{").replace(w,"}").replace(_,"^")}function I(e){return null==e?"":function(e){return k(e).replace(h,"%23").replace(v,"%3F")}(e).replace(m,"%2F")}function N(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const R=/\/$/,O=e=>e.replace(R,"");function D(e,t,n="/"){let o,r={},s="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),s=t.slice(c+1,l>-1?l:t.length),r=e(s)),l>-1&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let s,i,l=n.length-1;for(s=0;s1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(s).join("/")}(null!=o?o:t,n),{fullPath:o+(s&&"?")+s+i,path:o,query:r,hash:N(i)}}function F(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function L(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function P(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!M(e[n],t[n]))return!1;return!0}function M(e,t){return p(e)?B(e,t):p(t)?B(t,e):e===t}function B(e,t){return p(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var j,U;!function(e){e.pop="pop",e.push="push"}(j||(j={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(U||(U={}));const H=/^[^#]+#/;function q(e,t){return e.replace(H,"#")+t}const W=()=>({left:window.scrollX,top:window.scrollY});function K(e,t){return(history.state?history.state.position-t:-1)+e}const z=new Map;let G=()=>location.protocol+"//"+location.host;function J(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let t=r.includes(e.slice(s))?e.slice(s).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),F(n,"")}return F(n,e)+o+r}function Y(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?W():null}}function Q(e){return"string"==typeof e||"symbol"==typeof e}const X=Symbol("");var Z;function ee(e,t){return a(new Error,{type:e,[X]:!0},t)}function te(e,t){return e instanceof Error&&X in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Z||(Z={}));const ne="[^/]+?",oe={sensitive:!1,strict:!1,start:!0,end:!0},re=/[.+*?^${}()[\]/\\]/g;function se(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ce={type:0,value:""},ae=/[a-zA-Z0-9_]/;function ue(e,t,n){const o=function(e,t){const n=a({},oe,t),o=[];let r=n.start?"^":"";const s=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;ca(e,t.meta)),{})}function me(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function ge({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ve(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&A(e))):[o&&A(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function be(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=p(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Se=Symbol(""),_e=Symbol(""),Ce=Symbol(""),xe=Symbol(""),Ee=Symbol("");function we(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Te(e,t,n,o,r,s=e=>e()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var s;!1===e?c(ee(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(s=e)||s&&"object"==typeof s?c(ee(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),l())},u=s((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function ke(e,t,n,o,r=e=>e()){const s=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(i=c)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(c.__vccOpts||c)[t];i&&s.push(Te(i,n,o,l,e,r))}else{let i=c();s.push((()=>i.then((s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const i=(c=s).__esModule||"Module"===c[Symbol.toStringTag]?s.default:s;var c;l.components[e]=i;const a=(i.__vccOpts||i)[t];return a&&Te(a,n,o,l,e,r)()}))))}}var i;return s}function Ae(e){const t=(0,s.WQ)(Ce),n=(0,s.WQ)(xe),o=(0,s.EW)((()=>{const n=(0,s.R1)(e.to);return t.resolve(n)})),r=(0,s.EW)((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],s=n.matched;if(!r||!s.length)return-1;const i=s.findIndex(L.bind(null,r));if(i>-1)return i;const l=Ne(e[t-2]);return t>1&&Ne(r)===l&&s[s.length-1].path!==l?s.findIndex(L.bind(null,e[t-2])):i})),i=(0,s.EW)((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!p(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),l=(0,s.EW)((()=>r.value>-1&&r.value===n.matched.length-1&&P(n.params,o.value.params)));return{route:o,href:(0,s.EW)((()=>o.value.href)),isActive:i,isExactActive:l,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[(0,s.R1)(e.replace)?"replace":"push"]((0,s.R1)(e.to)).catch(d):Promise.resolve()}}}const Ie=(0,s.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ae,setup(e,{slots:t}){const n=(0,s.Kh)(Ae(e)),{options:o}=(0,s.WQ)(Ce),r=(0,s.EW)((()=>({[Re(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Re(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,s.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Re=(e,t,n)=>null!=e?e:null!=t?t:n;function Oe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const De=(0,s.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,s.WQ)(Ee),r=(0,s.EW)((()=>e.route||o.value)),i=(0,s.WQ)(_e,0),l=(0,s.EW)((()=>{let e=(0,s.R1)(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),c=(0,s.EW)((()=>r.value.matched[l.value]));(0,s.Gt)(_e,(0,s.EW)((()=>l.value+1))),(0,s.Gt)(Se,c),(0,s.Gt)(Ee,r);const u=(0,s.KR)();return(0,s.wB)((()=>[u.value,c.value,e.name]),(([e,t,n],[o,r,s])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&L(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,l=c.value,d=l&&l.components[i];if(!d)return Oe(n.default,{Component:d,route:o});const p=l.props[i],h=p?!0===p?o.params:"function"==typeof p?p(o):p:null,f=(0,s.h)(d,a({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(l.instances[i]=null)},ref:u}));return Oe(n.default,{Component:f,route:o})||f}}});var Fe,Le=[{path:"/",name:"browser",component:function(){return r.e(776).then(r.bind(r,223))}},{path:"/forms",name:"category",component:function(){return r.e(245).then(r.bind(r,211))}},{path:"/restore",name:"restore",component:function(){return r.e(951).then(r.bind(r,315))}}],Pe=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const u=me(t,e),p=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)p.push(a({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let h,f;for(const t of p){const{path:a}=t;if(n&&"/"!==a[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(a&&o+a)}if(h=ue(t,n,u),o?o.alias.push(h):(f=f||h,f!==h&&f.alias.push(h),l&&e.name&&!he(h)&&s(e.name)),ge(h)&&i(h),c.children){const e=c.children;for(let t=0;t{s(f)}:d}function s(e){if(Q(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function i(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;ie(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(ge(t)&&0===ie(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!he(e)&&o.set(e.record.name,e)}return t=me({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,s,i,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw ee(1,{location:e});i=r.record.name,l=a(de(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&de(e.params,r.keys.map((e=>e.name)))),s=r.stringify(l)}else if(null!=e.path)s=e.path,r=n.find((e=>e.re.test(s))),r&&(l=r.parse(s),i=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw ee(1,{location:e,currentLocation:t});i=r.record.name,l=a({},t.params,e.params),s=r.stringify(l)}const c=[];let u=r;for(;u;)c.unshift(u.record),u=u.parent;return{name:i,path:s,params:l,matched:c,meta:fe(c)}},removeRoute:s,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||ve,o=e.stringifyQuery||ye,r=e.history,i=we(),l=we(),h=we(),f=(0,s.IJ)(V);let m=V;c&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=u.bind(null,(e=>""+e)),v=u.bind(null,I),y=u.bind(null,N);function b(e,s){if(s=a({},s||f.value),"string"==typeof e){const o=D(n,e,s.path),i=t.resolve({path:o.path},s),l=r.createHref(o.fullPath);return a(o,i,{params:y(i.params),hash:N(o.hash),redirectedFrom:void 0,href:l})}let i;if(null!=e.path)i=a({},e,{path:D(n,e.path,s.path).path});else{const t=a({},e.params);for(const e in t)null==t[e]&&delete t[e];i=a({},e,{params:v(t)}),s.params=v(s.params)}const l=t.resolve(i,s),c=e.hash||"";l.params=g(y(l.params));const u=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,a({},e,{hash:(d=c,k(d).replace(x,"{").replace(w,"}").replace(_,"^")),path:l.path}));var d;const p=r.createHref(u);return a({fullPath:u,hash:c,query:o===ye?be(e.query):e.query||{}},l,{redirectedFrom:void 0,href:p})}function S(e){return"string"==typeof e?D(n,e,f.value.path):a({},e)}function C(e,t){if(m!==e)return ee(8,{from:t,to:e})}function E(e){return A(e)}function T(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=S(o):{path:o},o.params={}),a({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function A(e,t){const n=m=b(e),r=f.value,s=e.state,i=e.force,l=!0===e.replace,c=T(n);if(c)return A(a(S(c),{state:"object"==typeof c?a({},s,c.state):s,force:i,replace:l}),t||n);const u=n;let d;return u.redirectedFrom=t,!i&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&L(t.matched[o],n.matched[r])&&P(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(d=ee(16,{to:u,from:r}),Y(r,r,!0,!1)),(d?Promise.resolve(d):F(u,r)).catch((e=>te(e)?te(e,2)?e:J(e):G(e,u,r))).then((e=>{if(e){if(te(e,2))return A(a({replace:l},S(e.to),{state:"object"==typeof e.to?a({},s,e.to.state):s,force:i}),t||u)}else e=$(u,r,!0,l,s);return M(u,r,e),e}))}function R(e,t){const n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function F(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iL(e,s)))?o.push(s):n.push(s));const l=e.matched[i];l&&(t.matched.find((e=>L(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=ke(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Te(o,e,t))}));const c=R.bind(null,e,t);return n.push(c),re(n).then((()=>{n=[];for(const o of i.list())n.push(Te(o,e,t));return n.push(c),re(n)})).then((()=>{n=ke(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Te(o,e,t))}));return n.push(c),re(n)})).then((()=>{n=[];for(const o of s)if(o.beforeEnter)if(p(o.beforeEnter))for(const r of o.beforeEnter)n.push(Te(r,e,t));else n.push(Te(o.beforeEnter,e,t));return n.push(c),re(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ke(s,"beforeRouteEnter",e,t,O),n.push(c),re(n)))).then((()=>{n=[];for(const o of l.list())n.push(Te(o,e,t));return n.push(c),re(n)})).catch((e=>te(e,8)?e:Promise.reject(e)))}function M(e,t,n){h.list().forEach((o=>O((()=>o(e,t,n)))))}function $(e,t,n,o,s){const i=C(e,t);if(i)return i;const l=t===V,u=c?history.state:{};n&&(o||l?r.replace(e.fullPath,a({scroll:l&&u&&u.scroll},s)):r.push(e.fullPath,s)),f.value=e,Y(e,t,n,l),J()}let B;let U,H=we(),q=we();function G(e,t,n){J(e);const o=q.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function J(e){return U||(U=!e,B||(B=r.listen(((e,t,n)=>{if(!oe.listening)return;const o=b(e),s=T(o);if(s)return void A(a(s,{replace:!0}),o).catch(d);m=o;const i=f.value;var l,u;c&&(l=K(i.fullPath,n.delta),u=W(),z.set(l,u)),F(o,i).catch((e=>te(e,12)?e:te(e,2)?(A(e.to,o).then((e=>{te(e,20)&&!n.delta&&n.type===j.pop&&r.go(-1,!1)})).catch(d),Promise.reject()):(n.delta&&r.go(-n.delta,!1),G(e,o,i)))).then((e=>{(e=e||$(o,i,!1))&&(n.delta&&!te(e,8)?r.go(-n.delta,!1):n.type===j.pop&&te(e,20)&&r.go(-1,!1)),M(o,i,e)})).catch(d)}))),H.list().forEach((([t,n])=>e?n(e):t())),H.reset()),e}function Y(t,n,o,r){const{scrollBehavior:i}=e;if(!c||!i)return Promise.resolve();const l=!o&&function(e){const t=z.get(e);return z.delete(e),t}(K(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return(0,s.dY)().then((()=>i(t,n,l))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>G(e,t,n)))}const X=e=>r.go(e);let Z;const ne=new Set,oe={currentRoute:f,listening:!0,addRoute:function(e,n){let o,r;return Q(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:b,options:e,push:E,replace:function(e){return E(a(S(e),{replace:!0}))},go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:l.add,afterEach:h.add,onError:q.add,isReady:function(){return U&&f.value!==V?Promise.resolve():new Promise(((e,t)=>{H.add([e,t])}))},install(e){e.component("RouterLink",Ie),e.component("RouterView",De),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,s.R1)(f)}),c&&!Z&&f.value===V&&(Z=!0,E(r.location).catch((e=>{})));const t={};for(const e in V)Object.defineProperty(t,e,{get:()=>f.value[e],enumerable:!0});e.provide(Ce,this),e.provide(xe,(0,s.Gc)(t)),e.provide(Ee,f);const n=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(m=V,B&&B(),B=null,f.value=V,Z=!1,U=!1),n()}}};function re(e){return e.reduce(((e,t)=>e.then((()=>O(t)))),Promise.resolve())}return oe}({history:((Fe=location.host?Fe||location.pathname+location.search:"").includes("#")||(Fe+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:J(e,n)},r={value:t.state};function s(o,s,i){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:G()+e+o;try{t[i?"replaceState":"pushState"](s,"",c),r.value=s}catch(e){console.error(e),n[i?"replace":"assign"](c)}}return r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const i=a({},r.value,t.state,{forward:e,scroll:W()});s(i.current,i,!0),s(e,a({},Y(o.value,e,null),{position:i.position+1},n),!1),o.value=e},replace:function(e,n){s(e,a({},t.state,Y(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(c){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),O(e)}(e)),n=function(e,t,n,o){let r=[],s=[],i=null;const l=({state:s})=>{const l=J(e,location),c=n.value,a=t.value;let u=0;if(s){if(n.value=l,t.value=s,i&&i===c)return void(i=null);u=a?s.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:j.pop,direction:u?u>0?U.forward:U.back:U.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(a({},e.state,{scroll:W()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){i=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=a({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:q.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(Fe)),routes:Le});Pe.beforeEach((function(e){if("/bodyarea"===e.path)return!1}));const Me=Pe;var $e=(0,s.Ef)(l);$e.use(Me),$e.mount("#vue-formeditor-app")})(); \ No newline at end of file +(()=>{"use strict";var e,t,n={425:(e,t,n)=>{n.d(t,{EW:()=>Ui,Ef:()=>Oc,pM:()=>no,h:()=>Hi,WQ:()=>xr,dY:()=>Cn,Gt:()=>Cr,Kh:()=>Tt,KR:()=>Ht,Gc:()=>kt,IJ:()=>qt,R1:()=>Gt,wB:()=>Ss});var o={};function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(o),n.d(o,{BaseTransition:()=>Jn,BaseTransitionPropsValidators:()=>zn,Comment:()=>Ws,DeprecationTypes:()=>tl,EffectScope:()=>fe,ErrorCodes:()=>an,ErrorTypeStrings:()=>Ji,Fragment:()=>Hs,KeepAlive:()=>lo,ReactiveEffect:()=>be,Static:()=>Ks,Suspense:()=>Ms,Teleport:()=>Qr,Text:()=>qs,TrackOpTypes:()=>sn,Transition:()=>cl,TransitionGroup:()=>tc,TriggerOpTypes:()=>ln,VueElement:()=>Jl,assertNumber:()=>cn,callWithAsyncErrorHandling:()=>dn,callWithErrorHandling:()=>un,camelize:()=>D,capitalize:()=>P,cloneVNode:()=>di,compatUtils:()=>el,computed:()=>Ui,createApp:()=>Oc,createBlock:()=>ni,createCommentVNode:()=>fi,createElementBlock:()=>ti,createElementVNode:()=>ci,createHydrationRenderer:()=>is,createPropsRestProxy:()=>sr,createRenderer:()=>ss,createSSRApp:()=>Dc,createSlots:()=>Mo,createStaticVNode:()=>hi,createTextVNode:()=>pi,createVNode:()=>ai,customRef:()=>Zt,defineAsyncComponent:()=>ro,defineComponent:()=>no,defineCustomElement:()=>Kl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Qo,defineOptions:()=>Jo,defineProps:()=>Ko,defineSSRCustomElement:()=>zl,defineSlots:()=>Yo,devtools:()=>Yi,effect:()=>Ee,effectScope:()=>me,getCurrentInstance:()=>Ei,getCurrentScope:()=>ve,getTransitionRawChildren:()=>to,guardReactiveProps:()=>ui,h:()=>Hi,handleError:()=>pn,hasInjectionContext:()=>Er,hydrate:()=>Rc,initCustomFormatter:()=>qi,initDirectivesForSSR:()=>Mc,inject:()=>xr,isMemoSame:()=>Ki,isProxy:()=>Ft,isReactive:()=>Rt,isReadonly:()=>Ot,isRef:()=>Ut,isRuntimeOnly:()=>Pi,isShallow:()=>Dt,isVNode:()=>oi,markRaw:()=>Pt,mergeDefaults:()=>or,mergeModels:()=>rr,mergeProps:()=>yi,nextTick:()=>Cn,normalizeClass:()=>X,normalizeProps:()=>Z,normalizeStyle:()=>z,onActivated:()=>ao,onBeforeMount:()=>yo,onBeforeUnmount:()=>Co,onBeforeUpdate:()=>So,onDeactivated:()=>uo,onErrorCaptured:()=>ko,onMounted:()=>bo,onRenderTracked:()=>To,onRenderTriggered:()=>wo,onScopeDispose:()=>ye,onServerPrefetch:()=>Eo,onUnmounted:()=>xo,onUpdated:()=>_o,openBlock:()=>Js,popScopeId:()=>$n,provide:()=>Cr,proxyRefs:()=>Qt,pushScopeId:()=>Mn,queuePostFlushCb:()=>wn,reactive:()=>Tt,readonly:()=>At,ref:()=>Ht,registerRuntimeCompiler:()=>Li,render:()=>Nc,renderList:()=>Po,renderSlot:()=>$o,resolveComponent:()=>No,resolveDirective:()=>Do,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Zi,resolveTransitionHooks:()=>Qn,setBlockTracking:()=>Zs,setDevtoolsHook:()=>Qi,setTransitionHooks:()=>eo,shallowReactive:()=>kt,shallowReadonly:()=>It,shallowRef:()=>qt,ssrContextKey:()=>fs,ssrUtils:()=>Xi,stop:()=>we,toDisplayString:()=>ae,toHandlerKey:()=>M,toHandlers:()=>Vo,toRaw:()=>Lt,toRef:()=>on,toRefs:()=>en,toValue:()=>Jt,transformVNodeArgs:()=>si,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>er,useCssModule:()=>Yl,useCssVars:()=>Il,useModel:()=>ws,useSSRContext:()=>ms,useSlots:()=>Zo,useTransitionState:()=>Wn,vModelCheckbox:()=>uc,vModelDynamic:()=>vc,vModelRadio:()=>pc,vModelSelect:()=>hc,vModelText:()=>ac,vShow:()=>Tl,version:()=>zi,warn:()=>Gi,watch:()=>Ss,watchEffect:()=>gs,watchPostEffect:()=>vs,watchSyncEffect:()=>ys,withAsyncContext:()=>ir,withCtx:()=>Vn,withDefaults:()=>Xo,withDirectives:()=>jn,withKeys:()=>Ec,withMemo:()=>Wi,withModifiers:()=>Cc,withScopeId:()=>Bn});const s={},i=[],l=()=>{},c=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),d=Object.assign,p=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,f=(e,t)=>h.call(e,t),m=Array.isArray,g=e=>"[object Map]"===w(e),v=e=>"[object Set]"===w(e),y=e=>"[object Date]"===w(e),b=e=>"function"==typeof e,S=e=>"string"==typeof e,_=e=>"symbol"==typeof e,C=e=>null!==e&&"object"==typeof e,x=e=>(C(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,w=e=>E.call(e),T=e=>w(e).slice(8,-1),k=e=>"[object Object]"===w(e),A=e=>S(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),N=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),R=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-(\w)/g,D=R((e=>e.replace(O,((e,t)=>t?t.toUpperCase():"")))),F=/\B([A-Z])/g,L=R((e=>e.replace(F,"-$1").toLowerCase())),P=R((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=R((e=>e?`on${P(e)}`:"")),$=(e,t)=>!Object.is(e,t),B=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},U=e=>{const t=S(e)?Number(e):NaN;return isNaN(t)?e:t};let H;const q=()=>H||(H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),W={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},K=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(m(e)){const t={};for(let n=0;n{if(e){const n=e.split(J);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function X(e){let t="";if(S(e))t=e;else if(m(e))for(let n=0;nie(e,t)))}const ce=e=>!(!e||!0!==e.__v_isRef),ae=e=>S(e)?e:null==e?"":m(e)||C(e)&&(e.toString===E||!b(e.toString))?ce(e)?ae(e.value):JSON.stringify(e,ue,2):String(e),ue=(e,t)=>ce(t)?ue(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[de(t,o)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>de(e)))}:_(t)?de(t):!C(t)||m(t)||k(t)?t:String(t),de=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let pe,he;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pe,!e&&pe&&(this.index=(pe.scopes||(pe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=pe;try{return pe=this,e()}finally{pe=t}}}on(){pe=this}off(){pe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ne()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Te,t=he;try{return Te=!0,he=this,this._runnings++,_e(this),this.fn()}finally{Ce(this),this._runnings--,he=t,Te=e}}stop(){this.active&&(_e(this),Ce(this),this.onStop&&this.onStop(),this.active=!1)}}function Se(e){return e.value}function _e(e){e._trackId++,e._depsLength=0}function Ce(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(d(n,t),t.scope&&ge(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function we(e){e.effect.stop()}let Te=!0,ke=0;const Ae=[];function Ie(){Ae.push(Te),Te=!1}function Ne(){const e=Ae.pop();Te=void 0===e||e}function Re(){ke++}function Oe(){for(ke--;!ke&&Fe.length;)Fe.shift()()}function De(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fe=[];function Le(e,t,n){Re();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Me=new WeakMap,$e=Symbol(""),Be=Symbol("");function Ve(e,t,n){if(Te&&he){let t=Me.get(e);t||Me.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Pe((()=>t.delete(n)))),De(he,o)}}function je(e,t,n,o,r,s){const i=Me.get(e);if(!i)return;let l=[];if("clear"===t)l=[...i.values()];else if("length"===n&&m(e)){const e=Number(o);i.forEach(((t,n)=>{("length"===n||!_(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":m(e)?A(n)&&l.push(i.get("length")):(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"delete":m(e)||(l.push(i.get($e)),g(e)&&l.push(i.get(Be)));break;case"set":g(e)&&l.push(i.get($e))}Re();for(const e of l)e&&Le(e,4);Oe()}const Ue=r("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(_)),qe=We();function We(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Lt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Ie(),Re();const n=Lt(this)[t].apply(this,e);return Oe(),Ne(),n}})),e}function Ke(e){_(e)||(e=String(e));const t=Lt(this);return Ve(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?wt:Et:r?xt:Ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=m(e);if(!o){if(s&&f(qe,t))return Reflect.get(qe,t,n);if("hasOwnProperty"===t)return Ke}const i=Reflect.get(e,t,n);return(_(t)?He.has(t):Ue(t))?i:(o||Ve(e,0,t),r?i:Ut(i)?s&&A(t)?i:i.value:C(i)?o?At(i):Tt(i):i)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Dt(n)||Ot(n)||(r=Lt(r),n=Lt(n)),!m(e)&&Ut(r)&&!Ut(n))return!t&&(r.value=n,!0)}const s=m(e)&&A(t)?Number(t)e,tt=e=>Reflect.getPrototypeOf(e);function nt(e,t,n=!1,o=!1){const r=Lt(e=e.__v_raw),s=Lt(t);n||($(t,s)&&Ve(r,0,t),Ve(r,0,s));const{has:i}=tt(r),l=o?et:n?$t:Mt;return i.call(r,t)?l(e.get(t)):i.call(r,s)?l(e.get(s)):void(e!==r&&e.get(t))}function ot(e,t=!1){const n=this.__v_raw,o=Lt(n),r=Lt(e);return t||($(e,r)&&Ve(o,0,e),Ve(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function rt(e,t=!1){return e=e.__v_raw,!t&&Ve(Lt(e),0,$e),Reflect.get(e,"size",e)}function st(e,t=!1){t||Dt(e)||Ot(e)||(e=Lt(e));const n=Lt(this);return tt(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Dt(t)||Ot(t)||(t=Lt(t));const o=Lt(this),{has:r,get:s}=tt(o);let i=r.call(o,e);i||(e=Lt(e),i=r.call(o,e));const l=s.call(o,e);return o.set(e,t),i?$(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function lt(e){const t=Lt(this),{has:n,get:o}=tt(t);let r=n.call(t,e);r||(e=Lt(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&je(t,"delete",e,void 0),s}function ct(){const e=Lt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function at(e,t){return function(n,o){const r=this,s=r.__v_raw,i=Lt(s),l=t?et:e?$t:Mt;return!e&&Ve(i,0,$e),s.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function ut(e,t,n){return function(...o){const r=this.__v_raw,s=Lt(r),i=g(s),l="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,a=r[e](...o),u=n?et:t?$t:Mt;return!t&&Ve(s,0,c?Be:$e),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function dt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function pt(){const e={get(e){return nt(this,e)},get size(){return rt(this)},has:ot,add:st,set:it,delete:lt,clear:ct,forEach:at(!1,!1)},t={get(e){return nt(this,e,!1,!0)},get size(){return rt(this)},has:ot,add(e){return st.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:lt,clear:ct,forEach:at(!1,!0)},n={get(e){return nt(this,e,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!1)},o={get(e){return nt(this,e,!0,!0)},get size(){return rt(this,!0)},has(e){return ot.call(this,e,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=ut(r,!1,!1),n[r]=ut(r,!0,!1),t[r]=ut(r,!1,!0),o[r]=ut(r,!0,!0)})),[e,n,t,o]}const[ht,ft,mt,gt]=pt();function vt(e,t){const n=t?e?gt:mt:e?ft:ht;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(f(n,o)&&o in t?n:t,o,r)}const yt={get:vt(!1,!1)},bt={get:vt(!1,!0)},St={get:vt(!0,!1)},_t={get:vt(!0,!0)},Ct=new WeakMap,xt=new WeakMap,Et=new WeakMap,wt=new WeakMap;function Tt(e){return Ot(e)?e:Nt(e,!1,Ye,yt,Ct)}function kt(e){return Nt(e,!1,Xe,bt,xt)}function At(e){return Nt(e,!0,Qe,St,Et)}function It(e){return Nt(e,!0,Ze,_t,wt)}function Nt(e,t,n,o,r){if(!C(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(T(l));var l;if(0===i)return e;const c=new Proxy(e,2===i?o:n);return r.set(e,c),c}function Rt(e){return Ot(e)?Rt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Ft(e){return!!e&&!!e.__v_raw}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}function Pt(e){return Object.isExtensible(e)&&V(e,"__v_skip",!0),e}const Mt=e=>C(e)?Tt(e):e,$t=e=>C(e)?At(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new be((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Lt(this);return e._cacheable&&!e.effect.dirty||!$(e._value,e._value=e.effect.run())||jt(e,4),Vt(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Vt(e){var t;Te&&he&&(e=Lt(e),De(he,null!=(t=e.dep)?t:e.dep=Pe((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Lt(e)).dep;r&&Le(r,t)}function Ut(e){return!(!e||!0!==e.__v_isRef)}function Ht(e){return Wt(e,!1)}function qt(e){return Wt(e,!0)}function Wt(e,t){return Ut(e)?e:new Kt(e,t)}class Kt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lt(e),this._value=t?e:Mt(e)}get value(){return Vt(this),this._value}set value(e){const t=this.__v_isShallow||Dt(e)||Ot(e);e=t?e:Lt(e),$(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Mt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ut(e)?e.value:e}function Jt(e){return b(e)?e():Gt(e)}const Yt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ut(r)&&!Ut(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Qt(e){return Rt(e)?e:new Proxy(e,Yt)}class Xt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Vt(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Zt(e){return new Xt(e)}function en(e){const t=m(e)?new Array(e.length):{};for(const n in e)t[n]=rn(e,n);return t}class tn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Me.get(e);return n&&n.get(t)}(Lt(this._object),this._key)}}class nn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function on(e,t,n){return Ut(e)?e:b(e)?new nn(e):C(e)&&arguments.length>1?rn(e,t,n):Ht(e)}function rn(e,t,n){const o=e[t];return Ut(o)?o:new tn(e,t,n)}const sn={GET:"get",HAS:"has",ITERATE:"iterate"},ln={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function cn(e,t){}const an={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function un(e,t,n,o){try{return o?e(...o):e()}catch(e){pn(e,t,n)}}function dn(e,t,n,o){if(b(e)){const r=un(e,t,n,o);return r&&x(r)&&r.catch((e=>{pn(e,t,n)})),r}if(m(e)){const r=[];for(let s=0;s>>1,r=mn[o],s=An(r);sAn(e)-An(t)));if(vn.length=0,yn)return void yn.push(...e);for(yn=e,bn=0;bnnull==e.id?1/0:e.id,In=(e,t)=>{const n=An(e)-An(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nn(e){fn=!1,hn=!0,mn.sort(In);try{for(gn=0;gnVn;function Vn(e,t=Fn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Zs(-1);const r=Pn(t);let s;try{s=e(...n)}finally{Pn(r),o._d&&Zs(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Fn)return e;const n=Vi(Fn),o=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),Co((()=>{e.isUnmounting=!0})),e}const Kn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kn,onEnter:Kn,onAfterEnter:Kn,onEnterCancelled:Kn,onBeforeLeave:Kn,onLeave:Kn,onAfterLeave:Kn,onLeaveCancelled:Kn,onBeforeAppear:Kn,onAppear:Kn,onAfterAppear:Kn,onAppearCancelled:Kn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Jn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Ei(),o=Wn();return()=>{const r=t.default&&to(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==Ws){s=t,e=!0;break}}const i=Lt(e),{mode:l}=i;if(o.isLeaving)return Xn(s);const c=Zn(s);if(!c)return Xn(s);let a=Qn(c,i,o,n,(e=>a=e));eo(c,a);const u=n.subTree,d=u&&Zn(u);if(d&&d.type!==Ws&&!ri(c,d)&&Gn(n).type!==Ws){const e=Qn(d,i,o,n);if(eo(d,e),"out-in"===l&&c.type!==Ws)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Xn(s);"in-out"===l&&c.type!==Ws&&(e.delayLeave=(e,t,n)=>{Yn(o,d)[String(d.key)]=d,e[Hn]=()=>{t(),e[Hn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return s}}};function Yn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Qn(e,t,n,o,r){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),C=Yn(n,e),x=(e,t)=>{e&&dn(e,o,9,t)},E=(e,t)=>{const n=t[1];x(e,t),m(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},w={mode:i,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!s)return;o=v||c}t[Hn]&&t[Hn](!0);const r=C[_];r&&ri(e,r)&&r.el[Hn]&&r.el[Hn](),x(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!s)return;t=y||a,o=b||u,r=S||d}let i=!1;const l=e[qn]=t=>{i||(i=!0,x(t?r:o,[e]),w.delayedLeave&&w.delayedLeave(),e[qn]=void 0)};t?E(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[qn]&&t[qn](!0),n.isUnmounting)return o();x(p,[t]);let s=!1;const i=t[Hn]=n=>{s||(s=!0,o(),x(n?g:f,[t]),t[Hn]=void 0,C[r]===e&&delete C[r])};C[r]=e,h?E(h,[t,i]):i()},clone(e){const s=Qn(e,t,n,o,r);return r&&r(s),s}};return w}function Xn(e){if(io(e))return(e=di(e)).children=null,e}function Zn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function eo(e,t){6&e.shapeFlag&&e.component?eo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function to(e,t=!1,n){let o=[],r=0;for(let s=0;s1)for(let e=0;ed({name:e.name},t,{setup:e}))():e}const oo=e=>!!e.type.__asyncLoader;function ro(e){b(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:i=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return no({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xi;if(c)return()=>so(c,e);const t=t=>{a=null,pn(t,e,13,!o)};if(i&&e.suspense||Oi)return d().then((t=>()=>so(t,e))).catch((e=>(t(e),()=>o?ai(o,{error:e}):null)));const l=Ht(!1),u=Ht(),p=Ht(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?so(c,e):u.value&&o?ai(o,{error:u.value}):n&&!p.value?ai(n):void 0}})}function so(e,t){const{ref:n,props:o,children:r,ce:s}=t.vnode,i=ai(e,o,r);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const io=e=>e.type.__isKeepAlive,lo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ei(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,s=new Set;let i=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){fo(e),u(e,n,l,!0)}function f(e){r.forEach(((t,n)=>{const o=ji(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);i&&ri(t,i)?i&&fo(i):h(t),r.delete(e),s.delete(e)}o.activate=(e,t,n,o,r)=>{const s=e.component;a(e,t,n,0,l),c(s.vnode,e,t,n,s,l,o,e.slotScopeIds,r),rs((()=>{s.isDeactivated=!1,s.a&&B(s.a);const t=e.props&&e.props.onVnodeMounted;t&&bi(t,s.parent,e)}),l)},o.deactivate=e=>{const t=e.component;hs(t.m),hs(t.a),a(e,p,null,1,l),rs((()=>{t.da&&B(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&bi(n,t.parent,e),t.isDeactivated=!0}),l)},Ss((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>co(e,t))),t&&f((e=>!co(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Ls(n.subTree.type)?rs((()=>{r.set(g,mo(n.subTree))}),n.subTree.suspense):r.set(g,mo(n.subTree)))};return bo(v),_o(v),Co((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=mo(t);if(e.type!==r.type||e.key!==r.key)h(e);else{fo(r);const e=r.component.da;e&&rs(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!oi(o)||!(4&o.shapeFlag||128&o.shapeFlag))return i=null,o;let l=mo(o);const c=l.type,a=ji(oo(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!co(u,a))||d&&a&&co(d,a))return i=l,o;const h=null==l.key?c:l.key,f=r.get(h);return l.el&&(l=di(l),128&o.shapeFlag&&(o.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&eo(l,l.transition),l.shapeFlag|=512,s.delete(h),s.add(h)):(s.add(h),p&&s.size>parseInt(p,10)&&m(s.values().next().value)),l.shapeFlag|=256,i=l,Ls(o.type)?o:l}}};function co(e,t){return m(e)?e.some((e=>co(e,t))):S(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&e.test(t)}function ao(e,t){po(e,"a",t)}function uo(e,t){po(e,"da",t)}function po(e,t,n=xi){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(go(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&ho(o,t,n,e),e=e.parent}}function ho(e,t,n,o){const r=go(t,e,o,!0);xo((()=>{p(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mo(e){return 128&e.shapeFlag?e.ssContent:e}function go(e,t,n=xi,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Ie();const r=ki(n),s=dn(t,n,e,o);return r(),Ne(),s});return o?r.unshift(s):r.push(s),s}}const vo=e=>(t,n=xi)=>{Oi&&"sp"!==e||go(e,((...e)=>t(...e)),n)},yo=vo("bm"),bo=vo("m"),So=vo("bu"),_o=vo("u"),Co=vo("bum"),xo=vo("um"),Eo=vo("sp"),wo=vo("rtg"),To=vo("rtc");function ko(e,t=xi){go("ec",e,t)}const Ao="components",Io="directives";function No(e,t){return Fo(Ao,e,!0,t)||e}const Ro=Symbol.for("v-ndc");function Oo(e){return S(e)?Fo(Ao,e,!1)||e:e||Ro}function Do(e){return Fo(Io,e)}function Fo(e,t,n=!0,o=!1){const r=Fn||xi;if(r){const n=r.type;if(e===Ao){const e=ji(n,!1);if(e&&(e===t||e===D(t)||e===P(D(t))))return n}const s=Lo(r[e]||n[e],t)||Lo(r.appContext[e],t);return!s&&o?n:s}}function Lo(e,t){return e&&(e[t]||e[D(t)]||e[P(D(t))])}function Po(e,t,n,o){let r;const s=n&&n[o];if(m(e)||S(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function $o(e,t,n={},o,r){if(Fn.isCE||Fn.parent&&oo(Fn.parent)&&Fn.parent.isCE)return"default"!==t&&(n.name=t),ai("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),Js();const i=s&&Bo(s(n)),l=ni(Hs,{key:(n.key||i&&i.key||`_${t}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Bo(e){return e.some((e=>!oi(e)||e.type!==Ws&&!(e.type===Hs&&!Bo(e.children))))?e:null}function Vo(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ii(e)?Vi(e):jo(e.parent):null,Uo=d(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ur(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>Cs.bind(e)}),Ho=(e,t)=>e!==s&&!e.__isScriptSetup&&f(e,t),qo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Ho(o,t))return l[t]=1,o[t];if(r!==s&&f(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&f(u,t))return l[t]=3,i[t];if(n!==s&&f(n,t))return l[t]=4,n[t];lr&&(l[t]=0)}}const d=Uo[t];let p,h;return d?("$attrs"===t&&Ve(e.attrs,0,""),d(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==s&&f(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,f(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Ho(r,t)?(r[t]=n,!0):o!==s&&f(o,t)?(o[t]=n,!0):!(f(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},l){let c;return!!n[l]||e!==s&&f(e,l)||Ho(t,l)||(c=i[0])&&f(c,l)||f(o,l)||f(Uo,l)||f(r.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:f(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Wo=d({},qo,{get(e,t){if(t!==Symbol.unscopables)return qo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!K(t)});function Ko(){return null}function zo(){return null}function Go(e){}function Jo(e){}function Yo(){return null}function Qo(){}function Xo(e,t){return null}function Zo(){return tr().slots}function er(){return tr().attrs}function tr(){const e=Ei();return e.setupContext||(e.setupContext=Bi(e))}function nr(e){return m(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function or(e,t){const n=nr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?m(o)||b(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function rr(e,t){return e&&t?m(e)&&m(t)?e.concat(t):d({},nr(e),nr(t)):e||t}function sr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Ei();let n=e();return Ai(),x(n)&&(n=n.catch((e=>{throw ki(t),e}))),[n,()=>ki(t)]}let lr=!0;function cr(e,t,n){dn(m(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ar(e,t,n,o){const r=o.includes(".")?xs(n,o):()=>n[o];if(S(e)){const n=t[e];b(n)&&Ss(r,n)}else if(b(e))Ss(r,e.bind(n));else if(C(e))if(m(e))e.forEach((e=>ar(e,t,n,o)));else{const o=b(e.handler)?e.handler.bind(n):t[e.handler];b(o)&&Ss(r,o,e)}}function ur(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>dr(c,e,i,!0))),dr(c,t,i)):c=t,C(t)&&s.set(t,c),c}function dr(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&dr(e,s,n,!0),r&&r.forEach((t=>dr(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=pr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const pr={data:hr,props:vr,emits:vr,methods:gr,computed:gr,beforeCreate:mr,created:mr,beforeMount:mr,mounted:mr,beforeUpdate:mr,updated:mr,beforeDestroy:mr,beforeUnmount:mr,destroyed:mr,unmounted:mr,activated:mr,deactivated:mr,errorCaptured:mr,serverPrefetch:mr,components:gr,directives:gr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);for(const o in t)n[o]=mr(e[o],t[o]);return n},provide:hr,inject:function(e,t){return gr(fr(e),fr(t))}};function hr(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function fr(e){if(m(e)){const t={};for(let n=0;n(s.has(e)||(e&&b(e.install)?(s.add(e),e.install(l,...t)):b(e)&&(s.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(s,c,a){if(!i){const u=ai(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,s):e(u,s,a),i=!0,l._container=s,s.__vue_app__=l,Vi(u.component)}},unmount(){i&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=_r;_r=l;try{return e()}finally{_r=t}}};return l}}let _r=null;function Cr(e,t){if(xi){let n=xi.provides;const o=xi.parent&&xi.parent.provides;o===n&&(n=xi.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xi||Fn;if(o||_r){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:_r._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&b(t)?t.call(o&&o.proxy):t}}function Er(){return!!(xi||Fn||_r)}const wr={},Tr=()=>Object.create(wr),kr=e=>Object.getPrototypeOf(e)===wr;function Ar(e,t,n,o){const[r,i]=e.propsOptions;let l,c=!1;if(t)for(let s in t){if(I(s))continue;const a=t[s];let u;r&&f(r,u=D(s))?i&&i.includes(u)?(l||(l={}))[u]=a:n[u]=a:Is(e.emitsOptions,s)||s in o&&a===o[s]||(o[s]=a,c=!0)}if(i){const t=Lt(n),o=l||s;for(let s=0;s{u=!0;const[n,o]=Rr(e,t,!0);d(c,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!u)return C(e)&&o.set(e,i),i;if(m(l))for(let e=0;e-1,o[1]=n<0||e-1||f(o,"default"))&&a.push(t)}}}const p=[c,a];return C(e)&&o.set(e,p),p}function Or(e){return"$"!==e[0]&&!I(e)}function Dr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Fr(e,t){return Dr(e)===Dr(t)}function Lr(e,t){return m(t)?t.findIndex((t=>Fr(t,e))):b(t)&&Fr(t,e)?0:-1}const Pr=e=>"_"===e[0]||"$stable"===e,Mr=e=>m(e)?e.map(mi):[mi(e)],$r=(e,t,n)=>{if(t._n)return t;const o=Vn(((...e)=>Mr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Pr(n))continue;const r=e[n];if(b(r))t[n]=$r(0,r,o);else if(null!=r){const e=Mr(r);t[n]=()=>e}}},Vr=(e,t)=>{const n=Mr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Ur=(e,t,n)=>{const o=e.slots=Tr();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&V(o,"_",e,!0)):Br(t,o)}else t&&Vr(e,t)},Hr=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=s;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:jr(r,t,n):(i=!t.$stable,Br(t,r)),l=t}else t&&(Vr(e,t),l={default:1});if(i)for(const e in r)Pr(e)||null!=l[e]||delete r[e]};function qr(e,t,n,o,r=!1){if(m(e))return void e.forEach(((e,s)=>qr(e,t&&(m(t)?t[s]:t),n,o,r)));if(oo(o)&&!r)return;const i=4&o.shapeFlag?Vi(o.component):o.el,l=r?null:i,{i:c,r:a}=e,u=t&&t.r,d=c.refs===s?c.refs={}:c.refs,h=c.setupState;if(null!=u&&u!==a&&(S(u)?(d[u]=null,f(h,u)&&(h[u]=null)):Ut(u)&&(u.value=null)),b(a))un(a,c,12,[l,d]);else{const t=S(a),o=Ut(a);if(t||o){const s=()=>{if(e.f){const n=t?f(h,a)?h[a]:d[a]:a.value;r?m(n)&&p(n,i):m(n)?n.includes(i)||n.push(i):t?(d[a]=[i],f(h,a)&&(h[a]=d[a])):(a.value=[i],e.k&&(d[e.k]=a.value))}else t?(d[a]=l,f(h,a)&&(h[a]=l)):o&&(a.value=l,e.k&&(d[e.k]=l))};l?(s.id=-1,rs(s,n)):s()}}}const Wr=Symbol("_vte"),Kr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Jr=(e,t)=>{const n=e&&e.to;return S(n)?t?t(n):null:n};function Yr(e,t,n,{o:{insert:o},m:r},s=2){0===s&&o(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===s;if(d&&o(i,t,n),(!d||Kr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,s,i,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Kr(e.props),g=m?n:u,y=m?o:h;if("svg"===i||zr(u)?i="svg":("mathml"===i||Gr(u))&&(i="mathml"),S?(p(e.dynamicChildren,S,g,r,s,i,l),ds(e,t,!0)):c||d(e,t,g,y,r,s,i,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Yr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Jr(t.props,f);e&&Yr(t,e,null,a,0)}else m&&Yr(t,u,h,a,1)}Xr(t)},remove(e,t,n,{um:o,o:{remove:r}},s){const{shapeFlag:i,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),s&&r(c),16&i){const e=s||!Kr(p);for(let r=0;r{Zr||(console.error("Hydration completed but contains mismatches."),Zr=!0)},ts=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ns=e=>8===e.nodeType;function os(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:s,parentNode:i,remove:l,insert:c,createComment:u}}=e,d=(n,o,l,a,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ns(n)&&"["===n.data,_=()=>m(n,o,l,a,u,S),{type:C,ref:x,shapeFlag:E,patchFlag:w}=o;let T=n.nodeType;o.el=n,-2===w&&(b=!1,o.dynamicChildren=null);let k=null;switch(C){case qs:3!==T?""===o.children?(c(o.el=r(""),i(n),n),k=n):k=_():(n.data!==o.children&&(es(),n.data=o.children),k=s(n));break;case Ws:y(n)?(k=s(n),v(o.el=n.content.firstChild,n,l)):k=8!==T||S?_():s(n);break;case Ks:if(S&&(T=(n=s(n)).nodeType),1===T||3===T){k=n;const e=!o.children.length;for(let t=0;t{i=i||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===c||"option"===c;if(g||-1!==d){f&&Un(t,null,n,"created");let c,b=!1;if(y(e)){b=us(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=h(e.firstChild,t,e,n,r,s,i);for(;o;){es();const e=o;o=o.nextSibling,l(e)}}else 8&p&&e.textContent!==t.children&&(es(),e.textContent=t.children);if(u)if(g||!i||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||a(t)&&!I(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&Rt(u.style))for(const e in u.style)u.style[e];(c=u&&u.onVnodeBeforeMount)&&bi(c,n,t),f&&Un(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f||b)&&js((()=>{c&&bi(c,n,t),b&&m.enter(e),f&&Un(t,null,n,"mounted")}),r)}return e.nextSibling},h=(e,t,o,i,l,a,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;for(let t=0;t{const{slotScopeIds:a}=t;a&&(r=r?r.concat(a):a);const d=i(e),p=h(s(e),t,d,n,o,r,l);return p&&ns(p)&&"]"===p.data?s(t.anchor=p):(es(),c(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,c,a)=>{if(es(),t.el=null,a){const t=g(e);for(;;){const n=s(e);if(!n||n===t)break;l(n)}}const u=s(e),d=i(e);return l(e),n(null,t,d,u,o,r,ts(d),c),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=s(e))&&ns(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return s(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),kn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),kn(),t._vnode=e},d]}const rs=js;function ss(e){return ls(e)}function is(e){return ls(e,os)}function ls(e,t){q().__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:c,createText:a,createComment:u,setText:d,setElementText:p,parentNode:h,nextSibling:m,setScopeId:g=l,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,s=null,i=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!ri(e,t)&&(o=J(e),H(e,r,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case qs:b(e,t,n,o);break;case Ws:S(e,t,n,o);break;case Ks:null==e&&_(t,n,o,i);break;case Hs:N(e,t,n,o,r,s,i,l,c);break;default:1&d?C(e,t,n,o,r,s,i,l,c):6&d?R(e,t,n,o,r,s,i,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,s,i,l,c,X)}null!=u&&r&&qr(u,e&&e.ref,s,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},C=(e,t,n,o,r,s,i,l,c)=>{"svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e?x(t,n,o,r,s,i,l,c):T(e,t,r,s,i,l,c)},x=(e,t,o,s,i,l,a,u)=>{let d,h;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,l,f&&f.is,f),8&m?p(d,e.children):16&m&&w(e.children,d,null,s,i,cs(e,l),a,u),v&&Un(e,null,s,"created"),E(d,e,e.scopeId,a,s),f){for(const e in f)"value"===e||I(e)||r(d,e,null,f[e],l,s);"value"in f&&r(d,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&bi(h,s,e)}v&&Un(e,null,s,"beforeMount");const y=us(i,g);y&&g.beforeEnter(d),n(d,t,o),((h=f&&f.onVnodeMounted)||y||v)&&rs((()=>{h&&bi(h,s,e),y&&g.enter(d),v&&Un(e,null,s,"mounted")}),i)},E=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&as(n,!1),(g=m.onVnodeBeforeUpdate)&&bi(g,n,t,e),h&&Un(t,e,n,"beforeUpdate"),n&&as(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&p(a,""),d?k(e.dynamicChildren,d,a,n,o,cs(t,i),l):c||$(e,t,a,null,n,o,cs(t,i),l,!1),u>0){if(16&u)A(a,f,m,n,i);else if(2&u&&f.class!==m.class&&r(a,"class",null,m.class,i),4&u&&r(a,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&bi(g,n,t,e),h&&Un(t,e,n,"updated")}),o)},k=(e,t,n,o,r,s,i)=>{for(let l=0;l{if(t!==n){if(t!==s)for(const s in t)I(s)||s in n||r(e,s,t[s],null,i,o);for(const s in n){if(I(s))continue;const l=n[s],c=t[s];l!==c&&"value"!==s&&r(e,s,c,l,i,o)}"value"in n&&r(e,"value",t.value,n.value,i)}},N=(e,t,o,r,s,i,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),w(t.children||[],o,p,s,i,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(k(e.dynamicChildren,f,o,s,i,l,c),(null!=t.key||s&&t===s.subTree)&&ds(e,t,!0)):$(e,t,o,p,s,i,l,c,u)},R=(e,t,n,o,r,s,i,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,c):O(t,n,o,r,s,i,c):F(e,t,c)},O=(e,t,n,o,r,s,i)=>{const l=e.component=Ci(e,o,r);if(io(e)&&(l.ctx.renderer=X),Di(l,!1,i),l.asyncDep){if(r&&r.registerDep(l,P,i),!e.el){const e=l.subTree=ai(Ws);S(null,e,t,n)}}else P(l,e,t,n,r,s,i)},F=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:c}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||Ds(o,i,a):!!i);if(1024&c)return!0;if(16&c)return o?Ds(o,i,a):!!i;if(8&c){const e=t.dynamicProps;for(let t=0;tgn&&mn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},P=(e,t,n,o,r,s,i)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:l,vnode:a}=e;{const n=ps(e);if(n)return t&&(t.el=a.el,M(e,t,i)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;as(e,!1),t?(t.el=a.el,M(e,t,i)):t=a,n&&B(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&bi(u,l,t,a),as(e,!0);const p=Ns(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Fs(e,p.el),o&&rs(o,r),(u=t.props&&t.props.onVnodeUpdated)&&rs((()=>bi(u,l,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=oo(t);if(as(e,!1),a&&B(a),!p&&(i=c&&c.onVnodeBeforeMount)&&bi(i,d,t),as(e,!0),l&&ee){const n=()=>{e.subTree=Ns(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Ns(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&rs(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;rs((()=>bi(i,d,e)),r)}(256&t.shapeFlag||d&&oo(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&rs(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new be(c,l,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,as(e,!0),u()},M=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=Lt(r),[c]=e.propsOptions;let a=!1;if(!(o||i>0)||16&i){let o;Ar(e,t,r,s)&&(a=!0);for(const s in l)t&&(f(t,s)||(o=L(s))!==s&&f(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Ir(c,l,s,void 0,e,!0)):delete r[s]);if(s!==l)for(const e in s)t&&f(t,e)||(delete s[e],a=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void j(a,d,n,o,r,s,i,l,c);if(256&h)return void V(a,d,n,o,r,s,i,l,c)}8&f?(16&u&&G(a,r,s),d!==a&&p(n,d)):16&u?16&f?j(a,d,n,o,r,s,i,l,c):G(a,r,s,!0):(8&u&&p(n,""),16&f&&w(d,n,o,r,s,i,l,c))},V=(e,t,n,o,r,s,l,c,a)=>{t=t||i;const u=(e=e||i).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?G(e,r,s,!0,!1,p):w(t,n,o,r,s,l,c,a,p)},j=(e,t,n,o,r,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],i=t[u]=a?gi(t[u]):mi(t[u]);if(!ri(o,i))break;y(o,i,n,null,r,s,l,c,a),u++}for(;u<=p&&u<=h;){const o=e[p],i=t[h]=a?gi(t[h]):mi(t[h]);if(!ri(o,i))break;y(o,i,n,null,r,s,l,c,a),p--,h--}if(u>p){if(u<=h){const e=h+1,i=eh)for(;u<=p;)H(e[u],r,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=a?gi(t[u]):mi(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=h-m+1;let _=!1,C=0;const x=new Array(S);for(u=0;u=S){H(o,r,s,!0);continue}let i;if(null!=o.key)i=g.get(o.key);else for(v=m;v<=h;v++)if(0===x[v-m]&&ri(o,t[v])){i=v;break}void 0===i?H(o,r,s,!0):(x[i-m]=u+1,i>=C?C=i:_=!0,y(o,t[i],n,null,r,s,l,c,a),b++)}const E=_?function(e){const t=e.slice(),n=[0];let o,r,s,i,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}(x):i;for(v=E.length-1,u=S-1;u>=0;u--){const e=m+u,i=t[e],p=e+1{const{el:i,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)U(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,X);else if(l!==Hs)if(l!==Ks)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(i),n(i,t,o),rs((()=>c.enter(i)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=c,l=()=>n(i,t,o),a=()=>{e(i,(()=>{l(),s&&s()}))};r?r(i,l,a):a()}else n(i,t,o);else(({el:e,anchor:t},o,r)=>{let s;for(;e&&e!==t;)s=m(e),n(e,o,r),e=s;n(t,o,r)})(e,t,o);else{n(i,t,o);for(let e=0;e{const{type:s,props:i,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(r=!1),null!=l&&qr(l,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!oo(e);let g;if(m&&(g=i&&i.onVnodeBeforeUnmount)&&bi(g,t,e),6&u)z(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&Un(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,o):a&&!a.hasOnce&&(s!==Hs||d>0&&64&d)?G(a,t,n,!1,!0):(s===Hs&&384&d||!r&&16&u)&&G(c,t,n),o&&W(e)}(m&&(g=i&&i.onVnodeUnmounted)||f)&&rs((()=>{g&&bi(g,t,e),f&&Un(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===Hs)return void K(n,r);if(t===Ks)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),o(e),e=n;o(t)})(e);const i=()=>{o(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},K=(e,t)=>{let n;for(;e!==t;)n=m(e),o(e),e=n;o(t)},z=(e,t,n)=>{const{bum:o,scope:r,update:s,subTree:i,um:l,m:c,a}=e;hs(c),hs(a),o&&B(o),r.stop(),s&&(s.active=!1,H(i,e,t,n)),l&&rs(l,t),rs((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},G=(e,t,n,o=!1,r=!1,s=0)=>{for(let i=s;i{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[Wr];return n?m(n):t};let Y=!1;const Q=(e,t,n)=>{null==e?t._vnode&&H(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Y||(Y=!0,Tn(),kn(),Y=!1),t._vnode=e},X={p:y,um:H,m:U,r:W,mt:O,mc:w,pc:$,pbc:k,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(X)),{render:Q,hydrate:Z,createApp:Sr(Q,Z)}}function cs({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function as({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function us(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ds(e,t,n=!1){const o=e.children,r=t.children;if(m(o)&&m(r))for(let e=0;exr(fs);function gs(e,t){return _s(e,null,t)}function vs(e,t){return _s(e,null,{flush:"post"})}function ys(e,t){return _s(e,null,{flush:"sync"})}const bs={};function Ss(e,t,n){return _s(e,t,n)}function _s(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:c,onTrigger:a}=s){if(t&&i){const e=t;t=(...t)=>{e(...t),T()}}const u=xi,d=e=>!0===o?e:Es(e,!1===o?1:void 0);let h,f,g=!1,v=!1;if(Ut(e)?(h=()=>e.value,g=Dt(e)):Rt(e)?(h=()=>d(e),g=!0):m(e)?(v=!0,g=e.some((e=>Rt(e)||Dt(e))),h=()=>e.map((e=>Ut(e)?e.value:Rt(e)?d(e):b(e)?un(e,u,2):void 0))):h=b(e)?t?()=>un(e,u,2):()=>(f&&f(),dn(e,u,3,[S])):l,t&&o){const e=h;h=()=>Es(e())}let y,S=e=>{f=E.onStop=()=>{un(e,u,4),f=E.onStop=void 0}};if(Oi){if(S=l,t?n&&dn(t,u,3,[h(),v?[]:void 0,S]):h(),"sync"!==r)return l;{const e=ms();y=e.__watcherHandles||(e.__watcherHandles=[])}}let _=v?new Array(e.length).fill(bs):bs;const C=()=>{if(E.active&&E.dirty)if(t){const e=E.run();(o||g||(v?e.some(((e,t)=>$(e,_[t]))):$(e,_)))&&(f&&f(),dn(t,u,3,[e,_===bs?void 0:v&&_[0]===bs?[]:_,S]),_=e)}else E.run()};let x;C.allowRecurse=!!t,"sync"===r?x=C:"post"===r?x=()=>rs(C,u&&u.suspense):(C.pre=!0,u&&(C.id=u.uid),x=()=>xn(C));const E=new be(h,l,x),w=ve(),T=()=>{E.stop(),w&&p(w.effects,E)};return t?n?C():_=E.run():"post"===r?rs(E.run.bind(E),u&&u.suspense):E.run(),y&&y.push(T),T}function Cs(e,t,n){const o=this.proxy,r=S(e)?e.includes(".")?xs(o,e):()=>o[e]:e.bind(o,o);let s;b(t)?s=t:(s=t.handler,n=t);const i=ki(this),l=_s(r,s.bind(o),n);return i(),l}function xs(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Es(e,t,n)}));else if(k(e)){for(const o in e)Es(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Es(e[o],t,n)}return e}function ws(e,t,n=s){const o=Ei(),r=D(t),i=L(t),l=Ts(e,t),c=Zt(((s,l)=>{let c,a,u;return ys((()=>{const n=e[t];$(c,n)&&(c=n,l())})),{get:()=>(s(),n.get?n.get(c):c),set(e){if(!$(e,c))return;const s=o.vnode.props;s&&(t in s||r in s||i in s)&&(`onUpdate:${t}`in s||`onUpdate:${r}`in s||`onUpdate:${i}`in s)||(c=e,l());const d=n.set?n.set(e):e;o.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||s:c,done:!1}:{done:!0}}},c}const Ts=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${L(t)}Modifiers`];function ks(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||s;let r=n;const i=t.startsWith("update:"),l=i&&Ts(o,t.slice(7));let c;l&&(l.trim&&(r=n.map((e=>S(e)?e.trim():e))),l.number&&(r=n.map(j)));let a=o[c=M(t)]||o[c=M(D(t))];!a&&i&&(a=o[c=M(L(t))]),a&&dn(a,e,6,r);const u=o[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,dn(u,e,6,r)}}function As(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let i={},l=!1;if(!b(e)){const o=e=>{const n=As(e,t,!0);n&&(l=!0,d(i,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||l?(m(s)?s.forEach((e=>i[e]=null)):d(i,s),C(e)&&o.set(e,i),i):(C(e)&&o.set(e,null),null)}function Is(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),f(e,t[0].toLowerCase()+t.slice(1))||f(e,L(t))||f(e,t))}function Ns(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[s],slots:i,attrs:l,emit:c,render:a,renderCache:d,props:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,v=Pn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=mi(a.call(t,e,d,p,f,h,m)),b=l}else{const e=t;y=mi(e.length>1?e(p,{attrs:l,slots:i,emit:c}):e(p,null)),b=t.props?l:Rs(l)}}catch(t){zs.length=0,pn(t,e,1),y=ai(Ws)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(s&&e.some(u)&&(b=Os(b,s)),S=di(S,b,!1,!0))}return n.dirs&&(S=di(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Pn(v),y}const Rs=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},Os=(e,t)=>{const n={};for(const o in e)u(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ds(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Ps=0;const Ms={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,s,i,l,c,a){if(null==e)!function(e,t,n,o,r,s,i,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bs(e,r,o,t,d,n,s,i,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,s,i),p.deps>0?($s(e,"onPending"),$s(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,s,i),Us(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,s,i,l,c,a);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,s,i,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,ri(p,m)?(c(m,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():g&&(v||(c(f,h,n,o,r,null,s,i,l),Us(d,h)))):(d.pendingId=Ps++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0?d.resolve():(c(f,h,n,o,r,null,s,i,l),Us(d,h))):f&&ri(p,f)?(c(f,p,n,o,r,d,s,i,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0&&d.resolve()));else if(f&&ri(p,f))c(f,p,n,o,r,d,s,i,l),Us(d,p);else if($s(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Ps++,c(null,p,d.hiddenContainer,null,r,d,s,i,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,i,l,c,a)}},hydrate:function(e,t,n,o,r,s,i,l,c){const a=t.suspense=Bs(t,o,n,e.parentNode,document.createElement("div"),null,r,s,i,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,s,i);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=Vs(o?n.default:n),e.ssFallback=o?Vs(n.fallback):ai(Ws)}};function $s(e,t){const n=e.props&&e.props[t];b(n)&&n()}function Bs(e,t,n,o,r,s,i,l,c,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?U(e.props.timeout):void 0,S=s,_={vnode:e,parent:t,parentComponent:n,namespace:i,container:o,hiddenContainer:r,deps:0,pendingId:Ps++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:i,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&i.transition&&"out-in"===i.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(i,u,s===S?f(r):s,0),wn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(s=f(r)),h(r,a,_,!0)),d||p(i,u,s,0)),Us(_,i),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||wn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),$s(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:s}=_;$s(t,"onFallback");const i=f(n),a=()=>{_.isInFallback&&(d(null,e,r,i,o,null,s,l,c),Us(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{pn(t,e,0)})).then((s=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Fi(e,s,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:f(e.subTree),_,i,n),c&&g(c),Fs(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function Vs(e){let t;if(b(e)){const n=Xs&&e._c;n&&(e._d=!1,Js()),e=e(),n&&(e._d=!0,t=Gs,Ys())}if(m(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function js(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):wn(e)}function Us(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Fs(o,r))}const Hs=Symbol.for("v-fgt"),qs=Symbol.for("v-txt"),Ws=Symbol.for("v-cmt"),Ks=Symbol.for("v-stc"),zs=[];let Gs=null;function Js(e=!1){zs.push(Gs=e?null:[])}function Ys(){zs.pop(),Gs=zs[zs.length-1]||null}let Qs,Xs=1;function Zs(e){Xs+=e,e<0&&Gs&&(Gs.hasOnce=!0)}function ei(e){return e.dynamicChildren=Xs>0?Gs||i:null,Ys(),Xs>0&&Gs&&Gs.push(e),e}function ti(e,t,n,o,r,s){return ei(ci(e,t,n,o,r,s,!0))}function ni(e,t,n,o,r){return ei(ai(e,t,n,o,r,!0))}function oi(e){return!!e&&!0===e.__v_isVNode}function ri(e,t){return e.type===t.type&&e.key===t.key}function si(e){Qs=e}const ii=({key:e})=>null!=e?e:null,li=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?S(e)||Ut(e)||b(e)?{i:Fn,r:e,k:t,f:!!n}:e:null);function ci(e,t=null,n=null,o=0,r=null,s=(e===Hs?0:1),i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ii(t),ref:t&&li(t),scopeId:Ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Fn};return l?(vi(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=S(n)?8:16),Xs>0&&!i&&Gs&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Gs.push(c),c}const ai=function(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Ro||(e=Ws),oi(e)){const o=di(e,t,!0);return n&&vi(o,n),Xs>0&&!s&&Gs&&(6&o.shapeFlag?Gs[Gs.indexOf(e)]=o:Gs.push(o)),o.patchFlag=-2,o}if(i=e,b(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=ui(t);let{class:e,style:n}=t;e&&!S(e)&&(t.class=X(e)),C(n)&&(Ft(n)&&!m(n)&&(n=d({},n)),t.style=z(n))}var i;return ci(e,t,n,o,r,S(e)?1:Ls(e)?128:(e=>e.__isTeleport)(e)?64:C(e)?4:b(e)?2:0,s,!0)};function ui(e){return e?Ft(e)||kr(e)?d({},e):e:null}function di(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:l,transition:c}=e,a=t?yi(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ii(a),ref:t&&t.ref?n&&s?m(s)?s.concat(li(t)):[s,li(t)]:li(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Hs?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&di(e.ssContent),ssFallback:e.ssFallback&&di(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&eo(u,c.clone(u)),u}function pi(e=" ",t=0){return ai(qs,null,e,t)}function hi(e,t){const n=ai(Ks,null,e);return n.staticCount=t,n}function fi(e="",t=!1){return t?(Js(),ni(Ws,null,e)):ai(Ws,null,e)}function mi(e){return null==e||"boolean"==typeof e?ai(Ws):m(e)?ai(Hs,null,e.slice()):"object"==typeof e?gi(e):ai(qs,null,String(e))}function gi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:di(e)}function vi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(m(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),vi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kr(t)?3===o&&Fn&&(1===Fn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Fn}}else b(t)?(t={default:t,_ctx:Fn},n=32):(t=String(t),64&o?(n=16,t=[pi(t)]):n=8);e.children=t,e.shapeFlag|=n}function yi(...e){const t={};for(let n=0;nxi||Fn;let wi,Ti;{const e=q(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};wi=t("__VUE_INSTANCE_SETTERS__",(e=>xi=e)),Ti=t("__VUE_SSR_SETTERS__",(e=>Oi=e))}const ki=e=>{const t=xi;return wi(e),e.scope.on(),()=>{e.scope.off(),wi(t)}},Ai=()=>{xi&&xi.scope.off(),wi(null)};function Ii(e){return 4&e.vnode.shapeFlag}let Ni,Ri,Oi=!1;function Di(e,t=!1,n=!1){t&&Ti(t);const{props:o,children:r}=e.vnode,s=Ii(e);!function(e,t,n,o=!1){const r={},s=Tr();e.propsDefaults=Object.create(null),Ar(e,t,r,s);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:kt(r):e.type.props?e.props=r:e.props=s,e.attrs=s}(e,o,s,t),Ur(e,r,n);const i=s?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bi(e):null,r=ki(e);Ie();const s=un(o,e,0,[e.props,n]);if(Ne(),r(),x(s)){if(s.then(Ai,Ai),t)return s.then((n=>{Fi(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=s}else Fi(e,s,t)}else Mi(e,t)}(e,t):void 0;return t&&Ti(!1),i}function Fi(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:C(t)&&(e.setupState=Qt(t)),Mi(e,n)}function Li(e){Ni=e,Ri=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Wo))}}const Pi=()=>!Ni;function Mi(e,t,n){const o=e.type;if(!e.render){if(!t&&Ni&&!o.render){const t=o.template||ur(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:i}=o,l=d(d({isCustomElement:n,delimiters:s},r),i);o.render=Ni(t,l)}}e.render=o.render||l,Ri&&Ri(e)}{const t=ki(e);Ie();try{!function(e){const t=ur(e),n=e.proxy,o=e.ctx;lr=!1,t.beforeCreate&&cr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:f,updated:g,activated:v,deactivated:y,beforeDestroy:S,beforeUnmount:_,destroyed:x,unmounted:E,render:w,renderTracked:T,renderTriggered:k,errorCaptured:A,serverPrefetch:I,expose:N,inheritAttrs:R,components:O,directives:D,filters:F}=t;if(u&&function(e,t){m(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=C(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ut(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),i)for(const e in i){const t=i[e];b(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);C(t)&&(e.data=Tt(t))}if(lr=!0,s)for(const e in s){const t=s[e],r=b(t)?t.bind(n,n):b(t.get)?t.get.bind(n,n):l,i=!b(t)&&b(t.set)?t.set.bind(n):l,c=Ui({get:r,set:i});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)ar(c[e],o,n,e);if(a){const e=b(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{Cr(t,e[t])}))}function L(e,t){m(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&cr(d,e,"c"),L(yo,p),L(bo,h),L(So,f),L(_o,g),L(ao,v),L(uo,y),L(ko,A),L(To,T),L(wo,k),L(Co,_),L(xo,E),L(Eo,I),m(N))if(N.length){const t=e.exposed||(e.exposed={});N.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===l&&(e.render=w),null!=R&&(e.inheritAttrs=R),O&&(e.components=O),D&&(e.directives=D)}(e)}finally{Ne(),t()}}}const $i={get:(e,t)=>(Ve(e,0,""),e[t])};function Bi(e){return{attrs:new Proxy(e.attrs,$i),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Vi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qt(Pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Uo?Uo[n](e):void 0,has:(e,t)=>t in e||t in Uo})):e.proxy}function ji(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}const Ui=(e,t)=>function(e,t,n=!1){let o,r;const s=b(e);return s?(o=e,r=l):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Oi);function Hi(e,t,n){const o=arguments.length;return 2===o?C(t)&&!m(t)?oi(t)?ai(e,null,[t]):ai(e,t):ai(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&oi(n)&&(n=[n]),ai(e,t,n))}function qi(){}function Wi(e,t,n,o){const r=n[o];if(r&&Ki(r,e))return r;const s=t();return s.memo=e.slice(),s.cacheIndex=o,n[o]=s}function Ki(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gs&&Gs.push(e),!0}const zi="3.4.33",Gi=l,Ji={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Yi=Rn,Qi=function e(t,n){var o,r;Rn=t,Rn?(Rn.enabled=!0,On.forEach((({event:e,args:t})=>Rn.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Rn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Dn=!0,On=[])}),3e3)):(Dn=!0,On=[])},Xi={createComponentInstance:Ci,setupComponent:Di,renderComponentRoot:Ns,setCurrentRenderingInstance:Pn,isVNode:oi,normalizeVNode:mi,getComponentPublicInstance:Vi},Zi=null,el=null,tl=null,nl="undefined"!=typeof document?document:null,ol=nl&&nl.createElement("template"),rl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?nl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?nl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?nl.createElement(e,{is:n}):nl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>nl.createTextNode(e),createComment:e=>nl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==s&&(r=r.nextSibling););else{ol.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=ol.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},sl="transition",il="animation",ll=Symbol("_vtc"),cl=(e,{slots:t})=>Hi(Jn,hl(e),t);cl.displayName="Transition";const al={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ul=cl.props=d({},zn,al),dl=(e,t=[])=>{m(e)?e.forEach((e=>e(...t))):e&&e(...t)},pl=e=>!!e&&(m(e)?e.some((e=>e.length>1)):e.length>1);function hl(e){const t={};for(const n in e)n in al||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:a=i,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(C(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:S,onLeave:_,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:w=b,onAppearCancelled:T=S}=t,k=(e,t,n)=>{gl(e,t?u:l),gl(e,t?a:i),n&&n()},A=(e,t)=>{e._isLeaving=!1,gl(e,p),gl(e,f),gl(e,h),t&&t()},I=e=>(t,n)=>{const r=e?w:b,i=()=>k(t,e,n);dl(r,[t,i]),vl((()=>{gl(t,e?c:s),ml(t,e?u:l),pl(r)||bl(t,o,g,i)}))};return d(t,{onBeforeEnter(e){dl(y,[e]),ml(e,s),ml(e,i)},onBeforeAppear(e){dl(E,[e]),ml(e,c),ml(e,a)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>A(e,t);ml(e,p),ml(e,h),xl(),vl((()=>{e._isLeaving&&(gl(e,p),ml(e,f),pl(_)||bl(e,o,v,n))})),dl(_,[e,n])},onEnterCancelled(e){k(e,!1),dl(S,[e])},onAppearCancelled(e){k(e,!0),dl(T,[e])},onLeaveCancelled(e){A(e),dl(x,[e])}})}function fl(e){return U(e)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[ll]||(e[ll]=new Set)).add(t)}function gl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[ll];n&&(n.delete(t),n.size||(e[ll]=void 0))}function vl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let yl=0;function bl(e,t,n,o){const r=e._endId=++yl,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:c}=Sl(e,t);if(!i)return o();const a=i+"end";let u=0;const d=()=>{e.removeEventListener(a,p),s()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${sl}Delay`),s=o(`${sl}Duration`),i=_l(r,s),l=o(`${il}Delay`),c=o(`${il}Duration`),a=_l(l,c);let u=null,d=0,p=0;return t===sl?i>0&&(u=sl,d=i,p=s.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(i,a),u=d>0?i>a?sl:il:null,p=u?u===sl?s.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===sl&&/\b(transform|all)(,|$)/.test(o(`${sl}Property`).toString())}}function _l(e,t){for(;e.lengthCl(t)+Cl(e[n]))))}function Cl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const El=Symbol("_vod"),wl=Symbol("_vsh"),Tl={beforeMount(e,{value:t},{transition:n}){e[El]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):kl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),kl(e,!0),o.enter(e)):o.leave(e,(()=>{kl(e,!1)})):kl(e,t))},beforeUnmount(e,{value:t}){kl(e,t)}};function kl(e,t){e.style.display=t?e[El]:"none",e[wl]=!t}const Al=Symbol("");function Il(e){const t=Ei();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Rl(e,n)))},o=()=>{const o=e(t.proxy);Nl(t.subTree,o),n(o)};bo((()=>{vs(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Nl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Nl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Rl(e.el,t);else if(e.type===Hs)e.children.forEach((e=>Nl(e,t)));else if(e.type===Ks){let{el:n,anchor:o}=e;for(;n&&(Rl(n,t),n!==o);)n=n.nextSibling}}function Rl(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[Al]=o}}const Ol=/(^|;)\s*display\s*:/,Dl=/\s*!important$/;function Fl(e,t,n){if(m(n))n.forEach((n=>Fl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Pl[t];if(n)return n;let o=D(t);if("filter"!==o&&o in e)return Pl[t]=o;o=P(o);for(let n=0;nUl||(Hl.then((()=>Ul=0)),Ul=Date.now()),Wl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Kl(e,t,n){const o=no(e,t);class r extends Jl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Kl(e,t,Rc),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Jl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Cn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Nc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!m(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=U(this._props[e])),(r||(r=Object.create(null)))[D(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=m(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=D(e);this._numberProps&&this._numberProps[n]&&(t=U(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(L(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(L(e),t+""):t||this.removeAttribute(L(e))))}_update(){Nc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ai(this._def,d({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),L(e)!==e&&t(L(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Jl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Yl(e="$style"){{const t=Ei();if(!t)return s;const n=t.type.__cssModules;if(!n)return s;return n[e]||s}}const Ql=new WeakMap,Xl=new WeakMap,Zl=Symbol("_moveCb"),ec=Symbol("_enterCb"),tc={name:"TransitionGroup",props:d({},ul,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ei(),o=Wn();let r,s;return _o((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[ll];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(o);const{hasTransform:i}=Sl(o);return s.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(nc),r.forEach(oc);const o=r.filter(rc);xl(),o.forEach((e=>{const n=e.el,o=n.style;ml(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Zl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Zl]=null,gl(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const i=Lt(e),l=hl(i);let c=i.tag||Hs;if(r=[],s)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return m(t)?e=>B(t,e):t};function ic(e){e.target.composing=!0}function lc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cc=Symbol("_assign"),ac={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[cc]=sc(r);const s=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=j(o)),e[cc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",lc),Bl(e,"change",lc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:s}},i){if(e[cc]=sc(i),e.composing)return;const l=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},uc={deep:!0,created(e,t,n){e[cc]=sc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=mc(e),o=e.checked,r=e[cc];if(m(t)){const e=le(t,n),s=-1!==e;if(o&&!s)r(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),r(n)}}else if(v(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(gc(e,o))}))},mounted:dc,beforeUpdate(e,t,n){e[cc]=sc(n),dc(e,t,n)}};function dc(e,{value:t,oldValue:n},o){e._modelValue=t,m(t)?e.checked=le(t,o.props.value)>-1:v(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,gc(e,!0)))}const pc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[cc]=sc(n),Bl(e,"change",(()=>{e[cc](mc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[cc]=sc(o),t!==n&&(e.checked=ie(t,o.props.value))}},hc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=v(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(mc(e)):mc(e)));e[cc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,Cn((()=>{e._assigning=!1}))})),e[cc]=sc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[cc]=sc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=m(t);if(!o||r||v(t)){for(let n=0,s=e.options.length;nString(e)===String(i))):le(t,i)>-1}else s.selected=t.has(i);else if(ie(mc(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function mc(e){return"_value"in e?e._value:e.value}function gc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const vc={created(e,t,n){bc(e,t,n,null,"created")},mounted(e,t,n){bc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){bc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){bc(e,t,n,o,"updated")}};function yc(e,t){switch(e){case"SELECT":return hc;case"TEXTAREA":return ac;default:switch(t){case"checkbox":return uc;case"radio":return pc;default:return ac}}}function bc(e,t,n,o,r){const s=yc(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,o)}const Sc=["ctrl","shift","alt","meta"],_c={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Sc.some((n=>e[`${n}Key`]&&!t.includes(n)))},Cc=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=L(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},wc=d({patchProp:(e,t,n,o,r,s)=>{const i="svg"===r;"class"===t?function(e,t,n){const o=e[ll];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,n){const o=e.style,r=S(n);let s=!1;if(n&&!r){if(t)if(S(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Fl(o,t,"")}else for(const e in t)null==n[e]&&Fl(o,e,"");for(const e in n)"display"===e&&(s=!0),Fl(o,e,n[e])}else if(r){if(t!==n){const e=o[Al];e&&(n+=";"+e),o.cssText=n,s=Ol.test(n)}}else t&&e.removeAttribute("style");El in e&&(e[El]=s?o.display:"",e[wl]&&(o.display="none"))}(e,n,o):a(t)?u(t)||function(e,t,n,o,r=null){const s=e[Vl]||(e[Vl]={}),i=s[t];if(o&&i)i.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):L(e.slice(2)),t]}(t);if(o){const i=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();dn(function(e,t){if(m(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ql(),n}(o,r);Bl(e,n,i,l)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),s[t]=void 0)}}(e,t,0,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Wl(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Wl(t)||!S(n))&&t in e}(e,t,o,i))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,s=null==n?"":String(n);return r===s&&"_value"in e||(e.value=s),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=se(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||$l(e,t,o,i,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),$l(e,t,o,i))}},rl);let Tc,kc=!1;function Ac(){return Tc||(Tc=ss(wc))}function Ic(){return Tc=kc?Tc:is(wc),kc=!0,Tc}const Nc=(...e)=>{Ac().render(...e)},Rc=(...e)=>{Ic().hydrate(...e)},Oc=(...e)=>{const t=Ac().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Lc(e);if(!o)return;const r=t._component;b(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,Fc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},Dc=(...e)=>{const t=Ic().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Lc(e);if(t)return n(t,!0,Fc(t))},t};function Fc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Lc(e){return S(e)?document.querySelector(e):e}let Pc=!1;const Mc=()=>{Pc||(Pc=!0,ac.getSSRProps=({value:e})=>({value:e}),pc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},uc.getSSRProps=({value:e},t)=>{if(m(e)){if(t.props&&le(e,t.props.value)>-1)return{checked:!0}}else if(v(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},vc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=yc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Tl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},$c=Symbol(""),Bc=Symbol(""),Vc=Symbol(""),jc=Symbol(""),Uc=Symbol(""),Hc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),Kc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Jc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Xc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),sa=Symbol(""),ia=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),fa=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),Ca=Symbol(""),xa={[$c]:"Fragment",[Bc]:"Teleport",[Vc]:"Suspense",[jc]:"KeepAlive",[Uc]:"BaseTransition",[Hc]:"openBlock",[qc]:"createBlock",[Wc]:"createElementBlock",[Kc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Jc]:"createTextVNode",[Yc]:"createStaticVNode",[Qc]:"resolveComponent",[Xc]:"resolveDynamicComponent",[Zc]:"resolveDirective",[ea]:"resolveFilter",[ta]:"withDirectives",[na]:"renderList",[oa]:"renderSlot",[ra]:"createSlots",[sa]:"toDisplayString",[ia]:"mergeProps",[la]:"normalizeClass",[ca]:"normalizeStyle",[aa]:"normalizeProps",[ua]:"guardReactiveProps",[da]:"toHandlers",[pa]:"camelize",[ha]:"capitalize",[fa]:"toHandlerKey",[ma]:"setBlockTracking",[ga]:"pushScopeId",[va]:"popScopeId",[ya]:"withCtx",[ba]:"unref",[Sa]:"isRef",[_a]:"withMemo",[Ca]:"isMemoSame"},Ea={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wa(e,t,n,o,r,s,i,l=!1,c=!1,a=!1,u=Ea){return e&&(l?(e.helper(Hc),e.helper(La(e.inSSR,a))):e.helper(Fa(e.inSSR,a)),i&&e.helper(ta)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:s,directives:i,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ta(e,t=Ea){return{type:17,loc:t,elements:e}}function ka(e,t=Ea){return{type:15,loc:t,properties:e}}function Aa(e,t){return{type:16,loc:Ea,key:S(e)?Ia(e,!0):e,value:t}}function Ia(e,t=!1,n=Ea,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Na(e,t=Ea){return{type:8,loc:t,children:e}}function Ra(e,t=[],n=Ea){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ea){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Da(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ea}}function Fa(e,t){return e||t?Kc:zc}function La(e,t){return e||t?qc:Wc}function Pa(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Fa(o,e.isComponent)),t(Hc),t(La(o,e.isComponent)))}const Ma=new Uint8Array([123,123]),$a=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function Va(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||Va(e)}function Ua(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Qa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return Vc;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Uc}}const Xa=/^\d|[^\$\w\xA0-\uFFFF]/,Za=e=>!Xa.test(e),eu=/[A-Za-z_$\xA0-\uFFFF]/,tu=/[\.\?\w$\xA0-\uFFFF]/,nu=/\s+[.[]\s*|\s*[.[]\s+/g,ou=e=>{e=e.trim().replace(nu,(e=>e.trim()));let t=0,n=[],o=0,r=0,s=null;for(let i=0;i4===e.key.type&&e.key.content===o))}return n}function mu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const gu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,vu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:c,isPreTag:c,isCustomElement:c,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let yu=vu,bu=null,Su="",_u=null,Cu=null,xu="",Eu=-1,wu=-1,Tu=0,ku=!1,Au=null;const Iu=[],Nu=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Ma,this.delimiterClose=$a,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Ma,this.delimiterClose=$a}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Va(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Ha.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Iu,{onerr:Yu,ontext(e,t){Lu(Du(e,t),e,t)},ontextentity(e,t,n){Lu(e,t,n)},oninterpolation(e,t){if(ku)return Lu(Du(e,t),e,t);let n=e+Nu.delimiterOpen.length,o=t-Nu.delimiterClose.length;for(;Va(Su.charCodeAt(n));)n++;for(;Va(Su.charCodeAt(o-1));)o--;let r=Du(n,o);r.includes("&")&&(r=yu.decodeEntities(r,!1)),Wu({type:5,content:Ju(r,!1,Ku(n,o)),loc:Ku(e,t)})},onopentagname(e,t){const n=Du(e,t);_u={type:1,tag:n,ns:yu.getNamespace(n,Iu[0],yu.ns),tagType:0,props:[],children:[],loc:Ku(e-1,t),codegenNode:void 0}},onopentagend(e){Fu(e)},onclosetag(e,t){const n=Du(e,t);if(!yu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Yu(24,Iu[0].loc.start.offset);for(let n=0;n<=e;n++)Pu(Iu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Yu(2,t)},onattribend(e,t){if(_u&&Cu){if(zu(Cu.loc,t),0!==e)if(xu.includes("&")&&(xu=yu.decodeEntities(xu,!0)),6===Cu.type)"class"===Cu.name&&(xu=qu(xu).trim()),1!==e||xu||Yu(13,t),Cu.value={type:2,content:xu,loc:1===e?Ku(Eu,wu):Ku(Eu-1,wu+1)},Nu.inSFCRoot&&"template"===_u.tag&&"lang"===Cu.name&&xu&&"html"!==xu&&Nu.enterRCDATA(Ua("{const r=t.start.offset+n;return Ju(e,!1,Ku(r,r+e.length),0,o?1:0)},l={source:i(s.trim(),n.indexOf(s,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Ru);if(u){c=c.replace(Ru,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=i(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=i(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=i(c,a,!0)),l}(Cu.exp));let t=-1;"bind"===Cu.name&&(t=Cu.modifiers.indexOf("sync"))>-1&&Ka("COMPILER_V_BIND_SYNC",yu,Cu.loc,Cu.rawName)&&(Cu.name="model",Cu.modifiers.splice(t,1))}7===Cu.type&&"pre"===Cu.name||_u.props.push(Cu)}xu="",Eu=wu=-1},oncomment(e,t){yu.comments&&Wu({type:3,content:Du(e,t),loc:Ku(e-4,t+3)})},onend(){const e=Su.length;for(let t=0;t64&&n<91||Qa(e)||yu.isBuiltInComponent&&yu.isBuiltInComponent(e)||yu.isNativeTag&&!yu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Ka("COMPILER_INLINE_TEMPLATE",yu,n.loc)&&e.children.length&&(n.value={type:2,content:Du(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Mu(e,t){let n=e;for(;Su.charCodeAt(n)!==t&&n>=0;)n--;return n}const $u=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&od(r,t)>=2){const n=rd(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Zu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Zu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:l,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){S(e)&&(e=Ia(e)),k.hoists.push(e);const t=Ia(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ea}}(k.cached++,e,t)};return k.filters=new Set,k}(e,t);id(e,n),t.hoistStatic&&Qu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Xu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Pa(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;W[64],e.codegenNode=wa(t,n($c),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(cu))return;const s=[];for(let i=0;i`${xa[e]}: _${xa[e]}`;function ud(e,t,{helper:n,push:o,newline:r,isTS:s}){const i=n("filter"===t?ea:"component"===t?Qc:Zc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),pd(e,t,n),n&&t.deindent(),t.push("]")}function pd(e,t,n=!1,o=!0){const{push:r,newline:s}=t;for(let i=0;ie||"null"))}([s,i,l,f,a]),t),n(")"),d&&n(")"),u&&(n(", "),hd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,s=S(e.callee)?e.callee:o(e.callee);r&&n(cd),n(s+"(",-2,e),pd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:s}=t,{properties:i}=e;if(!i.length)return void n("{}",-2,e);const l=i.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),i?(c&&n("return "),m(i)?dd(i,t):hd(i,t)):l&&hd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:s}=e,{push:i,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Za(n.content);e&&i("("),fd(n,t),e&&i(")")}else i("("),hd(n,t),i(")");s&&l(),t.indentLevel++,s||i(" "),i("? "),hd(o,t),t.indentLevel--,s&&a(),s||i(" "),i(": ");const u=19===r.type;u||t.indentLevel++,hd(r,t),u||t.indentLevel--,s&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:s,newline:i}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ma)}(-1),`),i(),n("(")),n(`_cache[${e.index}] = `),hd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),i(),n(`${o(ma)}(1),`),i(),n(`_cache[${e.index}]`),s()),n(")")}(e,t);break;case 21:pd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function md(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ja(28,t.loc)),t.exp=Ia("true",!1,o)}if("if"===t.name){const r=yd(e,t),s={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(s),o)return o(s,r,!0)}else{const r=n.parent.children;let s=r.indexOf(e);for(;s-- >=-1;){const i=r[s];if(i&&3===i.type)n.removeNode(i);else{if(!i||2!==i.type||i.content.trim().length){if(i&&9===i.type){"else-if"===t.name&&void 0===i.branches[i.branches.length-1].condition&&n.onError(Ja(30,e.loc)),n.removeNode();const r=yd(e,t);i.branches.push(r);const s=o&&o(i,r,!1);id(r,n),s&&s(),n.currentNode=null}else n.onError(Ja(30,e.loc));break}n.removeNode(i)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let s=r.indexOf(e),i=0;for(;s-- >=0;){const e=r[s];e&&9===e.type&&(i+=e.branches.length)}return()=>{if(o)e.codegenNode=bd(t,i,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=bd(t,i+e.branches.length-1,n)}}}))));function yd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ru(e,"for")?e.children:[e],userKey:su(e,"key"),isTemplateIf:n}}function bd(e,t,n){return e.condition?Da(e.condition,Sd(e,t,n),Ra(n.helper(Gc),['""',"true"])):Sd(e,t,n)}function Sd(e,t,n){const{helper:o}=n,r=Aa("key",Ia(`${t}`,!1,Ea,2)),{children:s}=e,i=s[0];if(1!==s.length||1!==i.type){if(1===s.length&&11===i.type){const e=i.codegenNode;return hu(e,r,n),e}{let t=64;return W[64],wa(n,o($c),ka([r]),s,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=i.codegenNode,t=14===(l=e).type&&l.callee===_a?l.arguments[1].returns:l;return 13===t.type&&Pa(t,n),hu(t,r,n),e}var l}const _d=(e,t,n)=>{const{modifiers:o,loc:r}=e,s=e.arg;let{exp:i}=e;if(i&&4===i.type&&!i.content.trim()&&(i=void 0),!i){if(4!==s.type||!s.isStatic)return n.onError(Ja(52,s.loc)),{props:[Aa(s,Ia("",!0,r))]};Cd(e),i=e.exp}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),o.includes("camel")&&(4===s.type?s.isStatic?s.content=D(s.content):s.content=`${n.helperString(pa)}(${s.content})`:(s.children.unshift(`${n.helperString(pa)}(`),s.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(s,"."),o.includes("attr")&&xd(s,"^")),{props:[Aa(s,i)]}},Cd=(e,t)=>{const n=e.arg,o=D(n.content);e.exp=Ia(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ed=ld("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ja(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ja(32,t.loc));wd(r);const{addIdentifiers:s,removeIdentifiers:i,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:au(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const h=o&&o(p);return()=>{l.vFor--,h&&h()}}(e,t,n,(t=>{const s=Ra(o(na),[t.source]),i=au(e),l=ru(e,"memo"),c=su(e,"key",!1,!0);c&&7===c.type&&!c.exp&&Cd(c);const a=c&&(6===c.type?c.value?Ia(c.value.content,!0):void 0:c.exp),u=c&&a?Aa("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=wa(n,o($c),void 0,s,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=uu(e)?e:i&&1===e.children.length&&uu(e.children[0])?e.children[0]:null;if(f?(c=f.codegenNode,i&&u&&hu(c,u,n)):h?c=wa(n,o($c),u?ka([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,i&&u&&hu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Hc),r(La(n.inSSR,c.isComponent))):r(Fa(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Hc),o(La(n.inSSR,c.isComponent))):o(Fa(n.inSSR,c.isComponent))),l){const e=Oa(Td(t.parseResult,[Ia("_cached")]));e.body={type:21,body:[Na(["const _memo = (",l.exp,")"]),Na(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(Ca)}(_cached, _memo)) return _cached`]),Na(["const _item = ",c]),Ia("_item.memo = _memo"),Ia("return _item")],loc:Ea},s.arguments.push(e,Ia("_cache"),Ia(String(n.cached++)))}else s.arguments.push(Oa(Td(t.parseResult),c,!0))}}))}));function wd(e,t){e.finalized||(e.finalized=!0)}function Td({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ia("_".repeat(t+1),!1)))}([e,t,n,...o])}const kd=Ia("undefined",!1),Ad=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ru(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Id=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Nd(e,t,n=Id){t.helper(ya);const{children:o,loc:r}=e,s=[],i=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ru(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ya(e)&&(l=!0),s.push(Aa(e||Ia("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e{const s=n(e,void 0,o,r);return t.compatConfig&&(s.isNonScopedSlot=!0),Aa("default",s)};a?d.length&&d.some((e=>Dd(e)))&&(u?t.onError(Ja(39,d[0].loc)):s.push(e(void 0,d))):s.push(e(void 0,o))}const f=l?2:Od(e.children)?3:1;let m=ka(s.concat(Aa("_",Ia(f+"",!1))),r);return i.length&&(m=Ra(t.helper(ra),[m,Ta(i)])),{slots:m,hasDynamicSlots:l}}function Rd(e,t,n){const o=[Aa("name",e),Aa("fn",t)];return null!=n&&o.push(Aa("key",Ia(String(n),!0))),ka(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let s=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),s=su(e,"is",!1,!0);if(s)if(r||Wa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===s.type?e=s.value&&Ia(s.value.content,!0):(e=s.exp,e||(e=Ia("is",!1,s.loc))),e)return Ra(t.helper(Xc),[e])}else 6===s.type&&s.value.content.startsWith("vue:")&&(o=s.value.content.slice(4));const i=Qa(o)||t.isBuiltInComponent(o);return i?(n||t.helper(i),i):(t.helper(Qc),t.components.add(o),mu(o,"component"))}(e,t):`"${n}"`;const i=C(s)&&s.callee===Xc;let l,c,a,u,d,p=0,h=i||s===Bc||s===Vc||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Pd(e,t,void 0,r,i);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?Ta(o.map((e=>function(e,t){const n=[],o=Fd.get(e);o?n.push(t.helperString(o)):(t.helper(Zc),t.directives.add(e.name),n.push(mu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ia("true",!1,r);n.push(ka(e.modifiers.map((e=>Aa(e,t))),r))}return Ta(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(s===jc&&(h=!0,p|=1024),r&&s!==Bc&&s!==jc){const{slots:n,hasDynamicSlots:o}=Nd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&s!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===ed(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,v=!1,y=!1,b=!1,S=!1,C=!1;const x=[],E=e=>{u.length&&(d.push(ka(Md(u),l)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(Aa(Ia("ref_for",!0),Ia("true")))},T=({key:e,value:n})=>{if(Ya(e)){const s=e.content,i=a(s);if(!i||o&&!r||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||I(s)||(b=!0),i&&I(s)&&(C=!0),i&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&ed(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?y=!0:"key"===s||x.includes(s)||x.push(s),!o||"class"!==s&&"style"!==s||x.includes(s)||x.push(s)}else S=!0};for(let r=0;r1?Ra(t.helper(ia),d,l):d[0]):u.length&&(k=ka(Md(u),l)),S?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),x.length&&(m|=8),b&&(m|=32)),f||0!==m&&32!==m||!(g||C||p.length>0)||(m|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(uu(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:s}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:s}=Pd(e,t,r,!1,!1);n=o,s.length&&t.onError(Ja(36,s[0].loc))}return{slotName:o,slotProps:n}}(e,t),i=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;s&&(i[2]=s,l=3),n.length&&(i[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),i.splice(l),e.codegenNode=Ra(t.helper(oa),i,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ud=(e,t,n,o)=>{const{loc:r,modifiers:s,arg:i}=e;let l;if(e.exp||s.length||n.onError(Ja(35,r)),4===i.type)if(i.isStatic){let e=i.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ia(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(D(e)):`on:${e}`,!0,i.loc)}else l=Na([`${n.helperString(fa)}(`,i,")"]);else l=i,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=ou(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Na([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Aa(l,c||Ia("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Hd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ru(e,"once",!0)){if(qd.has(e)||t.inVOnce||t.inSSR)return;return qd.add(e),t.inVOnce=!0,t.helper(ma),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Kd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ja(41,e.loc)),zd();const s=o.loc.source,i=4===o.type?o.content:s,l=n.bindingMetadata[s];if("props"===l||"props-aliased"===l)return n.onError(Ja(44,o.loc)),zd();if(!i.trim()||!ou(i))return n.onError(Ja(42,o.loc)),zd();const c=r||Ia("modelValue",!0),a=r?Ya(r)?`onUpdate:${D(r.content)}`:Na(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Na([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Aa(c,e.exp),Aa(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Za(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ya(r)?`${r.content}Modifiers`:Na([r,' + "Modifiers"']):"modelModifiers";d.push(Aa(n,Ia(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Jd=(e,t)=>{Wa("COMPILER_FILTERS",t)&&(5===e.type?Yd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Yd(e.exp,t)})))};function Yd(e,t){if(4===e.type)Qd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===i?(f=s+1,i=n.slice(0,s).trim()):g();function g(){m.push(n.slice(f,s).trim()),f=s+1}if(void 0===i?i=n.slice(0,s).trim():0!==f&&g(),m.length){for(s=0;s{if(1===e.type){const n=ru(e,"memo");if(!n||Zd.has(e))return;return Zd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Pa(o,t),e.codegenNode=Ra(t.helper(_a),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function tp(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ja(47)):o&&n(Ja(48)),t.cacheHandlers&&n(Ja(49)),t.scopeId&&!o&&n(Ja(50));const r=d({},t,{prefixIdentifiers:!1}),s=S(e)?function(e,t){if(Nu.reset(),_u=null,Cu=null,xu="",Eu=-1,wu=-1,Iu.length=0,Su=e,yu=d({},vu),t){let e;for(e in t)null!=t[e]&&(yu[e]=t[e])}Nu.mode="html"===yu.parseMode?1:"sfc"===yu.parseMode?2:0,Nu.inXML=1===yu.ns||2===yu.ns;const n=t&&t.delimiters;n&&(Nu.delimiterOpen=Ua(n[0]),Nu.delimiterClose=Ua(n[1]));const o=bu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ea}}(0,e);return Nu.parse(Su),o.loc=Ku(0,e.length),o.children=ju(o.children),bu=null,o}(e,r):e,[i,l]=[[Wd,vd,ep,Ed,Jd,Vd,Ld,Ad,Hd],{on:Ud,bind:_d,model:Kd}];return sd(s,d({},r,{nodeTransforms:[...i,...t.nodeTransforms||[]],directiveTransforms:d({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:s=null,optimizeImports:i=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:s,optimizeImports:i,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:s,indent:i,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!s&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:s,runtimeModuleName:i,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Kc,zc,Gc,Jc,Yc].filter((e=>u.includes(e))).map(ad).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:s,mode:i}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ud(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ud(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?hd(e.codegenNode,n):r("null"),h&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(s,r)}const np=Symbol(""),op=Symbol(""),rp=Symbol(""),sp=Symbol(""),ip=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol(""),dp=Symbol("");var pp;let hp;pp={[np]:"vModelRadio",[op]:"vModelCheckbox",[rp]:"vModelText",[sp]:"vModelSelect",[ip]:"vModelDynamic",[lp]:"withModifiers",[cp]:"withKeys",[ap]:"vShow",[up]:"Transition",[dp]:"TransitionGroup"},Object.getOwnPropertySymbols(pp).forEach((e=>{xa[e]=pp[e]}));const fp={parseMode:"html",isVoidTag:oe,isNativeTag:e=>ee(e)||te(e)||ne(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return hp||(hp=document.createElement("div")),t?(hp.innerHTML=`
            `,hp.children[0].getAttribute("foo")):(hp.innerHTML=e,hp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?up:"TransitionGroup"===e||"transition-group"===e?dp:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},mp=(e,t)=>{const n=Q(e);return Ia(JSON.stringify(n),!1,t,3)};function gp(e,t){return Ja(e,t)}const vp=r("passive,once,capture"),yp=r("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),bp=r("left,right"),Sp=r("onkeyup,onkeydown,onkeypress",!0),_p=(e,t)=>Ya(e)&&"onclick"===e.content.toLowerCase()?Ia(t,!0):4!==e.type?Na(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Cp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ia("style",!0,t.loc),exp:mp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Ep={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(gp(53,r)),t.children.length&&(n.onError(gp(54,r)),t.children.length=0),{props:[Aa(Ia("innerHTML",!0,r),o||Ia("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(gp(55,r)),t.children.length&&(n.onError(gp(56,r)),t.children.length=0),{props:[Aa(Ia("textContent",!0),o?ed(o,n)>0?o:Ra(n.helperString(sa),[o],r):Ia("",!0))]}},model:(e,t,n)=>{const o=Kd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(gp(58,e.arg.loc));const{tag:r}=t,s=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||s){let i=rp,l=!1;if("input"===r||s){const o=su(t,"type");if(o){if(7===o.type)i=ip;else if(o.value)switch(o.value.content){case"radio":i=np;break;case"checkbox":i=op;break;case"file":l=!0,n.onError(gp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(i=ip)}else"select"===r&&(i=sp);l||(o.needRuntime=n.helper(i))}else n.onError(gp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Ud(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:s}=t.props[0];const{keyModifiers:i,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],s=[];for(let i=0;i{const{exp:o,loc:r}=e;return o||n.onError(gp(61,r)),{props:[],needRuntime:n.helper(ap)}}},wp=new WeakMap;Li((function(e,t){if(!S(e)){if(!e.nodeType)return l;e=e.innerHTML}const n=e,r=function(e){let t=wp.get(null!=e?e:s);return t||(t=Object.create(null),wp.set(null!=e?e:s,t)),t}(t),i=r[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=d({hoistStatic:!0,onError:void 0,onWarn:l},t);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return tp(e,d({},fp,t,{nodeTransforms:[Cp,...xp,...t.nodeTransforms||[]],directiveTransforms:d({},Ep,t.directiveTransforms||{}),transformHoist:null}))}(e,c),u=new Function("Vue",a)(o);return u._rc=!0,r[n]=u}))}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var s=o[e]={exports:{}};return n[e](s,s.exports,r),s.exports}r.m=n,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>({245:"form-editor-view",776:"form-browser-view",951:"restore-fields-view"}[e]+".chunk.js"),r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="leaf_vue:",r.l=(n,o,s,i)=>{if(e[n])e[n].push(o);else{var l,c;if(void 0!==s)for(var a=document.getElementsByTagName("script"),u=0;u{l.onerror=l.onload=null,clearTimeout(h);var r=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach((e=>e(o))),t)return t(o)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),c&&document.head.appendChild(l)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={763:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var s=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=s);var i=r.p+r.u(t),l=new Error;r.l(i,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",l.name="ChunkLoadError",l.type=s,l.request=i,o[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,s,[i,l,c]=n,a=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);c&&c(r)}for(t&&t(n);ae.length)&&(t=e.length);for(var n=0,o=Array(t);n{{ message }}
            '}},created:function(){var e=this;this.getEnabledCategories(),document.addEventListener("keydown",(function(t){"escape"===((null==t?void 0:t.key)||"").toLowerCase()&&!0===e.showFormDialog&&null===(t.target.closest(".CodeMirror")||null)&&e.closeFormDialog()}))},methods:{truncateText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length<=t?e:e.slice(0,t)+n},decodeAndStripHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div");return t.innerHTML=e,XSSHelpers.stripAllTags(t.innerText)},updateChosenAttributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"List Selection",o=document.querySelector("#".concat(e,"_chosen input.chosen-search-input")),r=document.querySelector("#".concat(e,"-chosen-search-results"));null!==o&&(o.setAttribute("role","combobox"),o.setAttribute("aria-labelledby",t)),null!==r&&(r.setAttribute("title",n),r.setAttribute("role","listbox"))},showLastUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(new Date).toLocaleString(),n=document.getElementById(e);null!==n&&(n.style.display="flex",n.innerText="last modified: ".concat(t),n.style.border="2px solid #20a0f0",setTimeout((function(){n.style.border="2px solid transparent"}),750))},setDefaultAjaxResponseMessage:function(){var e=this;$.ajax({type:"POST",url:"ajaxIndex.php?a=checkstatus",data:{CSRFToken},success:function(t){e.ajaxResponseMessage=t||""},error:function(e){return reject(e)}})},initializeOrgSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"employee",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s="group"===(e=e.toLowerCase())?"group#":"#",i={};(i="group"===e?new groupSelector("".concat(n,"orgSel_").concat(t)):"position"===e?new positionSelector("".concat(n,"orgSel_").concat(t)):new employeeSelector("".concat(n,"orgSel_").concat(t))).apiPath="".concat(this.orgchartPath,"/api/"),i.rootPath="".concat(this.orgchartPath,"/"),i.basePath="".concat(this.orgchartPath,"/"),i.setSelectHandler((function(){var t=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));null!==t&&(t.value="".concat(s)+i.selection)})),"function"==typeof r&&i.setResultHandler((function(){return r(i)})),i.initialize();var l=document.querySelector("#".concat(i.containerID," input.").concat(e,"SelectorInput"));""!==o&&null!==l&&(l.value="".concat(s)+o)},getEnabledCategories:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.appIsLoadingCategories=!0;try{fetch("".concat(this.APIroot,"formStack/categoryList/allWithStaples")).then((function(n){n.json().then((function(n){for(var o in e.allStapledFormCatIDs={},e.categories={},n)e.categories[n[o].categoryID]=n[o],n[o].stapledFormIDs.forEach((function(t){e.allStapledFormCatIDs[t]=void 0===e.allStapledFormCatIDs[t]?1:e.allStapledFormCatIDs[t]+1}));e.appIsLoadingCategories=!1,t&&!0===/^form_[0-9a-f]{5}$/i.test(t)&&e.$router.push({name:"category",query:{formID:t}})}))}))}catch(e){console.log("error getting categories",e)}},getSiteSettings:function(){var e=this;try{fetch("".concat(this.APIroot,"system/settings")).then((function(t){t.json().then((function(t){e.siteSettings=t,+(null==t?void 0:t.leafSecure)>=1&&e.getSecureFormsInfo()}))}))}catch(e){console.log("error getting site settings",e)}},fetchLEAFSRequests:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(t,n){var o=new LeafFormQuery;o.setRootURL("../"),o.addTerm("categoryID","=","leaf_secure"),!0===e?(o.addTerm("stepID","=","resolved"),o.join("recordResolutionData")):o.addTerm("stepID","!=","resolved"),o.onSuccess((function(e){return t(e)})),o.execute()}))},getSecureFormsInfo:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list?x-filterData=timeAdded"),success:function(e){},error:function(e){return console.log(e)}}),this.fetchLEAFSRequests(!0)];Promise.all(t).then((function(t){var n=t[0],o=t[1];e.checkLeafSRequestStatus(n,o)})).catch((function(e){return console.log("an error has occurred",e)}))},checkLeafSRequestStatus:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!1,r=0;for(var s in n)"approved"===n[s].recordResolutionData.lastStatus.toLowerCase()&&n[s].recordResolutionData.fulfillmentTime>r&&(r=n[s].recordResolutionData.fulfillmentTime);var i=new Date(1e3*parseInt(r));for(var l in t)if(new Date(t[l].timeAdded).getTime()>i.getTime()){o=!0;break}!0===o?(this.showCertificationStatus=!0,this.fetchLEAFSRequests(!1).then((function(t){if(0===Object.keys(t).length)e.secureStatusText="Forms have been modified.",e.secureBtnText="Please Recertify Your Site",e.secureBtnLink="../report.php?a=LEAF_start_leaf_secure_certification";else{var n=t[Object.keys(t)[0]].recordID;e.secureStatusText="Re-certification in progress.",e.secureBtnText="Check Certification Progress",e.secureBtnLink="../index.php?a=printview&recordID="+n}})).catch((function(e){return console.log("an error has occurred",e)}))):this.showCertificationStatus=!1},updateCategoriesProperty:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";void 0!==this.categories[e][t]&&(this.categories[e][t]=n)},updateStapledFormsInfo:function(){var e,t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!0===(arguments.length>2&&void 0!==arguments[2]&&arguments[2])?(this.categories[o].stapledFormIDs=this.categories[o].stapledFormIDs.filter((function(e){return e!==n})),(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[n])>0?this.allStapledFormCatIDs[n]=this.allStapledFormCatIDs[n]-1:console.log("check staple calc")):(this.allStapledFormCatIDs[n]=void 0===this.allStapledFormCatIDs[n]?1:this.allStapledFormCatIDs[n]+1,this.categories[o].stapledFormIDs=Array.from(new Set([].concat(function(e){if(Array.isArray(e))return i(e)}(t=this.categories[o].stapledFormIDs)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[n]))))},addNewCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.categories[e]=t},removeCategory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";delete this.categories[e]},closeFormDialog:function(){Array.from(document.querySelectorAll("body > *")).forEach((function(e){"leaf-vue-dialog-background"!==e.id&&e.removeAttribute("aria-hidden")})),this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"},this.formSaveFunction=null,this.dialogData=null},lastModalTab:function(e){if(!1===(null==e?void 0:e.shiftKey)){var t=document.getElementById("leaf-vue-dialog-close");null!==t&&(t.focus(),e.preventDefault())}},setCustomDialogTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setFormDialogComponent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)},checkRequiredData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=Object.keys((null==this?void 0:this.dialogData)||{});e.forEach((function(e){n.includes(e)||t.push(e)})),t.length>0&&console.warn("expected dialogData key was not found",t)},openConfirmDeleteFormDialog:function(){this.setCustomDialogTitle("

            Delete this form

            "),this.setFormDialogComponent("confirm-delete-dialog"),this.dialogButtonText={confirm:"Yes",cancel:"No"},this.showFormDialog=!0},openStapleFormsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={mainFormID:e},this.setCustomDialogTitle("

            Editing Stapled Forms

            "),this.setFormDialogComponent("staple-form-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openEditCollaboratorsDialog:function(){this.setCustomDialogTitle("

            Customize Write Access

            "),this.setFormDialogComponent("edit-collaborators-dialog"),this.dialogButtonText={confirm:"Add",cancel:"Close"},this.showFormDialog=!0},openIfThenDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Untitled",n=this.truncateText(this.decodeAndStripHTML(t),35);this.dialogData={indicatorID:e},this.dialogButtonText={confirm:"Save",cancel:"Close"},this.setCustomDialogTitle('

            Conditions For '.concat(n," (").concat(e,")

            ")),this.setFormDialogComponent("conditions-editor-dialog"),this.showFormDialog=!0},openIndicatorEditingDialog:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=null===t&&null===n?"

            Adding new Section

            ":null===t?"

            Adding question to ".concat(n,"

            "):"

            Editing indicatorID ".concat(t,"

            "),this.dialogData={indicatorID:t,parentID:n,indicator:o},this.setCustomDialogTitle(e),this.setFormDialogComponent("indicator-editing-dialog"),this.showFormDialog=!0},openAdvancedOptionsDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.dialogData={indicatorID:e.indicatorID,html:(null==e?void 0:e.html)||"",htmlPrint:(null==e?void 0:e.htmlPrint)||""},this.setCustomDialogTitle("

            Advanced Options for indicator ".concat(e.indicatorID,"

            ")),this.setFormDialogComponent("advanced-options-dialog"),this.showFormDialog=!0},openNewFormDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={parentID:e};var t=""===e?"

            New Form

            ":"

            New Internal Use Form

            ";this.setCustomDialogTitle(t),this.setFormDialogComponent("new-form-dialog"),this.showFormDialog=!0},openImportFormDialog:function(){this.setCustomDialogTitle("

            Import Form

            "),this.setFormDialogComponent("import-form-dialog"),this.dialogButtonText={confirm:"Import",cancel:"Close"},this.showFormDialog=!0},openFormHistoryDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogData={historyType:"form",historyID:e},this.setCustomDialogTitle("

            Form History

            "),this.setFormDialogComponent("history-dialog"),this.showFormDialog=!0}}},c="undefined"!=typeof document;const a=Object.assign;function u(e,t){const n={};for(const o in t){const r=t[o];n[o]=p(r)?r.map(e):e(r)}return n}const d=()=>{},p=Array.isArray,h=/#/g,f=/&/g,m=/\//g,g=/=/g,v=/\?/g,y=/\+/g,b=/%5B/g,S=/%5D/g,_=/%5E/g,C=/%60/g,x=/%7B/g,E=/%7C/g,w=/%7D/g,T=/%20/g;function k(e){return encodeURI(""+e).replace(E,"|").replace(b,"[").replace(S,"]")}function A(e){return k(e).replace(y,"%2B").replace(T,"+").replace(h,"%23").replace(f,"%26").replace(C,"`").replace(x,"{").replace(w,"}").replace(_,"^")}function I(e){return null==e?"":function(e){return k(e).replace(h,"%23").replace(v,"%3F")}(e).replace(m,"%2F")}function N(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const R=/\/$/,O=e=>e.replace(R,"");function D(e,t,n="/"){let o,r={},s="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),s=t.slice(c+1,l>-1?l:t.length),r=e(s)),l>-1&&(o=o||t.slice(0,l),i=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let s,i,l=n.length-1;for(s=0;s1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(s).join("/")}(null!=o?o:t,n),{fullPath:o+(s&&"?")+s+i,path:o,query:r,hash:N(i)}}function F(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function L(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function P(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!M(e[n],t[n]))return!1;return!0}function M(e,t){return p(e)?B(e,t):p(t)?B(t,e):e===t}function B(e,t){return p(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var j,U;!function(e){e.pop="pop",e.push="push"}(j||(j={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(U||(U={}));const H=/^[^#]+#/;function q(e,t){return e.replace(H,"#")+t}const W=()=>({left:window.scrollX,top:window.scrollY});function K(e,t){return(history.state?history.state.position-t:-1)+e}const z=new Map;let G=()=>location.protocol+"//"+location.host;function J(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let t=r.includes(e.slice(s))?e.slice(s).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),F(n,"")}return F(n,e)+o+r}function Y(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?W():null}}function Q(e){return"string"==typeof e||"symbol"==typeof e}const X=Symbol("");var Z;function ee(e,t){return a(new Error,{type:e,[X]:!0},t)}function te(e,t){return e instanceof Error&&X in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Z||(Z={}));const ne="[^/]+?",oe={sensitive:!1,strict:!1,start:!0,end:!0},re=/[.+*?^${}()[\]/\\]/g;function se(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ie(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ce={type:0,value:""},ae=/[a-zA-Z0-9_]/;function ue(e,t,n){const o=function(e,t){const n=a({},oe,t),o=[];let r=n.start?"^":"";const s=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;ca(e,t.meta)),{})}function me(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function ge({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ve(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&A(e))):[o&&A(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function be(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=p(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Se=Symbol(""),_e=Symbol(""),Ce=Symbol(""),xe=Symbol(""),Ee=Symbol("");function we(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Te(e,t,n,o,r,s=e=>e()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var s;!1===e?c(ee(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(s=e)||s&&"object"==typeof s?c(ee(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),l())},u=s((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function ke(e,t,n,o,r=e=>e()){const s=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(i=c)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(c.__vccOpts||c)[t];i&&s.push(Te(i,n,o,l,e,r))}else{let i=c();s.push((()=>i.then((s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const i=(c=s).__esModule||"Module"===c[Symbol.toStringTag]?s.default:s;var c;l.components[e]=i;const a=(i.__vccOpts||i)[t];return a&&Te(a,n,o,l,e,r)()}))))}}var i;return s}function Ae(e){const t=(0,s.WQ)(Ce),n=(0,s.WQ)(xe),o=(0,s.EW)((()=>{const n=(0,s.R1)(e.to);return t.resolve(n)})),r=(0,s.EW)((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],s=n.matched;if(!r||!s.length)return-1;const i=s.findIndex(L.bind(null,r));if(i>-1)return i;const l=Ne(e[t-2]);return t>1&&Ne(r)===l&&s[s.length-1].path!==l?s.findIndex(L.bind(null,e[t-2])):i})),i=(0,s.EW)((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!p(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),l=(0,s.EW)((()=>r.value>-1&&r.value===n.matched.length-1&&P(n.params,o.value.params)));return{route:o,href:(0,s.EW)((()=>o.value.href)),isActive:i,isExactActive:l,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[(0,s.R1)(e.replace)?"replace":"push"]((0,s.R1)(e.to)).catch(d):Promise.resolve()}}}const Ie=(0,s.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ae,setup(e,{slots:t}){const n=(0,s.Kh)(Ae(e)),{options:o}=(0,s.WQ)(Ce),r=(0,s.EW)((()=>({[Re(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Re(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,s.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Ne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Re=(e,t,n)=>null!=e?e:null!=t?t:n;function Oe(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const De=(0,s.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,s.WQ)(Ee),r=(0,s.EW)((()=>e.route||o.value)),i=(0,s.WQ)(_e,0),l=(0,s.EW)((()=>{let e=(0,s.R1)(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),c=(0,s.EW)((()=>r.value.matched[l.value]));(0,s.Gt)(_e,(0,s.EW)((()=>l.value+1))),(0,s.Gt)(Se,c),(0,s.Gt)(Ee,r);const u=(0,s.KR)();return(0,s.wB)((()=>[u.value,c.value,e.name]),(([e,t,n],[o,r,s])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&L(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,l=c.value,d=l&&l.components[i];if(!d)return Oe(n.default,{Component:d,route:o});const p=l.props[i],h=p?!0===p?o.params:"function"==typeof p?p(o):p:null,f=(0,s.h)(d,a({},h,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(l.instances[i]=null)},ref:u}));return Oe(n.default,{Component:f,route:o})||f}}});var Fe,Le=[{path:"/",name:"browser",component:function(){return r.e(776).then(r.bind(r,223))}},{path:"/forms",name:"category",component:function(){return r.e(245).then(r.bind(r,211))}},{path:"/restore",name:"restore",component:function(){return r.e(951).then(r.bind(r,315))}}],Pe=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const u=me(t,e),p=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)p.push(a({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let h,f;for(const t of p){const{path:a}=t;if(n&&"/"!==a[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(a&&o+a)}if(h=ue(t,n,u),o?o.alias.push(h):(f=f||h,f!==h&&f.alias.push(h),l&&e.name&&!he(h)&&s(e.name)),ge(h)&&i(h),c.children){const e=c.children;for(let t=0;t{s(f)}:d}function s(e){if(Q(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function i(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;ie(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(ge(t)&&0===ie(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!he(e)&&o.set(e.record.name,e)}return t=me({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,s,i,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw ee(1,{location:e});i=r.record.name,l=a(de(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&de(e.params,r.keys.map((e=>e.name)))),s=r.stringify(l)}else if(null!=e.path)s=e.path,r=n.find((e=>e.re.test(s))),r&&(l=r.parse(s),i=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw ee(1,{location:e,currentLocation:t});i=r.record.name,l=a({},t.params,e.params),s=r.stringify(l)}const c=[];let u=r;for(;u;)c.unshift(u.record),u=u.parent;return{name:i,path:s,params:l,matched:c,meta:fe(c)}},removeRoute:s,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||ve,o=e.stringifyQuery||ye,r=e.history,i=we(),l=we(),h=we(),f=(0,s.IJ)(V);let m=V;c&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=u.bind(null,(e=>""+e)),v=u.bind(null,I),y=u.bind(null,N);function b(e,s){if(s=a({},s||f.value),"string"==typeof e){const o=D(n,e,s.path),i=t.resolve({path:o.path},s),l=r.createHref(o.fullPath);return a(o,i,{params:y(i.params),hash:N(o.hash),redirectedFrom:void 0,href:l})}let i;if(null!=e.path)i=a({},e,{path:D(n,e.path,s.path).path});else{const t=a({},e.params);for(const e in t)null==t[e]&&delete t[e];i=a({},e,{params:v(t)}),s.params=v(s.params)}const l=t.resolve(i,s),c=e.hash||"";l.params=g(y(l.params));const u=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,a({},e,{hash:(d=c,k(d).replace(x,"{").replace(w,"}").replace(_,"^")),path:l.path}));var d;const p=r.createHref(u);return a({fullPath:u,hash:c,query:o===ye?be(e.query):e.query||{}},l,{redirectedFrom:void 0,href:p})}function S(e){return"string"==typeof e?D(n,e,f.value.path):a({},e)}function C(e,t){if(m!==e)return ee(8,{from:t,to:e})}function E(e){return A(e)}function T(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=S(o):{path:o},o.params={}),a({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function A(e,t){const n=m=b(e),r=f.value,s=e.state,i=e.force,l=!0===e.replace,c=T(n);if(c)return A(a(S(c),{state:"object"==typeof c?a({},s,c.state):s,force:i,replace:l}),t||n);const u=n;let d;return u.redirectedFrom=t,!i&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&L(t.matched[o],n.matched[r])&&P(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(d=ee(16,{to:u,from:r}),Y(r,r,!0,!1)),(d?Promise.resolve(d):F(u,r)).catch((e=>te(e)?te(e,2)?e:J(e):G(e,u,r))).then((e=>{if(e){if(te(e,2))return A(a({replace:l},S(e.to),{state:"object"==typeof e.to?a({},s,e.to.state):s,force:i}),t||u)}else e=$(u,r,!0,l,s);return M(u,r,e),e}))}function R(e,t){const n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){const t=ne.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function F(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iL(e,s)))?o.push(s):n.push(s));const l=e.matched[i];l&&(t.matched.find((e=>L(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=ke(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Te(o,e,t))}));const c=R.bind(null,e,t);return n.push(c),re(n).then((()=>{n=[];for(const o of i.list())n.push(Te(o,e,t));return n.push(c),re(n)})).then((()=>{n=ke(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Te(o,e,t))}));return n.push(c),re(n)})).then((()=>{n=[];for(const o of s)if(o.beforeEnter)if(p(o.beforeEnter))for(const r of o.beforeEnter)n.push(Te(r,e,t));else n.push(Te(o.beforeEnter,e,t));return n.push(c),re(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ke(s,"beforeRouteEnter",e,t,O),n.push(c),re(n)))).then((()=>{n=[];for(const o of l.list())n.push(Te(o,e,t));return n.push(c),re(n)})).catch((e=>te(e,8)?e:Promise.reject(e)))}function M(e,t,n){h.list().forEach((o=>O((()=>o(e,t,n)))))}function $(e,t,n,o,s){const i=C(e,t);if(i)return i;const l=t===V,u=c?history.state:{};n&&(o||l?r.replace(e.fullPath,a({scroll:l&&u&&u.scroll},s)):r.push(e.fullPath,s)),f.value=e,Y(e,t,n,l),J()}let B;let U,H=we(),q=we();function G(e,t,n){J(e);const o=q.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function J(e){return U||(U=!e,B||(B=r.listen(((e,t,n)=>{if(!oe.listening)return;const o=b(e),s=T(o);if(s)return void A(a(s,{replace:!0}),o).catch(d);m=o;const i=f.value;var l,u;c&&(l=K(i.fullPath,n.delta),u=W(),z.set(l,u)),F(o,i).catch((e=>te(e,12)?e:te(e,2)?(A(e.to,o).then((e=>{te(e,20)&&!n.delta&&n.type===j.pop&&r.go(-1,!1)})).catch(d),Promise.reject()):(n.delta&&r.go(-n.delta,!1),G(e,o,i)))).then((e=>{(e=e||$(o,i,!1))&&(n.delta&&!te(e,8)?r.go(-n.delta,!1):n.type===j.pop&&te(e,20)&&r.go(-1,!1)),M(o,i,e)})).catch(d)}))),H.list().forEach((([t,n])=>e?n(e):t())),H.reset()),e}function Y(t,n,o,r){const{scrollBehavior:i}=e;if(!c||!i)return Promise.resolve();const l=!o&&function(e){const t=z.get(e);return z.delete(e),t}(K(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return(0,s.dY)().then((()=>i(t,n,l))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>G(e,t,n)))}const X=e=>r.go(e);let Z;const ne=new Set,oe={currentRoute:f,listening:!0,addRoute:function(e,n){let o,r;return Q(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:b,options:e,push:E,replace:function(e){return E(a(S(e),{replace:!0}))},go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:l.add,afterEach:h.add,onError:q.add,isReady:function(){return U&&f.value!==V?Promise.resolve():new Promise(((e,t)=>{H.add([e,t])}))},install(e){e.component("RouterLink",Ie),e.component("RouterView",De),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,s.R1)(f)}),c&&!Z&&f.value===V&&(Z=!0,E(r.location).catch((e=>{})));const t={};for(const e in V)Object.defineProperty(t,e,{get:()=>f.value[e],enumerable:!0});e.provide(Ce,this),e.provide(xe,(0,s.Gc)(t)),e.provide(Ee,f);const n=e.unmount;ne.add(e),e.unmount=function(){ne.delete(e),ne.size<1&&(m=V,B&&B(),B=null,f.value=V,Z=!1,U=!1),n()}}};function re(e){return e.reduce(((e,t)=>e.then((()=>O(t)))),Promise.resolve())}return oe}({history:((Fe=location.host?Fe||location.pathname+location.search:"").includes("#")||(Fe+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:J(e,n)},r={value:t.state};function s(o,s,i){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:G()+e+o;try{t[i?"replaceState":"pushState"](s,"",c),r.value=s}catch(e){console.error(e),n[i?"replace":"assign"](c)}}return r.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const i=a({},r.value,t.state,{forward:e,scroll:W()});s(i.current,i,!0),s(e,a({},Y(o.value,e,null),{position:i.position+1},n),!1),o.value=e},replace:function(e,n){s(e,a({},t.state,Y(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(c){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),O(e)}(e)),n=function(e,t,n,o){let r=[],s=[],i=null;const l=({state:s})=>{const l=J(e,location),c=n.value,a=t.value;let u=0;if(s){if(n.value=l,t.value=s,i&&i===c)return void(i=null);u=a?s.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:j.pop,direction:u?u>0?U.forward:U.back:U.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(a({},e.state,{scroll:W()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){i=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=a({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:q.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(Fe)),routes:Le});Pe.beforeEach((function(e){if("/bodyarea"===e.path)return!1}));const Me=Pe;var $e=(0,s.Ef)(l);$e.use(Me),$e.mount("#vue-formeditor-app")})(); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js b/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js index 230e89685..0bb1315e1 100644 --- a/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/form-browser-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[776],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",l()},s=function(){document.onmouseup=null,document.onmousemove=null},l=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=n,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},223:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var o=n(392),i=n(448),r=n(105);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t0},categoryName:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryName||"Untitled")},formDescription:function(){return this.decodeAndStripHTML(this.categoriesRecord.categoryDescription)},workflowDescription:function(){var e;return e=this.workflowID>0?"".concat(this.categoriesRecord.workflowDescription||"No Description"," (#").concat(this.categoriesRecord.workflowID,")"):"No Workflow",this.decodeAndStripHTML(e)}},methods:{updateSort:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=parseInt(t.currentTarget.value);isNaN(o)||(o<-128&&(o=-128,t.currentTarget.value=-128),o>127&&(o=127,t.currentTarget.value=127),$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formSort"),data:{sort:o,categoryID:n,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(n,"sort",o)},error:function(e){return console.log("sort post err",e)}}))}},template:'

            \n \n {{ categoryName }}\n \n {{ formDescription }}{{ workflowDescription }}\n
            \n 📑 Stapled\n
            \n
            \n
            \n \n  Need to Know enabled\n
            \n
            \n \n
            \n \n {{ categoryName }}\n \n {{ formDescription }}{{ workflowDescription }}\n
            \n 📑 Stapled\n
            \n
            \n
            \n \n  Need to Know enabled\n
            \n
            \n \n
            ","

            ","

            ","

            ","

            ","","
            "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),b=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),I=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),I&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),b&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"})},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy")}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
            \n
            \n \n \n
            \n \n \n
            \n
            \n
            \n
            \n \n
            {{shortlabelCharsRemaining}}
            \n
            \n \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n

            Format Information

            \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n  Columns ({{gridJSON.length}}):\n
            \n
            \n \n \n
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n Attributes\n
            \n \n \n
            \n \n \n \n This field will be archived.  It can be
            re-enabled by using Restore Fields.\n
            \n \n Deleted items can only be re-enabled
            within 30 days by using Restore Fields.\n
            \n
            \n
            '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){e.getOption("fullScreen")&&e.setOption("fullScreen",!1)},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),$(".CodeMirror").css("border","1px solid black")},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
            \n
            Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
            {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
            {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

            \n
            \n html (for pages where the user can edit data): \n \n
            \n
            \n
            \n htmlPrint (for pages where the user can only read data): \n \n
            \n \n
            \n
            \n
            \n Notice:
            \n

            Please go to LEAF Programmer\n to ensure continued access to this area.

            \n
            '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){1!=+t?alert(t):(e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
            \n

            Stapled forms will show up on the same page as the primary form.

            \n

            The order of the forms will be determined by the forms\' assigned sort values.

            \n
            \n
              \n
            • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
            • \n
            \n

            \n
            \n \n
            There are no available forms to merge
            \n
            \n
            '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[]}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(o){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t}))},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
            \n

            What is this?

            \n

            With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

            \n
            \n

            To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

            \n
            \n

            The following groups can update {{formNameStripped()}} records at any time:

            \n
            \n \n \n

            \n
            \n \n
            There are no available groups to add
            \n
            \n
            '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
            \n
            Are you sure you want to delete this form?
            \n
            {{formName}}
            \n
            {{formDescription}}
            \n
            ⚠️ This form still has stapled forms attached
            \n
            '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue="",e&&(this.ariaStatus="Entering new condition")},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){if("Invalid Token."!==e){t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1),t.ariaStatus="Updated question conditions";var o=document.getElementById("leaf-vue-dialog-close");null!==o&&o.focus()}else console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.ariaStatus="Editing conditions",this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s;var c=document.querySelector(".child_prefill_entry_multi input.choices__input");null!==c&&(c.setAttribute("aria-label","child prefill value choices"),c.setAttribute("role","searchbox"))}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var d=e.conditions.selectedChildValue.split("\n")||[];d=d.map((function(t){return e.decodeAndStripHTML(t).trim()}));var u=e.selectedChildValueOptions;u=u.map((function(e){return{value:e.trim(),label:e.trim(),selected:d.includes(e.trim())}}));var p=new Choices(i,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:u.filter((function(e){return""!==e.value}))});i.choicesjs=p;var m=document.querySelector(".parent_compValue_entry_multi input.choices__input");null!==m&&(m.setAttribute("aria-label","parent value choices"),m.setAttribute("role","searchbox"))}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},conditionOverviewText:function(){return"crosswalk"!==this.selectedOutcome.toLowerCase()?"If ".concat(this.getIndicatorName(this.parentIndID)," ").concat(this.getOperatorText(this.conditions)," ").concat(this.decodeAndStripHTML(this.selectedParentValue),"\n then ").concat(this.selectedOutcome," this question."):"Question options loaded from ".concat(this.conditions.crosswalkFile)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
            \n \x3c!-- LOADING SPINNER --\x3e\n
            \n Loading... \n
            \n
            \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
            \n
            \n
            Choose Delete to remove this condition, or cancel to return to the editor
            \n
            {{ conditionOverviewText }}
            \n
            \n \n \n
            \n
            \n \n
            \n
            '};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}var c=document.querySelector("#".concat(this.inputElID," ~ input.choices__input"));null!==c&&(c.setAttribute("aria-labelledby",this.labelSelector),c.setAttribute("role","searchbox"));break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
            \n \n \n\n \n\n \n\n \n\n \n\n \n \n
            File Attachment(s)\n

            Select File to attach:

            \n \n
            \n\n \n\n \n \n \n \n \n\n \n
            '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
            '.concat(this.formPage+1,"
            "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
            \n
            \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n
            \n \n \n \n
            \n\n \x3c!-- TOOLBAR --\x3e\n
            \n\n
            \n \n \n \n \n
            \n \n \n \n 🔒\n ⛓️\n ⚙️\n
            \n
            \n
            \n \x3c!-- NAME --\x3e\n
            \n
            \n
            \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
            '},T={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
          15. \n
            \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
              \n\n \n \n
            \n
            \n \n
            \n
            \n
          16. '},_={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},mounted:function(){this.focusedFormIsSensitive&&0==+this.needToKnow&&this.updateNeedToKnow(!0)},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?1:this.needToKnow;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:t,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",t),e.needToKnow=t,e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
            \n {{formID}}\n (internal for {{formParentID}})\n \n
            \n \n \n \n \n \n
            \n
            \n
            \n \n
            \n \n
            This is an Internal Form
            \n
            \n
            '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(P({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(P({},t.categories[i]));o.push(P(P({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(P(P({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(P({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=P(P({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):this.previewTree=[]},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=P({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
            \n
            \n Loading... \n \n
            \n
            \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
            \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[245],{392:(e,t,o)=>{o.d(t,{A:()=>n});const n={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elModal.style.left=window.scrollX+window.innerWidth/2-this.elModal.clientWidth/2+"px",this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.checkSizes(),window.addEventListener("resize",this.checkSizes),this.makeDraggable(this.elModal);var e=document.activeElement;null===(null!==e?e.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus(),this.setAriaHiddenValue()},beforeUnmount:function(){var e;window.removeEventListener("resize",this.checkSizes);var t=(null===(e=this.lastFocus)||void 0===e?void 0:e.id)||null;if(null!==t){var o=document.getElementById(t);null!==o&&o.focus()}else null!==this.lastFocus&&this.lastFocus.focus()},methods:{setAriaHiddenValue:function(){var e=this;Array.from(document.querySelectorAll("body > *")).forEach((function(t){(null==t?void 0:t.id)!==e.modalElementID&&"LeafSession_dialog"!==t.id&&t.setAttribute("aria-hidden",!0)}))},checkSizes:function(){var e=Math.max(this.elModal.clientWidth,this.elBody.clientWidth);this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),o=document.getElementById("next"),n=document.getElementById("button_cancelchange"),i=t||o||n;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=0,n=0,i=0,r=0,a=function(e){(e=e||window.event).preventDefault(),o=i-e.clientX,n=r-e.clientY,i=e.clientX,r=e.clientY,t.style.top=t.offsetTop-n+"px",t.style.left=t.offsetLeft-o+"px",s()},l=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,r=e.clientY,document.onmouseup=l,document.onmousemove=a})}},template:'\n \n \n '}},448:(e,t,o)=>{o.d(t,{A:()=>n});const n={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),o=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:o,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(n){var i=n,r={};r.categoryID=i,r.categoryName=t,r.categoryDescription=o,r.parentID=e.newFormParentID,r.workflowID=0,r.needToKnow=0,r.visible=1,r.sort=0,r.type="",r.stapledFormIDs=[],r.destructionAge=null,e.addNewCategory(i,r),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},211:(e,t,o)=>{o.r(t),o.d(t,{default:()=>E});var n=o(425),i=o(392);const r={name:"history-dialog",data:function(){return{requiredDataProperties:["historyType","historyID"],divSaveCancelID:"leaf-vue-dialog-cancel-save",page:1,historyType:this.dialogData.historyType,historyID:this.dialogData.historyID,ajaxRes:null}},inject:["dialogData","checkRequiredData","lastModalTab"],created:function(){this.checkRequiredData(this.requiredDataProperties)},mounted:function(){document.getElementById(this.divSaveCancelID).style.display="none",this.getPage()},computed:{showNext:function(){return null!==this.ajaxRes&&-1===this.ajaxRes.indexOf("No history to show")},showPrev:function(){return this.page>1}},methods:{getNext:function(){this.page++,this.getPage()},getPrev:function(){this.page--,this.getPage()},getPage:function(){var e=this;try{var t="ajaxIndex.php?a=gethistory&type=".concat(this.historyType,"&gethistoryslice=1&page=").concat(this.page,"&id=").concat(this.historyID);fetch(t).then((function(t){t.text().then((function(t){return e.ajaxRes=t}))}))}catch(e){console.log("error getting history",e)}}},template:'
            \n
            \n Loading...\n \n
            \n
            \n
            \n \n \n
            \n
            '},a={name:"indicator-editing-dialog",data:function(){var e,t,o,n,i,r,a,l,s,c,d,u,p,m,h,f;return{requiredDataProperties:["indicator","indicatorID","parentID"],initialFocusElID:"name",showAdditionalOptions:!1,showDetailedFormatInfo:!1,formats:{text:"Single line text",textarea:"Multi-line text",grid:"Grid (Table with rows and columns)",number:"Numeric",currency:"Currency",date:"Date",radio:"Radio (single select, multiple options)",checkbox:"Checkbox (A single checkbox)",checkboxes:"Checkboxes (Multiple Checkboxes)",multiselect:"Multi-Select Dropdown",dropdown:"Dropdown Menu (single select, multiple options)",fileupload:"File Attachment",image:"Image Attachment",orgchart_group:"Orgchart Group",orgchart_position:"Orgchart Position",orgchart_employee:"Orgchart Employee",raw_data:"Raw Data (for programmers)"},formatInfo:{text:"A single input for short text entries.",textarea:"A large area for multiple lines of text and limited text formatting options.",grid:"A table format with rows and columns. Additional rows can be added, removed, or moved during data entry.",number:"A single input used to store numeric data. Useful for information that will be used for calculations.",currency:"A single input used to store currency values in dollars to two decimal places.",date:"Embeds a datepicker.",radio:"Radio buttons allow a single selection from multiple options. All of the question's options will display.",checkbox:"A single checkbox is typically used for confirmation. The checkbox label text can be further customized.",checkboxes:"Checkboxes will allow the selection of multiple options. All of the question's options will display.",multiselect:"Multi-Select format will allow the selection of several options from a selection box with a dropdown. Only selected items will display.",dropdown:"A dropdown menu will allow one selection from multiple options. Only the selected option will display.",fileupload:"File Attachment",image:"Similar to file upload, but only image format files will be shown during selection",orgchart_group:"Orgchart Group format is used to select a specific LEAF User Access Group",orgchart_position:"Orgchart Position format is used to select a specific LEAF user by their position in the orgchart",orgchart_employee:"Orgchart Employee format is used to select a specific LEAF user from the orgchart",raw_data:"Raw Data is associated with Advanced Options, which can be used by programmers to run custom code during form data entry or review"},listForParentIDs:[],isLoadingParentIDs:!0,multianswerFormats:["checkboxes","radio","multiselect","dropdown"],ariaTextEditorStatus:"",name:this.removeScriptTags(this.decodeHTMLEntities((null===(e=this.dialogData)||void 0===e||null===(e=e.indicator)||void 0===e?void 0:e.name)||"")),options:(null===(t=this.dialogData)||void 0===t||null===(t=t.indicator)||void 0===t?void 0:t.options)||[],format:(null===(o=this.dialogData)||void 0===o||null===(o=o.indicator)||void 0===o?void 0:o.format)||"",description:(null===(n=this.dialogData)||void 0===n||null===(n=n.indicator)||void 0===n?void 0:n.description)||"",defaultValue:this.decodeAndStripHTML((null===(i=this.dialogData)||void 0===i||null===(i=i.indicator)||void 0===i?void 0:i.default)||""),required:1===parseInt(null===(r=this.dialogData)||void 0===r||null===(r=r.indicator)||void 0===r?void 0:r.required)||!1,is_sensitive:1===parseInt(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a?void 0:a.is_sensitive)||!1,parentID:(null===(l=this.dialogData)||void 0===l?void 0:l.parentID)||null,sort:void 0!==(null===(s=this.dialogData)||void 0===s||null===(s=s.indicator)||void 0===s?void 0:s.sort)?parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.sort):null,singleOptionValue:"checkbox"===(null===(d=this.dialogData)||void 0===d||null===(d=d.indicator)||void 0===d?void 0:d.format)?null===(u=this.dialogData)||void 0===u?void 0:u.indicator.options:"",multiOptionValue:["checkboxes","radio","multiselect","dropdown"].includes(null===(p=this.dialogData)||void 0===p||null===(p=p.indicator)||void 0===p?void 0:p.format)?((null===(m=this.dialogData)||void 0===m?void 0:m.indicator.options)||[]).join("\n"):"",gridJSON:"grid"===(null===(h=this.dialogData)||void 0===h||null===(h=h.indicator)||void 0===h?void 0:h.format)?JSON.parse(null===(f=this.dialogData)||void 0===f||null===(f=f.indicator)||void 0===f?void 0:f.options[0]):[],archived:!1,deleted:!1}},inject:["APIroot","CSRFToken","dialogData","checkRequiredData","setDialogSaveFunction","advancedMode","hasDevConsoleAccess","initializeOrgSelector","closeFormDialog","showLastUpdate","focusedFormRecord","focusedFormTree","getFormByCategoryID","truncateText","decodeAndStripHTML","orgchartFormats"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},provide:function(){var e=this;return{gridJSON:(0,n.EW)((function(){return e.gridJSON})),updateGridJSON:this.updateGridJSON}},components:{GridCell:{name:"grid-cell",data:function(){var e,t,o,n,i,r;return{name:(null===(e=this.cell)||void 0===e?void 0:e.name)||"No title",id:(null===(t=this.cell)||void 0===t?void 0:t.id)||this.makeColumnID(),gridType:(null===(o=this.cell)||void 0===o?void 0:o.type)||"text",textareaDropOptions:null!==(n=this.cell)&&void 0!==n&&n.options?this.cell.options.join("\n"):[],file:(null===(i=this.cell)||void 0===i?void 0:i.file)||"",hasHeader:null!==(r=this.cell)&&void 0!==r&&r.hasHeader?1:0}},props:{cell:Object,column:Number},inject:["libsPath","gridJSON","updateGridJSON","fileManagerTextFiles"],mounted:function(){0===this.gridJSON.length&&this.updateGridJSON()},computed:{gridJSONlength:function(){return this.gridJSON.length}},methods:{makeColumnID:function(){return"col_"+(65536*(1+Math.random())|0).toString(16).substring(1)},deleteColumn:function(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),o=document.getElementById("gridcell_col_parent"),n=Array.from(o.querySelectorAll("div.cell")),i=n.indexOf(t)+1,r=n.length;2===r?(t.remove(),r--,e=n[0]):(e=null===t.querySelector('[title="Move column right"]')?t.previousElementSibling.querySelector('[title="Delete column"]'):t.nextElementSibling.querySelector('[title="Delete column"]'),t.remove(),r--),document.getElementById("tableStatus").setAttribute("aria-label","column ".concat(i," removed, ").concat(r," total.")),e.focus(),this.updateGridJSON()},moveRight:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.nextElementSibling,o=e.nextElementSibling.querySelector('[title="Move column right"]');t.after(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"left":"right",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved right to column ".concat(this.column+1," of ").concat(this.gridJSONlength)),this.updateGridJSON()},moveLeft:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).currentTarget.closest("div.cell"),t=e.previousElementSibling,o=e.previousElementSibling.querySelector('[title="Move column left"]');t.before(e),setTimeout((function(){var t;null===(t=e.querySelector('[title="Move column '.concat(null===o?"right":"left",'"]')))||void 0===t||t.focus()}),0),document.getElementById("tableStatus").setAttribute("aria-label","Moved left to column ".concat(this.column-1," of ").concat(this.gridJSONlength)),this.updateGridJSON()}},watch:{gridJSONlength:function(e,t){e>t&&document.getElementById("tableStatus").setAttribute("aria-label","Added a new column, ".concat(this.gridJSONlength," total."))}},template:'
            \n Move column left\n Move column right
            \n \n Column #{{column}}:\n Delete column\n \n \n \n \n \n
            \n \n \n
            \n
            \n \n \n \n \n
            \n
            '},IndicatorPrivileges:{name:"indicator-privileges",data:function(){return{allGroups:[],groupsWithPrivileges:[],group:0,statusMessageError:"",ariaGroupStatus:""}},props:{indicatorID:{type:Number,required:!0}},inject:["APIroot","CSRFToken","showLastUpdate","focusedFormRecord","getFormByCategoryID"],mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)}}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),success:function(t){e.groupsWithPrivileges=t},error:function(t){console.log(t),e.statusMessageError="There was an error retrieving the Indicator Privileges. Please try again."}})];Promise.all(t).then((function(e){})).catch((function(e){return console.log("an error has occurred",e)}))},computed:{availableGroups:function(){var e=[];return this.groupsWithPrivileges.map((function(t){return e.push(parseInt(t.id))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""}},methods:{removeIndicatorPrivilege:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";0!==t&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges/remove"),data:{groupID:t,CSRFToken:this.CSRFToken},success:function(n){e.groupsWithPrivileges=e.groupsWithPrivileges.filter((function(e){return e.id!==t})),e.ariaGroupStatus="removed group id ".concat(t,", ").concat(o),e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log(e)}})},addIndicatorPrivilege:function(){var e=this;0!==this.group&&$.ajax({method:"POST",url:"".concat(this.APIroot,"formEditor/indicator/").concat(this.indicatorID,"/privileges"),data:{groupIDs:[this.group.groupID],CSRFToken:this.CSRFToken},success:function(){e.groupsWithPrivileges.push({id:e.group.groupID,name:e.group.name}),e.ariaGroupStatus="added group id ".concat(e.group.groupID,", ").concat(e.group.name),e.group=0,e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("an error occurred while setting group access restrictions",e)}})}},template:'
            \n Special access restrictions\n
            \n This prevents anyone from reading stored data unless they\'re part of the following groups.
            \n If a group is assigned below, everyone else will see "[protected data]".\n
            \n \n
            {{ statusMessageError }}
            \n \n
            \n \n \n
            \n
            '}},mounted:function(){var e=this;if(!0===this.isEditingModal&&this.getFormParentIDs().then((function(t){e.listForParentIDs=t,e.isLoadingParentIDs=!1})).catch((function(e){return console.log("an error has occurred",e)})),null===this.sort&&(this.sort=this.newQuestionSortValue),this.containsRichText(this.name)?(document.getElementById("advNameEditor").click(),document.querySelector(".trumbowyg-editor").focus()):document.getElementById(this.initialFocusElID).focus(),this.orgchartFormats.includes(this.format)){var t=this.format.slice(this.format.indexOf("_")+1);this.initializeOrgSelector(t,this.indicatorID,"modal_",this.defaultValue,this.setOrgSelDefaultValue);var o=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==o&&o.addEventListener("change",(function(t){""===t.target.value.trim()&&(e.defaultValue="")}))}},computed:{isEditingModal:function(){return+this.indicatorID>0},indicatorID:function(){var e;return(null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID)||null},formID:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryID)||""},nameLabelText:function(){return null===this.parentID?"Section Heading":"Field Name"},showFormatSelect:function(){return null!==this.parentID||!0===this.advancedMode||""!==this.format||hasDevConsoleAccess},showDefaultTextarea:function(){return!["","raw_data","fileupload","image","grid","checkboxes","multiselect"].includes(this.format)},shortLabelTriggered:function(){return this.name.trim().split(" ").length>2||this.containsRichText(this.name)||hasDevConsoleAccess},formatBtnText:function(){return this.showDetailedFormatInfo?"Hide Details":"What's this?"},isMultiOptionQuestion:function(){return this.multianswerFormats.includes(this.format)},fullFormatForPost:function(){var e=this.format;switch(this.format.toLowerCase()){case"grid":this.updateGridJSON(),e=e+"\n"+JSON.stringify(this.gridJSON);break;case"radio":case"checkboxes":case"multiselect":case"dropdown":e=e+"\n"+this.formatIndicatorMultiAnswer();break;case"checkbox":e=e+"\n"+this.singleOptionValue}return e},shortlabelCharsRemaining:function(){return 50-this.description.length},newQuestionSortValue:function(){var e="#drop_area_parent_".concat(this.parentID," > li");return null===this.parentID?this.focusedFormTree.length-128:Array.from(document.querySelectorAll(e)).length-128}},methods:{containsRichText:function(e){return XSSHelpers.containsTags(e,["","","","
              ","
            1. ","
              ","

              ","

            ","

            ","

            ","

            ","

            ","","
            "])},decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},removeScriptTags:function(e){var t=document.createElement("div");t.innerHTML=e;for(var o=t.getElementsByTagName("script"),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.defaultValue=e.selection.toString())},toggleSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"showDetailedFormatInfo";"boolean"==typeof this[t]&&(this[t]=!this[t])},getFormParentIDs:function(){var e=this;return new Promise((function(t,o){$.ajax({type:"GET",url:"".concat(e.APIroot,"/form/_").concat(e.formID,"/flat"),success:function(e){for(var o in e)e[o][1].name=XSSHelpers.stripAllTags(e[o][1].name);t(e)},error:function(e){return o(e)}})}))},preventSelectionIfFormatNone:function(){""!==this.format||!0!==this.required&&!0!==this.is_sensitive||(this.required=!1,this.is_sensitive=!1,alert('You can\'t mark a field as sensitive or required if the Input Format is "None".'))},onSave:function(){var e=this,t=document.querySelector(".trumbowyg-editor");null!=t&&(this.name=t.innerHTML);var o=[];if(this.isEditingModal){var n,i,r,a,l,s,c,d,u,p=this.name!==(null===(n=this.dialogData)||void 0===n?void 0:n.indicator.name),m=this.description!==(null===(i=this.dialogData)||void 0===i?void 0:i.indicator.description),h=null!==(r=this.dialogData)&&void 0!==r&&null!==(r=r.indicator)&&void 0!==r&&r.options?"\n"+(null===(a=this.dialogData)||void 0===a||null===(a=a.indicator)||void 0===a||null===(a=a.options)||void 0===a?void 0:a.join("\n")):"",f=this.fullFormatForPost!==(null===(l=this.dialogData)||void 0===l?void 0:l.indicator.format)+h,v=this.decodeAndStripHTML(this.defaultValue)!==this.decodeAndStripHTML(null===(s=this.dialogData)||void 0===s?void 0:s.indicator.default),g=+this.required!==parseInt(null===(c=this.dialogData)||void 0===c?void 0:c.indicator.required),y=+this.is_sensitive!==parseInt(null===(d=this.dialogData)||void 0===d?void 0:d.indicator.is_sensitive),b=this.parentID!==(null===(u=this.dialogData)||void 0===u?void 0:u.indicator.parentID),I=!0===this.archived,D=!0===this.deleted;p&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/name"),data:{name:this.name,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind name post err",e)}})),m&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/description"),data:{description:this.description,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind desciption post err",e)}})),f&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/format"),data:{format:this.fullFormatForPost,CSRFToken:this.CSRFToken},success:function(e){"size limit exceeded"===e&&alert("The input format was not saved because it was too long.\nIf you require extended length, please submit a YourIT ticket.")},error:function(e){return console.log("ind format post err",e)}})),v&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/default"),data:{default:this.defaultValue,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind default value post err",e)}})),g&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/required"),data:{required:this.required?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind required post err",e)}})),y&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/sensitive"),data:{is_sensitive:this.is_sensitive?1:0,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind is_sensitive post err",e)}})),y&&!0===this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),I&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:1,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (archive) post err",e)}})),D&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/disabled"),data:{disabled:2,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind disabled (deletion) post err",e)}})),b&&this.parentID!==this.indicatorID&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/parentID"),data:{parentID:this.parentID,CSRFToken:this.CSRFToken},error:function(e){return console.log("ind parentID post err",e)}}))}else this.is_sensitive&&1!=+this.focusedFormRecord.needToKnow&&o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:1,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){var e=document.querySelector("select#needToKnow");null!==e&&(e.value=1,e.dispatchEvent(new Event("change")))},error:function(e){return console.log("set form need to know post err",e)}})),o.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/newIndicator"),data:{name:this.name,format:this.fullFormatForPost,description:this.description,default:this.defaultValue,parentID:this.parentID,categoryID:this.formID,required:this.required?1:0,is_sensitive:this.is_sensitive?1:0,sort:this.newQuestionSortValue,CSRFToken:this.CSRFToken},success:function(e){},error:function(e){return console.log("error posting new question",e)}}));Promise.all(o).then((function(t){t.length>0&&(e.getFormByCategoryID(e.formID),e.showLastUpdate("form_properties_last_update")),e.closeFormDialog()})).catch((function(e){return console.log("an error has occurred",e)}))},radioBehavior:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null==e?void 0:e.target.id;"archived"===t.toLowerCase()&&this.deleted&&(document.getElementById("deleted").checked=!1,this.deleted=!1),"deleted"===t.toLowerCase()&&this.archived&&(document.getElementById("archived").checked=!1,this.archived=!1)},appAddCell:function(){this.gridJSON.push({})},formatGridDropdown:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(null!==e&&0!==e.length){var o=e.replaceAll(/,/g,"").split("\n");o=(o=o.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),t=Array.from(new Set(o))}return t},updateGridJSON:function(){var e=this,t=[],o=document.getElementById("gridcell_col_parent");Array.from(o.querySelectorAll("div.cell")).forEach((function(o){var n,i,r,a,l=o.id,s=((null===(n=document.getElementById("gridcell_type_"+l))||void 0===n?void 0:n.value)||"").toLowerCase(),c=new Object;if(c.id=l,c.name=(null===(i=document.getElementById("gridcell_title_"+l))||void 0===i?void 0:i.value)||"No Title",c.type=s,"dropdown"===s){var d=document.getElementById("gridcell_options_"+l);c.options=e.formatGridDropdown(d.value||"")}"dropdown_file"===s&&(c.file=(null===(r=document.getElementById("dropdown_file_select_"+l))||void 0===r?void 0:r.value)||"",c.hasHeader=Boolean(+(null===(a=document.getElementById("dropdown_file_header_select_"+l))||void 0===a?void 0:a.value))),t.push(c)})),this.gridJSON=t},formatIndicatorMultiAnswer:function(){var e=this.multiOptionValue.split("\n");return e=(e=e.map((function(e){return e.trim()}))).map((function(e){return"no"===e?"No":e})),Array.from(new Set(e)).join("\n")},advNameEditorClick:function(){$("#advNameEditor").css("display","none"),$("#rawNameEditor").css("display","block"),$("#name").trumbowyg({resetCss:!0,btns:["formatting","bold","italic","underline","|","unorderedList","orderedList","|","link","|","foreColor","|","justifyLeft","justifyCenter","justifyRight"]}),$(".trumbowyg-box").css({"min-height":"130px","max-width":"700px",margin:"0.5rem 0"}),$(".trumbowyg-editor, .trumbowyg-texteditor").css({"min-height":"100px",height:"100px",padding:"1rem"}),this.ariaTextEditorStatus="Using Advanced formatting."},rawNameEditorClick:function(){$("#advNameEditor").css("display","block"),$("#rawNameEditor").css("display","none"),$("#name").trumbowyg("destroy"),this.ariaTextEditorStatus="Showing formatted code."}},watch:{format:function(e,t){var o=this;if(this.defaultValue="",this.orgchartFormats.includes(e)){var n=e.slice(e.indexOf("_")+1);this.initializeOrgSelector(n,this.indicatorID,"modal_","",this.setOrgSelDefaultValue);var i=document.querySelector("#modal_orgSel_".concat(this.indicatorID," input"));null!==i&&i.addEventListener("change",(function(e){""===e.target.value.trim()&&(o.defaultValue="")}))}}},template:'
            \n
            \n
            \n \n \n \n \n
            \n
            \n
            \n \n
            {{shortlabelCharsRemaining}}
            \n
            \n \n
            \n
            \n
            \n \n
            \n \n \n
            \n
            \n

            Format Information

            \n {{ format !== \'\' ? formatInfo[format] : \'No format. Indicators without a format are often used to provide additional information for the user. They are often used for form section headers.\' }}\n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n  Columns ({{gridJSON.length}}):\n
            \n
            \n \n \n
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n Attributes\n
            \n \n \n
            \n \n
            \n
            \n \n
            \n \n
            \n \n This field will be archived.  It can be
            re-enabled by using Restore Fields.\n
            \n \n Deleted items can only be re-enabled
            within 30 days by using Restore Fields.\n
            \n
            \n
            '},l={name:"advanced-options-dialog",data:function(){var e,t;return{requiredDataProperties:["indicatorID","html","htmlPrint"],initialFocusElID:"#advanced legend",left:"{{",right:"}}",codeEditorHtml:{},codeEditorHtmlPrint:{},html:(null===(e=this.dialogData)||void 0===e?void 0:e.html)||"",htmlPrint:(null===(t=this.dialogData)||void 0===t?void 0:t.htmlPrint)||""}},inject:["APIroot","libsPath","CSRFToken","setDialogSaveFunction","dialogData","checkRequiredData","closeFormDialog","focusedFormRecord","getFormByCategoryID","hasDevConsoleAccess"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){var e;null===(e=document.querySelector(this.initialFocusElID))||void 0===e||e.focus(),this.hasDevConsoleAccess&&this.setupAdvancedOptions()},computed:{indicatorID:function(){var e;return null===(e=this.dialogData)||void 0===e?void 0:e.indicatorID},formID:function(){return this.focusedFormRecord.categoryID}},methods:{setupAdvancedOptions:function(){var e=this;this.codeEditorHtml=CodeMirror.fromTextArea(document.getElementById("html"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){if(e.getOption("fullScreen"))e.setOption("fullScreen",!1);else{var t={Tab:!1,"Shift-Tab":!1};e.addKeyMap(t),setTimeout((function(){e.removeKeyMap(t)}),2500)}},"Ctrl-S":function(t){e.saveCodeHTML()}}}),this.addCodeMirrorAria("html","codemirror_html_label"),this.codeEditorHtmlPrint=CodeMirror.fromTextArea(document.getElementById("htmlPrint"),{mode:"htmlmixed",lineNumbers:!0,extraKeys:{F11:function(e){e.setOption("fullScreen",!e.getOption("fullScreen"))},Esc:function(e){if(e.getOption("fullScreen"))e.setOption("fullScreen",!1);else{var t={Tab:!1,"Shift-Tab":!1};e.addKeyMap(t),setTimeout((function(){e.removeKeyMap(t)}),2500)}},"Ctrl-S":function(t){e.saveCodeHTMLPrint()}}}),this.addCodeMirrorAria("htmlPrint","codemirror_htmlPrint_label"),$(".CodeMirror").css("border","1px solid black")},addCodeMirrorAria:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=document.querySelector("#".concat(e," + .CodeMirror textarea"));null!==o&&(o.setAttribute("id",t),o.setAttribute("role","textbox"),o.setAttribute("aria-multiline",!0),o.setAttribute("aria-label","Coding area. Press escape twice followed by tab to navigate out."))},saveCodeHTML:function(){var e=this,t=this.codeEditorHtml.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:t,CSRFToken:this.CSRFToken},success:function(){e.html=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_html").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},saveCodeHTMLPrint:function(){var e=this,t=this.codeEditorHtmlPrint.getValue();$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:t,CSRFToken:this.CSRFToken},success:function(){e.htmlPrint=t;var o=(new Date).toLocaleTimeString();document.getElementById("codeSaveStatus_htmlPrint").innerHTML=", Last saved: "+o,e.getFormByCategoryID(e.formID)},error:function(e){return console.log(e)}})},onSave:function(){var e=this,t=[],o=this.html!==this.codeEditorHtml.getValue(),n=this.htmlPrint!==this.codeEditorHtmlPrint.getValue();o&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/html"),data:{html:this.codeEditorHtml.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind html post err",e)}})),n&&t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.indicatorID,"/htmlPrint"),data:{htmlPrint:this.codeEditorHtmlPrint.getValue(),CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind htmlPrint post err",e)}})),Promise.all(t).then((function(t){e.closeFormDialog(),t.length>0&&e.getFormByCategoryID(e.formID)})).catch((function(e){return console.log("an error has occurred",e)}))}},template:'
            \n
            Template Variables and Controls\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            {{ left }} iID {{ right }}The indicatorID # of the current data field.Ctrl-SSave the focused section
            {{ left }} recordID {{ right }}The record ID # of the current request.F11Toggle Full Screen mode for the focused section
            {{ left }} data {{ right }}The contents of the current data field as stored in the database.EscEscape Full Screen mode

            \n
            \n \n \n
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n
            \n Notice:
            \n

            Please go to LEAF Programmer\n to ensure continued access to this area.

            \n
            '};var s=o(448);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e,t,o){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const p={name:"staple-form-dialog",data:function(){var e;return{requiredDataProperties:["mainFormID"],mainFormID:(null===(e=this.dialogData)||void 0===e?void 0:e.mainFormID)||"",catIDtoStaple:"",ariaStatus:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","truncateText","decodeAndStripHTML","categories","dialogData","checkRequiredData","closeFormDialog","updateStapledFormsInfo"],created:function(){this.setDialogSaveFunction(this.onSave),this.checkRequiredData(this.requiredDataProperties)},mounted:function(){if(this.isSubform&&this.closeFormDialog(),this.mergeableForms.length>0){var e=document.getElementById("select-form-to-staple");null!==e&&e.focus()}else{var t=document.getElementById("button_save");null!==t&&(t.style.display="none")}},computed:{isSubform:function(){var e;return""!==(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.parentID)},currentStapleIDs:function(){var e;return(null===(e=this.categories[this.mainFormID])||void 0===e?void 0:e.stapledFormIDs)||[]},mergeableForms:function(){var e=this,t=[],o=function(){var o=parseInt(e.categories[n].workflowID),i=e.categories[n].categoryID,r=e.categories[n].parentID,a=e.currentStapleIDs.every((function(e){return e!==i}));0===o&&""===r&&i!==e.mainFormID&&a&&t.push(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(){var o;e.ariaStatus="Removed stapled form ".concat((null===(o=e.categories[t])||void 0===o?void 0:o.categoryName)||""),e.updateStapledFormsInfo(e.mainFormID,t,!0)},error:function(e){return console.log(e)}})},onSave:function(){var e=this;""!==this.catIDtoStaple&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.mainFormID,"/stapled"),data:{CSRFToken:this.CSRFToken,stapledCategoryID:this.catIDtoStaple},success:function(t){var o;1!=+t?alert(t):(e.ariaStatus="Added stapled form ".concat((null===(o=e.categories[e.catIDtoStaple])||void 0===o?void 0:o.categoryName)||""),e.updateStapledFormsInfo(e.mainFormID,e.catIDtoStaple),e.catIDtoStaple="")},error:function(e){return console.log(e)},cache:!1})}},watch:{mergeableForms:function(e,t){var o=e.length,n=t.length;if(0===o||0===n&&o>0){var i=document.getElementById("button_save");null!==i&&(i.style.display=0===o?"none":"flex")}}},template:'
            \n
            \n

            Stapled forms will show up on the same page as the primary form.

            \n

            The order of the forms will be determined by the forms\' assigned sort values.

            \n
            \n
              \n
            • \n {{truncateText(decodeAndStripHTML(categories[id]?.categoryName || \'Untitled\')) }}\n \n
            • \n
            \n

            \n
            \n \n
            There are no available forms to merge
            \n
            \n
            '},m={name:"edit-collaborators-dialog",data:function(){return{formID:this.focusedFormRecord.categoryID,group:"",allGroups:[],collaborators:[],ariaStatus:""}},inject:["APIroot","CSRFToken","setDialogSaveFunction","categories","focusedFormRecord","checkFormCollaborators","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){var e=this,t=[$.ajax({type:"GET",url:"".concat(this.APIroot,"system/groups"),success:function(t){e.allGroups=t},error:function(e){return console.log(e)},cache:!1}),$.ajax({type:"GET",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),success:function(t){e.collaborators=t},error:function(e){return console.log(e)},cache:!1})];Promise.all(t).then((function(){var e=document.getElementById("selectFormCollaborators");null!==e&&e.focus()})).catch((function(e){return console.log("an error has occurred",e)}))},beforeUnmount:function(){this.checkFormCollaborators()},computed:{availableGroups:function(){var e=[];return this.collaborators.map((function(t){return e.push(parseInt(t.groupID))})),this.allGroups.filter((function(t){return!e.includes(parseInt(t.groupID))}))}},methods:{removePermission:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:t,read:0,write:0},success:function(n){e.collaborators=e.collaborators.filter((function(e){return parseInt(e.groupID)!==t})),e.ariaStatus="Removed ".concat(o," from collaborators")},error:function(e){return console.log(e)}})},formNameStripped:function(){var e=this.categories[this.formID].categoryName;return XSSHelpers.stripAllTags(e)||"Untitled"},onSave:function(){var e=this;""!==this.group&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/_").concat(this.formID,"/privileges"),data:{CSRFToken:this.CSRFToken,groupID:parseInt(this.group.groupID),read:1,write:1},success:function(t){void 0===e.collaborators.find((function(t){return parseInt(t.groupID)===parseInt(e.group.groupID)}))&&(e.ariaStatus="Added ".concat(e.group.name," to collaborators"),e.collaborators.push({groupID:e.group.groupID,name:e.group.name}),e.group="")},error:function(e){return console.log(e)},cache:!1})}},template:'
            \n

            What is this?

            \n

            With paper forms, people who have posession of the record have the ability to update it. This rule is used in LEAF, and people gain posession when a record reaches their step in the workflow. All modifications are timestamped with their respective authors.

            \n
            \n

            To provide flexibility, specific groups can be granted permission to update information at any time in the workflow. This can be useful if you have internal-use fields, and want certain groups of people to update information at any time.

            \n
            \n

            The following groups can update {{formNameStripped()}} records at any time:

            \n
            \n
            \n \n \n

            \n
            \n \n
            There are no available groups to add
            \n
            \n
            '},h={name:"confirm-delete-dialog",inject:["APIroot","CSRFToken","setDialogSaveFunction","decodeAndStripHTML","focusedFormRecord","getFormByCategoryID","removeCategory","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},computed:{formName:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryName))},formDescription:function(){return XSSHelpers.stripAllTags(this.decodeAndStripHTML(this.focusedFormRecord.categoryDescription))},currentStapleIDs:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e?void 0:e.stapledFormIDs)||[]}},methods:{onSave:function(){var e=this;if(0===this.currentStapleIDs.length){var t=this.focusedFormRecord.categoryID,o=this.focusedFormRecord.parentID;$.ajax({type:"DELETE",url:"".concat(this.APIroot,"formStack/_").concat(t,"?")+$.param({CSRFToken:this.CSRFToken}),success:function(n){1==+n?(e.removeCategory(t),""===o?e.$router.push({name:"browser"}):e.getFormByCategoryID(o,!0),e.closeFormDialog()):alert(n)},error:function(e){return console.log("an error has occurred",e)}})}else alert("Please remove all stapled forms before deleting.")}},template:'
            \n
            Are you sure you want to delete this form?
            \n
            {{formName}}
            \n
            {{formDescription}}
            \n
            ⚠️ This form still has stapled forms attached
            \n
            '};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e,t,o){return(t=function(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o0&&void 0!==arguments[0]?arguments[0]:0;this.parentIndID=e,this.selectedParentValueOptions.includes(this.selectedParentValue)||(this.selectedParentValue="")},updateSelectedOutcome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.selectedOutcome=e.toLowerCase(),this.selectedChildValue="",this.crosswalkFile="",this.crosswalkHasHeader=!1,this.level2IndID=null,"pre-fill"===this.selectedOutcome&&this.addOrgSelector()},updateSelectedOptionValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parent",o="";if(!0===(null==e?void 0:e.multiple)?(Array.from(e.selectedOptions).forEach((function(e){o+=e.label.trim()+"\n"})),o=o.trim()):o=e.value.trim(),"parent"===t.toLowerCase()){if(this.selectedParentValue=XSSHelpers.stripAllTags(o),"number"===this.parentFormat||"currency"===this.parentFormat)if(/^(\d*)(\.\d+)?$/.test(o)){var n=parseFloat(o);this.selectedParentValue="currency"===this.parentFormat?(Math.round(100*n)/100).toFixed(2):String(n)}else this.selectedParentValue=""}else"child"===t.toLowerCase()&&(this.selectedChildValue=XSSHelpers.stripAllTags(o))},newCondition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.selectedConditionJSON="",this.showConditionEditor=e,this.selectedOperator="",this.parentIndID=0,this.selectedParentValue="",this.selectedOutcome="",this.selectedChildValue="",e&&(this.ariaStatus="Entering new condition")},postConditions:function(){var e,t=this,o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.conditionComplete||!1===o){var n=(e=this.savedConditions,function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(e){return JSON.stringify(e)!==t.selectedConditionJSON}));n.forEach((function(e){e.childIndID=parseInt(e.childIndID),e.parentIndID=parseInt(e.parentIndID),e.selectedChildValue=XSSHelpers.stripAllTags(e.selectedChildValue),e.selectedParentValue=XSSHelpers.stripAllTags(e.selectedParentValue)}));var i=JSON.stringify(this.conditions),r=n.every((function(e){return JSON.stringify(e)!==i}));!0===o&&r&&n.push(this.conditions),n=n.length>0?JSON.stringify(n):"",$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(this.childIndID,"/conditions"),data:{conditions:n,CSRFToken:this.CSRFToken},success:function(e){if("Invalid Token."!==e){t.getFormByCategoryID(t.formID),t.indicators.find((function(e){return e.indicatorID===t.childIndID})).conditions=n,t.showRemoveModal=!1,t.newCondition(!1),t.ariaStatus="Updated question conditions";var o=document.getElementById("leaf-vue-dialog-close");null!==o&&o.focus()}else console.log("error adding condition",e)},error:function(e){return console.log(e)}})}},removeCondition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirmDelete,o=void 0!==t&&t,n=e.condition,i=void 0===n?{}:n;!0===o?this.postConditions(!1):(this.selectConditionFromList(i),this.ariaStatus="Confirm deletion",this.showRemoveModal=!0)},selectConditionFromList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selectedConditionJSON=JSON.stringify(e),this.parentIndID=parseInt((null==e?void 0:e.parentIndID)||0),this.selectedOperator=(null==e?void 0:e.selectedOp)||"",this.selectedOutcome=((null==e?void 0:e.selectedOutcome)||"").toLowerCase(),this.selectedParentValue=(null==e?void 0:e.selectedParentValue)||"",this.selectedChildValue=(null==e?void 0:e.selectedChildValue)||"",this.crosswalkFile=(null==e?void 0:e.crosswalkFile)||"",this.crosswalkHasHeader=(null==e?void 0:e.crosswalkHasHeader)||!1,this.level2IndID=(null==e?void 0:e.level2IndID)||null,this.showConditionEditor=!0,this.ariaStatus="Editing conditions",this.addOrgSelector()},getIndicatorName:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=(null===(e=this.indicators.find((function(e){return parseInt(e.indicatorID)===t})))||void 0===e?void 0:e.name)||"";return o=this.decodeAndStripHTML(o),this.truncateText(o)},getOperatorText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.parentFormat.toLowerCase(),o=e.selectedOp,n=e.selectedOp;switch(n){case"==":o=this.multiOptionFormats.includes(t)?"includes":"is";break;case"!=":o=this.multiOptionFormats.includes(t)?"does not include":"is not";break;case"gt":case"gte":case"lt":case"lte":var i=n.includes("g")?"greater than":"less than",r=n.includes("e")?" or equal to":"";o="is ".concat(i).concat(r)}return o},isOrphan:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=parseInt((null==e?void 0:e.parentIndID)||0);return"crosswalk"!==e.selectedOutcome.toLowerCase()&&!this.selectableParents.some((function(e){return parseInt(e.indicatorID)===t}))},listHeaderText:function(){var e="";switch((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()){case"show":e="This field will be hidden except:";break;case"hide":e="This field will be shown except:";break;case"prefill":e="This field will be pre-filled:";break;case"crosswalk":e="This field has loaded dropdown(s)"}return e},childFormatChangedSinceSave:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=((null==e?void 0:e.childFormat)||"").toLowerCase().trim(),o=((null==e?void 0:e.parentFormat)||"").toLowerCase().trim(),n=parseInt((null==e?void 0:e.parentIndID)||0),i=this.selectableParents.find((function(e){return e.indicatorID===n})),r=(null==i?void 0:i.format)||"";return t!==this.childFormat||o!==r},updateChoicesJS:function(){var e=this;setTimeout((function(){var t,o=document.querySelector("#child_choices_wrapper > div.choices"),n=document.getElementById("parent_compValue_entry_multi"),i=document.getElementById("child_prefill_entry_multi"),r=e.conditions.selectedOutcome;if(e.multiOptionFormats.includes(e.parentFormat)&&null!==n&&!0!==(null==n||null===(t=n.choicesjs)||void 0===t?void 0:t.initialised)){var a=e.conditions.selectedParentValue.split("\n")||[];a=a.map((function(t){return e.decodeAndStripHTML(t).trim()}));var l=e.selectedParentValueOptions;l=l.map((function(e){return{value:e.trim(),label:e.trim(),selected:a.includes(e.trim())}}));var s=new Choices(n,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});n.choicesjs=s;var c=document.querySelector(".child_prefill_entry_multi input.choices__input");null!==c&&(c.setAttribute("aria-label","child prefill value choices"),c.setAttribute("role","searchbox"))}if("pre-fill"===r&&e.multiOptionFormats.includes(e.childFormat)&&null!==i&&null===o){var d=e.conditions.selectedChildValue.split("\n")||[];d=d.map((function(t){return e.decodeAndStripHTML(t).trim()}));var u=e.selectedChildValueOptions;u=u.map((function(e){return{value:e.trim(),label:e.trim(),selected:d.includes(e.trim())}}));var p=new Choices(i,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:u.filter((function(e){return""!==e.value}))});i.choicesjs=p;var m=document.querySelector(".parent_compValue_entry_multi input.choices__input");null!==m&&(m.setAttribute("aria-label","parent value choices"),m.setAttribute("role","searchbox"))}}))},addOrgSelector:function(){var e=this;if("pre-fill"===this.selectedOutcome&&this.orgchartFormats.includes(this.childFormat)){var t=this.childFormat.slice(this.childFormat.indexOf("_")+1);setTimeout((function(){e.initializeOrgSelector(t,e.childIndID,"ifthen_child_",e.selectedChildValue,e.setOrgSelChildValue)}))}},setOrgSelChildValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0!==e.selection&&(this.orgchartSelectData=e.selectionData[e.selection],this.selectedChildValue=e.selection.toString())},onSave:function(){this.postConditions(!0)}},computed:{formID:function(){return this.focusedFormRecord.categoryID},showSetup:function(){return this.showConditionEditor&&this.selectedOutcome&&("crosswalk"===this.selectedOutcome||this.selectableParents.length>0)},conditionOverviewText:function(){return"crosswalk"!==this.selectedOutcome.toLowerCase()?"If ".concat(this.getIndicatorName(this.parentIndID)," ").concat(this.getOperatorText(this.conditions)," ").concat(this.decodeAndStripHTML(this.selectedParentValue),"\n then ").concat(this.selectedOutcome," this question."):"Question options loaded from ".concat(this.conditions.crosswalkFile)},noOptions:function(){return!["","crosswalk"].includes(this.selectedOutcome)&&this.selectableParents.length<1},childIndID:function(){return this.dialogData.indicatorID},childIndicator:function(){var e=this;return this.indicators.find((function(t){return t.indicatorID===e.childIndID}))},selectedParentIndicator:function(){var e=this,t=this.selectableParents.find((function(t){return t.indicatorID===parseInt(e.parentIndID)}));return void 0===t?{}:function(e){for(var t=1;t1?"s":"";i="".concat(r," '").concat(this.decodeAndStripHTML(this.selectedChildValue),"'");break;default:i=" '".concat(this.decodeAndStripHTML(this.selectedChildValue),"'")}return i},childChoicesKey:function(){return this.selectedConditionJSON+this.selectedOutcome},parentChoicesKey:function(){return this.selectedConditionJSON+String(this.parentIndID)+this.selectedOperator},conditions:function(){var e,t;return{childIndID:parseInt((null===(e=this.childIndicator)||void 0===e?void 0:e.indicatorID)||0),parentIndID:parseInt((null===(t=this.selectedParentIndicator)||void 0===t?void 0:t.indicatorID)||0),selectedOp:this.selectedOperator,selectedParentValue:XSSHelpers.stripAllTags(this.selectedParentValue),selectedChildValue:XSSHelpers.stripAllTags(this.selectedChildValue),selectedOutcome:this.selectedOutcome.toLowerCase(),crosswalkFile:this.crosswalkFile,crosswalkHasHeader:this.crosswalkHasHeader,level2IndID:this.level2IndID,childFormat:this.childFormat,parentFormat:this.parentFormat}},conditionComplete:function(){var e=this.conditions,t=e.parentIndID,o=e.selectedOp,n=e.selectedParentValue,i=e.selectedChildValue,r=e.selectedOutcome,a=e.crosswalkFile,l=!1;if(!this.showRemoveModal)switch(r){case"pre-fill":l=0!==t&&""!==o&&""!==n&&""!==i;break;case"hide":case"show":l=0!==t&&""!==o&&""!==n;break;case"crosswalk":l=""!==a}var s=document.getElementById("button_save");return null!==s&&(s.style.display=!0===l?"block":"none"),l},savedConditions:function(){return"string"==typeof this.childIndicator.conditions&&"["===this.childIndicator.conditions[0]?JSON.parse(this.childIndicator.conditions):[]},conditionTypes:function(){return{show:this.savedConditions.filter((function(e){return"show"===e.selectedOutcome.toLowerCase()})),hide:this.savedConditions.filter((function(e){return"hide"===e.selectedOutcome.toLowerCase()})),prefill:this.savedConditions.filter((function(e){return"pre-fill"===e.selectedOutcome.toLowerCase()})),crosswalk:this.savedConditions.filter((function(e){return"crosswalk"===e.selectedOutcome.toLowerCase()}))}}},watch:{showRemoveModal:function(e){var t=document.getElementById("leaf-vue-dialog-cancel-save");null!==t&&(t.style.display=!0===e?"none":"flex")},childChoicesKey:function(e,t){"pre-fill"==this.selectedOutcome.toLowerCase()&&this.multiOptionFormats.includes(this.childFormat)&&this.updateChoicesJS()},parentChoicesKey:function(e,t){this.multiOptionFormats.includes(this.parentFormat)&&this.updateChoicesJS()},selectedOperator:function(e,t){""!==t&&this.numericOperators.includes(e)&&!this.numericOperators.includes(t)&&(this.selectedParentValue="")}},template:'
            \n \x3c!-- LOADING SPINNER --\x3e\n
            \n Loading... \n
            \n
            \n \x3c!-- NOTE: DELETION DIALOG --\x3e\n
            \n
            \n
            Choose Delete to remove this condition, or cancel to return to the editor
            \n
            {{ conditionOverviewText }}
            \n
            \n \n \n
            \n
            \n \n
            \n
            '};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function w(e){for(var t=1;t\n
            \n

            This is a Nationally Standardized Subordinate Site

            \n Do not make modifications!  Synchronization problems will occur.  Please contact your process POC if modifications need to be made.\n
            '},k={name:"form-question-display",props:{categoryID:String,depth:Number,formPage:Number,index:Number,formNode:Object},components:{FormatPreview:{name:"format-preview",data:function(){return{indID:this.indicator.indicatorID}},props:{indicator:Object},inject:["libsPath","initializeOrgSelector","orgchartFormats","decodeAndStripHTML","updateChosenAttributes"],computed:{baseFormat:function(){var e;return(null===(e=this.indicator.format)||void 0===e||null===(e=e.toLowerCase())||void 0===e?void 0:e.trim())||""},truncatedOptions:function(){var e;return(null===(e=this.indicator.options)||void 0===e?void 0:e.slice(0,6))||[]},defaultValue:function(){var e;return(null===(e=this.indicator)||void 0===e?void 0:e.default)||""},strippedDefault:function(){return this.decodeAndStripHTML(this.defaultValue||"")},inputElID:function(){return"input_preview_".concat(this.indID)},selType:function(){return this.baseFormat.slice(this.baseFormat.indexOf("_")+1)},labelSelector:function(){return"format_label_"+this.indID},printResponseID:function(){return"xhrIndicator_".concat(this.indID,"_").concat(this.indicator.series)},gridOptions:function(){var e,t=JSON.parse((null===(e=this.indicator)||void 0===e?void 0:e.options)||"[]");return t.map((function(e){e.name=XSSHelpers.stripAllTags(e.name),null!=e&&e.options&&e.options.map((function(e){return XSSHelpers.stripAllTags(e)}))})),t}},mounted:function(){var e,t,o,n,i,r=this;switch(this.baseFormat){case"raw_data":break;case"date":$("#".concat(this.inputElID)).datepicker({autoHide:!0,showAnim:"slideDown",onSelect:function(){$("#"+r.indID+"_focusfix").focus()}}),null===(e=document.getElementById(this.inputElID))||void 0===e||e.setAttribute("aria-labelledby",this.labelSelector);break;case"dropdown":$("#".concat(this.inputElID)).chosen({disable_search_threshold:5,allow_single_deselect:!0,width:"50%"}),this.updateChosenAttributes(this.inputElID,this.labelSelector,"Select Question Option");break;case"multiselect":var a=document.getElementById(this.inputElID);if(null!==a&&!0===a.multiple&&"active"!==(null==a?void 0:a.getAttribute("data-choice"))){var l=this.indicator.options||[];l=l.map((function(e){return{value:e,label:e,selected:""!==r.strippedDefault&&r.strippedDefault===e}}));var s=new Choices(a,{placeholderValue:"Type here to search",allowHTML:!1,removeItemButton:!0,editItems:!0,choices:l.filter((function(e){return""!==e.value}))});a.choicesjs=s}var c=document.querySelector("#".concat(this.inputElID," ~ input.choices__input"));null!==c&&(c.setAttribute("aria-labelledby",this.labelSelector),c.setAttribute("role","searchbox"));break;case"orgchart_group":case"orgchart_position":case"orgchart_employee":this.initializeOrgSelector(this.selType,this.indID,"",(null===(t=this.indicator)||void 0===t?void 0:t.default)||"");break;case"checkbox":null===(o=document.getElementById(this.inputElID+"_check0"))||void 0===o||o.setAttribute("aria-labelledby",this.labelSelector);break;case"checkboxes":case"radio":null===(n=document.querySelector("#".concat(this.printResponseID," .format-preview")))||void 0===n||n.setAttribute("aria-labelledby",this.labelSelector);break;default:null===(i=document.getElementById(this.inputElID))||void 0===i||i.setAttribute("aria-labelledby",this.labelSelector)}},methods:{useAdvancedEditor:function(){$("#"+this.inputElID).trumbowyg({btns:["bold","italic","underline","|","unorderedList","orderedList","|","justifyLeft","justifyCenter","justifyRight","fullscreen"]}),$("#textarea_format_button_".concat(this.indID)).css("display","none")}},template:'
            \n \n \n\n \n\n \n\n \n\n \n\n \n \n
            File Attachment(s)\n

            Select File to attach:

            \n \n
            \n\n \n\n \n \n \n \n \n\n \n
            '}},inject:["libsPath","newQuestion","shortIndicatorNameStripped","focusedFormID","focusIndicator","focusedIndicatorID","editQuestion","hasDevConsoleAccess","editAdvancedOptions","openIfThenDialog","listTracker","previewMode","handleNameClick","makePreviewKey","moveListItem"],computed:{indicatorID:function(){var e;return+(null===(e=this.formNode)||void 0===e?void 0:e.indicatorID)},isHeader:function(){return 0===this.depth},hasCode:function(){var e,t,o,n;return""!==(null===(e=this.formNode)||void 0===e?void 0:e.html)&&null!=(null===(t=this.formNode)||void 0===t?void 0:t.html)||""!==(null===(o=this.formNode)||void 0===o?void 0:o.htmlPrint)&&null!=(null===(n=this.formNode)||void 0===n?void 0:n.htmlPrint)},conditionalQuestion:function(){return!this.isHeader&&null!==this.formNode.conditions&&""!==this.formNode.conditions&"null"!==this.formNode.conditions},conditionsAllowed:function(){return!this.isHeader&&"raw_data"!==(this.formNode.format||"").toLowerCase()},indicatorName:function(){var e,t=0===this.depth?'
            '.concat(this.formPage+1,"
            "):"",o=this.required?'* Required':"",n=""===((null===(e=this.formNode)||void 0===e?void 0:e.description)||"")||this.previewMode?"":' ('.concat(this.formNode.description,")"),i=0===this.depth&&this.formNode.categoryID!==this.focusedFormID?'':"",r=""!==this.formNode.name.trim()?this.formNode.name.trim():"[ blank ]";return"".concat(t).concat(i).concat(r).concat(n).concat(o)},hasSpecialAccessRestrictions:function(){return 1===parseInt(this.formNode.isMaskable)},required:function(){return 1===parseInt(this.formNode.required)},sensitive:function(){return 1===parseInt(this.formNode.is_sensitive)}},template:'
            \n
            \n \x3c!-- VISIBLE DRAG INDICATOR / UP DOWN --\x3e\n \n
            \n \n \n \n
            \n\n \x3c!-- TOOLBAR --\x3e\n
            \n\n
            \n \n \n \n \n
            \n \n \n \n 🔒\n ⛓️\n ⚙️\n
            \n
            \n
            \n \x3c!-- NAME --\x3e\n
            \n
            \n
            \n\n \x3c!-- FORMAT PREVIEW --\x3e\n \n
            '},_={name:"form-index-listing",props:{categoryID:String,formPage:Number,depth:Number,indicatorID:Number,formNode:Object,index:Number,parentID:Number},components:{FormQuestionDisplay:k},inject:["shortIndicatorNameStripped","clearListItem","addToListTracker","focusedIndicatorID","previewMode","startDrag","onDragEnter","onDragLeave","onDrop","moveListItem","makePreviewKey","newQuestion"],mounted:function(){this.previewMode||this.addToListTracker(this.formNode,this.parentID,this.index)},beforeUnmount:function(){this.clearListItem(this.formNode.indicatorID)},computed:{suffix:function(){return"".concat(this.formNode.indicatorID,"_").concat(this.formNode.series)},printResponseID:function(){return"xhrIndicator_".concat(this.suffix)},required:function(){return 1===parseInt(this.formNode.required)}},template:'
          17. \n
            \n \n \n \n \x3c!-- NOTE: ul for drop zones always needs to be here in edit mode even if there are no current children --\x3e\n
              \n\n \n \n
            \n
            \n \n
            \n
            \n
          18. '},T={name:"edit-properties-panel",data:function(){var e,t,o,n,i,r,a,l,s,c;return{categoryName:this.decodeAndStripHTML((null===(e=this.focusedFormRecord)||void 0===e?void 0:e.categoryName)||"Untitled"),categoryDescription:this.decodeAndStripHTML((null===(t=this.focusedFormRecord)||void 0===t?void 0:t.categoryDescription)||""),workflowID:parseInt(null===(o=this.focusedFormRecord)||void 0===o?void 0:o.workflowID)||0,needToKnow:parseInt(null===(n=this.focusedFormRecord)||void 0===n?void 0:n.needToKnow)||0,visible:parseInt(null===(i=this.focusedFormRecord)||void 0===i?void 0:i.visible)||0,type:(null===(r=this.focusedFormRecord)||void 0===r?void 0:r.type)||"",formID:(null===(a=this.focusedFormRecord)||void 0===a?void 0:a.categoryID)||"",formParentID:(null===(l=this.focusedFormRecord)||void 0===l?void 0:l.parentID)||"",destructionAgeYears:(null===(s=this.focusedFormRecord)||void 0===s?void 0:s.destructionAge)>0?(null===(c=this.focusedFormRecord)||void 0===c?void 0:c.destructionAge)/365:null,workflowsLoading:!0,workflowRecords:[]}},props:{hasCollaborators:Boolean},created:function(){this.getWorkflowRecords()},mounted:function(){this.focusedFormIsSensitive&&0==+this.needToKnow&&this.updateNeedToKnow(!0)},inject:["APIroot","CSRFToken","appIsLoadingForm","allStapledFormCatIDs","focusedFormRecord","focusedFormIsSensitive","updateCategoriesProperty","openEditCollaboratorsDialog","openFormHistoryDialog","showLastUpdate","truncateText","decodeAndStripHTML"],computed:{loading:function(){return this.appIsLoadingForm||this.workflowsLoading},workflowDescription:function(){var e=this,t="";if(0!==this.workflowID){var o=this.workflowRecords.find((function(t){return parseInt(t.workflowID)===e.workflowID}));t=(null==o?void 0:o.description)||""}return t},isSubForm:function(){return""!==this.focusedFormRecord.parentID},isStaple:function(){var e;return(null===(e=this.allStapledFormCatIDs)||void 0===e?void 0:e[this.formID])>0},isNeedToKnow:function(){return 1===parseInt(this.focusedFormRecord.needToKnow)},formNameCharsRemaining:function(){return 50-this.categoryName.length},formDescrCharsRemaining:function(){return 255-this.categoryDescription.length}},methods:{getWorkflowRecords:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"workflow"),success:function(t){e.workflowRecords=t||[],e.workflowsLoading=!1},error:function(e){return console.log(e)}})},updateName:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formName"),data:{name:XSSHelpers.stripAllTags(this.categoryName),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryName",e.categoryName),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("name post err",e)}})},updateDescription:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formDescription"),data:{description:XSSHelpers.stripAllTags(this.categoryDescription),categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"categoryDescription",e.categoryDescription),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("form description post err",e)}})},updateWorkflow:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formWorkflow"),data:{workflowID:this.workflowID,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){0==+t?alert("The workflow could not be set because this form is stapled to another form"):(e.updateCategoriesProperty(e.formID,"workflowID",e.workflowID),e.updateCategoriesProperty(e.formID,"workflowDescription",e.workflowDescription),e.showLastUpdate("form_properties_last_update"))},error:function(e){return console.log("workflow post err",e)}})},updateAvailability:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formVisible"),data:{visible:this.visible,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"visible",e.visible),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("visibility post err",e)}})},updateNeedToKnow:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?1:this.needToKnow;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formNeedToKnow"),data:{needToKnow:t,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"needToKnow",t),e.needToKnow=t,e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("ntk post err",e)}})},updateType:function(){var e=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/formType"),data:{type:this.type,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(){e.updateCategoriesProperty(e.formID,"type",e.type),e.showLastUpdate("form_properties_last_update")},error:function(e){return console.log("type post err",e)}})},updateDestructionAge:function(){var e=this;(null===this.destructionAgeYears||this.destructionAgeYears>=1&&this.destructionAgeYears<=30)&&$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/destructionAge"),data:{destructionAge:this.destructionAgeYears,categoryID:this.formID,CSRFToken:this.CSRFToken},success:function(t){var o;if(2==+(null==t||null===(o=t.status)||void 0===o?void 0:o.code)&&+t.data==365*+e.destructionAgeYears){var n=(null==t?void 0:t.data)>0?+t.data:null;e.updateCategoriesProperty(e.formID,"destructionAge",n),e.showLastUpdate("form_properties_last_update")}},error:function(e){return console.log("destruction age post err",e)}})}},template:'
            \n {{formID}}\n (internal for {{formParentID}})\n \n
            \n \n \n \n \n \n
            \n
            \n
            \n \n
            \n \n
            This is an Internal Form
            \n
            \n
            '};function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function P(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function O(e){for(var t=1;t0){var n,i,r,a=[];for(var l in this.categories)this.categories[l].parentID===this.currentCategoryQuery.categoryID&&a.push(O({},this.categories[l]));((null===(n=this.currentCategoryQuery)||void 0===n?void 0:n.stapledFormIDs)||[]).forEach((function(e){var n=[];for(var i in t.categories)t.categories[i].parentID===e&&n.push(O({},t.categories[i]));o.push(O(O({},t.categories[e]),{},{formContextType:"staple",internalForms:n}))}));var s=""!==this.currentCategoryQuery.parentID?"internal":(null===(i=this.allStapledFormCatIDs)||void 0===i?void 0:i[(null===(r=this.currentCategoryQuery)||void 0===r?void 0:r.categoryID)||""])>0?"staple":"main form";o.push(O(O({},this.currentCategoryQuery),{},{formContextType:s,internalForms:a}))}return o.sort((function(e,t){return e.sort-t.sort}))},formPreviewIDs:function(){var e=[];return this.currentFormCollection.forEach((function(t){e.push(t.categoryID)})),e.join()},usePreviewTree:function(){var e;return(null===(e=this.focusedFormRecord)||void 0===e||null===(e=e.stapledFormIDs)||void 0===e?void 0:e.length)>0&&this.previewMode&&this.focusedFormID===this.queryID},fullFormTree:function(){var e=this,t=this.usePreviewTree?this.previewTree:this.focusedFormTree;return t.forEach((function(t){null===t.child||Array.isArray(t.child)||(t.child=e.transformFormTreeChild(t.child))})),t},sortOrParentChanged:function(){return this.sortValuesToUpdate.length>0||this.parentIDsToUpdate.length>0},sortValuesToUpdate:function(){var e=[];for(var t in this.listTracker)this.listTracker[t].sort!==this.listTracker[t].listIndex-this.sortOffset&&e.push(O({indicatorID:parseInt(t)},this.listTracker[t]));return e},parentIDsToUpdate:function(){var e=[];for(var t in this.listTracker)""!==this.listTracker[t].newParentID&&this.listTracker[t].parentID!==this.listTracker[t].newParentID&&e.push(O({indicatorID:parseInt(t)},this.listTracker[t]));return e}},methods:{decodeHTMLEntities:function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},backwardCompatNames:function(e){for(var t in e)e[t].name=this.decodeHTMLEntities(e[t].name),null!=e[t].child&&(e[t].child=this.backwardCompatNames(e[t].child));return e},transformFormTreeChild:function(e){var t=[];for(var o in e)null!==e[o].child&&(e[o].child=this.transformFormTreeChild(e[o].child)),t.push(e[o]);return t.sort((function(e,t){return e.sort-t.sort})),t},onScroll:function(){var e=document.getElementById("form_entry_and_preview"),t=document.getElementById("form_index_display");if(null!==e&&null!==t){var o=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top,i=(t.style.top||"0").replace("px","");if(this.appIsLoadingForm||window.innerWidth<=600||0==+i&&o>0)t.style.top=0;else{var r=Math.round(-n-8);t.style.top=r<0?0:r+"px"}}},getFormFromQueryParam:function(){var e=this.queryID;if(void 0===this.categories[e])this.focusedFormID="",this.focusedFormTree=[];else{var t=this.categories[e].parentID;""===t?this.getFormByCategoryID(e,!0):this.$router.push({name:"category",query:{formID:t,internalID:e}})}},getFormByCategoryID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];""===t?(this.focusedFormID="",this.focusedFormTree=[]):(this.appIsLoadingForm=o,this.setDefaultAjaxResponseMessage(),$.ajax({type:"GET",url:"".concat(this.APIroot,"form/_").concat(t,"?context=formEditor"),success:function(o){var n;o=e.backwardCompatNames(o);var i={formID:e.queryID},r=null;!0===e.appIsLoadingForm&&null!==e.internalID?r=e.internalID:""!==(null===(n=e.categories[t])||void 0===n?void 0:n.parentID)&&(r=t),null!==r&&(i=O(O({},i),{},{internalID:r})),e.$router.push({name:"category",query:i}),e.focusedFormID===t&&(e.updateKey+=1),e.focusedFormID=t||"",e.focusedFormTree=o||[],e.appIsLoadingForm=!1,null!==e.internalID&&e.focusedFormID!==e.internalID&&setTimeout((function(){var t=document.getElementById("internal_form_"+e.internalID);null!==t&&t.dispatchEvent(new Event("click"))}))},error:function(e){return console.log(e)}}))},getPreviewTree:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==t&&""!==this.formPreviewIDs){this.appIsLoadingForm=!0,this.setDefaultAjaxResponseMessage();try{fetch("".concat(this.APIroot,"form/specified?categoryIDs=").concat(this.formPreviewIDs)).then((function(o){o.json().then((function(o){e.previewTree=o||[],e.previewTree=e.backwardCompatNames(e.previewTree),e.focusedFormID=t,e.appIsLoadingForm=!1,setTimeout((function(){var t=document.getElementById("indicator_toolbar_toggle");null!==t&&(t.focus(),setTimeout((function(){e.ariaStatusFormDisplay="Previewing form"})))}))})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},getIndicatorByID:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(o,n){try{fetch("".concat(e.APIroot,"formEditor/indicator/").concat(t)).then((function(e){e.json().then((function(e){o(e[t])})).catch((function(e){return n(e)}))})).catch((function(e){return n(e)}))}catch(e){n(e)}}))},getFileManagerTextFiles:function(){var e=this;try{fetch("".concat(this.APIroot,"system/files")).then((function(t){t.json().then((function(t){var o=t||[];e.fileManagerTextFiles=o.filter((function(e){return e.indexOf(".txt")>-1||e.indexOf(".csv")>-1}))})).catch((function(e){return console.log(e)}))}))}catch(e){console.log(e)}},editAdvancedOptions:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(t){e.openAdvancedOptionsDialog(t)})).catch((function(e){return console.log("error getting indicator information",e)}))},newQuestion:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.openIndicatorEditingDialog(null,e,{})},editQuestion:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.getIndicatorByID(t).then((function(o){e.focusedIndicatorID=t;var n=(null==o?void 0:o.parentID)||null;e.openIndicatorEditingDialog(t,n,o)})).catch((function(e){return console.log("error getting indicator information",e)}))},checkSensitive:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(1===parseInt(e.is_sensitive))return!0;var t=!1;if(e.child)for(var o in e.child)if(!0===(t=this.checkSensitive(e.child[o])||!1))break;return t},focusIndicator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.focusedIndicatorID=e},toggleToolbars:function(){this.ariaStatusFormDisplay="",this.focusedIndicatorID=null,this.previewMode=!this.previewMode,this.updateKey+=1,this.usePreviewTree?this.getPreviewTree(this.focusedFormID):(this.previewTree=[],this.ariaStatusFormDisplay=this.previewMode?"Previewing form":"Editing form")},moveListItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.previewMode){var i;32===(null==t?void 0:t.keyCode)&&t.preventDefault();var r=null==t||null===(i=t.currentTarget)||void 0===i?void 0:i.closest("ul"),a=document.getElementById("index_listing_".concat(o)),l=Array.from(document.querySelectorAll("#".concat(r.id," > li"))),s=l.filter((function(e){return e!==a})),c=this.listTracker[o],d=!0===n?-1:1;if(!0===n?c.listIndex>0:c.listIndex0){var o=[];this.sortValuesToUpdate.forEach((function(t){o.push({indicatorID:t.indicatorID,sort:t.listIndex-e.sortOffset})})),t.push($.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/sort/batch"),data:{sortData:o,CSRFToken:this.CSRFToken},success:function(){},error:function(e){return console.log("ind sort post err",e)}}))}var n=[];this.parentIDsToUpdate.forEach((function(t){n.push($.ajax({type:"POST",url:"".concat(e.APIroot,"formEditor/").concat(t.indicatorID,"/parentID"),data:{parentID:t.newParentID,CSRFToken:e.CSRFToken},success:function(){},error:function(e){return console.log("ind parentID post err",e)}}))}));var i=t.concat(n);Promise.all(i).then((function(t){t.length>0&&(e.getFormByCategoryID(e.focusedFormID),e.showLastUpdate("form_properties_last_update"))})).catch((function(e){return console.log("an error has occurred",e)}))},clearListItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.listTracker[e]&&delete this.listTracker[e]},addToListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.indicatorID,i={sort:e.sort,parentID:t,listIndex:o,newParentID:""};this.listTracker[n]=i},updateListTracker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=O({},this.listTracker[e]);n.listIndex=o,n.newParentID=t,this.listTracker[e]=n},startDrag:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((null==e?void 0:e.offsetX)>20)e.preventDefault();else if(!this.previewMode&&null!=e&&e.dataTransfer){e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id);var t=document.getElementById("".concat(e.target.id,"_button"));if(null!==t){var o=t.offsetWidth/2,n=t.offsetHeight/2;e.dataTransfer.setDragImage(t,o,n)}var i=(e.target.id||"").replace(this.dragLI_Prefix,"");this.focusIndicator(+i)}},onDrop:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed){var o=t.currentTarget;if("UL"!==o.nodeName)return;t.preventDefault();var n=t.dataTransfer.getData("text"),i=document.getElementById(n),r=parseInt(n.replace(this.dragLI_Prefix,"")),a=(o.id||"").includes("base_drop_area")?null:parseInt(o.id.replace(this.dragUL_Prefix,"")),l=Array.from(document.querySelectorAll("#".concat(o.id," > li")));if(0===l.length)try{o.append(i),this.updateListTracker(r,a,0)}catch(e){console.log(e)}else{var s=o.getBoundingClientRect().top,c=l.find((function(e){return t.clientY-s<=e.offsetTop+e.offsetHeight/2}))||null;if(c!==i)try{o.insertBefore(i,c),Array.from(document.querySelectorAll("#".concat(o.id," > li"))).forEach((function(t,o){var n=parseInt(t.id.replace(e.dragLI_Prefix,""));e.updateListTracker(n,a,o)}))}catch(e){console.log(e)}}o.classList.contains("entered-drop-zone")&&t.target.classList.remove("entered-drop-zone")}},onDragLeave:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.remove("entered-drop-zone")},onDragEnter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=t&&t.dataTransfer&&"move"===t.dataTransfer.effectAllowed&&null!=t&&null!==(e=t.target)&&void 0!==e&&e.classList.contains("form-index-listing-ul")&&t.target.classList.add("entered-drop-zone")},handleNameClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.previewMode?(this.previewMode=!1,this.focusedIndicatorID=t,e!==this.focusedFormID?this.getFormByCategoryID(e,!0):this.updateKey+=1):this.editQuestion(t)},shortFormNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,o=this.categories[e]||"",n=this.decodeAndStripHTML((null==o?void 0:o.categoryName)||"Untitled");return this.truncateText(n,t).trim()},shortIndicatorNameStripped:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:35,o=this.decodeAndStripHTML(e);return this.truncateText(o,t).trim()||"[ blank ]"},makePreviewKey:function(e){var t;return"".concat(e.format).concat((null==e||null===(t=e.options)||void 0===t?void 0:t.join())||"","_").concat((null==e?void 0:e.default)||"")},checkFormCollaborators:function(){var e=this;try{fetch("".concat(this.APIroot,"formEditor/_").concat(this.focusedFormID,"/privileges")).then((function(t){t.json().then((function(t){return e.hasCollaborators=(null==t?void 0:t.length)>0})).catch((function(e){return console.log(e)}))})).catch((function(e){return console.log(e)}))}catch(e){console.log(e)}}},watch:{appIsLoadingCategories:function(e,t){!0===t&&this.queryID&&this.getFormFromQueryParam()},queryID:function(){this.appIsLoadingCategories||this.getFormFromQueryParam()},sortOrParentChanged:function(e,t){!0!==e||this.previewMode||this.applySortAndParentID_Updates()},focusedFormID:function(e,t){window.scrollTo(0,0),e&&(this.checkFormCollaborators(),setTimeout((function(){var t=document.querySelector('button[id$="form_'.concat(e,'"]'));null!==t&&t.focus()})))}},template:'\n
            \n
            \n Loading... \n \n
            \n
            \n The form you are looking for ({{ queryID }}) was not found.\n \n Back to Form Browser\n \n
            \n\n \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js index e39ea4ef6..709ee67f2 100644 --- a/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js +++ b/app/libs/js/vue-dest/form_editor/restore-fields-view.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",r()},s=function(){document.onmouseup=null,document.onmousemove=null},r=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=s,document.onmousemove=a})}},template:'\n
            \n \n
            \n
            '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
            \n \n

            List of disabled fields available for recovery

            \n
            Deleted fields and associated data will be not display in the Report Builder
            \n\n
            \n Loading...\n \n
            \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            indicatorIDFormField NameInput FormatStatusRestore
            {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
            \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file +"use strict";(self.webpackChunkleaf_vue=self.webpackChunkleaf_vue||[]).push([[951],{392:(e,t,n)=>{n.d(t,{A:()=>o});const o={data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elModal.style.left=window.scrollX+window.innerWidth/2-this.elModal.clientWidth/2+"px",this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.checkSizes(),window.addEventListener("resize",this.checkSizes),this.makeDraggable(this.elModal);var e=document.activeElement;null===(null!==e?e.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus(),this.setAriaHiddenValue()},beforeUnmount:function(){var e;window.removeEventListener("resize",this.checkSizes);var t=(null===(e=this.lastFocus)||void 0===e?void 0:e.id)||null;if(null!==t){var n=document.getElementById(t);null!==n&&n.focus()}else null!==this.lastFocus&&this.lastFocus.focus()},methods:{setAriaHiddenValue:function(){var e=this;Array.from(document.querySelectorAll("body > *")).forEach((function(t){(null==t?void 0:t.id)!==e.modalElementID&&"LeafSession_dialog"!==t.id&&t.setAttribute("aria-hidden",!0)}))},checkSizes:function(){var e=Math.max(this.elModal.clientWidth,this.elBody.clientWidth);this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),i=t||n||o;null!==i&&"function"==typeof i.focus&&(i.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,i=0,l=0,a=function(e){(e=e||window.event).preventDefault(),n=i-e.clientX,o=l-e.clientY,i=e.clientX,l=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",s()},r=function(){document.onmouseup=null,document.onmousemove=null},s=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),i=e.clientX,l=e.clientY,document.onmouseup=r,document.onmousemove=a})}},template:'\n \n \n '}},105:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"import-form-dialog",data:function(){return{initialFocusElID:"formPacket",files:null,userMessage:"",inputStyles:{padding:"1.25rem 0.5rem",border:"1px solid #cadff0",borderRadius:"2px",backgroundColor:"#f2f2f8"}}},inject:["APIroot","CSRFToken","setDialogSaveFunction","closeFormDialog"],created:function(){this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById(this.initialFocusElID).focus()},emits:["import-form"],methods:{onSave:function(){var e=this;if(null!==this.files){this.userMessage="Form is being imported ...";var t=new FormData;t.append("formPacket",this.files[0]),t.append("CSRFToken",this.CSRFToken),$.ajax({type:"POST",url:"".concat(this.APIroot,"formStack/import"),processData:!1,contentType:!1,cache:!1,data:t,success:function(t){!0!==/^form_[0-9a-f]{5}$/i.test(t)&&alert(t),e.closeFormDialog(),e.$emit("import-form",t)},error:function(e){return console.log("form import error",e)}})}else console.log("no attachment")},attachForm:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(null===(e=n.target)||void 0===e?void 0:e.files)||(null===(t=n.dataTransfer)||void 0===t?void 0:t.files);(null==o?void 0:o.length)>0&&(this.files=o)}},template:'\n
            \n \n \n
            {{ userMessage }}
            \n
            '}},448:(e,t,n)=>{n.d(t,{A:()=>o});const o={name:"new-form-dialog",data:function(){return{requiredDataProperties:["parentID"],categoryName:"",categoryDescription:"",newFormParentID:this.dialogData.parentID}},inject:["APIroot","CSRFToken","decodeAndStripHTML","setDialogSaveFunction","dialogData","checkRequiredData","addNewCategory","closeFormDialog"],created:function(){this.checkRequiredData(this.requiredDataProperties),this.setDialogSaveFunction(this.onSave)},mounted:function(){document.getElementById("name").focus()},emits:["get-form"],computed:{nameCharsRemaining:function(){return Math.max(50-this.categoryName.length,0)},descrCharsRemaining:function(){return Math.max(255-this.categoryDescription.length,0)}},methods:{onSave:function(){var e=this,t=XSSHelpers.stripAllTags(this.categoryName),n=XSSHelpers.stripAllTags(this.categoryDescription);$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/new"),data:{name:t,description:n,parentID:this.newFormParentID,CSRFToken:this.CSRFToken},success:function(o){var i=o,l={};l.categoryID=i,l.categoryName=t,l.categoryDescription=n,l.parentID=e.newFormParentID,l.workflowID=0,l.needToKnow=0,l.visible=1,l.sort=0,l.type="",l.stapledFormIDs=[],l.destructionAge=null,e.addNewCategory(i,l),""===e.newFormParentID?e.$router.push({name:"category",query:{formID:i}}):e.$emit("get-form",i),e.closeFormDialog()},error:function(e){console.log("error posting new form",e)}})}},template:'
            \n
            \n \n
            {{nameCharsRemaining}}
            \n
            \n \n
            \n \n
            {{descrCharsRemaining}}
            \n
            \n \n
            '}},315:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(392),i=n(448),l=n(105);const a={name:"restore-fields-view",data:function(){return{disabledFields:null}},components:{LeafFormDialog:o.A,NewFormDialog:i.A,ImportFormDialog:l.A},inject:["APIroot","CSRFToken","setDefaultAjaxResponseMessage","showFormDialog","dialogFormContent"],created:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"form/indicator/list/disabled"),success:function(t){e.disabledFields=t.filter((function(e){return parseInt(e.indicatorID)>0}))},error:function(e){return console.log(e)},cache:!1})},beforeRouteEnter:function(e,t,n){n((function(e){e.setDefaultAjaxResponseMessage()}))},methods:{restoreField:function(e){var t=this;$.ajax({type:"POST",url:"".concat(this.APIroot,"formEditor/").concat(e,"/disabled"),data:{CSRFToken,disabled:0},success:function(){t.disabledFields=t.disabledFields.filter((function(t){return parseInt(t.indicatorID)!==e})),alert("The field has been restored.")},error:function(e){return console.log(e)}})}},template:'
            \n \n

            List of disabled fields available for recovery

            \n
            Deleted fields and associated data will be not display in the Report Builder
            \n\n
            \n Loading...\n \n
            \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
            indicatorIDFormField NameInput FormatStatusRestore
            {{ f.indicatorID }}{{ f.categoryName }}{{ f.name }}{{ f.format }}{{ f.disabled }}\n
            \n\n \x3c!-- DIALOGS --\x3e\n \n \n \n
            '}}}]); \ No newline at end of file diff --git a/app/libs/js/vue-dest/site_designer/LEAF_Designer.css b/app/libs/js/vue-dest/site_designer/LEAF_Designer.css index e4606d115..0f35359ff 100644 --- a/app/libs/js/vue-dest/site_designer/LEAF_Designer.css +++ b/app/libs/js/vue-dest/site_designer/LEAF_Designer.css @@ -1 +1 @@ -body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#vue-formeditor-app a.btn-general,#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal;text-decoration:none}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#vue-formeditor-app a.btn-general:not(.disabled):hover,#vue-formeditor-app a.btn-general:not(.disabled):focus,#vue-formeditor-app a.btn-general:not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,a.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,a.btn-general:not(.disabled):hover,a.btn-general:not(.disabled):focus,a.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,a.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,a.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,a.btn-general a,a.btn-general a:visited,a.btn-general a:active,a.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:999;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:9999;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem;border:0;background-color:rgba(0,0,0,0)}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}#history-slice td{word-break:break-word}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}body{background-color:#f3f3f3}#site-designer-app{min-height:100vh}#site-designer-app main>section{margin:1rem}#site-designer-app h1,#site-designer-app h2,#site-designer-app h3,#site-designer-app h4,#site-designer-app p,#leaf_dialog_content h1,#leaf_dialog_content h2,#leaf_dialog_content h3,#leaf_dialog_content h4,#leaf_dialog_content p{margin:0;color:#000}#site-designer-app h2,#leaf_dialog_content h2{font-size:26px}#site-designer-app h3,#leaf_dialog_content h3{font-size:20px}#site-designer-app .btn-confirm.enabled,#leaf_dialog_content .btn-confirm.enabled{background-color:#a00;border:2px solid #000}#site-designer-app button:disabled,#leaf_dialog_content button:disabled{background-color:gray}#site-designer-app .designer_inputs,#leaf_dialog_content .designer_inputs{display:flex;gap:1rem;margin-bottom:.5rem}#site-designer-app .designer_inputs.wrap,#leaf_dialog_content .designer_inputs.wrap{flex-wrap:wrap}#site-designer-app #searchContainer,#leaf_dialog_content #searchContainer{margin-top:1rem}#site-designer-app #searchContainer table.leaf_grid,#leaf_dialog_content #searchContainer table.leaf_grid{border:1px solid #000;border-collapse:collapse;margin:2px;width:auto}#site-designer-app #searchContainer td,#leaf_dialog_content #searchContainer td{width:auto;vertical-align:middle;word-break:break-word;white-space:normal;background-color:#fff}#site-designer-app #searchContainer td[data-clickable=true]:hover,#site-designer-app #searchContainer td[data-clickable=true]:focus,#site-designer-app #searchContainer td[data-clickable=true]:active,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus,#leaf_dialog_content #searchContainer td[data-clickable=true]:active{background-color:#1476bd}#site-designer-app #searchContainer td[data-clickable=true]:hover>a,#site-designer-app #searchContainer td[data-clickable=true]:focus>a,#site-designer-app #searchContainer td[data-clickable=true]:active>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:active>a{color:#fff}#site-designer-app #searchContainer td>a,#leaf_dialog_content #searchContainer td>a{color:#004b76}#site-designer-app #searchContainer td span,#leaf_dialog_content #searchContainer td span{color:inherit;word-break:break-word !important}#site-designer-app #searchContainer th,#leaf_dialog_content #searchContainer th{background-color:#d1dfff}#site-designer-app #searchContainer .chosen-container a.chosen-single span,#leaf_dialog_content #searchContainer .chosen-container a.chosen-single span{min-width:120px;max-width:175px;color:#000}#site-designer-app #searchContainer .buttonNorm,#site-designer-app #searchContainer_getMoreResults,#leaf_dialog_content #searchContainer .buttonNorm,#leaf_dialog_content #searchContainer_getMoreResults{background-color:#e8f2ff;border:1px solid #000;border-radius:0;margin:2px;cursor:pointer;font-size:14px;padding:4px;white-space:nowrap;font-weight:normal}#site-designer-app #searchContainer .buttonNorm:hover,#site-designer-app #searchContainer .buttonNorm:focus,#site-designer-app #searchContainer .buttonNorm:active,#site-designer-app #searchContainer_getMoreResults:hover,#site-designer-app #searchContainer_getMoreResults:focus,#site-designer-app #searchContainer_getMoreResults:active,#leaf_dialog_content #searchContainer .buttonNorm:hover,#leaf_dialog_content #searchContainer .buttonNorm:focus,#leaf_dialog_content #searchContainer .buttonNorm:active,#leaf_dialog_content #searchContainer_getMoreResults:hover,#leaf_dialog_content #searchContainer_getMoreResults:focus,#leaf_dialog_content #searchContainer_getMoreResults:active{background-color:#1476bd}#site-designer-app #custom_menu_wrapper ul#menu,#leaf_dialog_content #custom_menu_wrapper ul#menu{margin:.75rem 1rem 0 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu.editMode{margin-top:1rem;padding:.75rem;border:1px solid #aab;background-color:#fff}#site-designer-app #custom_menu_wrapper ul#menu li,#leaf_dialog_content #custom_menu_wrapper ul#menu li{margin:.5rem 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu li.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu li.editMode{cursor:grab}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card{margin-left:.75rem;cursor:auto;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move{border:8px solid rgba(0,0,0,0)}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active{cursor:pointer}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up{margin-bottom:.25rem;border-top:0;border-bottom:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down{margin-top:.25rem;border-bottom:0;border-top:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card{padding:2px 6px 3px 6px}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status{cursor:auto;position:absolute;top:50%;right:0;transform:translate(calc(100% + 0.5rem), -60%);color:#005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden{color:#a00;font-weight:bold}#site-designer-app #design_card_modal textarea,#leaf_dialog_content #design_card_modal textarea{width:300px;height:60px;resize:none}#site-designer-app a.custom_menu_card,#leaf_dialog_content a.custom_menu_card{display:flex;align-items:center;width:300px;min-height:55px;padding:6px 8px;text-decoration:none;border:2px solid rgba(0,0,0,0);box-shadow:0 0 6px rgba(0,0,25,.3);transition:all .35s ease}#site-designer-app a.custom_menu_card:hover,#site-designer-app a.custom_menu_card:focus,#site-designer-app a.custom_menu_card:active,#leaf_dialog_content a.custom_menu_card:hover,#leaf_dialog_content a.custom_menu_card:focus,#leaf_dialog_content a.custom_menu_card:active{border:2px solid #fff !important;box-shadow:0 0 8px rgba(0,0,25,.6);z-index:10}#site-designer-app a.custom_menu_card .icon_choice,#leaf_dialog_content a.custom_menu_card .icon_choice{cursor:auto;margin-right:.5rem;width:50px;height:50px}#site-designer-app a.custom_menu_card .card_text,#leaf_dialog_content a.custom_menu_card .card_text{font-family:Verdana,sans-serif;display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:100%;min-height:55px}#site-designer-app a.custom_menu_card div.LEAF_custom *,#leaf_dialog_content a.custom_menu_card div.LEAF_custom *{margin:0;padding:0;font-family:inherit;color:inherit}#site-designer-app .disableClick,#leaf_dialog_content .disableClick{pointer-events:none} +body{min-width:-moz-fit-content;min-width:fit-content}[v-cloak]{display:none}.page_loading{border:2px solid #000;text-align:center;font-size:24px;font-weight:bold;padding:1rem;background-color:#fff}input[type=color]{cursor:pointer}#vue-formeditor-app{min-height:100vh}#vue-formeditor-app main{margin:0}#vue-formeditor-app main>section{margin:auto;padding:0 .5em;max-width:1800px}#vue-formeditor-app *,#site-designer-app *,#leaf_dialog_content *{box-sizing:border-box}#vue-formeditor-app label,#site-designer-app label,#leaf_dialog_content label{font-family:"Source Sans Pro Web",Helvetica,Arial,sans-serif}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]),#vue-formeditor-app a.btn-general,#site-designer-app button:not(.choices__button,[class*=trumbowyg]),#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]){display:flex;justify-content:center;align-items:center;cursor:pointer;font-weight:bolder;padding:2px .4em;border-radius:3px;white-space:nowrap;line-height:normal;text-decoration:none}#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#vue-formeditor-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#vue-formeditor-app a.btn-general:not(.disabled):hover,#vue-formeditor-app a.btn-general:not(.disabled):focus,#vue-formeditor-app a.btn-general:not(.disabled):active,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#site-designer-app button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):hover,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):focus,#leaf_dialog_content button:not(.choices__button,[class*=trumbowyg]):not(.disabled):active{outline:2px solid #20a0f0}button.btn-general,a.btn-general,button.btn-confirm{background-color:#e8f2ff;color:#005ea2;border:2px solid #005ea2}button.btn-general:not(.disabled):hover,button.btn-general:not(.disabled):focus,button.btn-general:not(.disabled):active,a.btn-general:not(.disabled):hover,a.btn-general:not(.disabled):focus,a.btn-general:not(.disabled):active,button.btn-confirm:not(.disabled):hover,button.btn-confirm:not(.disabled):focus,button.btn-confirm:not(.disabled):active{background-color:#005ea2;color:#fff;border:2px solid #000 !important}button.btn-general.disabled,a.btn-general.disabled,button.btn-confirm.disabled{cursor:not-allowed !important;background-color:#c9c9c9;color:#454545}button.btn-general.disabled:active,a.btn-general.disabled:active,button.btn-confirm.disabled:active{border:2px solid #005ea2 !important}button.btn-general a,button.btn-general a:visited,button.btn-general a:active,button.btn-general a:focus,a.btn-general a,a.btn-general a:visited,a.btn-general a:active,a.btn-general a:focus,button.btn-confirm a,button.btn-confirm a:visited,button.btn-confirm a:active,button.btn-confirm a:focus{text-decoration:none;color:inherit}button.btn-confirm{color:#fff;background-color:#005ea2}ul{list-style-type:none;margin:0;padding:0}label{padding:0;display:flex;align-items:center;font-weight:bolder;white-space:nowrap;margin-bottom:2px}label.checkable{margin-bottom:0}a.router-link{display:flex;justify-content:center;align-items:center;text-decoration:none;color:inherit;border-radius:3px}td a.router-link{justify-content:flex-start}#leaf-vue-dialog-background{display:flex;justify-content:center;align-items:center;width:100vw;height:100%;z-index:99;background-color:rgba(0,0,20,.5);position:absolute;left:0;top:0}#leaf_dialog_content{position:absolute;margin:auto;width:auto;min-width:450px;resize:horizontal;z-index:100;max-width:900px;height:auto;min-height:0;border-radius:4px;background-color:#fff;box-shadow:0 0 5px 1px rgba(0,0,25,.25);overflow:visible}#leaf_dialog_content p{margin:0;padding:0;line-height:1.5}#leaf_dialog_content>div{padding:.75rem 1rem}#leaf_dialog_content li{display:flex;align-items:center}#leaf_dialog_content .leaf-vue-dialog-title{color:#252f3e;border-top:3px solid #fff;border-left:3px solid #fff;border-right:3px solid #cadff0;border-bottom:2px solid #cadff0;border-radius:3px;background-color:#e8f2ff;cursor:move}#leaf_dialog_content .leaf-vue-dialog-title h2{color:inherit;font-size:22px;margin:0 1.5rem 0 0}#leaf_dialog_content #leaf-vue-dialog-close{display:flex;justify-content:center;align-items:center;position:absolute;top:8px;right:8px;width:25px;height:25px;cursor:pointer;font-weight:bold;font-size:1.2rem;border:0;background-color:rgba(0,0,0,0)}#leaf_dialog_content #leaf-vue-dialog-cancel-save{display:flex;justify-content:space-between;margin-top:1em}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_save{margin-right:auto}#leaf_dialog_content #leaf-vue-dialog-cancel-save #button_cancelchange{margin-left:auto}#history-slice td{word-break:break-word}.checkable.leaf_check{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:600px;margin-bottom:.2em;white-space:normal}input[class*=icheck][class*=leaf_check],input[class*=ischecked][class*=leaf_check]{opacity:0;cursor:pointer;width:18px;flex:0 0 18px;height:18px;margin:2px}span.leaf_check{position:absolute;top:50%;transform:translate(0, -50%);left:0;width:18px;height:18px;background-color:#fff;border:1px solid #979695;border-radius:2px}span.leaf_check:hover,span.leaf_check:focus,span.leaf_check:active,input[class*=ischecked][class*=leaf_check]:focus~span.leaf_check,input[class*=icheck][class*=leaf_check]:focus~span.leaf_check{border:2px solid #47e;background-color:rgba(0,0,0,0)}input[type=radio][class*=icheck][class*=leaf_check]~span.leaf_check{border-radius:50%}span.leaf_check::after{content:"";box-sizing:content-box;position:absolute;top:10%;left:30%;width:25%;height:50%;background-color:rgba(0,0,0,0);border:1px solid #fff;border-width:0px 3px 3px 0px;border-radius:2px;transform:rotate(40deg);display:none}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check{background-color:#47e;border:1px solid #47e;opacity:1}input[class*=icheck][class*=leaf_check]:checked~span.leaf_check::after,input[class*=ischecked][class*=leaf_check]:checked~span.leaf_check::after{display:block}.choices__inner div.choices__item.choices__item--selectable,.choices__inner div.choices__item.is-highlighted{background-color:#f6faff;background-image:linear-gradient(0, #eee 50%, #fff 53%);border:1px solid #aaa;border-radius:4px;color:#000}button.choices__button{filter:brightness(25%)}button.choices__button:hover,button.choices__button:focus,button.choices__button:active{filter:brightness(0);transform:scale(1.05);border-left:1px solid #000 !important}.choices__list{color:#000}.choices__list.choices__list--dropdown.is-active .is-highlighted{background-color:#e8f2ff;box-shadow:0px 0px 1px 1px rgba(0,165,187,.3764705882) inset}.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.75}.choices input{float:none}.choices input:hover,.choices input:focus,.choices input:active{outline:none}body{background-color:#f3f3f3}#site-designer-app{min-height:100vh}#site-designer-app main>section{margin:1rem}#site-designer-app h1,#site-designer-app h2,#site-designer-app h3,#site-designer-app h4,#site-designer-app p,#leaf_dialog_content h1,#leaf_dialog_content h2,#leaf_dialog_content h3,#leaf_dialog_content h4,#leaf_dialog_content p{margin:0;color:#000}#site-designer-app h2,#leaf_dialog_content h2{font-size:26px}#site-designer-app h3,#leaf_dialog_content h3{font-size:20px}#site-designer-app .btn-confirm.enabled,#leaf_dialog_content .btn-confirm.enabled{background-color:#a00;border:2px solid #000}#site-designer-app button:disabled,#leaf_dialog_content button:disabled{background-color:gray}#site-designer-app .designer_inputs,#leaf_dialog_content .designer_inputs{display:flex;gap:1rem;margin-bottom:.5rem}#site-designer-app .designer_inputs.wrap,#leaf_dialog_content .designer_inputs.wrap{flex-wrap:wrap}#site-designer-app #searchContainer,#leaf_dialog_content #searchContainer{margin-top:1rem}#site-designer-app #searchContainer table.leaf_grid,#leaf_dialog_content #searchContainer table.leaf_grid{border:1px solid #000;border-collapse:collapse;margin:2px;width:auto}#site-designer-app #searchContainer td,#leaf_dialog_content #searchContainer td{width:auto;vertical-align:middle;word-break:break-word;white-space:normal;background-color:#fff}#site-designer-app #searchContainer td[data-clickable=true]:hover,#site-designer-app #searchContainer td[data-clickable=true]:focus,#site-designer-app #searchContainer td[data-clickable=true]:active,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus,#leaf_dialog_content #searchContainer td[data-clickable=true]:active{background-color:#1476bd}#site-designer-app #searchContainer td[data-clickable=true]:hover>a,#site-designer-app #searchContainer td[data-clickable=true]:focus>a,#site-designer-app #searchContainer td[data-clickable=true]:active>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:hover>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:focus>a,#leaf_dialog_content #searchContainer td[data-clickable=true]:active>a{color:#fff}#site-designer-app #searchContainer td>a,#leaf_dialog_content #searchContainer td>a{color:#004b76}#site-designer-app #searchContainer td span,#leaf_dialog_content #searchContainer td span{color:inherit;word-break:break-word !important}#site-designer-app #searchContainer th,#leaf_dialog_content #searchContainer th{background-color:#d1dfff}#site-designer-app #searchContainer .chosen-container a.chosen-single span,#leaf_dialog_content #searchContainer .chosen-container a.chosen-single span{min-width:120px;max-width:175px;color:#000}#site-designer-app #searchContainer .buttonNorm,#site-designer-app #searchContainer_getMoreResults,#leaf_dialog_content #searchContainer .buttonNorm,#leaf_dialog_content #searchContainer_getMoreResults{background-color:#e8f2ff;border:1px solid #000;border-radius:0;margin:2px;cursor:pointer;font-size:14px;padding:4px;white-space:nowrap;font-weight:normal}#site-designer-app #searchContainer .buttonNorm:hover,#site-designer-app #searchContainer .buttonNorm:focus,#site-designer-app #searchContainer .buttonNorm:active,#site-designer-app #searchContainer_getMoreResults:hover,#site-designer-app #searchContainer_getMoreResults:focus,#site-designer-app #searchContainer_getMoreResults:active,#leaf_dialog_content #searchContainer .buttonNorm:hover,#leaf_dialog_content #searchContainer .buttonNorm:focus,#leaf_dialog_content #searchContainer .buttonNorm:active,#leaf_dialog_content #searchContainer_getMoreResults:hover,#leaf_dialog_content #searchContainer_getMoreResults:focus,#leaf_dialog_content #searchContainer_getMoreResults:active{background-color:#1476bd}#site-designer-app #custom_menu_wrapper ul#menu,#leaf_dialog_content #custom_menu_wrapper ul#menu{margin:.75rem 1rem 0 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu.editMode{margin-top:1rem;padding:.75rem;border:1px solid #aab;background-color:#fff}#site-designer-app #custom_menu_wrapper ul#menu li,#leaf_dialog_content #custom_menu_wrapper ul#menu li{margin:.5rem 0;display:flex}#site-designer-app #custom_menu_wrapper ul#menu li.editMode,#leaf_dialog_content #custom_menu_wrapper ul#menu li.editMode{cursor:grab}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card{margin-left:.75rem;cursor:auto;position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move{border:8px solid rgba(0,0,0,0)}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:hover,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:focus,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move:active{cursor:pointer}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.up{margin-bottom:.25rem;border-top:0;border-bottom:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card div.click_to_move.down{margin-top:.25rem;border-bottom:0;border-top:12px solid #005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card button.edit_menu_card{padding:2px 6px 3px 6px}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status{cursor:auto;position:absolute;top:50%;right:0;transform:translate(calc(100% + 0.5rem), -60%);color:#005ea2}#site-designer-app #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden,#leaf_dialog_content #custom_menu_wrapper ul#menu li div.edit_card .notify_status.hidden{color:#a00;font-weight:bold}#site-designer-app #design_card_modal textarea,#leaf_dialog_content #design_card_modal textarea{width:300px;height:60px;resize:none}#site-designer-app a.custom_menu_card,#leaf_dialog_content a.custom_menu_card{display:flex;align-items:center;width:300px;min-height:55px;padding:6px 8px;text-decoration:none;border:2px solid rgba(0,0,0,0);box-shadow:0 0 6px rgba(0,0,25,.3);transition:all .35s ease}#site-designer-app a.custom_menu_card:hover,#site-designer-app a.custom_menu_card:focus,#site-designer-app a.custom_menu_card:active,#leaf_dialog_content a.custom_menu_card:hover,#leaf_dialog_content a.custom_menu_card:focus,#leaf_dialog_content a.custom_menu_card:active{border:2px solid #fff !important;box-shadow:0 0 8px rgba(0,0,25,.6);z-index:10}#site-designer-app a.custom_menu_card .icon_choice,#leaf_dialog_content a.custom_menu_card .icon_choice{cursor:auto;margin-right:.5rem;width:50px;height:50px}#site-designer-app a.custom_menu_card .card_text,#leaf_dialog_content a.custom_menu_card .card_text{font-family:Verdana,sans-serif;display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:100%;min-height:55px}#site-designer-app a.custom_menu_card div.LEAF_custom *,#leaf_dialog_content a.custom_menu_card div.LEAF_custom *{margin:0;padding:0;font-family:inherit;color:inherit}#site-designer-app .disableClick,#leaf_dialog_content .disableClick{pointer-events:none} diff --git a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js index 1c8325ef8..b2fa9f3f4 100644 --- a/app/libs/js/vue-dest/site_designer/LEAF_Designer.js +++ b/app/libs/js/vue-dest/site_designer/LEAF_Designer.js @@ -1,2 +1,2 @@ /*! For license information please see LEAF_Designer.js.LICENSE.txt */ -(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Kn,BaseTransitionPropsValidators:()=>zn,Comment:()=>qi,DeprecationTypes:()=>el,EffectScope:()=>he,ErrorCodes:()=>cn,ErrorTypeStrings:()=>Ks,Fragment:()=>Vi,KeepAlive:()=>so,ReactiveEffect:()=>ye,Static:()=>Wi,Suspense:()=>Li,Teleport:()=>Xr,Text:()=>Ui,TrackOpTypes:()=>rn,Transition:()=>ll,TransitionGroup:()=>ec,TriggerOpTypes:()=>sn,VueElement:()=>Kl,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>us,compatUtils:()=>Zs,computed:()=>Hs,createApp:()=>Oc,createBlock:()=>ts,createCommentVNode:()=>hs,createElementBlock:()=>es,createElementVNode:()=>ls,createHydrationRenderer:()=>ii,createPropsRestProxy:()=>rr,createRenderer:()=>ri,createSSRApp:()=>Nc,createSlots:()=>Lo,createStaticVNode:()=>ps,createTextVNode:()=>ds,createVNode:()=>cs,customRef:()=>Qt,defineAsyncComponent:()=>oo,defineComponent:()=>to,defineCustomElement:()=>Wl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Xo,defineOptions:()=>Ko,defineProps:()=>Wo,defineSSRCustomElement:()=>zl,defineSlots:()=>Jo,devtools:()=>Js,effect:()=>Ce,effectScope:()=>fe,getCurrentInstance:()=>Cs,getCurrentScope:()=>ge,getTransitionRawChildren:()=>eo,guardReactiveProps:()=>as,h:()=>Vs,handleError:()=>dn,hasInjectionContext:()=>Cr,hydrate:()=>Ac,initCustomFormatter:()=>Us,initDirectivesForSSR:()=>Lc,inject:()=>xr,isMemoSame:()=>Ws,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>Ms,isShallow:()=>Nt,isVNode:()=>ns,markRaw:()=>Mt,mergeDefaults:()=>nr,mergeModels:()=>or,mergeProps:()=>vs,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>co,onBeforeMount:()=>vo,onBeforeUnmount:()=>_o,onBeforeUpdate:()=>bo,onDeactivated:()=>ao,onErrorCaptured:()=>wo,onMounted:()=>yo,onRenderTracked:()=>Io,onRenderTriggered:()=>ko,onScopeDispose:()=>ve,onServerPrefetch:()=>Co,onUnmounted:()=>xo,onUpdated:()=>So,openBlock:()=>Ki,popScopeId:()=>Fn,provide:()=>_r,proxyRefs:()=>Xt,pushScopeId:()=>Ln,queuePostFlushCb:()=>kn,reactive:()=>It,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ps,render:()=>Dc,renderList:()=>Mo,renderSlot:()=>Fo,resolveComponent:()=>Do,resolveDirective:()=>No,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Qs,resolveTransitionHooks:()=>Xn,setBlockTracking:()=>Qi,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Zn,shallowReactive:()=>wt,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>hi,ssrUtils:()=>Ys,stop:()=>ke,toDisplayString:()=>ce,toHandlerKey:()=>M,toHandlers:()=>$o,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>rs,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Zo,useCssModule:()=>Jl,useCssVars:()=>Tl,useModel:()=>ki,useSSRContext:()=>fi,useSlots:()=>Qo,useTransitionState:()=>qn,vModelCheckbox:()=>ac,vModelDynamic:()=>gc,vModelRadio:()=>dc,vModelSelect:()=>pc,vModelText:()=>cc,vShow:()=>Il,version:()=>zs,warn:()=>Gs,watch:()=>bi,watchEffect:()=>mi,watchPostEffect:()=>gi,watchSyncEffect:()=>vi,withAsyncContext:()=>ir,withCtx:()=>$n,withDefaults:()=>Yo,withDirectives:()=>jn,withKeys:()=>Cc,withMemo:()=>qs,withModifiers:()=>_c,withScopeId:()=>Bn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),k=e=>C(e).slice(8,-1),I=e=>"[object Object]"===C(e),w=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=D((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(h(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":h(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||h(t)||I(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class he{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ie,t=pe;try{return Ie=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,Ie=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function ke(e){e.effect.stop()}let Ie=!0,we=0;const Ee=[];function Te(){Ee.push(Ie),Ie=!1}function De(){const e=Ee.pop();Ie=void 0===e||e}function Ae(){we++}function Oe(){for(we--;!we&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Le=new WeakMap,Fe=Symbol(""),Be=Symbol("");function $e(e,t,n){if(Ie&&pe){let t=Le.get(e);t||Le.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me((()=>t.delete(n)))),Ne(pe,o)}}function je(e,t,n,o,r,i){const s=Le.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&h(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":h(e)?w(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),f(e)&&l.push(s.get(Be)));break;case"delete":h(e)||(l.push(s.get(Fe)),f(e)&&l.push(s.get(Be)));break;case"set":f(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return $e(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?kt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=h(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||$e(e,0,t),r?s:Ht(s)?i&&w(t)?s:s.value:S(s)?o?Et(s):It(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!h(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=h(e)&&w(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(L(t,i)&&$e(r,0,t),$e(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Lt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(L(e,r)&&$e(o,0,e),$e(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e,t=!1){t||Nt(e)||Ot(e)||(e=Pt(e));const n=Pt(this);return et(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Nt(t)||Ot(t)||(t=Pt(t));const o=Pt(this),{has:r,get:i}=et(o);let s=r.call(o,e);s||(e=Pt(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?L(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Lt;return!e&&$e(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=f(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Lt;return!t&&$e(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add(e){return rt.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ht,ft,mt]=dt();function gt(e,t){const n=t?e?mt:ft:e?ht:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,kt=new WeakMap;function It(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function wt(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,kt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(k(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Mt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Lt=e=>S(e)?It(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||jt(e,4),$t(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function $t(e){var t;Ie&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Me((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Lt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Lt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Le.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(h(e)){const r=[];for(let i=0;i>>1,r=fn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){hn=!1,pn=!0,fn.sort(Tn);try{for(mn=0;mn$n;function $n(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qi(-1);const r=Mn(t);let i;try{i=e(...n)}finally{Mn(r),o._d&&Qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Rn)return e;const n=$s(Rn),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),_o((()=>{e.isUnmounting=!0})),e}const Wn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wn,onEnter:Wn,onAfterEnter:Wn,onEnterCancelled:Wn,onBeforeLeave:Wn,onLeave:Wn,onAfterLeave:Wn,onLeaveCancelled:Wn,onBeforeAppear:Wn,onAppear:Wn,onAfterAppear:Wn,onAppearCancelled:Wn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Kn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Cs(),o=qn();return()=>{const r=t.default&&eo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==qi){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return Yn(i);const c=Qn(i);if(!c)return Yn(i);let a=Xn(c,s,o,n,(e=>a=e));Zn(c,a);const u=n.subTree,d=u&&Qn(u);if(d&&d.type!==qi&&!os(c,d)&&Gn(n).type!==qi){const e=Xn(d,s,o,n);if(Zn(d,e),"out-in"===l&&c.type!==qi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Yn(i);"in-out"===l&&c.type!==qi&&(e.delayLeave=(e,t,n)=>{Jn(o,d)[String(d.key)]=d,e[Vn]=()=>{t(),e[Vn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function Jn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xn(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=Jn(n,e),C=(e,t)=>{e&&un(e,o,9,t)},k=(e,t)=>{const n=t[1];C(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},I={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[Vn]&&t[Vn](!0);const r=x[_];r&&os(e,r)&&r.el[Vn]&&r.el[Vn](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[Un]=t=>{s||(s=!0,C(t?r:o,[e]),I.delayedLeave&&I.delayedLeave(),e[Un]=void 0)};t?k(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Un]&&t[Un](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[Vn]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[Vn]=void 0,x[r]===e&&delete x[r])};x[r]=e,f?k(f,[t,s]):s()},clone(e){const i=Xn(e,t,n,o,r);return r&&r(i),i}};return I}function Yn(e){if(io(e))return(e=us(e)).children=null,e}function Qn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Zn(e,t){6&e.shapeFlag&&e.component?Zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ea({name:e.name},t,{setup:e}))():e}const no=e=>!!e.type.__asyncLoader;function oo(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return to({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xs;if(c)return()=>ro(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||Os)return d().then((t=>()=>ro(t,e))).catch((e=>(t(e),()=>o?cs(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?ro(c,e):u.value&&o?cs(o,{error:u.value}):n&&!p.value?cs(n):void 0}})}function ro(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=cs(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const io=e=>e.type.__isKeepAlive,so={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Cs(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function h(e){ho(e),u(e,n,l,!0)}function f(e){r.forEach(((t,n)=>{const o=js(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&os(t,s)?s&&ho(s):h(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),oi((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ys(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;pi(t.m),pi(t.a),a(e,p,null,1,l),oi((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ys(n,t.parent,e),t.isDeactivated=!0}),l)},bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>lo(e,t))),t&&f((e=>!lo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Pi(n.subTree.type)?oi((()=>{r.set(g,fo(n.subTree))}),n.subTree.suspense):r.set(g,fo(n.subTree)))};return yo(v),So(v),_o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=fo(t);if(e.type!==r.type||e.key!==r.key)h(e);else{ho(r);const e=r.component.da;e&&oi(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ns(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=fo(o);const c=l.type,a=js(no(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!lo(u,a))||d&&a&&lo(d,a))return s=l,o;const h=null==l.key?c:l.key,f=r.get(h);return l.el&&(l=us(l),128&o.shapeFlag&&(o.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&Zn(l,l.transition),l.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,Pi(o.type)?o:l}}};function lo(e,t){return h(e)?e.some((e=>lo(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function co(e,t){uo(e,"a",t)}function ao(e,t){uo(e,"da",t)}function uo(e,t,n=xs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(mo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&po(o,t,n,e),e=e.parent}}function po(e,t,n,o){const r=mo(t,e,o,!0);xo((()=>{u(o[t],r)}),n)}function ho(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fo(e){return 128&e.shapeFlag?e.ssContent:e}function mo(e,t,n=xs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=ws(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const go=e=>(t,n=xs)=>{Os&&"sp"!==e||mo(e,((...e)=>t(...e)),n)},vo=go("bm"),yo=go("m"),bo=go("bu"),So=go("u"),_o=go("bum"),xo=go("um"),Co=go("sp"),ko=go("rtg"),Io=go("rtc");function wo(e,t=xs){mo("ec",e,t)}const Eo="components",To="directives";function Do(e,t){return Ro(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function Oo(e){return y(e)?Ro(Eo,e,!1)||e:e||Ao}function No(e){return Ro(To,e)}function Ro(e,t,n=!0,o=!1){const r=Rn||xs;if(r){const n=r.type;if(e===Eo){const e=js(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Po(r[e]||n[e],t)||Po(r.appContext[e],t);return!i&&o?n:i}}function Po(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Mo(e,t,n,o){let r;const i=n&&n[o];if(h(e)||y(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Fo(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&no(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),cs("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ki();const s=i&&Bo(i(n)),l=ts(Vi,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bo(e){return e.some((e=>!ns(e)||e.type!==qi&&!(e.type===Vi&&!Bo(e.children))))?e:null}function $o(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ts(e)?$s(e):jo(e.parent):null,Ho=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ar(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>_i.bind(e)}),Vo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Uo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Vo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];sr&&(l[t]=0)}}const d=Ho[t];let h,f;return d?("$attrs"===t&&$e(e.attrs,0,""),d(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(l[t]=4,n[t]):(f=a.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Vo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Vo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Ho,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=a({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function Wo(){return null}function zo(){return null}function Go(e){}function Ko(e){}function Jo(){return null}function Xo(){}function Yo(e,t){return null}function Qo(){return er().slots}function Zo(){return er().attrs}function er(){const e=Cs();return e.setupContext||(e.setupContext=Bs(e))}function tr(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function nr(e,t){const n=tr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?h(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function or(e,t){return e&&t?h(e)&&h(t)?e.concat(t):a({},tr(e),tr(t)):e||t}function rr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Cs();let n=e();return Es(),_(n)&&(n=n.catch((e=>{throw ws(t),e}))),[n,()=>ws(t)]}let sr=!0;function lr(e,t,n){un(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function cr(e,t,n,o){const r=o.includes(".")?xi(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&bi(r,n)}else if(v(e))bi(r,e.bind(n));else if(S(e))if(h(e))e.forEach((e=>cr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&bi(r,o,e)}}function ar(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>ur(c,e,s,!0))),ur(c,t,s)):c=t,S(t)&&i.set(t,c),c}function ur(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ur(e,i,n,!0),r&&r.forEach((t=>ur(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=dr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const dr={data:pr,props:gr,emits:gr,methods:mr,computed:mr,beforeCreate:fr,created:fr,beforeMount:fr,mounted:fr,beforeUpdate:fr,updated:fr,beforeDestroy:fr,beforeUnmount:fr,destroyed:fr,unmounted:fr,activated:fr,deactivated:fr,errorCaptured:fr,serverPrefetch:fr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=fr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return mr(hr(e),hr(t))}};function pr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function hr(e){if(h(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=cs(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,$s(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Sr;Sr=l;try{return e()}finally{Sr=t}}};return l}}let Sr=null;function _r(e,t){if(xs){let n=xs.provides;const o=xs.parent&&xs.parent.provides;o===n&&(n=xs.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xs||Rn;if(o||Sr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function Cr(){return!!(xs||Rn||Sr)}const kr={},Ir=()=>Object.create(kr),wr=e=>Object.getPrototypeOf(e)===kr;function Er(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ti(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Ar(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(h(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const f=[c,u];return S(e)&&i.set(e,f),f}function Or(e){return"$"!==e[0]&&!E(e)}function Nr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Rr(e,t){return Nr(e)===Nr(t)}function Pr(e,t){return h(t)?t.findIndex((t=>Rr(t,e))):v(t)&&Rr(t,e)?0:-1}const Mr=e=>"_"===e[0]||"$stable"===e,Lr=e=>h(e)?e.map(fs):[fs(e)],Fr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>Lr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Mr(n))continue;const r=e[n];if(v(r))t[n]=Fr(0,r,o);else if(null!=r){const e=Lr(r);t[n]=()=>e}}},$r=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Hr=(e,t,n)=>{const o=e.slots=Ir();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&B(o,"_",e,!0)):Br(t,o)}else t&&$r(e,t)},Vr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:jr(i,t,n):(s=!t.$stable,Br(t,i)),l=t}else t&&($r(e,t),l={default:1});if(s)for(const e in i)Mr(e)||null!=l[e]||delete i[e]};function Ur(e,t,n,r,i=!1){if(h(e))return void e.forEach(((e,o)=>Ur(e,t&&(h(t)?t[o]:t),n,r,i)));if(no(r)&&!i)return;const s=4&r.shapeFlag?$s(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,f=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(f[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,f]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:f[a]:a.value;i?h(n)&&u(n,s):h(n)?n.includes(s)||n.push(s):t?(f[a]=[s],p(m,a)&&(m[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else t?(f[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(f[e.k]=l))};l?(r.id=-1,oi(r,n)):r()}}}const qr=Symbol("_vte"),Wr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Jr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Wr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Wr(e.props),g=m?n:u,y=m?o:h;if("svg"===s||zr(u)?s="svg":("mathml"===s||Gr(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),ui(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Kr(t.props,f);e&&Jr(t,e,null,a,0)}else m&&Jr(t,u,h,a,1)}Yr(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),i&&r(c),16&s){const e=i||!Wr(p);for(let r=0;r{Qr||(console.error("Hydration completed but contains mismatches."),Qr=!0)},ei=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ti=e=>8===e.nodeType;function ni(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ti(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:k,patchFlag:I}=o;let w=n.nodeType;o.el=n,-2===I&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Ui:3!==w?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Zr(),n.data=o.children),E=i(n));break;case qi:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==w||S?_():i(n);break;case Wi:if(S&&(w=(n=i(n)).nodeType),1===w||3===w){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){f&&Hn(t,null,n,"created");let a,b=!1;if(y(e)){b=ai(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=h(e.firstChild,t,e,n,r,i,s);for(;o;){Zr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Zr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&At(u.style))for(const e in u.style)u.style[e];(a=u&&u.onVnodeBeforeMount)&&ys(a,n,t),f&&Hn(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||f||b)&&ji((()=>{a&&ys(a,n,t),b&&m.enter(e),f&&Hn(t,null,n,"mounted")}),r)}return e.nextSibling},h=(e,t,o,s,l,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,h=p.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=h(i(e),t,d,n,o,r,l);return p&&ti(p)&&"]"===p.data?i(t.anchor=p):(Zr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Zr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,ei(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&ti(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),wn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),wn(),t._vnode=e},d]}const oi=ji;function ri(e){return si(e)}function ii(e){return si(e,ni)}function si(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Ui:b(e,t,n,o);break;case qi:S(e,t,n,o);break;case Wi:null==e&&_(t,n,o,s);break;case Vi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Ur(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):w(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,f&&f.is,f),8&m?h(d,e.children):16&m&&I(e.children,d,null,r,i,li(e,s),a,u),v&&Hn(e,null,r,"created"),k(d,e,e.scopeId,a,r),f){for(const e in f)"value"===e||E(e)||l(d,e,null,f[e],s,r);"value"in f&&l(d,"value",null,f.value,s),(p=f.onVnodeBeforeMount)&&ys(p,r,e)}v&&Hn(e,null,r,"beforeMount");const y=ai(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=f&&f.onVnodeMounted)||y||v)&&oi((()=>{p&&ys(p,r,e),y&&g.enter(d),v&&Hn(e,null,r,"mounted")}),i)},k=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||o,m=t.props||o;let g;if(n&&ci(n,!1),(g=m.onVnodeBeforeUpdate)&&ys(g,n,t,e),p&&Hn(t,e,n,"beforeUpdate"),n&&ci(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(a,""),d?T(e.dynamicChildren,d,a,n,r,li(t,i),s):c||$(e,t,a,null,n,r,li(t,i),s,!1),u>0){if(16&u)D(a,f,m,n,i);else if(2&u&&f.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ys(g,n,t,e),p&&Hn(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(t!==n){if(t!==o)for(const o in t)E(o)||o in n||l(e,o,t[o],null,i,r);for(const o in n){if(E(o))continue;const s=n[o],c=t[o];s!==c&&"value"!==o&&l(e,o,c,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),I(t.children||[],o,p,i,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(T(e.dynamicChildren,f,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&ui(e,t,!0)):$(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):M(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=_s(e,o,r);if(io(e)&&(l.ctx.renderer=Q),Ns(l,!1,s),l.asyncDep){if(r&&r.registerDep(l,L,s),!e.el){const e=l.subTree=cs(qi);S(null,e,t,n)}}else L(l,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||Ni(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?Ni(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&fn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=di(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;ci(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ys(u,i,t,a),ci(e,!0);const p=Di(e),h=e.subTree;e.subTree=p,y(h,p,f(h.el),J(h),e,r,s),t.el=p.el,null===d&&Ri(e,p.el),o&&oi(o,r),(u=t.props&&t.props.onVnodeUpdated)&&oi((()=>ys(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=no(t);if(ci(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&ys(i,d,t),ci(e,!0),l&&ee){const n=()=>{e.subTree=Di(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Di(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&oi(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;oi((()=>ys(i,d,e)),r)}(256&t.shapeFlag||d&&no(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&oi(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,ci(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;Er(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Tr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void j(a,d,n,o,r,i,s,l,c)}8&f?(16&u&&K(a,r,i),d!==a&&h(n,d)):16&u?16&f?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&h(n,""),16&f&&I(d,n,o,r,i,s,l,c))},j=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?K(e,i,s,!0,!1,p):I(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=a?ms(t[u]):fs(t[u]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=a?ms(t[h]):fs(t[h]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,h--}if(u>p){if(u<=h){const e=h+1,r=eh)for(;u<=p;)q(e[u],i,s,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=a?ms(t[u]):fs(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=h-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=h;v++)if(0===C[v-m]&&os(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const k=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=k.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Vi)if(l!==Wi)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),oi((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h}=e;if(-2===d&&(r=!1),null!=l&&Ur(l,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!no(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&ys(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);f&&Hn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&!a.hasOnce&&(i!==Vi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Vi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||f)&&oi((()=>{g&&ys(g,t,e),f&&Hn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Vi)return void z(n,o);if(t===Wi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;pi(c),pi(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&oi(l,t),oi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[qr];return n?m(n):t};let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,In(),wn(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:I,pc:$,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:br(Y,Z)}}function li({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const o=e.children,r=t.children;if(h(o)&&h(r))for(let e=0;exr(hi);function mi(e,t){return Si(e,null,t)}function gi(e,t){return Si(e,null,{flush:"post"})}function vi(e,t){return Si(e,null,{flush:"sync"})}const yi={};function bi(e,t,n){return Si(e,t,n)}function Si(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),w()}}const d=xs,p=e=>!0===r?e:Ci(e,!1===r?1:void 0);let f,m,g=!1,y=!1;if(Ht(e)?(f=()=>e.value,g=Nt(e)):At(e)?(f=()=>p(e),g=!0):h(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),f=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):f=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=f;f=()=>Ci(e())}let b,S=e=>{m=k.onStop=()=>{an(e,d,4),m=k.onStop=void 0}};if(Os){if(S=i,t?n&&un(t,d,3,[f(),y?[]:void 0,S]):f(),"sync"!==s)return i;{const e=fi();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(yi):yi;const x=()=>{if(k.active&&k.dirty)if(t){const e=k.run();(r||g||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(m&&m(),un(t,d,3,[e,_===yi?void 0:y&&_[0]===yi?[]:_,S]),_=e)}else k.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>oi(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const k=new ye(f,i,C),I=ge(),w=()=>{k.stop(),I&&u(I.effects,k)};return t?n?x():_=k.run():"post"===s?oi(k.run.bind(k),d&&d.suspense):k.run(),b&&b.push(w),w}function _i(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?xi(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=ws(this),l=Si(r,i.bind(o),n);return s(),l}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ci(e,t,n)}));else if(I(e)){for(const o in e)Ci(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ci(e[o],t,n)}return e}function ki(e,t,n=o){const r=Cs(),i=O(t),s=R(t),l=Ii(e,t),c=Qt(((o,l)=>{let c,a,u;return vi((()=>{const n=e[t];L(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){if(!L(e,c))return;const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||(c=e,l());const d=n.set?n.set(e):e;r.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o:c,done:!1}:{done:!0}}},c}const Ii=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${R(t)}Modifiers`];function wi(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const s=t.startsWith("update:"),l=s&&Ii(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>y(e)?e.trim():e))),l.number&&(i=n.map(j)));let a=r[c=M(t)]||r[c=M(O(t))];!a&&s&&(a=r[c=M(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Ei(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Ei(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(h(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ti(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function Di(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:h,setupState:f,ctx:m,inheritAttrs:g}=e,v=Mn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=fs(u.call(t,e,d,p,f,h,m)),b=l}else{const e=t;y=fs(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:Ai(l)}}catch(t){zi.length=0,dn(t,e,1),y=cs(qi)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Oi(b,i)),S=us(S,b,!1,!0))}return n.dirs&&(S=us(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Mn(v),y}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Oi=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ni(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Mi=0;const Li={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bi(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Fi(e,"onPending"),Fi(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),Hi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,os(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(f,h,n,o,r,null,i,s,l),Hi(d,h)))):(d.pendingId=Mi++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(f,h,n,o,r,null,i,s,l),Hi(d,h))):f&&os(p,f)?(c(f,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(f&&os(p,f))c(f,p,n,o,r,d,i,s,l),Hi(d,p);else if(Fi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Mi++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=Bi(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=$i(o?n.default:n),e.ssFallback=o?$i(n.fallback):cs(qi)}};function Fi(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Bi(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:Mi++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?f(r):i,0),kn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=f(r)),h(r,a,_,!0)),d||p(s,u,i,0)),Hi(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||kn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Fi(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;Fi(t,"onFallback");const s=f(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),Hi(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,h(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&f(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Rs(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:f(e.subTree),_,s,n),c&&g(c),Ri(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,n,e,t),_.pendingBranch&&h(_.pendingBranch,n,e,t)}};return _}function $i(e){let t;if(v(e)){const n=Yi&&e._c;n&&(e._d=!1,Ki()),e=e(),n&&(e._d=!0,t=Gi,Ji())}if(h(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function ji(e,t){t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):kn(e)}function Hi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ri(o,r))}const Vi=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),qi=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),zi=[];let Gi=null;function Ki(e=!1){zi.push(Gi=e?null:[])}function Ji(){zi.pop(),Gi=zi[zi.length-1]||null}let Xi,Yi=1;function Qi(e){Yi+=e,e<0&&Gi&&(Gi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?Gi||r:null,Ji(),Yi>0&&Gi&&Gi.push(e),e}function es(e,t,n,o,r,i){return Zi(ls(e,t,n,o,r,i,!0))}function ts(e,t,n,o,r){return Zi(cs(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}function rs(e){Xi=e}const is=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,o=0,r=null,i=(e===Vi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&is(t),ref:t&&ss(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return l?(gs(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!s&&Gi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Gi.push(c),c}const cs=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Ao||(e=qi),ns(e)){const o=us(e,t,!0);return n&&gs(o,n),Yi>0&&!i&&Gi&&(6&o.shapeFlag?Gi[Gi.indexOf(e)]=o:Gi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=as(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!h(n)&&(n=a({},n)),t.style=z(n))}var s;return ls(e,t,n,o,r,y(e)?1:Pi(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function as(e){return e?Rt(e)||wr(e)?a({},e):e:null}function us(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?vs(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&is(a),ref:t&&t.ref?n&&i?h(i)?i.concat(ss(t)):[i,ss(t)]:ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Zn(u,c.clone(u)),u}function ds(e=" ",t=0){return cs(Ui,null,e,t)}function ps(e,t){const n=cs(Wi,null,e);return n.staticCount=t,n}function hs(e="",t=!1){return t?(Ki(),ts(qi,null,e)):cs(qi,null,e)}function fs(e){return null==e||"boolean"==typeof e?cs(qi):h(e)?cs(Vi,null,e.slice()):"object"==typeof e?ms(e):cs(Ui,null,String(e))}function ms(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:us(e)}function gs(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(h(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),gs(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||wr(t)?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else v(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nxs||Rn;let ks,Is;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ks=t("__VUE_INSTANCE_SETTERS__",(e=>xs=e)),Is=t("__VUE_SSR_SETTERS__",(e=>Os=e))}const ws=e=>{const t=xs;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Es=()=>{xs&&xs.scope.off(),ks(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Ds,As,Os=!1;function Ns(e,t=!1,n=!1){t&&Is(t);const{props:o,children:r}=e.vnode,i=Ts(e);!function(e,t,n,o=!1){const r={},i=Ir();e.propsDefaults=Object.create(null),Er(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:wt(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,o,i,t),Hr(e,r,n);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bs(e):null,r=ws(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(Es,Es),t)return i.then((n=>{Rs(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Rs(e,i,t)}else Ls(e,t)}(e,t):void 0;return t&&Is(!1),s}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Ls(e,n)}function Ps(e){Ds=e,As=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qo))}}const Ms=()=>!Ds;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const t=o.template||ar(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ds(t,l)}}e.render=o.render||i,As&&As(e)}{const t=ws(e);Te();try{!function(e){const t=ar(e),n=e.proxy,o=e.ctx;sr=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:k,render:I,renderTracked:w,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t){h(e)&&(e=hr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=It(t))}if(sr=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Hs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)cr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{_r(t,e[t])}))}function M(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&lr(d,e,"c"),M(vo,p),M(yo,f),M(bo,m),M(So,g),M(co,y),M(ao,b),M(wo,T),M(Io,w),M(ko,E),M(_o,x),M(xo,k),M(Co,D),h(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});I&&e.render===i&&(e.render=I),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Fs={get:(e,t)=>($e(e,0,""),e[t])};function Bs(e){return{attrs:new Proxy(e.attrs,Fs),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Mt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ho?Ho[n](e):void 0,has:(e,t)=>t in e||t in Ho})):e.proxy}function js(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Os);function Vs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!h(t)?ns(t)?cs(e,null,[t]):cs(e,t):cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),cs(e,t,n))}function Us(){}function qs(e,t,n,o){const r=n[o];if(r&&Ws(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function Ws(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gi&&Gi.push(e),!0}const zs="3.4.33",Gs=i,Ks={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Js=An,Xs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Ys={createComponentInstance:_s,setupComponent:Ns,renderComponentRoot:Di,setCurrentRenderingInstance:Mn,isVNode:ns,normalizeVNode:fs,getComponentPublicInstance:$s},Qs=null,Zs=null,el=null,tl="undefined"!=typeof document?document:null,nl=tl&&tl.createElement("template"),ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?tl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?tl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?tl.createElement(e,{is:n}):tl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>tl.createTextNode(e),createComment:e=>tl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{nl.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",il="animation",sl=Symbol("_vtc"),ll=(e,{slots:t})=>Vs(Kn,pl(e),t);ll.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},al=ll.props=a({},zn,cl),ul=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},dl=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function pl(e){const t={};for(const n in e)n in cl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[hl(e.enter),hl(e.leave)];{const t=hl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=y,onAppear:I=b,onAppearCancelled:w=_}=t,E=(e,t,n)=>{ml(e,t?d:l),ml(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,ml(e,p),ml(e,f),ml(e,h),t&&t()},D=e=>(t,n)=>{const r=e?I:b,s=()=>E(t,e,n);ul(r,[t,s]),gl((()=>{ml(t,e?c:i),fl(t,e?d:l),dl(r)||yl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){ul(y,[e]),fl(e,i),fl(e,s)},onBeforeAppear(e){ul(k,[e]),fl(e,c),fl(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);fl(e,p),fl(e,h),xl(),gl((()=>{e._isLeaving&&(ml(e,p),fl(e,f),dl(x)||yl(e,o,v,n))})),ul(x,[e,n])},onEnterCancelled(e){E(e,!1),ul(_,[e])},onAppearCancelled(e){E(e,!0),ul(w,[e])},onLeaveCancelled(e){T(e),ul(C,[e])}})}function hl(e){return H(e)}function fl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[sl]||(e[sl]=new Set)).add(t)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[sl];n&&(n.delete(t),n.size||(e[sl]=void 0))}function gl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let vl=0;function yl(e,t,n,o){const r=e._endId=++vl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=bl(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${rl}Delay`),i=o(`${rl}Duration`),s=Sl(r,i),l=o(`${il}Delay`),c=o(`${il}Duration`),a=Sl(l,c);let u=null,d=0,p=0;return t===rl?s>0&&(u=rl,d=s,p=i.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?rl:il:null,p=u?u===rl?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===rl&&/\b(transform|all)(,|$)/.test(o(`${rl}Property`).toString())}}function Sl(e,t){for(;e.length_l(t)+_l(e[n]))))}function _l(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const Cl=Symbol("_vod"),kl=Symbol("_vsh"),Il={beforeMount(e,{value:t},{transition:n}){e[Cl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):wl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),wl(e,!0),o.enter(e)):o.leave(e,(()=>{wl(e,!1)})):wl(e,t))},beforeUnmount(e,{value:t}){wl(e,t)}};function wl(e,t){e.style.display=t?e[Cl]:"none",e[kl]=!t}const El=Symbol("");function Tl(e){const t=Cs();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Al(e,n)))},o=()=>{const o=e(t.proxy);Dl(t.subTree,o),n(o)};yo((()=>{gi(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Dl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Dl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Al(e.el,t);else if(e.type===Vi)e.children.forEach((e=>Dl(e,t)));else if(e.type===Wi){let{el:n,anchor:o}=e;for(;n&&(Al(n,t),n!==o);)n=n.nextSibling}}function Al(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Ol=/(^|;)\s*display\s*:/,Nl=/\s*!important$/;function Rl(e,t,n){if(h(n))n.forEach((n=>Rl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ml[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ml[t]=o;o=P(o);for(let n=0;nHl||(Vl.then((()=>Hl=0)),Hl=Date.now()),ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Wl(e,t,n){const o=to(e,t);class r extends Kl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Wl(e,t,Ac),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Dc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!h(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=h(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Dc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=cs(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Jl(e="$style"){{const t=Cs();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const Xl=new WeakMap,Yl=new WeakMap,Ql=Symbol("_moveCb"),Zl=Symbol("_enterCb"),ec={name:"TransitionGroup",props:a({},al,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cs(),o=qn();let r,i;return So((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[sl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=bl(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(tc),r.forEach(nc);const o=r.filter(oc);xl(),o.forEach((e=>{const n=e.el,o=n.style;fl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ql]=null,ml(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=pl(s);let c=s.tag||Vi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return h(t)?e=>F(t,e):t};function ic(e){e.target.composing=!0}function sc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lc=Symbol("_assign"),cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lc]=rc(r);const i=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[lc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",sc),Bl(e,"change",sc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[lc]=rc(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ac={deep:!0,created(e,t,n){e[lc]=rc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=fc(e),o=e.checked,r=e[lc];if(h(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(mc(e,o))}))},mounted:uc,beforeUpdate(e,t,n){e[lc]=rc(n),uc(e,t,n)}};function uc(e,{value:t,oldValue:n},o){e._modelValue=t,h(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,mc(e,!0)))}const dc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[lc]=rc(n),Bl(e,"change",(()=>{e[lc](fc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[lc]=rc(o),t!==n&&(e.checked=ie(t,o.props.value))}},pc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(fc(e)):fc(e)));e[lc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[lc]=rc(o)},mounted(e,{value:t,modifiers:{number:n}}){hc(e,t)},beforeUpdate(e,t,n){e[lc]=rc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||hc(e,t)}};function hc(e,t,n){const o=e.multiple,r=h(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(fc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function fc(e){return"_value"in e?e._value:e.value}function mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gc={created(e,t,n){yc(e,t,n,null,"created")},mounted(e,t,n){yc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){yc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){yc(e,t,n,o,"updated")}};function vc(e,t){switch(e){case"SELECT":return pc;case"TEXTAREA":return cc;default:switch(t){case"checkbox":return ac;case"radio":return dc;default:return cc}}}function yc(e,t,n,o,r){const i=vc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const bc=["ctrl","shift","alt","meta"],Sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>bc.some((n=>e[`${n}Key`]&&!t.includes(n)))},_c=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},kc=a({patchProp:(e,t,n,o,r,i)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[sl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Rl(o,t,"")}else for(const e in t)null==n[e]&&Rl(o,e,"");for(const e in n)"display"===e&&(i=!0),Rl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,i=Ol.test(n)}}else t&&e.removeAttribute("style");Cl in e&&(e[Cl]=i?o.display:"",e[kl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[$l]||(e[$l]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(h(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ul(),n}(o,r);Bl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!y(n))&&t in e}(e,t,o,s))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Fl(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Fl(e,t,o,s))}},ol);let Ic,wc=!1;function Ec(){return Ic||(Ic=ri(kc))}function Tc(){return Ic=wc?Ic:ii(kc),wc=!0,Ic}const Dc=(...e)=>{Ec().render(...e)},Ac=(...e)=>{Tc().hydrate(...e)},Oc=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Pc(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Nc=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Rc(t))},t};function Rc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){return y(e)?document.querySelector(e):e}let Mc=!1;const Lc=()=>{Mc||(Mc=!0,cc.getSSRProps=({value:e})=>({value:e}),dc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ac.getSSRProps=({value:e},t)=>{if(h(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=vc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Il.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Fc=Symbol(""),Bc=Symbol(""),$c=Symbol(""),jc=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),ha=Symbol(""),fa=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa={[Fc]:"Fragment",[Bc]:"Teleport",[$c]:"Suspense",[jc]:"KeepAlive",[Hc]:"BaseTransition",[Vc]:"openBlock",[Uc]:"createBlock",[qc]:"createElementBlock",[Wc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Kc]:"createTextVNode",[Jc]:"createStaticVNode",[Xc]:"resolveComponent",[Yc]:"resolveDynamicComponent",[Qc]:"resolveDirective",[Zc]:"resolveFilter",[ea]:"withDirectives",[ta]:"renderList",[na]:"renderSlot",[oa]:"createSlots",[ra]:"toDisplayString",[ia]:"mergeProps",[sa]:"normalizeClass",[la]:"normalizeStyle",[ca]:"normalizeProps",[aa]:"guardReactiveProps",[ua]:"toHandlers",[da]:"camelize",[pa]:"capitalize",[ha]:"toHandlerKey",[fa]:"setBlockTracking",[ma]:"pushScopeId",[ga]:"popScopeId",[va]:"withCtx",[ya]:"unref",[ba]:"isRef",[Sa]:"withMemo",[_a]:"isMemoSame"},Ca={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function ka(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=Ca){return e&&(l?(e.helper(Vc),e.helper(Pa(e.inSSR,a))):e.helper(Ra(e.inSSR,a)),s&&e.helper(ea)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ia(e,t=Ca){return{type:17,loc:t,elements:e}}function wa(e,t=Ca){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Ca,key:y(e)?Ta(e,!0):e,value:t}}function Ta(e,t=!1,n=Ca,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Da(e,t=Ca){return{type:8,loc:t,children:e}}function Aa(e,t=[],n=Ca){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ca){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Na(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ca}}function Ra(e,t){return e||t?Wc:zc}function Pa(e,t){return e||t?Uc:qc}function Ma(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Ra(o,e.isComponent)),t(Vc),t(Pa(o,e.isComponent)))}const La=new Uint8Array([123,123]),Fa=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function $a(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||$a(e)}function Ha(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Xa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return $c;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Hc}}const Ya=/^\d|[^\$\w\xA0-\uFFFF]/,Qa=e=>!Ya.test(e),Za=/[A-Za-z_$\xA0-\uFFFF]/,eu=/[\.\?\w$\xA0-\uFFFF]/,tu=/\s+[.[]\s*|\s*[.[]\s+/g,nu=e=>{e=e.trim().replace(tu,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function fu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const mu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let vu=gu,yu=null,bu="",Su=null,_u=null,xu="",Cu=-1,ku=-1,Iu=0,wu=!1,Eu=null;const Tu=[],Du=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=La,this.delimiterClose=Fa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=La,this.delimiterClose=Fa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||$a(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Va.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Tu,{onerr:Ju,ontext(e,t){Pu(Nu(e,t),e,t)},ontextentity(e,t,n){Pu(e,t,n)},oninterpolation(e,t){if(wu)return Pu(Nu(e,t),e,t);let n=e+Du.delimiterOpen.length,o=t-Du.delimiterClose.length;for(;$a(bu.charCodeAt(n));)n++;for(;$a(bu.charCodeAt(o-1));)o--;let r=Nu(n,o);r.includes("&")&&(r=vu.decodeEntities(r,!1)),qu({type:5,content:Ku(r,!1,Wu(n,o)),loc:Wu(e,t)})},onopentagname(e,t){const n=Nu(e,t);Su={type:1,tag:n,ns:vu.getNamespace(n,Tu[0],vu.ns),tagType:0,props:[],children:[],loc:Wu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Nu(e,t);if(!vu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ju(24,Tu[0].loc.start.offset);for(let n=0;n<=e;n++)Mu(Tu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ju(2,t)},onattribend(e,t){if(Su&&_u){if(zu(_u.loc,t),0!==e)if(xu.includes("&")&&(xu=vu.decodeEntities(xu,!0)),6===_u.type)"class"===_u.name&&(xu=Uu(xu).trim()),1!==e||xu||Ju(13,t),_u.value={type:2,content:xu,loc:1===e?Wu(Cu,ku):Wu(Cu-1,ku+1)},Du.inSFCRoot&&"template"===Su.tag&&"lang"===_u.name&&xu&&"html"!==xu&&Du.enterRCDATA(Ha("{const r=t.start.offset+n;return Ku(e,!1,Wu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Au);if(u){c=c.replace(Au,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(_u.exp));let t=-1;"bind"===_u.name&&(t=_u.modifiers.indexOf("sync"))>-1&&Wa("COMPILER_V_BIND_SYNC",vu,_u.loc,_u.rawName)&&(_u.name="model",_u.modifiers.splice(t,1))}7===_u.type&&"pre"===_u.name||Su.props.push(_u)}xu="",Cu=ku=-1},oncomment(e,t){vu.comments&&qu({type:3,content:Nu(e,t),loc:Wu(e-4,t+3)})},onend(){const e=bu.length;for(let t=0;t64&&n<91||Xa(e)||vu.isBuiltInComponent&&vu.isBuiltInComponent(e)||vu.isNativeTag&&!vu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wa("COMPILER_INLINE_TEMPLATE",vu,n.loc)&&e.children.length&&(n.value={type:2,content:Nu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(e,t){let n=e;for(;bu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fu=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&nd(r,t)>=2){const n=od(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Qu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Qu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=Ta(e)),E.hoists.push(e);const t=Ta(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ca}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);id(e,n),t.hoistStatic&&Xu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Yu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Ma(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=ka(t,n(Fc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(lu))return;const i=[];for(let s=0;s`${xa[e]}: _${xa[e]}`;function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Zc:"component"===t?Xc:Qc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,f,a]),t),n(")"),d&&n(")"),u&&(n(", "),pd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(ld),n(i+"(",-2,e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),h(s)?ud(s,t):pd(s,t)):l&&pd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Qa(n.content);e&&s("("),hd(n,t),e&&s(")")}else s("("),pd(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),pd(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,pd(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(fa)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),pd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(fa)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function hd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function fd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ka(28,t.loc)),t.exp=Ta("true",!1,o)}if("if"===t.name){const r=vd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ka(30,e.loc)),n.removeNode();const r=vd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);id(r,n),i&&i(),n.currentNode=null}else n.onError(Ka(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=yd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=yd(t,s+e.branches.length-1,n)}}}))));function vd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ou(e,"for")?e.children:[e],userKey:ru(e,"key"),isTemplateIf:n}}function yd(e,t,n){return e.condition?Na(e.condition,bd(e,t,n),Aa(n.helper(Gc),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=Ea("key",Ta(`${t}`,!1,Ca,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return pu(e,r,n),e}{let t=64;return q[64],ka(n,o(Fc),wa([r]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===Sa?l.arguments[1].returns:l;return 13===t.type&&Ma(t,n),pu(t,r,n),e}var l}const Sd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(Ka(52,i.loc)),{props:[Ea(i,Ta("",!0,r))]};_d(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(da)}(${i.content})`:(i.children.unshift(`${n.helperString(da)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(i,"."),o.includes("attr")&&xd(i,"^")),{props:[Ea(i,s)]}},_d=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=Ta(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cd=sd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ka(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ka(32,t.loc));kd(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:cu(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const h=o&&o(p);return()=>{l.vFor--,h&&h()}}(e,t,n,(t=>{const i=Aa(o(ta),[t.source]),s=cu(e),l=ou(e,"memo"),c=ru(e,"key",!1,!0);c&&7===c.type&&!c.exp&&_d(c);const a=c&&(6===c.type?c.value?Ta(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=ka(n,o(Fc),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,h=1!==p.length||1!==p[0].type,f=au(e)?e:s&&1===e.children.length&&au(e.children[0])?e.children[0]:null;if(f?(c=f.codegenNode,s&&u&&pu(c,u,n)):h?c=ka(n,o(Fc),u?wa([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&pu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Vc),r(Pa(n.inSSR,c.isComponent))):r(Ra(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Vc),o(Pa(n.inSSR,c.isComponent))):o(Ra(n.inSSR,c.isComponent))),l){const e=Oa(Id(t.parseResult,[Ta("_cached")]));e.body={type:21,body:[Da(["const _memo = (",l.exp,")"]),Da(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(_a)}(_cached, _memo)) return _cached`]),Da(["const _item = ",c]),Ta("_item.memo = _memo"),Ta("return _item")],loc:Ca},i.arguments.push(e,Ta("_cache"),Ta(String(n.cached++)))}else i.arguments.push(Oa(Id(t.parseResult),c,!0))}}))}));function kd(e,t){e.finalized||(e.finalized=!0)}function Id({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ta("_".repeat(t+1),!1)))}([e,t,n,...o])}const wd=Ta("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ou(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Dd(e,t,n=Td){t.helper(va);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ou(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ja(e)&&(l=!0),i.push(Ea(e||Ta("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ea("default",i)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Ka(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const f=l?2:Od(e.children)?3:1;let m=wa(i.concat(Ea("_",Ta(f+"",!1))),r);return s.length&&(m=Aa(t.helper(oa),[m,Ia(s)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",Ta(String(n),!0))),wa(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),i=ru(e,"is",!1,!0);if(i)if(r||qa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ta(i.value.content,!0):(e=i.exp,e||(e=Ta("is",!1,i.loc))),e)return Aa(t.helper(Yc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=Xa(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(Xc),t.components.add(o),fu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Yc;let l,c,a,u,d,p=0,h=s||i===Bc||i===$c||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Md(e,t,void 0,r,s);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?Ia(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Qc),t.directives.add(e.name),n.push(fu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ta("true",!1,r);n.push(wa(e.modifiers.map((e=>Ea(e,t))),r))}return Ia(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0)if(i===jc&&(h=!0,p|=1024),r&&i!==Bc&&i!==jc){const{slots:n,hasDynamicSlots:o}=Dd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&i!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Zu(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let f=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],k=e=>{u.length&&(d.push(wa(Ld(u),c)),u=[]),e&&d.push(e)},I=()=>{t.scopes.vFor>0&&u.push(Ea(Ta("ref_for",!0),Ta("true")))},w=({key:e,value:n})=>{if(Ja(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Zu(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?Aa(t.helper(ia),d,c):d[0]):u.length&&(D=wa(Ld(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),f||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(au(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Md(e,t,r,!1,!1);n=o,i.length&&t.onError(Ka(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Aa(t.helper(na),s,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(Ka(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ta(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(O(e)):`on:${e}`,!0,s.loc)}else l=Da([`${n.helperString(ha)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(ha)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=nu(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Da([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||Ta("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ou(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(fa),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Wd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ka(41,e.loc)),zd();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(Ka(44,o.loc)),zd();if(!s.trim()||!nu(s))return n.onError(Ka(42,o.loc)),zd();const c=r||Ta("modelValue",!0),a=r?Ja(r)?`onUpdate:${O(r.content)}`:Da(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Da([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Qa(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ja(r)?`${r.content}Modifiers`:Da([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,Ta(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Kd=(e,t)=>{qa("COMPILER_FILTERS",t)&&(5===e.type?Jd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Jd(e.exp,t)})))};function Jd(e,t){if(4===e.type)Xd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===s?(f=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(f,i).trim()),f=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==f&&g(),m.length){for(i=0;i{if(1===e.type){const n=ou(e,"memo");if(!n||Qd.has(e))return;return Qd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Ma(o,t),e.codegenNode=Aa(t.helper(Sa),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function ep(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ka(47)):o&&n(Ka(48)),t.cacheHandlers&&n(Ka(49)),t.scopeId&&!o&&n(Ka(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Du.reset(),Su=null,_u=null,xu="",Cu=-1,ku=-1,Tu.length=0,bu=e,vu=a({},gu),t){let e;for(e in t)null!=t[e]&&(vu[e]=t[e])}Du.mode="html"===vu.parseMode?1:"sfc"===vu.parseMode?2:0,Du.inXML=1===vu.ns||2===vu.ns;const n=t&&t.delimiters;n&&(Du.delimiterOpen=Ha(n[0]),Du.delimiterClose=Ha(n[1]));const o=yu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ca}}(0,e);return Du.parse(bu),o.loc=Wu(0,e.length),o.children=ju(o.children),yu=null,o}(e,r):e,[s,l]=[[qd,gd,Zd,Cd,Kd,$d,Pd,Ed,Vd],{on:Hd,bind:Sd,model:Wd}];return rd(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Wc,zc,Gc,Kc,Jc].filter((e=>u.includes(e))).map(cd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ad(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?pd(e.codegenNode,n):r("null"),h&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol("");var dp;let pp;dp={[tp]:"vModelRadio",[np]:"vModelCheckbox",[op]:"vModelText",[rp]:"vModelSelect",[ip]:"vModelDynamic",[sp]:"withModifiers",[lp]:"withKeys",[cp]:"vShow",[ap]:"Transition",[up]:"TransitionGroup"},Object.getOwnPropertySymbols(dp).forEach((e=>{xa[e]=dp[e]}));const hp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return pp||(pp=document.createElement("div")),t?(pp.innerHTML=`
            `,pp.children[0].getAttribute("foo")):(pp.innerHTML=e,pp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ap:"TransitionGroup"===e||"transition-group"===e?up:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},fp=(e,t)=>{const n=X(e);return Ta(JSON.stringify(n),!1,t,3)};function mp(e,t){return Ka(e,t)}const gp=n("passive,once,capture"),vp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=n("left,right"),bp=n("onkeyup,onkeydown,onkeypress",!0),Sp=(e,t)=>Ja(e)&&"onclick"===e.content.toLowerCase()?Ta(t,!0):4!==e.type?Da(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,_p=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ta("style",!0,t.loc),exp:fp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(53,r)),t.children.length&&(n.onError(mp(54,r)),t.children.length=0),{props:[Ea(Ta("innerHTML",!0,r),o||Ta("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(55,r)),t.children.length&&(n.onError(mp(56,r)),t.children.length=0),{props:[Ea(Ta("textContent",!0),o?Zu(o,n)>0?o:Aa(n.helperString(ra),[o],r):Ta("",!0))]}},model:(e,t,n)=>{const o=Wd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(mp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=op,l=!1;if("input"===r||i){const o=ru(t,"type");if(o){if(7===o.type)s=ip;else if(o.value)switch(o.value.content){case"radio":s=tp;break;case"checkbox":s=np;break;case"file":l=!0,n.onError(mp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=ip)}else"select"===r&&(s=rp);l||(o.needRuntime=n.helper(s))}else n.onError(mp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],i=[];for(let s=0;s{const{exp:o,loc:r}=e;return o||n.onError(mp(61,r)),{props:[],needRuntime:n.helper(cp)}}},kp=new WeakMap;Ps((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=kp.get(null!=e?e:o);return t||(t=Object.create(null),kp.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return ep(e,a({},hp,t,{nodeTransforms:[_p,...xp,...t.nodeTransforms||[]],directiveTransforms:a({},Cp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const Ip={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Hs((function(){return e.iconList})),appIsGettingData:Hs((function(){return e.appIsGettingData})),appIsPublishing:Hs((function(){return e.appIsPublishing})),isEditingMode:Hs((function(){return e.isEditingMode})),designData:Hs((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Hs((function(){return e.showFormDialog})),dialogTitle:Hs((function(){return e.dialogTitle})),dialogFormContent:Hs((function(){return e.dialogFormContent})),dialogButtonText:Hs((function(){return e.dialogButtonText})),formSaveFunction:Hs((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},wp="undefined"!=typeof document;const Ep=Object.assign;function Tp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ap(r)?r.map(e):e(r)}return n}const Dp=()=>{},Ap=Array.isArray,Op=/#/g,Np=/&/g,Rp=/\//g,Pp=/=/g,Mp=/\?/g,Lp=/\+/g,Fp=/%5B/g,Bp=/%5D/g,$p=/%5E/g,jp=/%60/g,Hp=/%7B/g,Vp=/%7C/g,Up=/%7D/g,qp=/%20/g;function Wp(e){return encodeURI(""+e).replace(Vp,"|").replace(Fp,"[").replace(Bp,"]")}function zp(e){return Wp(e).replace(Lp,"%2B").replace(qp,"+").replace(Op,"%23").replace(Np,"%26").replace(jp,"`").replace(Hp,"{").replace(Up,"}").replace($p,"^")}function Gp(e){return null==e?"":function(e){return Wp(e).replace(Op,"%23").replace(Mp,"%3F")}(e).replace(Rp,"%2F")}function Kp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Jp=/\/$/,Xp=e=>e.replace(Jp,"");function Yp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Kp(s)}}function Qp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Zp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!th(e[n],t[n]))return!1;return!0}function th(e,t){return Ap(e)?nh(e,t):Ap(t)?nh(t,e):e===t}function nh(e,t){return Ap(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const oh={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rh,ih;!function(e){e.pop="pop",e.push="push"}(rh||(rh={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(ih||(ih={}));const sh=/^[^#]+#/;function lh(e,t){return e.replace(sh,"#")+t}const ch=()=>({left:window.scrollX,top:window.scrollY});function ah(e,t){return(history.state?history.state.position-t:-1)+e}const uh=new Map;let dh=()=>location.protocol+"//"+location.host;function ph(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Qp(n,"")}return Qp(n,e)+o+r}function hh(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ch():null}}function fh(e){return"string"==typeof e||"symbol"==typeof e}const mh=Symbol("");var gh;function vh(e,t){return Ep(new Error,{type:e,[mh]:!0},t)}function yh(e,t){return e instanceof Error&&mh in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(gh||(gh={}));const bh="[^/]+?",Sh={sensitive:!1,strict:!1,start:!0,end:!0},_h=/[.+*?^${}()[\]/\\]/g;function xh(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Ch(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Ih={type:0,value:""},wh=/[a-zA-Z0-9_]/;function Eh(e,t,n){const o=function(e,t){const n=Ep({},Sh,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;cEp(e,t.meta)),{})}function Nh(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Rh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ph(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&zp(e))):[o&&zp(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Lh(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ap(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Fh=Symbol(""),Bh=Symbol(""),$h=Symbol(""),jh=Symbol(""),Hh=Symbol("");function Vh(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Uh(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(vh(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(vh(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function qh(e,t,n,o,r=e=>e()){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push(Uh(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&Uh(a,n,o,l,e,r)()}))))}}var s;return i}function Wh(e){const t=xr($h),n=xr(jh),o=Hs((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Hs((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Zp.bind(null,r));if(s>-1)return s;const l=Gh(e[t-2]);return t>1&&Gh(r)===l&&i[i.length-1].path!==l?i.findIndex(Zp.bind(null,e[t-2])):s})),i=Hs((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ap(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Hs((()=>r.value>-1&&r.value===n.matched.length-1&&eh(n.params,o.value.params)));return{route:o,href:Hs((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Dp):Promise.resolve()}}}const zh=to({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Wh,setup(e,{slots:t}){const n=It(Wh(e)),{options:o}=xr($h),r=Hs((()=>({[Kh(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Kh(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Gh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kh=(e,t,n)=>null!=e?e:null!=t?t:n;function Jh(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Xh=to({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=xr(Hh),r=Hs((()=>e.route||o.value)),i=xr(Bh,0),s=Hs((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Hs((()=>r.value.matched[s.value]));_r(Bh,Hs((()=>s.value+1))),_r(Fh,l),_r(Hh,r);const c=Vt();return bi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Zp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return Jh(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Vs(a,Ep({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return Jh(n.default,{Component:p,route:o})||p}}}),Yh={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
            \n

            {{ menuItem.title }}

            \n
            {{ menuItem.subtitle }}
            \n
            \n
            '};function Qh(e){return Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qh(e)}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ef(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
            \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:sf(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=sf(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

            '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var h=!1;for(var f in t.getQuery().terms)if("stepID"==t.getQuery().terms[f].id&&"="==t.getQuery().terms[f].operator&&"deleted"==t.getQuery().terms[f].match){h=!0;break}return h||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

            Searching for records...

            ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n \n
            '};function af(e){return af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},af(e)}function uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function df(e,t,n){return(t=function(e){var t=function(e){if("object"!=af(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=af(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==af(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pf,hf=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Hs((function(){return e.menuItem})),menuDirection:Hs((function(){return e.menuDirection})),menuItemList:Hs((function(){return e.menuItemList})),chosenHeaders:Hs((function(){return e.chosenHeaders})),menuIsUpdating:Hs((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close");var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minHeight=200+this.elBody.clientHeight+"px",this.elBackground.style.minWidth=e+"px",this.makeDraggable(this.elModal),window.addEventListener("resize",this.checkSizes);var t=document.activeElement;null===(null!==t?t.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus()},beforeUnmount:function(){window.removeEventListener("resize",this.checkSizes),null!==this.lastFocus&&this.lastFocus.focus()},methods:{checkSizes:function(){var e=this.elModal.clientWidth>this.elBody.clientWidth?this.elModal.clientWidth:this.elBody.clientWidth;this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n
            \n \n
            \n
            '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Yh},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
            \n

            Card Preview

            \n
            \n \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n Icon Selections\n
            \n \n
            \n
            \n
            '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Yh},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return ef({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(ef({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
            \n
            \n

            Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

            \n
            \n \n
            \n \n \n \n
            \n
            '},CustomSearch:cf},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

            Menu Editor

            "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
            \n Loading... \n \n
            \n
            \n

            \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

            \n

            This page is {{ enabled ? \'\' : \'not\'}} enabled

            \n \n
            TODO banner section
            \n
            \n \n \n
            \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
            '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
            \n Loading... \n \n
            \n

            Test View

            '}}],ff=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Nh(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ep({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=Eh(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Ah(d)&&i(e.name)),Rh(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:Dp}function i(e){if(fh(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;Ch(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Rh(t)&&0===Ch(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Ah(e)&&o.set(e.record.name,e)}return t=Nh({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw vh(1,{location:e});s=r.record.name,l=Ep(Th(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Th(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw vh(1,{location:e,currentLocation:t});s=r.record.name,l=Ep({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Oh(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Ph,o=e.stringifyQuery||Mh,r=e.history,i=Vh(),s=Vh(),l=Vh(),c=Ut(oh);let a=oh;wp&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Tp.bind(null,(e=>""+e)),d=Tp.bind(null,Gp),p=Tp.bind(null,Kp);function h(e,i){if(i=Ep({},i||c.value),"string"==typeof e){const o=Yp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return Ep(o,s,{params:p(s.params),hash:Kp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=Ep({},e,{path:Yp(n,e.path,i.path).path});else{const t=Ep({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ep({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const h=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ep({},e,{hash:(f=a,Wp(f).replace(Hp,"{").replace(Up,"}").replace($p,"^")),path:l.path}));var f;const m=r.createHref(h);return Ep({fullPath:h,hash:a,query:o===Mh?Lh(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?Yp(n,e,c.value.path):Ep({},e)}function m(e,t){if(a!==e)return vh(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),Ep({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=h(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(Ep(f(u),{state:"object"==typeof u?Ep({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Zp(t.matched[o],n.matched[r])&&eh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=vh(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>yh(e)?yh(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(yh(e,2))return y(Ep({replace:l},f(e.to),{state:"object"==typeof e.to?Ep({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Zp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=qh(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(Uh(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),M(n).then((()=>{n=[];for(const o of i.list())n.push(Uh(o,e,t));return n.push(c),M(n)})).then((()=>{n=qh(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(Uh(o,e,t))}));return n.push(c),M(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ap(o.beforeEnter))for(const r of o.beforeEnter)n.push(Uh(r,e,t));else n.push(Uh(o.beforeEnter,e,t));return n.push(c),M(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=qh(l,"beforeRouteEnter",e,t,S),n.push(c),M(n)))).then((()=>{n=[];for(const o of s.list())n.push(Uh(o,e,t));return n.push(c),M(n)})).catch((e=>yh(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===oh,a=wp?history.state:{};n&&(o||l?r.replace(e.fullPath,Ep({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let k;let I,w=Vh(),E=Vh();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return I||(I=!e,k||(k=r.listen(((e,t,n)=>{if(!P.listening)return;const o=h(e),i=v(o);if(i)return void y(Ep(i,{replace:!0}),o).catch(Dp);a=o;const s=c.value;var l,u;wp&&(l=ah(s.fullPath,n.delta),u=ch(),uh.set(l,u)),_(o,s).catch((e=>yh(e,12)?e:yh(e,2)?(y(e.to,o).then((e=>{yh(e,20)&&!n.delta&&n.type===rh.pop&&r.go(-1,!1)})).catch(Dp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!yh(e,8)?r.go(-n.delta,!1):n.type===rh.pop&&yh(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Dp)}))),w.list().forEach((([t,n])=>e?n(e):t())),w.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!wp||!i)return Promise.resolve();const s=!o&&function(e){const t=uh.get(e);return uh.delete(e),t}(ah(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return fh(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:g,replace:function(e){return g(Ep(f(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return I&&c.value!==oh?Promise.resolve():new Promise(((e,t)=>{w.add([e,t])}))},install(e){e.component("RouterLink",zh),e.component("RouterView",Xh),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),wp&&!N&&c.value===oh&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in oh)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide($h,this),e.provide(jh,wt(t)),e.provide(Hh,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=oh,k&&k(),k=null,c.value=oh,N=!1,I=!1),n()}}};function M(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((pf=location.host?pf||location.pathname+location.search:"").includes("#")||(pf+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ph(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:dh()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ep({},r.value,t.state,{forward:e,scroll:ch()});i(s.current,s,!0),i(e,Ep({},hh(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ep({},t.state,hh(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(wp){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ph(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:rh.pop,direction:u?u>0?ih.forward:ih.back:ih.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Ep({},e.state,{scroll:ch()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=Ep({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:lh.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(pf)),routes:hf});const mf=ff;var gf=Oc(Ip);gf.use(mf),gf.mount("#site-designer-app")})(); \ No newline at end of file +(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}e.r(t),e.d(t,{BaseTransition:()=>Kn,BaseTransitionPropsValidators:()=>zn,Comment:()=>qi,DeprecationTypes:()=>el,EffectScope:()=>fe,ErrorCodes:()=>cn,ErrorTypeStrings:()=>Ks,Fragment:()=>Vi,KeepAlive:()=>so,ReactiveEffect:()=>ye,Static:()=>Wi,Suspense:()=>Li,Teleport:()=>Xr,Text:()=>Ui,TrackOpTypes:()=>rn,Transition:()=>ll,TransitionGroup:()=>ec,TriggerOpTypes:()=>sn,VueElement:()=>Kl,assertNumber:()=>ln,callWithAsyncErrorHandling:()=>un,callWithErrorHandling:()=>an,camelize:()=>O,capitalize:()=>P,cloneVNode:()=>us,compatUtils:()=>Zs,computed:()=>Hs,createApp:()=>Oc,createBlock:()=>ts,createCommentVNode:()=>fs,createElementBlock:()=>es,createElementVNode:()=>ls,createHydrationRenderer:()=>ii,createPropsRestProxy:()=>rr,createRenderer:()=>ri,createSSRApp:()=>Nc,createSlots:()=>Lo,createStaticVNode:()=>ps,createTextVNode:()=>ds,createVNode:()=>cs,customRef:()=>Qt,defineAsyncComponent:()=>oo,defineComponent:()=>to,defineCustomElement:()=>Wl,defineEmits:()=>zo,defineExpose:()=>Go,defineModel:()=>Xo,defineOptions:()=>Ko,defineProps:()=>Wo,defineSSRCustomElement:()=>zl,defineSlots:()=>Jo,devtools:()=>Js,effect:()=>Ce,effectScope:()=>he,getCurrentInstance:()=>Cs,getCurrentScope:()=>ge,getTransitionRawChildren:()=>eo,guardReactiveProps:()=>as,h:()=>Vs,handleError:()=>dn,hasInjectionContext:()=>Cr,hydrate:()=>Ac,initCustomFormatter:()=>Us,initDirectivesForSSR:()=>Lc,inject:()=>xr,isMemoSame:()=>Ws,isProxy:()=>Rt,isReactive:()=>At,isReadonly:()=>Ot,isRef:()=>Ht,isRuntimeOnly:()=>Ms,isShallow:()=>Nt,isVNode:()=>ns,markRaw:()=>Mt,mergeDefaults:()=>nr,mergeModels:()=>or,mergeProps:()=>vs,nextTick:()=>_n,normalizeClass:()=>Y,normalizeProps:()=>Q,normalizeStyle:()=>z,onActivated:()=>co,onBeforeMount:()=>vo,onBeforeUnmount:()=>_o,onBeforeUpdate:()=>bo,onDeactivated:()=>ao,onErrorCaptured:()=>ko,onMounted:()=>yo,onRenderTracked:()=>Io,onRenderTriggered:()=>wo,onScopeDispose:()=>ve,onServerPrefetch:()=>Co,onUnmounted:()=>xo,onUpdated:()=>So,openBlock:()=>Ki,popScopeId:()=>Fn,provide:()=>_r,proxyRefs:()=>Xt,pushScopeId:()=>Ln,queuePostFlushCb:()=>wn,reactive:()=>It,readonly:()=>Et,ref:()=>Vt,registerRuntimeCompiler:()=>Ps,render:()=>Dc,renderList:()=>Mo,renderSlot:()=>Fo,resolveComponent:()=>Do,resolveDirective:()=>No,resolveDynamicComponent:()=>Oo,resolveFilter:()=>Qs,resolveTransitionHooks:()=>Xn,setBlockTracking:()=>Qi,setDevtoolsHook:()=>Xs,setTransitionHooks:()=>Zn,shallowReactive:()=>kt,shallowReadonly:()=>Tt,shallowRef:()=>Ut,ssrContextKey:()=>fi,ssrUtils:()=>Ys,stop:()=>we,toDisplayString:()=>ce,toHandlerKey:()=>M,toHandlers:()=>$o,toRaw:()=>Pt,toRef:()=>nn,toRefs:()=>Zt,toValue:()=>Kt,transformVNodeArgs:()=>rs,triggerRef:()=>zt,unref:()=>Gt,useAttrs:()=>Zo,useCssModule:()=>Jl,useCssVars:()=>Tl,useModel:()=>wi,useSSRContext:()=>hi,useSlots:()=>Qo,useTransitionState:()=>qn,vModelCheckbox:()=>ac,vModelDynamic:()=>gc,vModelRadio:()=>dc,vModelSelect:()=>pc,vModelText:()=>cc,vShow:()=>Il,version:()=>zs,warn:()=>Gs,watch:()=>bi,watchEffect:()=>mi,watchPostEffect:()=>gi,watchSyncEffect:()=>vi,withAsyncContext:()=>ir,withCtx:()=>$n,withDefaults:()=>Yo,withDirectives:()=>jn,withKeys:()=>Cc,withMemo:()=>qs,withModifiers:()=>_c,withScopeId:()=>Bn});const o={},r=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),a=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),f=Array.isArray,h=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),v=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,_=e=>(S(e)||v(e))&&v(e.then)&&v(e.catch),x=Object.prototype.toString,C=e=>x.call(e),w=e=>C(e).slice(8,-1),I=e=>"[object Object]"===C(e),k=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,E=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,R=D((e=>e.replace(N,"-$1").toLowerCase())),P=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=D((e=>e?`on${P(e)}`:"")),L=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const U=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e.g?e.g:{}),q={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function z(e){if(f(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Y(e){let t="";if(y(e))t=e;else if(f(e))for(let n=0;nie(e,t)))}const le=e=>!(!e||!0!==e.__v_isRef),ce=e=>y(e)?e:null==e?"":f(e)||S(e)&&(e.toString===x||!v(e.toString))?le(e)?ce(e.value):JSON.stringify(e,ae,2):String(e),ae=(e,t)=>le(t)?ae(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ue(t,o)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ue(e)))}:b(t)?ue(t):!S(t)||f(t)||I(t)?t:String(t),ue=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let de,pe;class fe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!e&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=de;try{return de=this,e()}finally{de=t}}}on(){de=this}off(){de=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ie,t=pe;try{return Ie=!0,pe=this,this._runnings++,Se(this),this.fn()}finally{_e(this),this._runnings--,pe=t,Ie=e}}stop(){this.active&&(Se(this),_e(this),this.onStop&&this.onStop(),this.active=!1)}}function be(e){return e.value}function Se(e){e._trackId++,e._depsLength=0}function _e(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(a(n,t),t.scope&&me(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function we(e){e.effect.stop()}let Ie=!0,ke=0;const Ee=[];function Te(){Ee.push(Ie),Ie=!1}function De(){const e=Ee.pop();Ie=void 0===e||e}function Ae(){ke++}function Oe(){for(ke--;!ke&&Re.length;)Re.shift()()}function Ne(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&xe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Re=[];function Pe(e,t,n){Ae();for(const n of e.keys()){let o;n._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Le=new WeakMap,Fe=Symbol(""),Be=Symbol("");function $e(e,t,n){if(Ie&&pe){let t=Le.get(e);t||Le.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me((()=>t.delete(n)))),Ne(pe,o)}}function je(e,t,n,o,r,i){const s=Le.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&f(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":f(e)?k(n)&&l.push(s.get("length")):(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"delete":f(e)||(l.push(s.get(Fe)),h(e)&&l.push(s.get(Be)));break;case"set":h(e)&&l.push(s.get(Fe))}Ae();for(const e of l)e&&Pe(e,4);Oe()}const He=n("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Ue=qe();function qe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Pt(this);for(let e=0,t=this.length;e{e[t]=function(...e){Te(),Ae();const n=Pt(this)[t].apply(this,e);return Oe(),De(),n}})),e}function We(e){b(e)||(e=String(e));const t=Pt(this);return $e(t,0,e),t.hasOwnProperty(e)}class ze{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?wt:Ct:r?xt:_t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=f(e);if(!o){if(i&&p(Ue,t))return Reflect.get(Ue,t,n);if("hasOwnProperty"===t)return We}const s=Reflect.get(e,t,n);return(b(t)?Ve.has(t):He(t))?s:(o||$e(e,0,t),r?s:Ht(s)?i&&k(t)?s:s.value:S(s)?o?Et(s):It(s):s)}}class Ge extends ze{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=Ot(r);if(Nt(n)||Ot(n)||(r=Pt(r),n=Pt(n)),!f(e)&&Ht(r)&&!Ht(n))return!t&&(r.value=n,!0)}const i=f(e)&&k(t)?Number(t)e,et=e=>Reflect.getPrototypeOf(e);function tt(e,t,n=!1,o=!1){const r=Pt(e=e.__v_raw),i=Pt(t);n||(L(t,i)&&$e(r,0,t),$e(r,0,i));const{has:s}=et(r),l=o?Ze:n?Ft:Lt;return s.call(r,t)?l(e.get(t)):s.call(r,i)?l(e.get(i)):void(e!==r&&e.get(t))}function nt(e,t=!1){const n=this.__v_raw,o=Pt(n),r=Pt(e);return t||(L(e,r)&&$e(o,0,e),$e(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ot(e,t=!1){return e=e.__v_raw,!t&&$e(Pt(e),0,Fe),Reflect.get(e,"size",e)}function rt(e,t=!1){t||Nt(e)||Ot(e)||(e=Pt(e));const n=Pt(this);return et(n).has.call(n,e)||(n.add(e),je(n,"add",e,e)),this}function it(e,t,n=!1){n||Nt(t)||Ot(t)||(t=Pt(t));const o=Pt(this),{has:r,get:i}=et(o);let s=r.call(o,e);s||(e=Pt(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?L(t,l)&&je(o,"set",e,t):je(o,"add",e,t),this}function st(e){const t=Pt(this),{has:n,get:o}=et(t);let r=n.call(t,e);r||(e=Pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&je(t,"delete",e,void 0),i}function lt(){const e=Pt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ct(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Pt(i),l=t?Ze:e?Ft:Lt;return!e&&$e(s,0,Fe),i.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function at(e,t,n){return function(...o){const r=this.__v_raw,i=Pt(r),s=h(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,a=r[e](...o),u=n?Ze:t?Ft:Lt;return!t&&$e(i,0,c?Be:Fe),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function dt(){const e={get(e){return tt(this,e)},get size(){return ot(this)},has:nt,add:rt,set:it,delete:st,clear:lt,forEach:ct(!1,!1)},t={get(e){return tt(this,e,!1,!0)},get size(){return ot(this)},has:nt,add(e){return rt.call(this,e,!0)},set(e,t){return it.call(this,e,t,!0)},delete:st,clear:lt,forEach:ct(!1,!0)},n={get(e){return tt(this,e,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!1)},o={get(e){return tt(this,e,!0,!0)},get size(){return ot(this,!0)},has(e){return nt.call(this,e,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=at(r,!1,!1),n[r]=at(r,!0,!1),t[r]=at(r,!1,!0),o[r]=at(r,!0,!0)})),[e,n,t,o]}const[pt,ft,ht,mt]=dt();function gt(e,t){const n=t?e?mt:ht:e?ft:pt;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const vt={get:gt(!1,!1)},yt={get:gt(!1,!0)},bt={get:gt(!0,!1)},St={get:gt(!0,!0)},_t=new WeakMap,xt=new WeakMap,Ct=new WeakMap,wt=new WeakMap;function It(e){return Ot(e)?e:Dt(e,!1,Je,vt,_t)}function kt(e){return Dt(e,!1,Ye,yt,xt)}function Et(e){return Dt(e,!0,Xe,bt,Ct)}function Tt(e){return Dt(e,!0,Qe,St,wt)}function Dt(e,t,n,o,r){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return r.set(e,c),c}function At(e){return Ot(e)?At(e.__v_raw):!(!e||!e.__v_isReactive)}function Ot(e){return!(!e||!e.__v_isReadonly)}function Nt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return!!e&&!!e.__v_raw}function Pt(e){const t=e&&e.__v_raw;return t?Pt(t):e}function Mt(e){return Object.isExtensible(e)&&B(e,"__v_skip",!0),e}const Lt=e=>S(e)?It(e):e,Ft=e=>S(e)?Et(e):e;class Bt{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ye((()=>e(this._value)),(()=>jt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Pt(this);return e._cacheable&&!e.effect.dirty||!L(e._value,e._value=e.effect.run())||jt(e,4),$t(e),e.effect._dirtyLevel>=2&&jt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function $t(e){var t;Ie&&pe&&(e=Pt(e),Ne(pe,null!=(t=e.dep)?t:e.dep=Me((()=>e.dep=void 0),e instanceof Bt?e:void 0)))}function jt(e,t=4,n,o){const r=(e=Pt(e)).dep;r&&Pe(r,t)}function Ht(e){return!(!e||!0!==e.__v_isRef)}function Vt(e){return qt(e,!1)}function Ut(e){return qt(e,!0)}function qt(e,t){return Ht(e)?e:new Wt(e,t)}class Wt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pt(e),this._value=t?e:Lt(e)}get value(){return $t(this),this._value}set value(e){const t=this.__v_isShallow||Nt(e)||Ot(e);e=t?e:Pt(e),L(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:Lt(e),jt(this,4))}}function zt(e){jt(e,4)}function Gt(e){return Ht(e)?e.value:e}function Kt(e){return v(e)?e():Gt(e)}const Jt={get:(e,t,n)=>Gt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ht(r)&&!Ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xt(e){return At(e)?e:new Proxy(e,Jt)}class Yt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>$t(this)),(()=>jt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Qt(e){return new Yt(e)}function Zt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=on(e,n);return t}class en{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Le.get(e);return n&&n.get(t)}(Pt(this._object),this._key)}}class tn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return Ht(e)?e:v(e)?new tn(e):S(e)&&arguments.length>1?on(e,t,n):Vt(e)}function on(e,t,n){const o=e[t];return Ht(o)?o:new en(e,t,n)}const rn={GET:"get",HAS:"has",ITERATE:"iterate"},sn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function ln(e,t){}const cn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"};function an(e,t,n,o){try{return o?e(...o):e()}catch(e){dn(e,t,n)}}function un(e,t,n,o){if(v(e)){const r=an(e,t,n,o);return r&&_(r)&&r.catch((e=>{dn(e,t,n)})),r}if(f(e)){const r=[];for(let i=0;i>>1,r=hn[o],i=En(r);iEn(e)-En(t)));if(gn.length=0,vn)return void vn.push(...e);for(vn=e,yn=0;ynnull==e.id?1/0:e.id,Tn=(e,t)=>{const n=En(e)-En(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Dn(e){fn=!1,pn=!0,hn.sort(Tn);try{for(mn=0;mn$n;function $n(e,t=Rn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Qi(-1);const r=Mn(t);let i;try{i=e(...n)}finally{Mn(r),o._d&&Qi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function jn(e,t){if(null===Rn)return e;const n=$s(Rn),r=e.dirs||(e.dirs=[]);for(let e=0;e{e.isMounted=!0})),_o((()=>{e.isUnmounting=!0})),e}const Wn=[Function,Array],zn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wn,onEnter:Wn,onAfterEnter:Wn,onEnterCancelled:Wn,onBeforeLeave:Wn,onLeave:Wn,onAfterLeave:Wn,onLeaveCancelled:Wn,onBeforeAppear:Wn,onAppear:Wn,onAfterAppear:Wn,onAppearCancelled:Wn},Gn=e=>{const t=e.subTree;return t.component?Gn(t.component):t},Kn={name:"BaseTransition",props:zn,setup(e,{slots:t}){const n=Cs(),o=qn();return()=>{const r=t.default&&eo(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){let e=!1;for(const t of r)if(t.type!==qi){i=t,e=!0;break}}const s=Pt(e),{mode:l}=s;if(o.isLeaving)return Yn(i);const c=Qn(i);if(!c)return Yn(i);let a=Xn(c,s,o,n,(e=>a=e));Zn(c,a);const u=n.subTree,d=u&&Qn(u);if(d&&d.type!==qi&&!os(c,d)&&Gn(n).type!==qi){const e=Xn(d,s,o,n);if(Zn(d,e),"out-in"===l&&c.type!==qi)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Yn(i);"in-out"===l&&c.type!==qi&&(e.delayLeave=(e,t,n)=>{Jn(o,d)[String(d.key)]=d,e[Vn]=()=>{t(),e[Vn]=void 0,delete a.delayedLeave},a.delayedLeave=n})}return i}}};function Jn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xn(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,_=String(e.key),x=Jn(n,e),C=(e,t)=>{e&&un(e,o,9,t)},w=(e,t)=>{const n=t[1];C(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},I={mode:s,persisted:l,beforeEnter(t){let o=c;if(!n.isMounted){if(!i)return;o=v||c}t[Vn]&&t[Vn](!0);const r=x[_];r&&os(e,r)&&r.el[Vn]&&r.el[Vn](),C(o,[t])},enter(e){let t=a,o=u,r=d;if(!n.isMounted){if(!i)return;t=y||a,o=b||u,r=S||d}let s=!1;const l=e[Un]=t=>{s||(s=!0,C(t?r:o,[e]),I.delayedLeave&&I.delayedLeave(),e[Un]=void 0)};t?w(t,[e,l]):l()},leave(t,o){const r=String(e.key);if(t[Un]&&t[Un](!0),n.isUnmounting)return o();C(p,[t]);let i=!1;const s=t[Vn]=n=>{i||(i=!0,o(),C(n?g:m,[t]),t[Vn]=void 0,x[r]===e&&delete x[r])};x[r]=e,h?w(h,[t,s]):s()},clone(e){const i=Xn(e,t,n,o,r);return r&&r(i),i}};return I}function Yn(e){if(io(e))return(e=us(e)).children=null,e}function Qn(e){if(!io(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&v(n.default))return n.default()}}function Zn(e,t){6&e.shapeFlag&&e.component?Zn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eo(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let e=0;ea({name:e.name},t,{setup:e}))():e}const no=e=>!!e.type.__asyncLoader;function oo(e){v(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:s=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return to({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=xs;if(c)return()=>ro(c,e);const t=t=>{a=null,dn(t,e,13,!o)};if(s&&e.suspense||Os)return d().then((t=>()=>ro(t,e))).catch((e=>(t(e),()=>o?cs(o,{error:e}):null)));const l=Vt(!1),u=Vt(),p=Vt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=i&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),u.value=e}}),i),d().then((()=>{l.value=!0,e.parent&&io(e.parent.vnode)&&(e.parent.effect.dirty=!0,xn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?ro(c,e):u.value&&o?cs(o,{error:u.value}):n&&!p.value?cs(n):void 0}})}function ro(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,s=cs(e,o,r);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const io=e=>e.type.__isKeepAlive,so={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Cs(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,i=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=o,p=d("div");function f(e){fo(e),u(e,n,l,!0)}function h(e){r.forEach(((t,n)=>{const o=js(t.type);!o||e&&e(o)||m(n)}))}function m(e){const t=r.get(e);s&&os(t,s)?s&&fo(s):f(t),r.delete(e),i.delete(e)}o.activate=(e,t,n,o,r)=>{const i=e.component;a(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,r),oi((()=>{i.isDeactivated=!1,i.a&&F(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ys(t,i.parent,e)}),l)},o.deactivate=e=>{const t=e.component;pi(t.m),pi(t.a),a(e,p,null,1,l),oi((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ys(n,t.parent,e),t.isDeactivated=!0}),l)},bi((()=>[e.include,e.exclude]),(([e,t])=>{e&&h((t=>lo(e,t))),t&&h((e=>!lo(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(Pi(n.subTree.type)?oi((()=>{r.set(g,ho(n.subTree))}),n.subTree.suspense):r.set(g,ho(n.subTree)))};return yo(v),So(v),_o((()=>{r.forEach((e=>{const{subTree:t,suspense:o}=n,r=ho(t);if(e.type!==r.type||e.key!==r.key)f(e);else{fo(r);const e=r.component.da;e&&oi(e,o)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ns(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let l=ho(o);const c=l.type,a=js(no(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!lo(u,a))||d&&a&&lo(d,a))return s=l,o;const f=null==l.key?c:l.key,h=r.get(f);return l.el&&(l=us(l),128&o.shapeFlag&&(o.ssContent=l)),g=f,h?(l.el=h.el,l.component=h.component,l.transition&&Zn(l,l.transition),l.shapeFlag|=512,i.delete(f),i.add(f)):(i.add(f),p&&i.size>parseInt(p,10)&&m(i.values().next().value)),l.shapeFlag|=256,s=l,Pi(o.type)?o:l}}};function lo(e,t){return f(e)?e.some((e=>lo(e,t))):y(e)?e.split(",").includes(t):"[object RegExp]"===C(e)&&e.test(t)}function co(e,t){uo(e,"a",t)}function ao(e,t){uo(e,"da",t)}function uo(e,t,n=xs){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(mo(t,o,n),n){let e=n.parent;for(;e&&e.parent;)io(e.parent.vnode)&&po(o,t,n,e),e=e.parent}}function po(e,t,n,o){const r=mo(t,e,o,!0);xo((()=>{u(o[t],r)}),n)}function fo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ho(e){return 128&e.shapeFlag?e.ssContent:e}function mo(e,t,n=xs,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Te();const r=ks(n),i=un(t,n,e,o);return r(),De(),i});return o?r.unshift(i):r.push(i),i}}const go=e=>(t,n=xs)=>{Os&&"sp"!==e||mo(e,((...e)=>t(...e)),n)},vo=go("bm"),yo=go("m"),bo=go("bu"),So=go("u"),_o=go("bum"),xo=go("um"),Co=go("sp"),wo=go("rtg"),Io=go("rtc");function ko(e,t=xs){mo("ec",e,t)}const Eo="components",To="directives";function Do(e,t){return Ro(Eo,e,!0,t)||e}const Ao=Symbol.for("v-ndc");function Oo(e){return y(e)?Ro(Eo,e,!1)||e:e||Ao}function No(e){return Ro(To,e)}function Ro(e,t,n=!0,o=!1){const r=Rn||xs;if(r){const n=r.type;if(e===Eo){const e=js(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Po(r[e]||n[e],t)||Po(r.appContext[e],t);return!i&&o?n:i}}function Po(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Mo(e,t,n,o){let r;const i=n&&n[o];if(f(e)||y(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Fo(e,t,n={},o,r){if(Rn.isCE||Rn.parent&&no(Rn.parent)&&Rn.parent.isCE)return"default"!==t&&(n.name=t),cs("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ki();const s=i&&Bo(i(n)),l=ts(Vi,{key:(n.key||s&&s.key||`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Bo(e){return e.some((e=>!ns(e)||e.type!==qi&&!(e.type===Vi&&!Bo(e.children))))?e:null}function $o(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const jo=e=>e?Ts(e)?$s(e):jo(e.parent):null,Ho=a(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>jo(e.parent),$root:e=>jo(e.root),$emit:e=>e.emit,$options:e=>ar(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xn(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>_i.bind(e)}),Vo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),Uo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:c,appContext:a}=e;let u;if("$"!==t[0]){const c=l[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Vo(r,t))return l[t]=1,r[t];if(i!==o&&p(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return l[t]=3,s[t];if(n!==o&&p(n,t))return l[t]=4,n[t];sr&&(l[t]=0)}}const d=Ho[t];let f,h;return d?("$attrs"===t&&$e(e.attrs,0,""),d(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==o&&p(n,t)?(l[t]=4,n[t]):(h=a.config.globalProperties,p(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Vo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let c;return!!n[l]||e!==o&&p(e,l)||Vo(t,l)||(c=s[0])&&p(c,l)||p(r,l)||p(Ho,l)||p(i.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},qo=a({},Uo,{get(e,t){if(t!==Symbol.unscopables)return Uo.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!W(t)});function Wo(){return null}function zo(){return null}function Go(e){}function Ko(e){}function Jo(){return null}function Xo(){}function Yo(e,t){return null}function Qo(){return er().slots}function Zo(){return er().attrs}function er(){const e=Cs();return e.setupContext||(e.setupContext=Bs(e))}function tr(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function nr(e,t){const n=tr(e);for(const e in t){if(e.startsWith("__skip"))continue;let o=n[e];o?f(o)||v(o)?o=n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(o=n[e]={default:t[e]}),o&&t[`__skip_${e}`]&&(o.skipFactory=!0)}return n}function or(e,t){return e&&t?f(e)&&f(t)?e.concat(t):a({},tr(e),tr(t)):e||t}function rr(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ir(e){const t=Cs();let n=e();return Es(),_(n)&&(n=n.catch((e=>{throw ks(t),e}))),[n,()=>ks(t)]}let sr=!0;function lr(e,t,n){un(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function cr(e,t,n,o){const r=o.includes(".")?xi(n,o):()=>n[o];if(y(e)){const n=t[e];v(n)&&bi(r,n)}else if(v(e))bi(r,e.bind(n));else if(S(e))if(f(e))e.forEach((e=>cr(e,t,n,o)));else{const o=v(e.handler)?e.handler.bind(n):t[e.handler];v(o)&&bi(r,o,e)}}function ar(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;return l?c=l:r.length||n||o?(c={},r.length&&r.forEach((e=>ur(c,e,s,!0))),ur(c,t,s)):c=t,S(t)&&i.set(t,c),c}function ur(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ur(e,i,n,!0),r&&r.forEach((t=>ur(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=dr[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const dr={data:pr,props:gr,emits:gr,methods:mr,computed:mr,beforeCreate:hr,created:hr,beforeMount:hr,mounted:hr,beforeUpdate:hr,updated:hr,beforeDestroy:hr,beforeUnmount:hr,destroyed:hr,unmounted:hr,activated:hr,deactivated:hr,errorCaptured:hr,serverPrefetch:hr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const o in t)n[o]=hr(e[o],t[o]);return n},provide:pr,inject:function(e,t){return mr(fr(e),fr(t))}};function pr(e,t){return t?e?function(){return a(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function fr(e){if(f(e)){const t={};for(let n=0;n(i.has(e)||(e&&v(e.install)?(i.add(e),e.install(l,...t)):v(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),l),component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(i,c,a){if(!s){const u=cs(n,o);return u.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),c&&t?t(u,i):e(u,i,a),s=!0,l._container=i,i.__vue_app__=l,$s(u.component)}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l),runWithContext(e){const t=Sr;Sr=l;try{return e()}finally{Sr=t}}};return l}}let Sr=null;function _r(e,t){if(xs){let n=xs.provides;const o=xs.parent&&xs.parent.provides;o===n&&(n=xs.provides=Object.create(o)),n[e]=t}}function xr(e,t,n=!1){const o=xs||Rn;if(o||Sr){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Sr._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&v(t)?t.call(o&&o.proxy):t}}function Cr(){return!!(xs||Rn||Sr)}const wr={},Ir=()=>Object.create(wr),kr=e=>Object.getPrototypeOf(e)===wr;function Er(e,t,n,r){const[i,s]=e.propsOptions;let l,c=!1;if(t)for(let o in t){if(E(o))continue;const a=t[o];let u;i&&p(i,u=O(o))?s&&s.includes(u)?(l||(l={}))[u]=a:n[u]=a:Ti(e.emitsOptions,o)||o in r&&a===r[o]||(r[o]=a,c=!0)}if(s){const t=Pt(n),r=l||o;for(let o=0;o{d=!0;const[n,o]=Ar(e,t,!0);a(c,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!l&&!d)return S(e)&&i.set(e,r),r;if(f(l))for(let e=0;e-1,o[1]=n<0||e-1||p(o,"default"))&&u.push(t)}}}const h=[c,u];return S(e)&&i.set(e,h),h}function Or(e){return"$"!==e[0]&&!E(e)}function Nr(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function Rr(e,t){return Nr(e)===Nr(t)}function Pr(e,t){return f(t)?t.findIndex((t=>Rr(t,e))):v(t)&&Rr(t,e)?0:-1}const Mr=e=>"_"===e[0]||"$stable"===e,Lr=e=>f(e)?e.map(hs):[hs(e)],Fr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>Lr(t(...e))),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const n in e){if(Mr(n))continue;const r=e[n];if(v(r))t[n]=Fr(0,r,o);else if(null!=r){const e=Lr(r);t[n]=()=>e}}},$r=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},jr=(e,t,n)=>{for(const o in t)(n||"_"!==o)&&(e[o]=t[o])},Hr=(e,t,n)=>{const o=e.slots=Ir();if(32&e.vnode.shapeFlag){const e=t._;e?(jr(o,t,n),n&&B(o,"_",e,!0)):Br(t,o)}else t&&$r(e,t)},Vr=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:jr(i,t,n):(s=!t.$stable,Br(t,i)),l=t}else t&&($r(e,t),l={default:1});if(s)for(const e in i)Mr(e)||null!=l[e]||delete i[e]};function Ur(e,t,n,r,i=!1){if(f(e))return void e.forEach(((e,o)=>Ur(e,t&&(f(t)?t[o]:t),n,r,i)));if(no(r)&&!i)return;const s=4&r.shapeFlag?$s(r.component):r.el,l=i?null:s,{i:c,r:a}=e,d=t&&t.r,h=c.refs===o?c.refs={}:c.refs,m=c.setupState;if(null!=d&&d!==a&&(y(d)?(h[d]=null,p(m,d)&&(m[d]=null)):Ht(d)&&(d.value=null)),v(a))an(a,c,12,[l,h]);else{const t=y(a),o=Ht(a);if(t||o){const r=()=>{if(e.f){const n=t?p(m,a)?m[a]:h[a]:a.value;i?f(n)&&u(n,s):f(n)?n.includes(s)||n.push(s):t?(h[a]=[s],p(m,a)&&(m[a]=h[a])):(a.value=[s],e.k&&(h[e.k]=a.value))}else t?(h[a]=l,p(m,a)&&(m[a]=l)):o&&(a.value=l,e.k&&(h[e.k]=l))};l?(r.id=-1,oi(r,n)):r()}}}const qr=Symbol("_vte"),Wr=e=>e&&(e.disabled||""===e.disabled),zr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Kr=(e,t)=>{const n=e&&e.to;return y(n)?t?t(n):null:n};function Jr(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:c,children:a,props:u}=e,d=2===i;if(d&&o(s,t,n),(!d||Wr(u))&&16&c)for(let e=0;e{16&y&&u(b,e,t,r,i,s,l,c)};v?S(n,a):d&&S(d,g)}else{t.el=e.el,t.targetStart=e.targetStart;const o=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=Wr(e.props),g=m?n:u,y=m?o:f;if("svg"===s||zr(u)?s="svg":("mathml"===s||Gr(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,r,i,s,l),ui(e,t,!0)):c||d(e,t,g,y,r,i,s,l,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jr(t,n,o,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Kr(t.props,h);e&&Jr(t,e,null,a,0)}else m&&Jr(t,u,f,a,1)}Yr(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:c,targetStart:a,targetAnchor:u,target:d,props:p}=e;if(d&&(r(a),r(u)),i&&r(c),16&s){const e=i||!Wr(p);for(let r=0;r{Qr||(console.error("Hydration completed but contains mismatches."),Qr=!0)},ei=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ti=e=>8===e.nodeType;function ni(e){const{mt:t,p:n,o:{patchProp:o,createText:r,nextSibling:i,parentNode:s,remove:c,insert:a,createComment:u}}=e,d=(n,o,l,c,u,b=!1)=>{b=b||!!o.dynamicChildren;const S=ti(n)&&"["===n.data,_=()=>m(n,o,l,c,u,S),{type:x,ref:C,shapeFlag:w,patchFlag:I}=o;let k=n.nodeType;o.el=n,-2===I&&(b=!1,o.dynamicChildren=null);let E=null;switch(x){case Ui:3!==k?""===o.children?(a(o.el=r(""),s(n),n),E=n):E=_():(n.data!==o.children&&(Zr(),n.data=o.children),E=i(n));break;case qi:y(n)?(E=i(n),v(o.el=n.content.firstChild,n,l)):E=8!==k||S?_():i(n);break;case Wi:if(S&&(k=(n=i(n)).nodeType),1===k||3===k){E=n;const e=!o.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:a,props:u,patchFlag:d,shapeFlag:p,dirs:h,transition:m}=t,g="input"===a||"option"===a;if(g||-1!==d){h&&Hn(t,null,n,"created");let a,b=!1;if(y(e)){b=ai(r,m)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;b&&m.beforeEnter(o),v(o,e,n),t.el=e=o}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let o=f(e.firstChild,t,e,n,r,i,s);for(;o;){Zr();const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Zr(),e.textContent=t.children);if(u)if(g||!s||48&d)for(const t in u)(g&&(t.endsWith("value")||"indeterminate"===t)||l(t)&&!E(t)||"."===t[0])&&o(e,t,null,u[t],void 0,n);else if(u.onClick)o(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&At(u.style))for(const e in u.style)u.style[e];(a=u&&u.onVnodeBeforeMount)&&ys(a,n,t),h&&Hn(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||h||b)&&ji((()=>{a&&ys(a,n,t),b&&m.enter(e),h&&Hn(t,null,n,"mounted")}),r)}return e.nextSibling},f=(e,t,o,s,l,c,u)=>{u=u||!!t.dynamicChildren;const p=t.children,f=p.length;for(let t=0;t{const{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);const d=s(e),p=f(i(e),t,d,n,o,r,l);return p&&ti(p)&&"]"===p.data?i(t.anchor=p):(Zr(),a(t.anchor=u("]"),d,p),p)},m=(e,t,o,r,l,a)=>{if(Zr(),t.el=null,a){const t=g(e);for(;;){const n=i(e);if(!n||n===t)break;c(n)}}const u=i(e),d=s(e);return c(e),n(null,t,d,u,o,r,ei(d),l),u},g=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=i(e))&&ti(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return i(e);o--}return e},v=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),kn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),kn(),t._vnode=e},d]}const oi=ji;function ri(e){return si(e)}function ii(e){return si(e,ni)}function si(e,t){U().__VUE__=!0;const{insert:n,remove:s,patchProp:l,createElement:c,createText:a,createComment:u,setText:d,setElementText:f,parentNode:h,nextSibling:m,setScopeId:g=i,insertStaticContent:v}=e,y=(e,t,n,o=null,r=null,i=null,s=void 0,l=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!os(e,t)&&(o=J(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:a,ref:u,shapeFlag:d}=t;switch(a){case Ui:b(e,t,n,o);break;case qi:S(e,t,n,o);break;case Wi:null==e&&_(t,n,o,s);break;case Vi:A(e,t,n,o,r,i,s,l,c);break;default:1&d?x(e,t,n,o,r,i,s,l,c):6&d?N(e,t,n,o,r,i,s,l,c):(64&d||128&d)&&a.process(e,t,n,o,r,i,s,l,c,Q)}null!=u&&r&&Ur(u,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=a(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=u(t.children||""),o,r):t.el=e.el},_=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o,e.el,e.anchor)},x=(e,t,n,o,r,i,s,l,c)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?C(t,n,o,r,i,s,l,c):k(e,t,r,i,s,l,c)},C=(e,t,o,r,i,s,a,u)=>{let d,p;const{props:h,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=c(e.type,s,h&&h.is,h),8&m?f(d,e.children):16&m&&I(e.children,d,null,r,i,li(e,s),a,u),v&&Hn(e,null,r,"created"),w(d,e,e.scopeId,a,r),h){for(const e in h)"value"===e||E(e)||l(d,e,null,h[e],s,r);"value"in h&&l(d,"value",null,h.value,s),(p=h.onVnodeBeforeMount)&&ys(p,r,e)}v&&Hn(e,null,r,"beforeMount");const y=ai(i,g);y&&g.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||y||v)&&oi((()=>{p&&ys(p,r,e),y&&g.enter(d),v&&Hn(e,null,r,"mounted")}),i)},w=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let t=0;t{for(let a=c;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,m=t.props||o;let g;if(n&&ci(n,!1),(g=m.onVnodeBeforeUpdate)&&ys(g,n,t,e),p&&Hn(t,e,n,"beforeUpdate"),n&&ci(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&f(a,""),d?T(e.dynamicChildren,d,a,n,r,li(t,i),s):c||$(e,t,a,null,n,r,li(t,i),s,!1),u>0){if(16&u)D(a,h,m,n,i);else if(2&u&&h.class!==m.class&&l(a,"class",null,m.class,i),4&u&&l(a,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ys(g,n,t,e),p&&Hn(t,e,n,"updated")}),r)},T=(e,t,n,o,r,i,s)=>{for(let l=0;l{if(t!==n){if(t!==o)for(const o in t)E(o)||o in n||l(e,o,t[o],null,i,r);for(const o in n){if(E(o))continue;const s=n[o],c=t[o];s!==c&&"value"!==o&&l(e,o,c,s,i,r)}"value"in n&&l(e,"value",t.value,n.value,i)}},A=(e,t,o,r,i,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,o,r),n(p,o,r),I(t.children||[],o,p,i,s,l,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(T(e.dynamicChildren,h,o,i,s,l,c),(null!=t.key||i&&t===i.subTree)&&ui(e,t,!0)):$(e,t,o,p,i,s,l,c,u)},N=(e,t,n,o,r,i,s,l,c)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,c):P(t,n,o,r,i,s,c):M(e,t,c)},P=(e,t,n,o,r,i,s)=>{const l=e.component=_s(e,o,r);if(io(e)&&(l.ctx.renderer=Q),Ns(l,!1,s),l.asyncDep){if(r&&r.registerDep(l,L,s),!e.el){const e=l.subTree=cs(qi);S(null,e,t,n)}}else L(l,e,t,n,r,i,s)},M=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:c}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!l||l&&l.$stable)||o!==s&&(o?!s||Ni(o,s,a):!!s);if(1024&c)return!0;if(16&c)return o?Ni(o,s,a):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;tmn&&hn.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},L=(e,t,n,o,r,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:a}=e;{const n=di(e);if(n)return t&&(t.el=a.el,B(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let u,d=t;ci(e,!1),t?(t.el=a.el,B(e,t,l)):t=a,n&&F(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ys(u,i,t,a),ci(e,!0);const p=Di(e),f=e.subTree;e.subTree=p,y(f,p,h(f.el),J(f),e,r,s),t.el=p.el,null===d&&Ri(e,p.el),o&&oi(o,r),(u=t.props&&t.props.onVnodeUpdated)&&oi((()=>ys(u,i,t,a)),r)}else{let i;const{el:l,props:c}=t,{bm:a,m:u,parent:d}=e,p=no(t);if(ci(e,!1),a&&F(a),!p&&(i=c&&c.onVnodeBeforeMount)&&ys(i,d,t),ci(e,!0),l&&ee){const n=()=>{e.subTree=Di(e),ee(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Di(e);y(null,i,n,o,e,r,s),t.el=i.el}if(u&&oi(u,r),!p&&(i=c&&c.onVnodeMounted)){const e=t;oi((()=>ys(i,d,e)),r)}(256&t.shapeFlag||d&&no(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&oi(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new ye(c,i,(()=>xn(u)),e.scope),u=e.update=()=>{a.dirty&&a.run()};u.i=e,u.id=e.uid,ci(e,!0),u()},B=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=Pt(r),[c]=e.propsOptions;let a=!1;if(!(o||s>0)||16&s){let o;Er(e,t,r,i)&&(a=!0);for(const i in l)t&&(p(t,i)||(o=R(i))!==i&&p(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Tr(c,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&p(t,e)||(delete i[e],a=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o{const a=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void H(a,d,n,o,r,i,s,l,c);if(256&p)return void j(a,d,n,o,r,i,s,l,c)}8&h?(16&u&&K(a,r,i),d!==a&&f(n,d)):16&u?16&h?H(a,d,n,o,r,i,s,l,c):K(a,r,i,!0):(8&u&&f(n,""),16&h&&I(d,n,o,r,i,s,l,c))},j=(e,t,n,o,i,s,l,c,a)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let f;for(f=0;fd?K(e,i,s,!0,!1,p):I(t,n,o,i,s,l,c,a,p)},H=(e,t,n,o,i,s,l,c,a)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const o=e[u],r=t[u]=a?ms(t[u]):hs(t[u]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),u++}for(;u<=p&&u<=f;){const o=e[p],r=t[f]=a?ms(t[f]):hs(t[f]);if(!os(o,r))break;y(o,r,n,null,i,s,l,c,a),p--,f--}if(u>p){if(u<=f){const e=f+1,r=ef)for(;u<=p;)q(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=a?ms(t[u]):hs(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const S=f-m+1;let _=!1,x=0;const C=new Array(S);for(u=0;u=S){q(o,i,s,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(v=m;v<=f;v++)if(0===C[v-m]&&os(o,t[v])){r=v;break}void 0===r?q(o,i,s,!0):(C[r-m]=u+1,r>=x?x=r:_=!0,y(o,t[r],n,null,i,s,l,c,a),b++)}const w=_?function(e){const t=e.slice(),n=[0];let o,r,i,s,l;const c=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(C):r;for(v=w.length-1,u=S-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:s,type:l,transition:c,children:a,shapeFlag:u}=e;if(6&u)V(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)l.move(e,t,o,Q);else if(l!==Vi)if(l!==Wi)if(2!==r&&1&u&&c)if(0===r)c.beforeEnter(s),n(s,t,o),oi((()=>c.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=c,l=()=>n(s,t,o),a=()=>{e(s,(()=>{l(),i&&i()}))};r?r(s,l,a):a()}else n(s,t,o);else(({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)})(e,t,o);else{n(s,t,o);for(let e=0;e{const{type:i,props:s,ref:l,children:c,dynamicChildren:a,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:f}=e;if(-2===d&&(r=!1),null!=l&&Ur(l,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,m=!no(e);let g;if(m&&(g=s&&s.onVnodeBeforeUnmount)&&ys(g,t,e),6&u)G(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Hn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Q,o):a&&!a.hasOnce&&(i!==Vi||d>0&&64&d)?K(a,t,n,!1,!0):(i===Vi&&384&d||!r&&16&u)&&K(c,t,n),o&&W(e)}(m&&(g=s&&s.onVnodeUnmounted)||h)&&oi((()=>{g&&ys(g,t,e),h&&Hn(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Vi)return void z(n,o);if(t===Wi)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),s(e),e=n;s(t)})(e);const i=()=>{s(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,s=()=>t(n,i);o?o(e.el,i,s):s()}else i()},z=(e,t)=>{let n;for(;e!==t;)n=m(e),s(e),e=n;s(t)},G=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:l,m:c,a}=e;pi(c),pi(a),o&&F(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),l&&oi(l,t),oi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},K=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s{if(6&e.shapeFlag)return J(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[qr];return n?m(n):t};let X=!1;const Y=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),X||(X=!0,In(),kn(),X=!1),t._vnode=e},Q={p:y,um:q,m:V,r:W,mt:P,mc:I,pc:$,pbc:T,n:J,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:Y,hydrate:Z,createApp:br(Y,Z)}}function li({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ci({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const o=e.children,r=t.children;if(f(o)&&f(r))for(let e=0;exr(fi);function mi(e,t){return Si(e,null,t)}function gi(e,t){return Si(e,null,{flush:"post"})}function vi(e,t){return Si(e,null,{flush:"sync"})}const yi={};function bi(e,t,n){return Si(e,t,n)}function Si(e,t,{immediate:n,deep:r,flush:s,once:l,onTrack:c,onTrigger:a}=o){if(t&&l){const e=t;t=(...t)=>{e(...t),k()}}const d=xs,p=e=>!0===r?e:Ci(e,!1===r?1:void 0);let h,m,g=!1,y=!1;if(Ht(e)?(h=()=>e.value,g=Nt(e)):At(e)?(h=()=>p(e),g=!0):f(e)?(y=!0,g=e.some((e=>At(e)||Nt(e))),h=()=>e.map((e=>Ht(e)?e.value:At(e)?p(e):v(e)?an(e,d,2):void 0))):h=v(e)?t?()=>an(e,d,2):()=>(m&&m(),un(e,d,3,[S])):i,t&&r){const e=h;h=()=>Ci(e())}let b,S=e=>{m=w.onStop=()=>{an(e,d,4),m=w.onStop=void 0}};if(Os){if(S=i,t?n&&un(t,d,3,[h(),y?[]:void 0,S]):h(),"sync"!==s)return i;{const e=hi();b=e.__watcherHandles||(e.__watcherHandles=[])}}let _=y?new Array(e.length).fill(yi):yi;const x=()=>{if(w.active&&w.dirty)if(t){const e=w.run();(r||g||(y?e.some(((e,t)=>L(e,_[t]))):L(e,_)))&&(m&&m(),un(t,d,3,[e,_===yi?void 0:y&&_[0]===yi?[]:_,S]),_=e)}else w.run()};let C;x.allowRecurse=!!t,"sync"===s?C=x:"post"===s?C=()=>oi(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),C=()=>xn(x));const w=new ye(h,i,C),I=ge(),k=()=>{w.stop(),I&&u(I.effects,w)};return t?n?x():_=w.run():"post"===s?oi(w.run.bind(w),d&&d.suspense):w.run(),b&&b.push(k),k}function _i(e,t,n){const o=this.proxy,r=y(e)?e.includes(".")?xi(o,e):()=>o[e]:e.bind(o,o);let i;v(t)?i=t:(i=t.handler,n=t);const s=ks(this),l=Si(r,i.bind(o),n);return s(),l}function xi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Ci(e,t,n)}));else if(I(e)){for(const o in e)Ci(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ci(e[o],t,n)}return e}function wi(e,t,n=o){const r=Cs(),i=O(t),s=R(t),l=Ii(e,t),c=Qt(((o,l)=>{let c,a,u;return vi((()=>{const n=e[t];L(c,n)&&(c=n,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){if(!L(e,c))return;const o=r.vnode.props;o&&(t in o||i in o||s in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${s}`in o)||(c=e,l());const d=n.set?n.set(e):e;r.emit(`update:${t}`,d),e!==d&&e!==a&&d===u&&l(),a=e,u=d}}}));return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o:c,done:!1}:{done:!0}}},c}const Ii=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${R(t)}Modifiers`];function ki(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const s=t.startsWith("update:"),l=s&&Ii(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>y(e)?e.trim():e))),l.number&&(i=n.map(j)));let a=r[c=M(t)]||r[c=M(O(t))];!a&&s&&(a=r[c=M(R(t))]),a&&un(a,e,6,i);const u=r[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(u,e,6,i)}}function Ei(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},l=!1;if(!v(e)){const o=e=>{const n=Ei(e,t,!0);n&&(l=!0,a(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?(f(i)?i.forEach((e=>s[e]=null)):a(s,i),S(e)&&o.set(e,s),s):(S(e)&&o.set(e,null),null)}function Ti(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function Di(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:d,props:p,data:f,setupState:h,ctx:m,inheritAttrs:g}=e,v=Mn(e);let y,b;try{if(4&n.shapeFlag){const e=r||o,t=e;y=hs(u.call(t,e,d,p,h,f,m)),b=l}else{const e=t;y=hs(e.length>1?e(p,{attrs:l,slots:s,emit:a}):e(p,null)),b=t.props?l:Ai(l)}}catch(t){zi.length=0,dn(t,e,1),y=cs(qi)}let S=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=S;e.length&&7&t&&(i&&e.some(c)&&(b=Oi(b,i)),S=us(S,b,!1,!0))}return n.dirs&&(S=us(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),y=S,Mn(v),y}const Ai=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},Oi=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Ni(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;let Mi=0;const Li={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,i,s,l,c,a){if(null==e)!function(e,t,n,o,r,i,s,l,c){const{p:a,o:{createElement:u}}=c,d=u("div"),p=e.suspense=Bi(e,r,o,t,d,n,i,s,l,c);a(null,p.pendingBranch=e.ssContent,d,null,o,p,i,s),p.deps>0?(Fi(e,"onPending"),Fi(e,"onFallback"),a(null,e.ssFallback,t,n,o,null,i,s),Hi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,r,i,s,l,c,a);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,r,i,s,l,{p:c,um:a,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,os(p,m)?(c(m,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():g&&(v||(c(h,f,n,o,r,null,i,s,l),Hi(d,f)))):(d.pendingId=Mi++,v?(d.isHydrating=!1,d.activeBranch=m):a(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0?d.resolve():(c(h,f,n,o,r,null,i,s,l),Hi(d,f))):h&&os(p,h)?(c(h,p,n,o,r,d,i,s,l),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0&&d.resolve()));else if(h&&os(p,h))c(h,p,n,o,r,d,i,s,l),Hi(d,p);else if(Fi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=Mi++,c(null,p,d.hiddenContainer,null,r,d,i,s,l),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(f)}),e):0===e&&d.fallback(f)}}(e,t,n,o,r,s,l,c,a)}},hydrate:function(e,t,n,o,r,i,s,l,c){const a=t.suspense=Bi(t,o,n,e.parentNode,document.createElement("div"),null,r,i,s,l,!0),u=c(e,a.pendingBranch=t.ssContent,n,a,i,s);return 0===a.deps&&a.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=$i(o?n.default:n),e.ssFallback=o?$i(n.fallback):cs(qi)}};function Fi(e,t){const n=e.props&&e.props[t];v(n)&&n()}function Bi(e,t,n,o,r,i,s,l,c,a,u=!1){const{p:d,m:p,um:f,n:h,o:{parentNode:m,remove:g}}=a;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?H(e.props.timeout):void 0,S=i,_={vnode:e,parent:t,parentComponent:n,namespace:s,container:o,hiddenContainer:r,deps:0,pendingId:Mi++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:r,pendingBranch:s,pendingId:l,effects:c,parentComponent:a,container:u}=_;let d=!1;_.isHydrating?_.isHydrating=!1:e||(d=r&&s.transition&&"out-in"===s.transition.mode,d&&(r.transition.afterLeave=()=>{l===_.pendingId&&(p(s,u,i===S?h(r):i,0),wn(c))}),r&&(m(r.el)!==_.hiddenContainer&&(i=h(r)),f(r,a,_,!0)),d||p(s,u,i,0)),Hi(_,s),_.pendingBranch=null,_.isInFallback=!1;let g=_.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...c),b=!0;break}g=g.parent}b||d||wn(c),_.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Fi(o,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,namespace:i}=_;Fi(t,"onFallback");const s=h(n),a=()=>{_.isInFallback&&(d(null,e,r,s,o,null,i,l,c),Hi(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),_.isInFallback=!0,f(n,o,null,!0),u||a()},move(e,t,n){_.activeBranch&&p(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&h(_.activeBranch),registerDep(e,t,n){const o=!!_.pendingBranch;o&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{dn(t,e,0)})).then((i=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:l}=e;Rs(e,i,!1),r&&(l.el=r);const c=!r&&e.subTree.el;t(e,l,m(r||e.subTree.el),r?null:h(e.subTree),_,s,n),c&&g(c),Ri(e,l.el),o&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,n,e,t),_.pendingBranch&&f(_.pendingBranch,n,e,t)}};return _}function $i(e){let t;if(v(e)){const n=Yi&&e._c;n&&(e._d=!1,Ki()),e=e(),n&&(e._d=!0,t=Gi,Ji())}if(f(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function ji(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):wn(e)}function Hi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,Ri(o,r))}const Vi=Symbol.for("v-fgt"),Ui=Symbol.for("v-txt"),qi=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),zi=[];let Gi=null;function Ki(e=!1){zi.push(Gi=e?null:[])}function Ji(){zi.pop(),Gi=zi[zi.length-1]||null}let Xi,Yi=1;function Qi(e){Yi+=e,e<0&&Gi&&(Gi.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Yi>0?Gi||r:null,Ji(),Yi>0&&Gi&&Gi.push(e),e}function es(e,t,n,o,r,i){return Zi(ls(e,t,n,o,r,i,!0))}function ts(e,t,n,o,r){return Zi(cs(e,t,n,o,r,!0))}function ns(e){return!!e&&!0===e.__v_isVNode}function os(e,t){return e.type===t.type&&e.key===t.key}function rs(e){Xi=e}const is=({key:e})=>null!=e?e:null,ss=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?y(e)||Ht(e)||v(e)?{i:Rn,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,o=0,r=null,i=(e===Vi?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&is(t),ref:t&&ss(t),scopeId:Pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Rn};return l?(gs(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Yi>0&&!s&&Gi&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Gi.push(c),c}const cs=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Ao||(e=qi),ns(e)){const o=us(e,t,!0);return n&&gs(o,n),Yi>0&&!i&&Gi&&(6&o.shapeFlag?Gi[Gi.indexOf(e)]=o:Gi.push(o)),o.patchFlag=-2,o}if(s=e,v(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=as(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=Y(e)),S(n)&&(Rt(n)&&!f(n)&&(n=a({},n)),t.style=z(n))}var s;return ls(e,t,n,o,r,y(e)?1:Pi(e)?128:(e=>e.__isTeleport)(e)?64:S(e)?4:v(e)?2:0,i,!0)};function as(e){return e?Rt(e)||kr(e)?a({},e):e:null}function us(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:c}=e,a=t?vs(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&is(a),ref:t&&t.ref?n&&i?f(i)?i.concat(ss(t)):[i,ss(t)]:ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vi?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Zn(u,c.clone(u)),u}function ds(e=" ",t=0){return cs(Ui,null,e,t)}function ps(e,t){const n=cs(Wi,null,e);return n.staticCount=t,n}function fs(e="",t=!1){return t?(Ki(),ts(qi,null,e)):cs(qi,null,e)}function hs(e){return null==e||"boolean"==typeof e?cs(qi):f(e)?cs(Vi,null,e.slice()):"object"==typeof e?ms(e):cs(Ui,null,String(e))}function ms(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:us(e)}function gs(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),gs(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kr(t)?3===o&&Rn&&(1===Rn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Rn}}else v(t)?(t={default:t,_ctx:Rn},n=32):(t=String(t),64&o?(n=16,t=[ds(t)]):n=8);e.children=t,e.shapeFlag|=n}function vs(...e){const t={};for(let n=0;nxs||Rn;let ws,Is;{const e=U(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};ws=t("__VUE_INSTANCE_SETTERS__",(e=>xs=e)),Is=t("__VUE_SSR_SETTERS__",(e=>Os=e))}const ks=e=>{const t=xs;return ws(e),e.scope.on(),()=>{e.scope.off(),ws(t)}},Es=()=>{xs&&xs.scope.off(),ws(null)};function Ts(e){return 4&e.vnode.shapeFlag}let Ds,As,Os=!1;function Ns(e,t=!1,n=!1){t&&Is(t);const{props:o,children:r}=e.vnode,i=Ts(e);!function(e,t,n,o=!1){const r={},i=Ir();e.propsDefaults=Object.create(null),Er(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:kt(r):e.type.props?e.props=r:e.props=i,e.attrs=i}(e,o,i,t),Hr(e,r,n);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Bs(e):null,r=ks(e);Te();const i=an(o,e,0,[e.props,n]);if(De(),r(),_(i)){if(i.then(Es,Es),t)return i.then((n=>{Rs(e,n,t)})).catch((t=>{dn(t,e,0)}));e.asyncDep=i}else Rs(e,i,t)}else Ls(e,t)}(e,t):void 0;return t&&Is(!1),s}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=Xt(t)),Ls(e,n)}function Ps(e){Ds=e,As=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,qo))}}const Ms=()=>!Ds;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const t=o.template||ar(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=o,l=a(a({isCustomElement:n,delimiters:i},r),s);o.render=Ds(t,l)}}e.render=o.render||i,As&&As(e)}{const t=ks(e);Te();try{!function(e){const t=ar(e),n=e.proxy,o=e.ctx;sr=!1,t.beforeCreate&&lr(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:c,provide:a,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:y,deactivated:b,beforeDestroy:_,beforeUnmount:x,destroyed:C,unmounted:w,render:I,renderTracked:k,renderTriggered:E,errorCaptured:T,serverPrefetch:D,expose:A,inheritAttrs:O,components:N,directives:R,filters:P}=t;if(u&&function(e,t){f(e)&&(e=fr(e));for(const n in e){const o=e[n];let r;r=S(o)?"default"in o?xr(o.from||n,o.default,!0):xr(o.from||n):xr(o),Ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,o),l)for(const e in l){const t=l[e];v(t)&&(o[e]=t.bind(n))}if(r){const t=r.call(n,n);S(t)&&(e.data=It(t))}if(sr=!0,s)for(const e in s){const t=s[e],r=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):i,l=!v(t)&&v(t.set)?t.set.bind(n):i,c=Hs({get:r,set:l});Object.defineProperty(o,e,{enumerable:!0,configurable:!0,get:()=>c.value,set:e=>c.value=e})}if(c)for(const e in c)cr(c[e],o,n,e);if(a){const e=v(a)?a.call(n):a;Reflect.ownKeys(e).forEach((t=>{_r(t,e[t])}))}function M(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&lr(d,e,"c"),M(vo,p),M(yo,h),M(bo,m),M(So,g),M(co,y),M(ao,b),M(ko,T),M(Io,k),M(wo,E),M(_o,x),M(xo,w),M(Co,D),f(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});I&&e.render===i&&(e.render=I),null!=O&&(e.inheritAttrs=O),N&&(e.components=N),R&&(e.directives=R)}(e)}finally{De(),t()}}}const Fs={get:(e,t)=>($e(e,0,""),e[t])};function Bs(e){return{attrs:new Proxy(e.attrs,Fs),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function $s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Mt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ho?Ho[n](e):void 0,has:(e,t)=>t in e||t in Ho})):e.proxy}function js(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}const Hs=(e,t)=>function(e,t,n=!1){let o,r;const s=v(e);return s?(o=e,r=i):(o=e.get,r=e.set),new Bt(o,r,s||!r,n)}(e,0,Os);function Vs(e,t,n){const o=arguments.length;return 2===o?S(t)&&!f(t)?ns(t)?cs(e,null,[t]):cs(e,t):cs(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ns(n)&&(n=[n]),cs(e,t,n))}function Us(){}function qs(e,t,n,o){const r=n[o];if(r&&Ws(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=o,n[o]=i}function Ws(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Gi&&Gi.push(e),!0}const zs="3.4.33",Gs=i,Ks={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"},Js=An,Xs=function e(t,n){var o,r;An=t,An?(An.enabled=!0,On.forEach((({event:e,args:t})=>An.emit(e,...t))),On=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(o=window.navigator)?void 0:o.userAgent)?void 0:r.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{An||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Nn=!0,On=[])}),3e3)):(Nn=!0,On=[])},Ys={createComponentInstance:_s,setupComponent:Ns,renderComponentRoot:Di,setCurrentRenderingInstance:Mn,isVNode:ns,normalizeVNode:hs,getComponentPublicInstance:$s},Qs=null,Zs=null,el=null,tl="undefined"!=typeof document?document:null,nl=tl&&tl.createElement("template"),ol={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r="svg"===t?tl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?tl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?tl.createElement(e,{is:n}):tl.createElement(e);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>tl.createTextNode(e),createComment:e=>tl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{nl.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const r=nl.content;if("svg"===o||"mathml"===o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rl="transition",il="animation",sl=Symbol("_vtc"),ll=(e,{slots:t})=>Vs(Kn,pl(e),t);ll.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},al=ll.props=a({},zn,cl),ul=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},dl=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function pl(e){const t={};for(const n in e)n in cl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[fl(e.enter),fl(e.leave)];{const t=fl(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:x,onLeaveCancelled:C,onBeforeAppear:w=y,onAppear:I=b,onAppearCancelled:k=_}=t,E=(e,t,n)=>{ml(e,t?d:l),ml(e,t?u:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,ml(e,p),ml(e,h),ml(e,f),t&&t()},D=e=>(t,n)=>{const r=e?I:b,s=()=>E(t,e,n);ul(r,[t,s]),gl((()=>{ml(t,e?c:i),hl(t,e?d:l),dl(r)||yl(t,o,g,s)}))};return a(t,{onBeforeEnter(e){ul(y,[e]),hl(e,i),hl(e,s)},onBeforeAppear(e){ul(w,[e]),hl(e,c),hl(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);hl(e,p),hl(e,f),xl(),gl((()=>{e._isLeaving&&(ml(e,p),hl(e,h),dl(x)||yl(e,o,v,n))})),ul(x,[e,n])},onEnterCancelled(e){E(e,!1),ul(_,[e])},onAppearCancelled(e){E(e,!0),ul(k,[e])},onLeaveCancelled(e){T(e),ul(C,[e])}})}function fl(e){return H(e)}function hl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[sl]||(e[sl]=new Set)).add(t)}function ml(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[sl];n&&(n.delete(t),n.size||(e[sl]=void 0))}function gl(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let vl=0;function yl(e,t,n,o){const r=e._endId=++vl,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:c}=bl(e,t);if(!s)return o();const a=s+"end";let u=0;const d=()=>{e.removeEventListener(a,p),i()},p=t=>{t.target===e&&++u>=c&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o(`${rl}Delay`),i=o(`${rl}Duration`),s=Sl(r,i),l=o(`${il}Delay`),c=o(`${il}Duration`),a=Sl(l,c);let u=null,d=0,p=0;return t===rl?s>0&&(u=rl,d=s,p=i.length):t===il?a>0&&(u=il,d=a,p=c.length):(d=Math.max(s,a),u=d>0?s>a?rl:il:null,p=u?u===rl?i.length:c.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===rl&&/\b(transform|all)(,|$)/.test(o(`${rl}Property`).toString())}}function Sl(e,t){for(;e.length_l(t)+_l(e[n]))))}function _l(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function xl(){return document.body.offsetHeight}const Cl=Symbol("_vod"),wl=Symbol("_vsh"),Il={beforeMount(e,{value:t},{transition:n}){e[Cl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):kl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),kl(e,!0),o.enter(e)):o.leave(e,(()=>{kl(e,!1)})):kl(e,t))},beforeUnmount(e,{value:t}){kl(e,t)}};function kl(e,t){e.style.display=t?e[Cl]:"none",e[wl]=!t}const El=Symbol("");function Tl(e){const t=Cs();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Al(e,n)))},o=()=>{const o=e(t.proxy);Dl(t.subTree,o),n(o)};yo((()=>{gi(o);const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),xo((()=>e.disconnect()))}))}function Dl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Dl(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Al(e.el,t);else if(e.type===Vi)e.children.forEach((e=>Dl(e,t)));else if(e.type===Wi){let{el:n,anchor:o}=e;for(;n&&(Al(n,t),n!==o);)n=n.nextSibling}}function Al(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t)n.setProperty(`--${e}`,t[e]),o+=`--${e}: ${t[e]};`;n[El]=o}}const Ol=/(^|;)\s*display\s*:/,Nl=/\s*!important$/;function Rl(e,t,n){if(f(n))n.forEach((n=>Rl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ml[t];if(n)return n;let o=O(t);if("filter"!==o&&o in e)return Ml[t]=o;o=P(o);for(let n=0;nHl||(Vl.then((()=>Hl=0)),Hl=Date.now()),ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function Wl(e,t,n){const o=to(e,t);class r extends Kl{constructor(e){super(o,e,n)}}return r.def=o,r}const zl=(e,t)=>Wl(e,t,Ac),Gl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Kl extends Gl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,_n((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Dc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let r;if(n&&!f(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=H(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=O(e);this._numberProps&&this._numberProps[n]&&(t=H(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Dc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=cs(this._def,a({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Kl){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Jl(e="$style"){{const t=Cs();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;return n[e]||o}}const Xl=new WeakMap,Yl=new WeakMap,Ql=Symbol("_moveCb"),Zl=Symbol("_enterCb"),ec={name:"TransitionGroup",props:a({},al,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cs(),o=qn();let r,i;return So((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),r=e[sl];r&&r.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=bl(o);return i.removeChild(o),s}(r[0].el,n.vnode.el,t))return;r.forEach(tc),r.forEach(nc);const o=r.filter(oc);xl(),o.forEach((e=>{const n=e.el,o=n.style;hl(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[Ql]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[Ql]=null,ml(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=Pt(e),l=pl(s);let c=s.tag||Vi;if(r=[],i)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>F(t,e):t};function ic(e){e.target.composing=!0}function sc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const lc=Symbol("_assign"),cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[lc]=rc(r);const i=o||r.props&&"number"===r.props.type;Bl(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=j(o)),e[lc](o)})),n&&Bl(e,"change",(()=>{e.value=e.value.trim()})),t||(Bl(e,"compositionstart",ic),Bl(e,"compositionend",sc),Bl(e,"change",sc))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[lc]=rc(s),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:j(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(o&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},ac={deep:!0,created(e,t,n){e[lc]=rc(n),Bl(e,"change",(()=>{const t=e._modelValue,n=hc(e),o=e.checked,r=e[lc];if(f(t)){const e=se(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(m(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(mc(e,o))}))},mounted:uc,beforeUpdate(e,t,n){e[lc]=rc(n),uc(e,t,n)}};function uc(e,{value:t,oldValue:n},o){e._modelValue=t,f(t)?e.checked=se(t,o.props.value)>-1:m(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ie(t,mc(e,!0)))}const dc={created(e,{value:t},n){e.checked=ie(t,n.props.value),e[lc]=rc(n),Bl(e,"change",(()=>{e[lc](hc(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[lc]=rc(o),t!==n&&(e.checked=ie(t,o.props.value))}},pc={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=m(t);Bl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?j(hc(e)):hc(e)));e[lc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,_n((()=>{e._assigning=!1}))})),e[lc]=rc(o)},mounted(e,{value:t,modifiers:{number:n}}){fc(e,t)},beforeUpdate(e,t,n){e[lc]=rc(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||fc(e,t)}};function fc(e,t,n){const o=e.multiple,r=f(t);if(!o||r||m(t)){for(let n=0,i=e.options.length;nString(e)===String(s))):se(t,s)>-1}else i.selected=t.has(s);else if(ie(hc(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function hc(e){return"_value"in e?e._value:e.value}function mc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gc={created(e,t,n){yc(e,t,n,null,"created")},mounted(e,t,n){yc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){yc(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){yc(e,t,n,o,"updated")}};function vc(e,t){switch(e){case"SELECT":return pc;case"TEXTAREA":return cc;default:switch(t){case"checkbox":return ac;case"radio":return dc;default:return cc}}}function yc(e,t,n,o,r){const i=vc(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const bc=["ctrl","shift","alt","meta"],Sc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>bc.some((n=>e[`${n}Key`]&&!t.includes(n)))},_c=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||xc[e]===o))?e(n):void 0})},wc=a({patchProp:(e,t,n,o,r,i)=>{const s="svg"===r;"class"===t?function(e,t,n){const o=e[sl];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,s):"style"===t?function(e,t,n){const o=e.style,r=y(n);let i=!1;if(n&&!r){if(t)if(y(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Rl(o,t,"")}else for(const e in t)null==n[e]&&Rl(o,e,"");for(const e in n)"display"===e&&(i=!0),Rl(o,e,n[e])}else if(r){if(t!==n){const e=o[El];e&&(n+=";"+e),o.cssText=n,i=Ol.test(n)}}else t&&e.removeAttribute("style");Cl in e&&(e[Cl]=i?o.display:"",e[wl]&&(o.display="none"))}(e,n,o):l(t)?c(t)||function(e,t,n,o,r=null){const i=e[$l]||(e[$l]={}),s=i[t];if(o&&s)s.value=o;else{const[n,l]=function(e){let t;if(jl.test(e)){let n;for(t={};n=e.match(jl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):R(e.slice(2)),t]}(t);if(o){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ul(),n}(o,r);Bl(e,n,s,l)}else s&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,l),i[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&v(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!y(n))&&t in e}(e,t,o,s))?(function(e,t,n){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let r=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=re(n):null==n&&"string"===o?(n="",r=!0):"number"===o&&(n=0,r=!0)}try{e[t]=n}catch(e){}r&&e.removeAttribute(t)}(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Fl(e,t,o,s,0,"value"!==t)):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Fl(e,t,o,s))}},ol);let Ic,kc=!1;function Ec(){return Ic||(Ic=ri(wc))}function Tc(){return Ic=kc?Ic:ii(wc),kc=!0,Ic}const Dc=(...e)=>{Ec().render(...e)},Ac=(...e)=>{Tc().hydrate(...e)},Oc=(...e)=>{const t=Ec().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Pc(e);if(!o)return;const r=t._component;v(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Rc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Nc=(...e)=>{const t=Tc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Rc(t))},t};function Rc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){return y(e)?document.querySelector(e):e}let Mc=!1;const Lc=()=>{Mc||(Mc=!0,cc.getSSRProps=({value:e})=>({value:e}),dc.getSSRProps=({value:e},t)=>{if(t.props&&ie(t.props.value,e))return{checked:!0}},ac.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&se(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},gc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=vc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Il.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Fc=Symbol(""),Bc=Symbol(""),$c=Symbol(""),jc=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),Uc=Symbol(""),qc=Symbol(""),Wc=Symbol(""),zc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Yc=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),oa=Symbol(""),ra=Symbol(""),ia=Symbol(""),sa=Symbol(""),la=Symbol(""),ca=Symbol(""),aa=Symbol(""),ua=Symbol(""),da=Symbol(""),pa=Symbol(""),fa=Symbol(""),ha=Symbol(""),ma=Symbol(""),ga=Symbol(""),va=Symbol(""),ya=Symbol(""),ba=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa={[Fc]:"Fragment",[Bc]:"Teleport",[$c]:"Suspense",[jc]:"KeepAlive",[Hc]:"BaseTransition",[Vc]:"openBlock",[Uc]:"createBlock",[qc]:"createElementBlock",[Wc]:"createVNode",[zc]:"createElementVNode",[Gc]:"createCommentVNode",[Kc]:"createTextVNode",[Jc]:"createStaticVNode",[Xc]:"resolveComponent",[Yc]:"resolveDynamicComponent",[Qc]:"resolveDirective",[Zc]:"resolveFilter",[ea]:"withDirectives",[ta]:"renderList",[na]:"renderSlot",[oa]:"createSlots",[ra]:"toDisplayString",[ia]:"mergeProps",[sa]:"normalizeClass",[la]:"normalizeStyle",[ca]:"normalizeProps",[aa]:"guardReactiveProps",[ua]:"toHandlers",[da]:"camelize",[pa]:"capitalize",[fa]:"toHandlerKey",[ha]:"setBlockTracking",[ma]:"pushScopeId",[ga]:"popScopeId",[va]:"withCtx",[ya]:"unref",[ba]:"isRef",[Sa]:"withMemo",[_a]:"isMemoSame"},Ca={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wa(e,t,n,o,r,i,s,l=!1,c=!1,a=!1,u=Ca){return e&&(l?(e.helper(Vc),e.helper(Pa(e.inSSR,a))):e.helper(Ra(e.inSSR,a)),s&&e.helper(ea)),{type:13,tag:t,props:n,children:o,patchFlag:r,dynamicProps:i,directives:s,isBlock:l,disableTracking:c,isComponent:a,loc:u}}function Ia(e,t=Ca){return{type:17,loc:t,elements:e}}function ka(e,t=Ca){return{type:15,loc:t,properties:e}}function Ea(e,t){return{type:16,loc:Ca,key:y(e)?Ta(e,!0):e,value:t}}function Ta(e,t=!1,n=Ca,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function Da(e,t=Ca){return{type:8,loc:t,children:e}}function Aa(e,t=[],n=Ca){return{type:14,loc:n,callee:e,arguments:t}}function Oa(e,t=void 0,n=!1,o=!1,r=Ca){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:r}}function Na(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Ca}}function Ra(e,t){return e||t?Wc:zc}function Pa(e,t){return e||t?Uc:qc}function Ma(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(Ra(o,e.isComponent)),t(Vc),t(Pa(o,e.isComponent)))}const La=new Uint8Array([123,123]),Fa=new Uint8Array([125,125]);function Ba(e){return e>=97&&e<=122||e>=65&&e<=90}function $a(e){return 32===e||10===e||9===e||12===e||13===e}function ja(e){return 47===e||62===e||$a(e)}function Ha(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function Xa(e){switch(e){case"Teleport":case"teleport":return Bc;case"Suspense":case"suspense":return $c;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Hc}}const Ya=/^\d|[^\$\w\xA0-\uFFFF]/,Qa=e=>!Ya.test(e),Za=/[A-Za-z_$\xA0-\uFFFF]/,eu=/[\.\?\w$\xA0-\uFFFF]/,tu=/\s+[.[]\s*|\s*[.[]\s+/g,nu=e=>{e=e.trim().replace(tu,(e=>e.trim()));let t=0,n=[],o=0,r=0,i=null;for(let s=0;s4===e.key.type&&e.key.content===o))}return n}function hu(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}const mu=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,gu={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:s,isPreTag:s,isCustomElement:s,onError:za,onWarn:Ga,comments:!1,prefixIdentifiers:!1};let vu=gu,yu=null,bu="",Su=null,_u=null,xu="",Cu=-1,wu=-1,Iu=0,ku=!1,Eu=null;const Tu=[],Du=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=La,this.delimiterClose=Fa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=La,this.delimiterClose=Fa}getPos(e){let t=1,n=e+1;for(let o=this.newlines.length-1;o>=0;o--){const r=this.newlines[o];if(e>r){t=o+2,n=e-r;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ja(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||$a(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===Va.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Tu,{onerr:Ju,ontext(e,t){Pu(Nu(e,t),e,t)},ontextentity(e,t,n){Pu(e,t,n)},oninterpolation(e,t){if(ku)return Pu(Nu(e,t),e,t);let n=e+Du.delimiterOpen.length,o=t-Du.delimiterClose.length;for(;$a(bu.charCodeAt(n));)n++;for(;$a(bu.charCodeAt(o-1));)o--;let r=Nu(n,o);r.includes("&")&&(r=vu.decodeEntities(r,!1)),qu({type:5,content:Ku(r,!1,Wu(n,o)),loc:Wu(e,t)})},onopentagname(e,t){const n=Nu(e,t);Su={type:1,tag:n,ns:vu.getNamespace(n,Tu[0],vu.ns),tagType:0,props:[],children:[],loc:Wu(e-1,t),codegenNode:void 0}},onopentagend(e){Ru(e)},onclosetag(e,t){const n=Nu(e,t);if(!vu.isVoidTag(n)){let o=!1;for(let e=0;e0&&Ju(24,Tu[0].loc.start.offset);for(let n=0;n<=e;n++)Mu(Tu.shift(),t,n(7===e.type?e.rawName:e.name)===n))&&Ju(2,t)},onattribend(e,t){if(Su&&_u){if(zu(_u.loc,t),0!==e)if(xu.includes("&")&&(xu=vu.decodeEntities(xu,!0)),6===_u.type)"class"===_u.name&&(xu=Uu(xu).trim()),1!==e||xu||Ju(13,t),_u.value={type:2,content:xu,loc:1===e?Wu(Cu,wu):Wu(Cu-1,wu+1)},Du.inSFCRoot&&"template"===Su.tag&&"lang"===_u.name&&xu&&"html"!==xu&&Du.enterRCDATA(Ha("{const r=t.start.offset+n;return Ku(e,!1,Wu(r,r+e.length),0,o?1:0)},l={source:s(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=r.trim().replace(Ou,"").trim();const a=r.indexOf(c),u=c.match(Au);if(u){c=c.replace(Au,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,a+c.length),l.key=s(e,t,!0)),u[2]){const o=u[2].trim();o&&(l.index=s(o,n.indexOf(o,l.key?t+e.length:a+c.length),!0))}}return c&&(l.value=s(c,a,!0)),l}(_u.exp));let t=-1;"bind"===_u.name&&(t=_u.modifiers.indexOf("sync"))>-1&&Wa("COMPILER_V_BIND_SYNC",vu,_u.loc,_u.rawName)&&(_u.name="model",_u.modifiers.splice(t,1))}7===_u.type&&"pre"===_u.name||Su.props.push(_u)}xu="",Cu=wu=-1},oncomment(e,t){vu.comments&&qu({type:3,content:Nu(e,t),loc:Wu(e-4,t+3)})},onend(){const e=bu.length;for(let t=0;t64&&n<91||Xa(e)||vu.isBuiltInComponent&&vu.isBuiltInComponent(e)||vu.isNativeTag&&!vu.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name));n&&Wa("COMPILER_INLINE_TEMPLATE",vu,n.loc)&&e.children.length&&(n.value={type:2,content:Nu(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Lu(e,t){let n=e;for(;bu.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fu=new Set(["if","else","else-if","for","slot"]);function Bu({tag:e,props:t}){if("template"===e)for(let e=0;e0){if(e>=2){r.codegenNode.patchFlag=-1,r.codegenNode=t.hoist(r.codegenNode),i++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=e.patchFlag;if((void 0===n||512===n||1===n)&&nd(r,t)>=2){const n=od(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,Qu(r,t),e&&t.scopes.vSlot--}else if(11===r.type)Qu(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e1)for(let r=0;r`_${xa[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:i,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){y(e)&&(e=Ta(e)),E.hoists.push(e);const t=Ta(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Ca}}(E.cached++,e,t)};return E.filters=new Set,E}(e,t);id(e,n),t.hoistStatic&&Xu(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:o}=e;if(1===o.length){const n=o[0];if(Yu(e,n)&&n.codegenNode){const o=n.codegenNode;13===o.type&&Ma(o,t),e.codegenNode=o}else e.codegenNode=n}else if(o.length>1){let o=64;q[64],e.codegenNode=wa(t,n(Fc),void 0,e.children,o,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function id(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let r=0;r{n--};for(;nt===e:t=>e.test(t);return(e,o)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(lu))return;const i=[];for(let s=0;s`${xa[e]}: _${xa[e]}`;function ad(e,t,{helper:n,push:o,newline:r,isTS:i}){const s=n("filter"===t?Zc:"component"===t?Xc:Qc);for(let n=0;n3||!1;t.push("["),n&&t.indent(),dd(e,t,n),n&&t.deindent(),t.push("]")}function dd(e,t,n=!1,o=!0){const{push:r,newline:i}=t;for(let s=0;se||"null"))}([i,s,l,h,a]),t),n(")"),d&&n(")"),u&&(n(", "),pd(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:r}=t,i=y(e.callee)?e.callee:o(e.callee);r&&n(ld),n(i+"(",-2,e),dd(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:o,deindent:r,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const l=s.length>1||!1;n(l?"{":"{ "),l&&o();for(let e=0;e "),(c||l)&&(n("{"),o()),s?(c&&n("return "),f(s)?ud(s,t):pd(s,t)):l&&pd(l,t),(c||l)&&(r(),n("}")),a&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:o,alternate:r,newline:i}=e,{push:s,indent:l,deindent:c,newline:a}=t;if(4===n.type){const e=!Qa(n.content);e&&s("("),fd(n,t),e&&s(")")}else s("("),pd(n,t),s(")");i&&l(),t.indentLevel++,i||s(" "),s("? "),pd(o,t),t.indentLevel--,i&&a(),i||s(" "),s(": ");const u=19===r.type;u||t.indentLevel++,pd(r,t),u||t.indentLevel--,i&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:o,indent:r,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(r(),n(`${o(ha)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),pd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${o(ha)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:dd(e.body,t,!0,!1)}}function fd(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function hd(e,t){for(let n=0;nfunction(e,t,n,o){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Ka(28,t.loc)),t.exp=Ta("true",!1,o)}if("if"===t.name){const r=vd(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),o)return o(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-- >=-1;){const s=r[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Ka(30,e.loc)),n.removeNode();const r=vd(e,t);s.branches.push(r);const i=o&&o(s,r,!1);id(r,n),i&&i(),n.currentNode=null}else n.onError(Ka(30,e.loc));break}n.removeNode(s)}}}}(e,t,n,((e,t,o)=>{const r=n.parent.children;let i=r.indexOf(e),s=0;for(;i-- >=0;){const e=r[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(o)e.codegenNode=yd(t,s,n);else{const o=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);o.alternate=yd(t,s+e.branches.length-1,n)}}}))));function vd(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!ou(e,"for")?e.children:[e],userKey:ru(e,"key"),isTemplateIf:n}}function yd(e,t,n){return e.condition?Na(e.condition,bd(e,t,n),Aa(n.helper(Gc),['""',"true"])):bd(e,t,n)}function bd(e,t,n){const{helper:o}=n,r=Ea("key",Ta(`${t}`,!1,Ca,2)),{children:i}=e,s=i[0];if(1!==i.length||1!==s.type){if(1===i.length&&11===s.type){const e=s.codegenNode;return pu(e,r,n),e}{let t=64;return q[64],wa(n,o(Fc),ka([r]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(l=e).type&&l.callee===Sa?l.arguments[1].returns:l;return 13===t.type&&Ma(t,n),pu(t,r,n),e}var l}const Sd=(e,t,n)=>{const{modifiers:o,loc:r}=e,i=e.arg;let{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==i.type||!i.isStatic)return n.onError(Ka(52,i.loc)),{props:[Ea(i,Ta("",!0,r))]};_d(e),s=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),o.includes("camel")&&(4===i.type?i.isStatic?i.content=O(i.content):i.content=`${n.helperString(da)}(${i.content})`:(i.children.unshift(`${n.helperString(da)}(`),i.children.push(")"))),n.inSSR||(o.includes("prop")&&xd(i,"."),o.includes("attr")&&xd(i,"^")),{props:[Ea(i,s)]}},_d=(e,t)=>{const n=e.arg,o=O(n.content);e.exp=Ta(o,!1,n.loc)},xd=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Cd=sd("for",((e,t,n)=>{const{helper:o,removeHelper:r}=n;return function(e,t,n,o){if(!t.exp)return void n.onError(Ka(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Ka(32,t.loc));wd(r);const{addIdentifiers:i,removeIdentifiers:s,scopes:l}=n,{source:c,value:a,key:u,index:d}=r,p={type:11,loc:t.loc,source:c,valueAlias:a,keyAlias:u,objectIndexAlias:d,parseResult:r,children:cu(e)?e.children:[e]};n.replaceNode(p),l.vFor++;const f=o&&o(p);return()=>{l.vFor--,f&&f()}}(e,t,n,(t=>{const i=Aa(o(ta),[t.source]),s=cu(e),l=ou(e,"memo"),c=ru(e,"key",!1,!0);c&&7===c.type&&!c.exp&&_d(c);const a=c&&(6===c.type?c.value?Ta(c.value.content,!0):void 0:c.exp),u=c&&a?Ea("key",a):null,d=4===t.source.type&&t.source.constType>0,p=d?64:c?128:256;return t.codegenNode=wa(n,o(Fc),void 0,i,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let c;const{children:p}=t,f=1!==p.length||1!==p[0].type,h=au(e)?e:s&&1===e.children.length&&au(e.children[0])?e.children[0]:null;if(h?(c=h.codegenNode,s&&u&&pu(c,u,n)):f?c=wa(n,o(Fc),u?ka([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=p[0].codegenNode,s&&u&&pu(c,u,n),c.isBlock!==!d&&(c.isBlock?(r(Vc),r(Pa(n.inSSR,c.isComponent))):r(Ra(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(o(Vc),o(Pa(n.inSSR,c.isComponent))):o(Ra(n.inSSR,c.isComponent))),l){const e=Oa(Id(t.parseResult,[Ta("_cached")]));e.body={type:21,body:[Da(["const _memo = (",l.exp,")"]),Da(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(_a)}(_cached, _memo)) return _cached`]),Da(["const _item = ",c]),Ta("_item.memo = _memo"),Ta("return _item")],loc:Ca},i.arguments.push(e,Ta("_cache"),Ta(String(n.cached++)))}else i.arguments.push(Oa(Id(t.parseResult),c,!0))}}))}));function wd(e,t){e.finalized||(e.finalized=!0)}function Id({value:e,key:t,index:n},o=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Ta("_".repeat(t+1),!1)))}([e,t,n,...o])}const kd=Ta("undefined",!1),Ed=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=ou(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Td=(e,t,n,o)=>Oa(e,n,!1,!0,n.length?n[0].loc:o);function Dd(e,t,n=Td){t.helper(va);const{children:o,loc:r}=e,i=[],s=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=ou(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!Ja(e)&&(l=!0),i.push(Ea(e||Ta("default",!0),n(t,void 0,o,r)))}let a=!1,u=!1;const d=[],p=new Set;let f=0;for(let e=0;e{const i=n(e,void 0,o,r);return t.compatConfig&&(i.isNonScopedSlot=!0),Ea("default",i)};a?d.length&&d.some((e=>Nd(e)))&&(u?t.onError(Ka(39,d[0].loc)):i.push(e(void 0,d))):i.push(e(void 0,o))}const h=l?2:Od(e.children)?3:1;let m=ka(i.concat(Ea("_",Ta(h+"",!1))),r);return s.length&&(m=Aa(t.helper(oa),[m,Ia(s)])),{slots:m,hasDynamicSlots:l}}function Ad(e,t,n){const o=[Ea("name",e),Ea("fn",t)];return null!=n&&o.push(Ea("key",Ta(String(n),!0))),ka(o)}function Od(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,r=1===e.tagType;let i=r?function(e,t,n=!1){let{tag:o}=e;const r=Bd(o),i=ru(e,"is",!1,!0);if(i)if(r||qa("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&Ta(i.value.content,!0):(e=i.exp,e||(e=Ta("is",!1,i.loc))),e)return Aa(t.helper(Yc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(o=i.value.content.slice(4));const s=Xa(o)||t.isBuiltInComponent(o);return s?(n||t.helper(s),s):(t.helper(Xc),t.components.add(o),hu(o,"component"))}(e,t):`"${n}"`;const s=S(i)&&i.callee===Yc;let l,c,a,u,d,p=0,f=s||i===Bc||i===$c||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(o.length>0){const n=Md(e,t,void 0,r,s);l=n.props,p=n.patchFlag,u=n.dynamicPropNames;const o=n.directives;d=o&&o.length?Ia(o.map((e=>function(e,t){const n=[],o=Rd.get(e);o?n.push(t.helperString(o)):(t.helper(Qc),t.directives.add(e.name),n.push(hu(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ta("true",!1,r);n.push(ka(e.modifiers.map((e=>Ea(e,t))),r))}return Ia(n,e.loc)}(e,t)))):void 0,n.shouldUseBlock&&(f=!0)}if(e.children.length>0)if(i===jc&&(f=!0,p|=1024),r&&i!==Bc&&i!==jc){const{slots:n,hasDynamicSlots:o}=Dd(e,t);c=n,o&&(p|=1024)}else if(1===e.children.length&&i!==Bc){const n=e.children[0],o=n.type,r=5===o||8===o;r&&0===Zu(n,t)&&(p|=1),c=r||2===o?n:e.children}else c=e.children;u&&u.length&&(a=function(e){let t="[";for(let n=0,o=e.length;n0;let h=!1,m=0,g=!1,v=!1,y=!1,S=!1,_=!1,x=!1;const C=[],w=e=>{u.length&&(d.push(ka(Ld(u),c)),u=[]),e&&d.push(e)},I=()=>{t.scopes.vFor>0&&u.push(Ea(Ta("ref_for",!0),Ta("true")))},k=({key:e,value:n})=>{if(Ja(e)){const i=e.content,s=l(i);if(!s||o&&!r||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||E(i)||(S=!0),s&&E(i)&&(x=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Zu(n,t)>0)return;"ref"===i?g=!0:"class"===i?v=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!o||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else _=!0};for(let r=0;r1?Aa(t.helper(ia),d,c):d[0]):u.length&&(D=ka(Ld(u),c)),_?m|=16:(v&&!o&&(m|=2),y&&!o&&(m|=4),C.length&&(m|=8),S&&(m|=32)),h||0!==m&&32!==m||!(g||x||p.length>0)||(m|=512),!t.inSSR&&D)switch(D.type){case 15:let e=-1,n=-1,o=!1;for(let t=0;t{if(au(e)){const{children:n,loc:o}=e,{slotName:r,slotProps:i}=function(e,t){let n,o='"default"';const r=[];for(let t=0;t0){const{props:o,directives:i}=Md(e,t,r,!1,!1);n=o,i.length&&t.onError(Ka(36,i[0].loc))}return{slotName:o,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(s[2]=i,l=3),n.length&&(s[3]=Oa([],n,!1,!1,o),l=4),t.scopeId&&!t.slotted&&(l=5),s.splice(l),e.codegenNode=Aa(t.helper(na),s,o)}},jd=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Hd=(e,t,n,o)=>{const{loc:r,modifiers:i,arg:s}=e;let l;if(e.exp||i.length||n.onError(Ka(35,r)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),l=Ta(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?M(O(e)):`on:${e}`,!0,s.loc)}else l=Da([`${n.helperString(fa)}(`,s,")"]);else l=s,l.children.unshift(`${n.helperString(fa)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let a=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=nu(c.content),t=!(e||jd.test(c.content)),n=c.content.includes(";");(t||a&&e)&&(c=Da([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Ea(l,c||Ta("() => {}",!1,r))]};return o&&(u=o(u)),a&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},Vd=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let o,r=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e{if(1===e.type&&ou(e,"once",!0)){if(Ud.has(e)||t.inVOnce||t.inSSR)return;return Ud.add(e),t.inVOnce=!0,t.helper(ha),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Wd=(e,t,n)=>{const{exp:o,arg:r}=e;if(!o)return n.onError(Ka(41,e.loc)),zd();const i=o.loc.source,s=4===o.type?o.content:i,l=n.bindingMetadata[i];if("props"===l||"props-aliased"===l)return n.onError(Ka(44,o.loc)),zd();if(!s.trim()||!nu(s))return n.onError(Ka(42,o.loc)),zd();const c=r||Ta("modelValue",!0),a=r?Ja(r)?`onUpdate:${O(r.content)}`:Da(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Da([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[Ea(c,e.exp),Ea(a,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Qa(e)?e:JSON.stringify(e))+": true")).join(", "),n=r?Ja(r)?`${r.content}Modifiers`:Da([r,' + "Modifiers"']):"modelModifiers";d.push(Ea(n,Ta(`{ ${t} }`,!1,e.loc,2)))}return zd(d)};function zd(e=[]){return{props:e}}const Gd=/[\w).+\-_$\]]/,Kd=(e,t)=>{qa("COMPILER_FILTERS",t)&&(5===e.type?Jd(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Jd(e.exp,t)})))};function Jd(e,t){if(4===e.type)Xd(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&Gd.test(e)||(u=!0)}}else void 0===s?(h=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i{if(1===e.type){const n=ou(e,"memo");if(!n||Qd.has(e))return;return Qd.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&13===o.type&&(1!==e.tagType&&Ma(o,t),e.codegenNode=Aa(t.helper(Sa),[n.exp,Oa(void 0,o),"_cache",String(t.cached++)]))}}};function ep(e,t={}){const n=t.onError||za,o="module"===t.mode;!0===t.prefixIdentifiers?n(Ka(47)):o&&n(Ka(48)),t.cacheHandlers&&n(Ka(49)),t.scopeId&&!o&&n(Ka(50));const r=a({},t,{prefixIdentifiers:!1}),i=y(e)?function(e,t){if(Du.reset(),Su=null,_u=null,xu="",Cu=-1,wu=-1,Tu.length=0,bu=e,vu=a({},gu),t){let e;for(e in t)null!=t[e]&&(vu[e]=t[e])}Du.mode="html"===vu.parseMode?1:"sfc"===vu.parseMode?2:0,Du.inXML=1===vu.ns||2===vu.ns;const n=t&&t.delimiters;n&&(Du.delimiterOpen=Ha(n[0]),Du.delimiterClose=Ha(n[1]));const o=yu=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Ca}}(0,e);return Du.parse(bu),o.loc=Wu(0,e.length),o.children=ju(o.children),yu=null,o}(e,r):e,[s,l]=[[qd,gd,Zd,Cd,Kd,$d,Pd,Ed,Vd],{on:Hd,bind:Sd,model:Wd}];return rd(i,a({},r,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:a({},l,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:o=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:l="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:a="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const f={mode:t,prefixIdentifiers:n,sourceMap:o,filename:r,scopeId:i,optimizeImports:s,runtimeGlobalName:l,runtimeModuleName:c,ssrRuntimeModuleName:a,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${xa[e]}`,push(e,t=-2,n){f.code+=e},indent(){h(++f.indentLevel)},deindent(e=!1){e?--f.indentLevel:h(--f.indentLevel)},newline(){h(f.indentLevel)}};function h(e){f.push("\n"+" ".repeat(e),0)}return f}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:r,prefixIdentifiers:i,indent:s,deindent:l,newline:c,scopeId:a,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,f=!i&&"module"!==o;if(function(e,t){const{ssr:n,prefixIdentifiers:o,push:r,newline:i,runtimeModuleName:s,runtimeGlobalName:l,ssrRuntimeModuleName:c}=t,a=l,u=Array.from(e.helpers);u.length>0&&(r(`const _Vue = ${a}\n`,-1),e.hoists.length)&&r(`const { ${[Wc,zc,Gc,Kc,Jc].filter((e=>u.includes(e))).map(cd).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o,helper:r,scopeId:i,mode:s}=t;o();for(let r=0;r0)&&c()),e.directives.length&&(ad(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),ad(e.filters,"filter",n),c()),e.temps>0){r("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),c()),u||r("return "),e.codegenNode?pd(e.codegenNode,n):r("null"),f&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,r)}const tp=Symbol(""),np=Symbol(""),op=Symbol(""),rp=Symbol(""),ip=Symbol(""),sp=Symbol(""),lp=Symbol(""),cp=Symbol(""),ap=Symbol(""),up=Symbol("");var dp;let pp;dp={[tp]:"vModelRadio",[np]:"vModelCheckbox",[op]:"vModelText",[rp]:"vModelSelect",[ip]:"vModelDynamic",[sp]:"withModifiers",[lp]:"withKeys",[cp]:"vShow",[ap]:"Transition",[up]:"TransitionGroup"},Object.getOwnPropertySymbols(dp).forEach((e=>{xa[e]=dp[e]}));const fp={parseMode:"html",isVoidTag:ne,isNativeTag:e=>Z(e)||ee(e)||te(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return pp||(pp=document.createElement("div")),t?(pp.innerHTML=`
            `,pp.children[0].getAttribute("foo")):(pp.innerHTML=e,pp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ap:"TransitionGroup"===e||"transition-group"===e?up:void 0,getNamespace(e,t,n){let o=t?t.ns:n;if(t&&2===o)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(o=0);else t&&1===o&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(o=0));if(0===o){if("svg"===e)return 1;if("math"===e)return 2}return o}},hp=(e,t)=>{const n=X(e);return Ta(JSON.stringify(n),!1,t,3)};function mp(e,t){return Ka(e,t)}const gp=n("passive,once,capture"),vp=n("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=n("left,right"),bp=n("onkeyup,onkeydown,onkeypress",!0),Sp=(e,t)=>Ja(e)&&"onclick"===e.content.toLowerCase()?Ta(t,!0):4!==e.type?Da(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,_p=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},xp=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ta("style",!0,t.loc),exp:hp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],Cp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(53,r)),t.children.length&&(n.onError(mp(54,r)),t.children.length=0),{props:[Ea(Ta("innerHTML",!0,r),o||Ta("",!0))]}},text:(e,t,n)=>{const{exp:o,loc:r}=e;return o||n.onError(mp(55,r)),t.children.length&&(n.onError(mp(56,r)),t.children.length=0),{props:[Ea(Ta("textContent",!0),o?Zu(o,n)>0?o:Aa(n.helperString(ra),[o],r):Ta("",!0))]}},model:(e,t,n)=>{const o=Wd(e,t,n);if(!o.props.length||1===t.tagType)return o;e.arg&&n.onError(mp(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||i){let s=op,l=!1;if("input"===r||i){const o=ru(t,"type");if(o){if(7===o.type)s=ip;else if(o.value)switch(o.value.content){case"radio":s=tp;break;case"checkbox":s=np;break;case"file":l=!0,n.onError(mp(59,e.loc))}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(s=ip)}else"select"===r&&(s=rp);l||(o.needRuntime=n.helper(s))}else n.onError(mp(57,e.loc));return o.props=o.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),o},on:(e,t,n)=>Hd(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:r,value:i}=t.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=((e,t,n)=>{const o=[],r=[],i=[];for(let s=0;s{const{exp:o,loc:r}=e;return o||n.onError(mp(61,r)),{props:[],needRuntime:n.helper(cp)}}},wp=new WeakMap;Ps((function(e,n){if(!y(e)){if(!e.nodeType)return i;e=e.innerHTML}const r=e,s=function(e){let t=wp.get(null!=e?e:o);return t||(t=Object.create(null),wp.set(null!=e?e:o,t)),t}(n),l=s[r];if(l)return l;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const c=a({hoistStatic:!0,onError:void 0,onWarn:i},n);c.isCustomElement||"undefined"==typeof customElements||(c.isCustomElement=e=>!!customElements.get(e));const{code:u}=function(e,t={}){return ep(e,a({},fp,t,{nodeTransforms:[_p,...xp,...t.nodeTransforms||[]],directiveTransforms:a({},Cp,t.directiveTransforms||{}),transformHoist:null}))}(e,c),d=new Function("Vue",u)(t);return d._rc=!0,s[r]=d}));const Ip={data:function(){return{CSRFToken,APIroot,rootPath:"../",libsPath,orgchartPath,userID,designData:{},customizableTemplates:["homepage"],views:["homepage","testview"],custom_page_select:"homepage",appIsGettingData:!0,appIsPublishing:!1,isEditingMode:!0,iconList:[],tagsToRemove:["script","img","a","link","br"],dialogTitle:"",dialogFormContent:"",dialogButtonText:{confirm:"Save",cancel:"Cancel"},formSaveFunction:"",showFormDialog:!1}},provide:function(){var e=this;return{iconList:Hs((function(){return e.iconList})),appIsGettingData:Hs((function(){return e.appIsGettingData})),appIsPublishing:Hs((function(){return e.appIsPublishing})),isEditingMode:Hs((function(){return e.isEditingMode})),designData:Hs((function(){return e.designData})),CSRFToken:this.CSRFToken,APIroot:this.APIroot,rootPath:this.rootPath,libsPath:this.libsPath,orgchartPath:this.orgchartPath,userID:this.userID,getDesignData:this.getDesignData,tagsToRemove:this.tagsToRemove,setCustom_page_select:this.setCustom_page_select,toggleEnableTemplate:this.toggleEnableTemplate,updateLocalDesignData:this.updateLocalDesignData,openDialog:this.openDialog,closeFormDialog:this.closeFormDialog,setDialogTitleHTML:this.setDialogTitleHTML,setDialogButtonText:this.setDialogButtonText,setDialogContent:this.setDialogContent,setDialogSaveFunction:this.setDialogSaveFunction,showFormDialog:Hs((function(){return e.showFormDialog})),dialogTitle:Hs((function(){return e.dialogTitle})),dialogFormContent:Hs((function(){return e.dialogFormContent})),dialogButtonText:Hs((function(){return e.dialogButtonText})),formSaveFunction:Hs((function(){return e.formSaveFunction}))}},created:function(){this.getIconList()},methods:{setEditMode:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isEditingMode=e},setCustom_page_select:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"homepage";this.custom_page_select=e},getIconList:function(){var e=this;$.ajax({type:"GET",url:"".concat(this.APIroot,"iconPicker/list"),success:function(t){return e.iconList=t||[]},error:function(e){return console.log(e)}})},toggleEnableTemplate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.customizableTemplates.includes(t)){var n=this.designData["".concat(t,"_enabled")],o=void 0===n||0===parseInt(n)?1:0;this.appIsPublishing=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/enable_").concat(t),data:{CSRFToken:this.CSRFToken,enabled:o},success:function(n){1!=+(null==n?void 0:n.code)?console.log("unexpected response returned:",n):e.designData["".concat(t,"_enabled")]=o,e.appIsPublishing=!1},error:function(e){return console.log(e)}})}},getDesignData:function(){var e=this;this.appIsGettingData=!0,$.ajax({type:"GET",url:"".concat(this.APIroot,"system/settings"),success:function(t){e.designData=t,e.appIsGettingData=!1},error:function(e){console.log(e)}})},updateLocalDesignData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"{}";this.designData["".concat(e,"_design_json")]=t},openDialog:function(){this.showFormDialog=!0},closeFormDialog:function(){this.showFormDialog=!1,this.dialogTitle="",this.dialogFormContent="",this.dialogButtonText={confirm:"Save",cancel:"Cancel"}},setDialogTitleHTML:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogTitle=e},setDialogButtonText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.confirm,n=void 0===t?"":t,o=e.cancel,r=void 0===o?"":o;this.dialogButtonText={confirm:n,cancel:r}},setDialogContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.dialogFormContent=e},setDialogSaveFunction:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"function"==typeof e&&(this.formSaveFunction=e)}},watch:{custom_page_select:function(e,t){this.views.includes(e)&&this.$router.push({name:this.custom_page_select})}}},kp="undefined"!=typeof document;const Ep=Object.assign;function Tp(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ap(r)?r.map(e):e(r)}return n}const Dp=()=>{},Ap=Array.isArray,Op=/#/g,Np=/&/g,Rp=/\//g,Pp=/=/g,Mp=/\?/g,Lp=/\+/g,Fp=/%5B/g,Bp=/%5D/g,$p=/%5E/g,jp=/%60/g,Hp=/%7B/g,Vp=/%7C/g,Up=/%7D/g,qp=/%20/g;function Wp(e){return encodeURI(""+e).replace(Vp,"|").replace(Fp,"[").replace(Bp,"]")}function zp(e){return Wp(e).replace(Lp,"%2B").replace(qp,"+").replace(Op,"%23").replace(Np,"%26").replace(jp,"`").replace(Hp,"{").replace(Up,"}").replace($p,"^")}function Gp(e){return null==e?"":function(e){return Wp(e).replace(Op,"%23").replace(Mp,"%3F")}(e).replace(Rp,"%2F")}function Kp(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}const Jp=/\/$/,Xp=e=>e.replace(Jp,"");function Yp(e,t,n="/"){let o,r={},i="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];".."!==r&&"."!==r||o.push("");let i,s,l=n.length-1;for(i=0;i1&&l--}return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:Kp(s)}}function Qp(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Zp(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ef(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tf(e[n],t[n]))return!1;return!0}function tf(e,t){return Ap(e)?nf(e,t):Ap(t)?nf(t,e):e===t}function nf(e,t){return Ap(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const of={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var rf,sf;!function(e){e.pop="pop",e.push="push"}(rf||(rf={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(sf||(sf={}));const lf=/^[^#]+#/;function cf(e,t){return e.replace(lf,"#")+t}const af=()=>({left:window.scrollX,top:window.scrollY});function uf(e,t){return(history.state?history.state.position-t:-1)+e}const df=new Map;let pf=()=>location.protocol+"//"+location.host;function ff(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Qp(n,"")}return Qp(n,e)+o+r}function hf(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?af():null}}function mf(e){return"string"==typeof e||"symbol"==typeof e}const gf=Symbol("");var vf;function yf(e,t){return Ep(new Error,{type:e,[gf]:!0},t)}function bf(e,t){return e instanceof Error&&gf in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(vf||(vf={}));const Sf="[^/]+?",_f={sensitive:!1,strict:!1,start:!0,end:!0},xf=/[.+*?^${}()[\]/\\]/g;function Cf(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function wf(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const kf={type:0,value:""},Ef=/[a-zA-Z0-9_]/;function Tf(e,t,n){const o=function(e,t){const n=Ep({},_f,t),o=[];let r=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[90];n.strict&&!t.length&&(r+="/");for(let o=0;o1&&("*"===l||"+"===l)&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:a,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;cEp(e,t.meta)),{})}function Rf(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Pf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mf(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;ee&&zp(e))):[o&&zp(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==o&&(t+=(t.length?"&":"")+n)}return t}function Ff(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Ap(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Bf=Symbol(""),$f=Symbol(""),jf=Symbol(""),Hf=Symbol(""),Vf=Symbol("");function Uf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function qf(e,t,n,o,r,i=e=>e()){const s=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((l,c)=>{const a=e=>{var i;!1===e?c(yf(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(yf(2,{from:t,to:e})):(s&&o.enterCallbacks[r]===s&&"function"==typeof e&&s.push(e),l())},u=i((()=>e.call(o&&o.instances[r],t,n,a)));let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch((e=>c(e)))}))}function Wf(e,t,n,o,r=e=>e()){const i=[];for(const l of e)for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if("object"==typeof(s=c)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(c.__vccOpts||c)[t];s&&i.push(qf(s,n,o,l,e,r))}else{let s=c();i.push((()=>s.then((i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${l.path}"`));const s=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;l.components[e]=s;const a=(s.__vccOpts||s)[t];return a&&qf(a,n,o,l,e,r)()}))))}}var s;return i}function zf(e){const t=xr(jf),n=xr(Hf),o=Hs((()=>{const n=Gt(e.to);return t.resolve(n)})),r=Hs((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(Zp.bind(null,r));if(s>-1)return s;const l=Kf(e[t-2]);return t>1&&Kf(r)===l&&i[i.length-1].path!==l?i.findIndex(Zp.bind(null,e[t-2])):s})),i=Hs((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Ap(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Hs((()=>r.value>-1&&r.value===n.matched.length-1&&ef(n.params,o.value.params)));return{route:o,href:Hs((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}(n)?t[Gt(e.replace)?"replace":"push"](Gt(e.to)).catch(Dp):Promise.resolve()}}}const Gf=to({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:zf,setup(e,{slots:t}){const n=It(zf(e)),{options:o}=xr(jf),r=Hs((()=>({[Jf(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Jf(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:Vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function Kf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jf=(e,t,n)=>null!=e?e:null!=t?t:n;function Xf(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Yf=to({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=xr(Vf),r=Hs((()=>e.route||o.value)),i=xr($f,0),s=Hs((()=>{let e=Gt(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),l=Hs((()=>r.value.matched[s.value]));_r($f,Hs((()=>s.value+1))),_r(Bf,l),_r(Vf,r);const c=Vt();return bi((()=>[c.value,l.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&Zp(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,s=l.value,a=s&&s.components[i];if(!a)return Xf(n.default,{Component:a,route:o});const u=s.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,p=Vs(a,Ep({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:c}));return Xf(n.default,{Component:p,route:o})||p}}}),Qf={name:"custom-menu-item",data:function(){return{dyniconsPath:this.libsPath+"dynicons/svg/"}},props:{menuItem:{type:Object,required:!0}},inject:["libsPath","rootPath","builtInIDs","isEditingMode"],computed:{baseCardStyles:function(){return{backgroundColor:this.menuItem.bgColor}},anchorClasses:function(){var e;return"custom_menu_card"+(null!==(e=this.menuItem)&&void 0!==e&&e.link&&!1===this.isEditingMode?"":" disableClick")},href:function(){return this.builtInIDs.includes(this.menuItem.id)?this.rootPath+this.menuItem.link:this.menuItem.link}},template:'\n \n
            \n

            {{ menuItem.title }}

            \n
            {{ menuItem.subtitle }}
            \n
            \n
            '};function Zf(e){return Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zf(e)}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function th(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=Array(t);n ( Emergency ) ':"",l=i?' style="background-color: red; color: black"':"",c=document.querySelector("#".concat(t.cellContainerID));null!==c&&(c.innerHTML='\n ').concat(t.recordID,'\n \n ').concat(n[t.recordID].title,'
            \n ').concat(o,"").concat(s),c.addEventListener("click",(function(){window.location="".concat(e.rootPath,"index.php?a=printview&recordID=").concat(t.recordID)})))}},service:{name:"Service",indicatorID:"service",editable:!1,callback:function(t,n){var o=document.querySelector("#".concat(t.cellContainerID));null!==o&&(o.innerHTML=n[t.recordID].service,n[t.recordID].userID==e.userID&&(o.style.backgroundColor="#feffd1"))}},status:{name:"Status",indicatorID:"currentStatus",editable:!1,callback:function(t,n){var o=0==n[t.recordID].blockingStepID?"Pending ":"Waiting for ",r="";if(null==n[t.recordID].stepID&&"0"==n[t.recordID].submitted){var i=null==n[t.recordID].lastStatus?"Not Submitted":"Pending Re-submission";r=''.concat(i,"")}else if(null==n[t.recordID].stepID){var s=n[t.recordID].lastStatus;""==s&&(s='Check Status")),r=''+s+""}else r=o+n[t.recordID].stepTitle;n[t.recordID].deleted>0&&(r+=", Cancelled");var l=document.querySelector("#".concat(t.cellContainerID));null!==l&&(l.innerHTML=r,n[t.recordID].userID==e.userID&&(l.style.backgroundColor="#feffd1"))}},initiatorName:{name:"Initiator",indicatorID:"initiator",editable:!1,callback:function(e,t){var n=document.querySelector("#".concat(e.cellContainerID));null!==n&&(n.innerHTML=t[e.recordID].firstName+" "+t[e.recordID].lastName)}}},sort:{column:"recordID",direction:"desc"},headerOptions:["date","title","service","status","initiatorName"],chosenHeadersSelect:sh(this.chosenHeaders),mostRecentHeaders:"",choicesSelectID:"choices_header_select",potentialJoins:["service","status","initiatorName","action_history","stepFulfillmentOnly","recordResolutionData"]}},mounted:function(){0===this.chosenHeadersSelect.length?(this.chosenHeadersSelect=["date","title","service","status"],this.createChoices(),this.postSearchSettings()):(this.createChoices(),this.main())},inject:["APIroot","CSRFToken","userID","rootPath","orgchartPath","isEditingMode","chosenHeaders"],methods:{createChoices:function(){var e=this,t=document.getElementById(this.choicesSelectID);if(null!==t&&!0===t.multiple&&"active"!==(null==t?void 0:t.getAttribute("data-choice"))){var n=sh(this.chosenHeadersSelect);this.headerOptions.forEach((function(e){n.includes(e)||n.push(e)})),n=n.map((function(t){return{value:t,label:e.getLabel(t),selected:e.chosenHeadersSelect.includes(t)}}));var o=new Choices(t,{allowHTML:!1,removeItemButton:!0,editItems:!0,shouldSort:!1,choices:n});t.choicesjs=o}document.querySelector("#".concat(this.choicesSelectID," ~ input.choices__input")).setAttribute("aria-labelledby",this.choicesSelectID+"_label")},getLabel:function(e){var t="";switch(e.toLowerCase()){case"date":case"title":case"service":case"status":t=e;break;case"initiatorname":t="initiator"}return t},removeChoices:function(){var e=document.getElementById(this.choicesSelectID);void 0!==e.choicesjs&&"function"==typeof e.choicesjs.destroy&&e.choicesjs.destroy()},postSearchSettings:function(){var e=this;JSON.stringify(this.chosenHeadersSelect)!==this.mostRecentHeaders?(this.searchIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/search_design_json"),data:{CSRFToken:this.CSRFToken,chosen_headers:this.chosenHeadersSelect},success:function(t){1!=+(null==t?void 0:t.code)&&console.log("unexpected response returned:",t),document.getElementById("searchContainer").innerHTML="",setTimeout((function(){e.main(),e.searchIsUpdating=!1}),150)},error:function(e){return console.log(e)}})):console.log("headers have not changed")},renderResult:function(e,t){var n=this,o=this.chosenHeadersSelect.map((function(e){return function(e){for(var t=1;t

            '),document.querySelector("#btn_abortSearch").addEventListener("click",(function(){a=!0})),l+=c,t.setLimit(l,c),void t.execute();e.renderResult(n,s),window.scrollTo(0,u),document.querySelector("#searchContainer_getMoreResults").style.display=r?"none":"inline"}})),n.setSearchFunc((function(n){if(void 0===n||"undefined"===n){n="";var o=document.querySelector('input[id$="_searchtxt"]');null!==o&&(o.value="")}t.clearTerms(),s={},l=0,r=!1,u=0,a=!1;var i=!0,d={};try{d=JSON.parse(n)}catch(e){i=!1}if(""==(n=n?n.trim():""))t.addTerm("title","LIKE","*");else if(!isNaN(parseFloat(n))&&isFinite(n))t.addTerm("recordID","=",n);else if(i)for(var p in d)"data"!=d[p].id&&"dependencyID"!=d[p].id?t.addTerm(d[p].id,d[p].operator,d[p].match,d[p].gate):t.addDataTerm(d[p].id,d[p].indicatorID,d[p].operator,d[p].match,d[p].gate);else t.addTerm("title","LIKE","*"+n+"*");var f=!1;for(var h in t.getQuery().terms)if("stepID"==t.getQuery().terms[h].id&&"="==t.getQuery().terms[h].operator&&"deleted"==t.getQuery().terms[h].match){f=!0;break}return f||t.addTerm("deleted","=",0),t.setLimit(c),t.join("categoryName"),e.potentialJoins.forEach((function(n){e.chosenHeadersSelect.includes(n)&&t.join(n)})),t.sort("date","DESC"),t.execute()})),n.init(),document.querySelector("#"+n.getResultContainerID()).innerHTML="

            Searching for records...

            ",document.querySelector("#searchContainer_getMoreResults").addEventListener("click",(function(){if(r=!0,u=window.scrollY,""==n.getSearchInput()){var e=t.getQuery();for(var o in e.terms)"userID"==e.terms[o].id&&e.terms.splice(o,1);t.setQuery(e)}l+=c,t.setLimit(l,c),t.execute()}))}},template:'
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n \n
            '};function ah(e){return ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(e)}function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dh(e,t,n){return(t=function(e){var t=function(e){if("object"!=ah(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ah(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ph,fh=[{path:"/",redirect:{name:"homepage"}},{path:"/homepage",name:"homepage",component:{name:"homepage",data:function(){return{menuIsUpdating:!1,builtInIDs:["btn_reports","btn_bookmarks","btn_inbox","btn_new_request"],menuItem:{}}},created:function(){console.log("homepage view created, getting design data"),this.getDesignData()},mounted:function(){console.log("homepage mounted")},inject:["CSRFToken","APIroot","appIsGettingData","appIsPublishing","toggleEnableTemplate","updateLocalDesignData","getDesignData","designData","isEditingMode","showFormDialog","dialogFormContent","setDialogTitleHTML","setDialogContent","openDialog"],provide:function(){var e=this;return{menuItem:Hs((function(){return e.menuItem})),menuDirection:Hs((function(){return e.menuDirection})),menuItemList:Hs((function(){return e.menuItemList})),chosenHeaders:Hs((function(){return e.chosenHeaders})),menuIsUpdating:Hs((function(){return e.menuIsUpdating})),builtInIDs:this.builtInIDs,setMenuItem:this.setMenuItem,updateMenuItemList:this.updateMenuItemList,postHomeMenuSettings:this.postHomeMenuSettings,postSearchSettings:this.postSearchSettings}},components:{LeafFormDialog:{data:function(){return{scrollY:window.scrollY,initialTop:15,modalElementID:"leaf_dialog_content",modalBackgroundID:"leaf-vue-dialog-background",elBody:null,elModal:null,elBackground:null,elClose:null,lastFocus:null}},inject:["dialogTitle","closeFormDialog","formSaveFunction","dialogButtonText","lastModalTab"],created:function(){this.lastFocus=document.activeElement||null},mounted:function(){this.elBody=document.querySelector("body"),this.elModal=document.getElementById(this.modalElementID),this.elModal.style.left=window.scrollX+window.innerWidth/2-this.elModal.clientWidth/2+"px",this.elBackground=document.getElementById(this.modalBackgroundID),this.elClose=document.getElementById("leaf-vue-dialog-close"),this.checkSizes(),window.addEventListener("resize",this.checkSizes),this.makeDraggable(this.elModal);var e=document.activeElement;null===(null!==e?e.closest(".leaf-vue-dialog-content"):null)&&this.elClose.focus(),this.setAriaHiddenValue()},beforeUnmount:function(){var e;window.removeEventListener("resize",this.checkSizes);var t=(null===(e=this.lastFocus)||void 0===e?void 0:e.id)||null;if(null!==t){var n=document.getElementById(t);null!==n&&n.focus()}else null!==this.lastFocus&&this.lastFocus.focus()},methods:{setAriaHiddenValue:function(){var e=this;Array.from(document.querySelectorAll("body > *")).forEach((function(t){(null==t?void 0:t.id)!==e.modalElementID&&"LeafSession_dialog"!==t.id&&t.setAttribute("aria-hidden",!0)}))},checkSizes:function(){var e=Math.max(this.elModal.clientWidth,this.elBody.clientWidth);this.elBackground.style.minWidth=e+"px",this.elBackground.style.minHeight=this.elModal.offsetTop+this.elBody.clientHeight+"px"},firstTab:function(e){if(!0===(null==e?void 0:e.shiftKey)){var t=document.querySelector("#ifthen_deletion_dialog button.btn-general"),n=document.getElementById("next"),o=document.getElementById("button_cancelchange"),r=t||n||o;null!==r&&"function"==typeof r.focus&&(r.focus(),e.preventDefault())}},makeDraggable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=0,o=0,r=0,i=0,s=function(e){(e=e||window.event).preventDefault(),n=r-e.clientX,o=i-e.clientY,r=e.clientX,i=e.clientY,t.style.top=t.offsetTop-o+"px",t.style.left=t.offsetLeft-n+"px",c()},l=function(){document.onmouseup=null,document.onmousemove=null},c=function(){t.offsetTopwindow.innerWidth+window.scrollX&&(t.style.left=window.innerWidth+window.scrollX-t.clientWidth-18+"px"),e.elBackground.style.minWidth=e.elBody.clientWidth+"px",e.elBackground.style.minHeight=e.elModal.offsetTop+e.elBody.clientHeight+"px"};document.getElementById(this.modalElementID+"_drag_handle")&&(document.getElementById(this.modalElementID+"_drag_handle").onmousedown=function(e){(e=e||window.event).preventDefault(),r=e.clientX,i=e.clientY,document.onmouseup=l,document.onmousemove=s})}},template:'\n \n \n '},DesignCardDialog:{name:"design-card-dialog",data:function(){var e,t,n,o,r,i,s,l,c,a,u,d;return{id:this.menuItem.id,order:(null===(e=this.menuItem)||void 0===e?void 0:e.order)||0,title:XSSHelpers.stripAllTags((null===(t=this.menuItem)||void 0===t?void 0:t.title)||""),titleColor:(null===(n=this.menuItem)||void 0===n?void 0:n.titleColor)||"#000000",subtitle:XSSHelpers.stripAllTags((null===(o=this.menuItem)||void 0===o?void 0:o.subtitle)||""),subtitleColor:(null===(r=this.menuItem)||void 0===r?void 0:r.subtitleColor)||"#000000",bgColor:(null===(i=this.menuItem)||void 0===i?void 0:i.bgColor)||"#ffffff",icon:(null===(s=this.menuItem)||void 0===s?void 0:s.icon)||"",link:XSSHelpers.stripAllTags((null===(l=this.menuItem)||void 0===l?void 0:l.link)||""),enabled:1==+(null===(c=this.menuItem)||void 0===c?void 0:c.enabled),iconPreviewSize:"30px",useTitleColor:(null===(a=this.menuItem)||void 0===a?void 0:a.titleColor)===(null===(u=this.menuItem)||void 0===u?void 0:u.subtitleColor),useAnIcon:""!==(null===(d=this.menuItem)||void 0===d?void 0:d.icon),markedForDeletion:!1}},mounted:function(){this.setDialogSaveFunction(this.onSave)},components:{CustomMenuItem:Qf},inject:["libsPath","menuItem","builtInIDs","updateMenuItemList","iconList","closeFormDialog","setDialogSaveFunction","setDialogButtonText"],computed:{menuItemOBJ:function(){return{id:this.id,order:this.order,title:XSSHelpers.stripAllTags(this.title),titleColor:this.titleColor,subtitle:XSSHelpers.stripAllTags(this.subtitle),subtitleColor:this.useTitleColor?this.titleColor:this.subtitleColor,bgColor:this.bgColor,icon:!0===this.useAnIcon?this.icon:"",link:XSSHelpers.stripAllTags(this.link),enabled:+this.enabled}},isBuiltInCard:function(){return this.builtInIDs.includes(this.id)},linkNotSet:function(){return!this.isBuiltInCard&&1==+this.enabled&&0!==this.link.indexOf("https://")},linkAttentionStyle:function(){return this.linkNotSet?"border: 2px solid #c00000":""}},methods:{getIconSrc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("dynicons/");return this.libsPath+e.slice(t)},setIcon:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target.id,t=e.indexOf("svg/");t>-1&&(this.icon=e.slice(t+4))},onSave:function(){this.updateMenuItemList(this.menuItemOBJ,this.markedForDeletion),this.closeFormDialog()}},watch:{markedForDeletion:function(e,t){var n=document.getElementById("button_save");!0===e?(this.setDialogButtonText({confirm:"Delete",cancel:"Cancel"}),n.setAttribute("title","Delete"),n.style.backgroundColor="#b00000"):(this.setDialogButtonText({confirm:"Save",cancel:"Cancel"}),n.setAttribute("title","Save"),n.style.backgroundColor="#005EA2")}},template:'
            \n

            Card Preview

            \n
            \n \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n \n
            \n
            \n \n
            \n
            \n Icon Selections\n
            \n \n
            \n
            \n
            '},CustomHomeMenu:{name:"custom-home-menu",data:function(){return{menuDirectionSelection:this.menuDirection,builtInButtons:[{id:"btn_reports",order:-1,title:"Report Builder",titleColor:"#ffffff",subtitle:"View saved links to requests",subtitleColor:"#ffffff",bgColor:"#000000",icon:"x-office-spreadsheet.svg",link:"?a=reports&v=3",enabled:1},{id:"btn_bookmarks",order:-2,title:"Bookmarks",titleColor:"#000000",subtitle:"View saved links to requests",subtitleColor:"#000000",bgColor:"#7eb2b3",icon:"bookmark.svg",link:"?a=bookmarks",enabled:1},{id:"btn_inbox",order:-3,title:"Inbox",titleColor:"#000000",subtitle:"Review and apply actions to active requests",subtitleColor:"#000000",bgColor:"#b6ef6d",icon:"document-open.svg",link:"?a=inbox",enabled:1},{id:"btn_new_request",order:-4,title:"New Request",titleColor:"#ffffff",subtitle:"Start a new request",subtitleColor:"#ffffff",bgColor:"#2372b0",icon:"document-new.svg",link:"?a=newform",enabled:1}]}},components:{CustomMenuItem:Qf},inject:["isEditingMode","builtInIDs","menuItemList","menuDirection","menuIsUpdating","updateMenuItemList","postHomeMenuSettings","setMenuItem"],computed:{wrapperStyles:function(){return this.isEditingMode?{maxWidth:"500px",marginRight:"3rem"}:{}},ulStyles:function(){return"v"===this.menuDirectionSelection||this.isEditingMode?{flexDirection:"column",maxWidth:"430px"}:{flexWrap:"wrap"}},menuItemListDisplay:function(){return this.isEditingMode?this.menuItemList:this.menuItemList.filter((function(e){return 1==+e.enabled}))},allBuiltinsPresent:function(){var e=this,t=!0;return this.builtInIDs.forEach((function(n){!0!==t||e.menuItemList.some((function(e){return e.id===n}))||(t=!1)})),t}},methods:{addStarterCards:function(){var e=this,t=0,n=this.menuItemList.map((function(e){return th({},e)}));this.builtInButtons.forEach((function(o){!e.menuItemList.some((function(e){return e.id===o.id}))&&(n.unshift(th({},o)),t+=1)})),t>0&&this.postHomeMenuSettings(n,this.menuDirection)},onDragStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!=e&&e.dataTransfer&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",e.target.id))},onDrop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e&&e.dataTransfer&&"move"===e.dataTransfer.effectAllowed){var t=e.dataTransfer.getData("text"),n=e.currentTarget,o=Array.from(document.querySelectorAll("ul#menu > li")),r=document.getElementById(t),i=o.filter((function(e){return e.id!==t})).find((function(t){return window.scrollY+e.clientY<=t.offsetTop+t.offsetHeight/2}));n.insertBefore(r,i),this.updateMenuItemList()}},clickToMove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];32===(null==e?void 0:e.keyCode)&&e.preventDefault();var o=e.currentTarget.closest("ul"),r=document.getElementById(t),i=Array.from(o.querySelectorAll("li")),s=i.indexOf(r),l=i.filter((function(e){return e!==r})),c=n?s-1:s+1;c>-1&&c0&&void 0!==arguments[0]?arguments[0]:{};console.log("direction updated via input");var n=(null==t||null===(e=t.target)||void 0===e?void 0:e.value)||"";""!==n&&n!==this.menuDirection&&this.postHomeMenuSettings(this.menuItemList,this.menuDirectionSelection)}},template:'
            \n
            \n

            Drag-Drop cards or use the up and down buttons to change their order.  Use the card menu to edit text and other values.

            \n
            \n \n
            \n \n \n \n
            \n
            '},CustomSearch:ch},computed:{enabled:function(){var e;return 1===parseInt(null===(e=this.designData)||void 0===e?void 0:e.homepage_enabled)},menuItemList:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}"),o=(null==n?void 0:n.menuCards)||[];o.map((function(e){e.link=XSSHelpers.decodeHTMLEntities(e.link),e.title=XSSHelpers.decodeHTMLEntities(e.title),e.subtitle=XSSHelpers.decodeHTMLEntities(e.subtitle)})),e=o.sort((function(e,t){return e.order-t.order}))}return e},menuDirection:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=JSON.parse((null===(t=this.designData)||void 0===t?void 0:t.homepage_design_json)||"{}");e=(null==n?void 0:n.direction)||"v"}return e},chosenHeaders:function(){var e;if(this.appIsGettingData)e=null;else{var t,n=(null===(t=this.designData)||void 0===t?void 0:t.search_design_json)||"{}",o=JSON.parse(n);e=(null==o?void 0:o.chosenHeaders)||[]}return e}},methods:{openDesignButtonDialog:function(){this.setDialogTitleHTML("

            Menu Editor

            "),this.setDialogContent("design-card-dialog"),this.openDialog()},generateID:function(){var e="";do{for(var t=0;t<5;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()))}while(this.buttonIDExists(e));return e},buttonIDExists:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.menuItemList.some((function(t){return(null==t?void 0:t.id)===e}))},setMenuItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.menuItem=null!==e?e:{id:this.generateID(),order:this.menuItemList.length,enabled:0},this.openDesignButtonDialog()},updateMenuItemList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.menuItemList.map((function(e){return function(e){for(var t=1;t li")).forEach((function(e){return o.push(e.id)})),n.forEach((function(e){var t=o.indexOf(e.id);t>-1&&(e.order=t)}))}else n=n.filter((function(t){return t.id!==e.id})),!0!==t&&n.push(e);this.postHomeMenuSettings(n,this.menuDirection)},postHomeMenuSettings:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.menuItemList,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuDirection;this.menuIsUpdating=!0,$.ajax({type:"POST",url:"".concat(this.APIroot,"site/settings/homepage_design_json"),data:{CSRFToken:this.CSRFToken,home_menu_list:t,menu_direction:n},success:function(o){if(1!=+(null==o?void 0:o.code))console.log("unexpected response returned:",o);else{var r=JSON.stringify({menuCards:t,direction:n});e.updateLocalDesignData("homepage",r)}e.menuIsUpdating=!1},error:function(e){return console.log(e)}})}},template:'
            \n Loading... \n \n
            \n
            \n

            \n {{ isEditingMode ? \'Editing the Homepage\' : \'Homepage Preview\'}}\n

            \n

            This page is {{ enabled ? \'\' : \'not\'}} enabled

            \n \n
            TODO banner section
            \n
            \n \n \n
            \n \x3c!-- HOMEPAGE DIALOGS --\x3e\n \n \n \n
            '}},{path:"/testview",name:"testview",component:{name:"testview",inject:["appIsGettingData","getDesignData","setCustom_page_select"],created:function(){console.log("testview created"),this.getDesignData(),this.setCustom_page_select("testview")},template:'
            \n Loading... \n \n
            \n

            Test View

            '}}],hh=function(e){const t=function(e,t){const n=[],o=new Map;function r(e,n,o){const l=!o,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Af(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=o&&o.record;const a=Rf(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ep({},c,{components:o?o.record.components:c.components,path:e,aliasOf:o?o.record:c}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=Tf(t,n,a),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!Of(d)&&i(e.name)),Pf(d)&&s(d),c.children){const e=c.children;for(let t=0;t{i(p)}:Dp}function i(e){if(mf(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const r=n+o>>1;wf(e,t[r])<0?o=r:n=r+1}const r=function(e){let t=e;for(;t=t.parent;)if(Pf(t)&&0===wf(e,t))return t}(e);return r&&(o=t.lastIndexOf(r,o-1)),o}(e,n);n.splice(t,0,e),e.record.name&&!Of(e)&&o.set(e.record.name,e)}return t=Rf({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw yf(1,{location:e});s=r.record.name,l=Ep(Df(t.params,r.keys.filter((e=>!e.optional)).concat(r.parent?r.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Df(e.params,r.keys.map((e=>e.name)))),i=r.stringify(l)}else if(null!=e.path)i=e.path,r=n.find((e=>e.re.test(i))),r&&(l=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw yf(1,{location:e,currentLocation:t});s=r.record.name,l=Ep({},t.params,e.params),i=r.stringify(l)}const c=[];let a=r;for(;a;)c.unshift(a.record),a=a.parent;return{name:s,path:i,params:l,matched:c,meta:Nf(c)}},removeRoute:i,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}(e.routes,e),n=e.parseQuery||Mf,o=e.stringifyQuery||Lf,r=e.history,i=Uf(),s=Uf(),l=Uf(),c=Ut(of);let a=of;kp&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Tp.bind(null,(e=>""+e)),d=Tp.bind(null,Gp),p=Tp.bind(null,Kp);function f(e,i){if(i=Ep({},i||c.value),"string"==typeof e){const o=Yp(n,e,i.path),s=t.resolve({path:o.path},i),l=r.createHref(o.fullPath);return Ep(o,s,{params:p(s.params),hash:Kp(o.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=Ep({},e,{path:Yp(n,e.path,i.path).path});else{const t=Ep({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ep({},e,{params:d(t)}),i.params=d(i.params)}const l=t.resolve(s,i),a=e.hash||"";l.params=u(p(l.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ep({},e,{hash:(h=a,Wp(h).replace(Hp,"{").replace(Up,"}").replace($p,"^")),path:l.path}));var h;const m=r.createHref(f);return Ep({fullPath:f,hash:a,query:o===Lf?Ff(e.query):e.query||{}},l,{redirectedFrom:void 0,href:m})}function h(e){return"string"==typeof e?Yp(n,e,c.value.path):Ep({},e)}function m(e,t){if(a!==e)return yf(8,{from:t,to:e})}function g(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ep({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function y(e,t){const n=a=f(e),r=c.value,i=e.state,s=e.force,l=!0===e.replace,u=v(n);if(u)return y(Ep(h(u),{state:"object"==typeof u?Ep({},i,u.state):i,force:s,replace:l}),t||n);const d=n;let p;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Zp(t.matched[o],n.matched[r])&&ef(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(p=yf(16,{to:d,from:r}),A(r,r,!0,!1)),(p?Promise.resolve(p):_(d,r)).catch((e=>bf(e)?bf(e,2)?e:D(e):T(e,d,r))).then((e=>{if(e){if(bf(e,2))return y(Ep({replace:l},h(e.to),{state:"object"==typeof e.to?Ep({},i,e.to.state):i,force:s}),t||d)}else e=C(d,r,!0,l,i);return x(d,r,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e){const t=R.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function _(e,t){let n;const[o,r,l]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sZp(e,i)))?o.push(i):n.push(i));const l=e.matched[s];l&&(t.matched.find((e=>Zp(e,l)))||r.push(l))}return[n,o,r]}(e,t);n=Wf(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(qf(o,e,t))}));const c=b.bind(null,e,t);return n.push(c),M(n).then((()=>{n=[];for(const o of i.list())n.push(qf(o,e,t));return n.push(c),M(n)})).then((()=>{n=Wf(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(qf(o,e,t))}));return n.push(c),M(n)})).then((()=>{n=[];for(const o of l)if(o.beforeEnter)if(Ap(o.beforeEnter))for(const r of o.beforeEnter)n.push(qf(r,e,t));else n.push(qf(o.beforeEnter,e,t));return n.push(c),M(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Wf(l,"beforeRouteEnter",e,t,S),n.push(c),M(n)))).then((()=>{n=[];for(const o of s.list())n.push(qf(o,e,t));return n.push(c),M(n)})).catch((e=>bf(e,8)?e:Promise.reject(e)))}function x(e,t,n){l.list().forEach((o=>S((()=>o(e,t,n)))))}function C(e,t,n,o,i){const s=m(e,t);if(s)return s;const l=t===of,a=kp?history.state:{};n&&(o||l?r.replace(e.fullPath,Ep({scroll:l&&a&&a.scroll},i)):r.push(e.fullPath,i)),c.value=e,A(e,t,n,l),D()}let w;let I,k=Uf(),E=Uf();function T(e,t,n){D(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function D(e){return I||(I=!e,w||(w=r.listen(((e,t,n)=>{if(!P.listening)return;const o=f(e),i=v(o);if(i)return void y(Ep(i,{replace:!0}),o).catch(Dp);a=o;const s=c.value;var l,u;kp&&(l=uf(s.fullPath,n.delta),u=af(),df.set(l,u)),_(o,s).catch((e=>bf(e,12)?e:bf(e,2)?(y(e.to,o).then((e=>{bf(e,20)&&!n.delta&&n.type===rf.pop&&r.go(-1,!1)})).catch(Dp),Promise.reject()):(n.delta&&r.go(-n.delta,!1),T(e,o,s)))).then((e=>{(e=e||C(o,s,!1))&&(n.delta&&!bf(e,8)?r.go(-n.delta,!1):n.type===rf.pop&&bf(e,20)&&r.go(-1,!1)),x(o,s,e)})).catch(Dp)}))),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function A(t,n,o,r){const{scrollBehavior:i}=e;if(!kp||!i)return Promise.resolve();const s=!o&&function(e){const t=df.get(e);return df.delete(e),t}(uf(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return _n().then((()=>i(t,n,s))).then((e=>e&&function(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}(e))).catch((e=>T(e,t,n)))}const O=e=>r.go(e);let N;const R=new Set,P={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return mf(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:g,replace:function(e){return g(Ep(h(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:E.add,isReady:function(){return I&&c.value!==of?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",Gf),e.component("RouterView",Yf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Gt(c)}),kp&&!N&&c.value===of&&(N=!0,g(r.location).catch((e=>{})));const t={};for(const e in of)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(jf,this),e.provide(Hf,kt(t)),e.provide(Vf,c);const n=e.unmount;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(a=of,w&&w(),w=null,c.value=of,N=!1,I=!1),n()}}};function M(e){return e.reduce(((e,t)=>e.then((()=>S(t)))),Promise.resolve())}return P}({history:((ph=location.host?ph||location.pathname+location.search:"").includes("#")||(ph+="#"),function(e){const t=function(e){const{history:t,location:n}=window,o={value:ff(e,n)},r={value:t.state};function i(o,i,s){const l=e.indexOf("#"),c=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+o:pf()+e+o;try{t[s?"replaceState":"pushState"](i,"",c),r.value=i}catch(e){console.error(e),n[s?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=Ep({},r.value,t.state,{forward:e,scroll:af()});i(s.current,s,!0),i(e,Ep({},hf(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ep({},t.state,hf(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(kp){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),Xp(e)}(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const l=({state:i})=>{const l=ff(e,location),c=n.value,a=t.value;let u=0;if(i){if(n.value=l,t.value=i,s&&s===c)return void(s=null);u=a?i.position-a.position:0}else o(l);r.forEach((e=>{e(n.value,c,{delta:u,type:rf.pop,direction:u?u>0?sf.forward:sf.back:sf.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Ep({},e.state,{scroll:af()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace),o=Ep({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:cf.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}(ph)),routes:fh});const mh=hh;var gh=Oc(Ip);gh.use(mh),gh.mount("#site-designer-app")})(); \ No newline at end of file diff --git a/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss b/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss index 2e265f742..9081f4785 100644 --- a/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss +++ b/docker/vue-app/src/common/LEAF_Vue_Dialog__Common.scss @@ -139,7 +139,7 @@ td a.router-link { @include flexcenter; width: 100vw; height: 100%; - z-index: 999; + z-index: 99; background-color: rgba(0,0,20,0.5); position: absolute; left: 0; @@ -151,7 +151,7 @@ td a.router-link { width: auto; min-width: 450px; resize: horizontal; - z-index: 9999; + z-index: 100; max-width: 900px; height: auto; min-height: 0; diff --git a/docker/vue-app/src/common/components/LeafFormDialog.js b/docker/vue-app/src/common/components/LeafFormDialog.js index 42a274822..321d0350f 100644 --- a/docker/vue-app/src/common/components/LeafFormDialog.js +++ b/docker/vue-app/src/common/components/LeafFormDialog.js @@ -26,31 +26,48 @@ export default { mounted() { this.elBody = document.querySelector('body'); this.elModal = document.getElementById(this.modalElementID); + this.elModal.style.left = window.scrollX + window.innerWidth/2 - this.elModal.clientWidth/2 + 'px'; this.elBackground = document.getElementById(this.modalBackgroundID); this.elClose = document.getElementById('leaf-vue-dialog-close'); - //helps adjust the modal background coverage - const min = this.elModal.clientWidth > this.elBody.clientWidth ? this.elModal.clientWidth : this.elBody.clientWidth; - this.elBackground.style.minHeight = 200 + this.elBody.clientHeight + 'px'; - this.elBackground.style.minWidth = min + 'px'; + this.checkSizes(); + window.addEventListener('resize', this.checkSizes); this.makeDraggable(this.elModal); - window.addEventListener('resize', this.checkSizes); + //if there is not already an active el in the modal, focus the close button const activeEl = document.activeElement; const closestLeafDialog = activeEl !== null ? activeEl.closest('.leaf-vue-dialog-content') : null; if(closestLeafDialog === null) { this.elClose.focus(); } + //set aria-hidden to non-modal DOM siblings for screen-readers + this.setAriaHiddenValue(); }, beforeUnmount() { window.removeEventListener('resize', this.checkSizes); - if(this.lastFocus !== null) { + //refocus last item. some events can cause a remount so try to select the el from its id first + const lastID = this.lastFocus?.id || null; + if(lastID !== null) { + const lastEl = document.getElementById(lastID) + if(lastEl !== null) { + lastEl.focus(); + } + } else if(this.lastFocus !== null) { this.lastFocus.focus(); } }, methods: { + setAriaHiddenValue() { + let elsDOM = Array.from(document.querySelectorAll('body > *' )); + elsDOM.forEach(el => { + if(el?.id !== this.modalElementID && el.id !== 'LeafSession_dialog') { + el.setAttribute('aria-hidden', true); + } + }); + }, + //helps adjust the modal background coverage checkSizes() { - const min = this.elModal.clientWidth > this.elBody.clientWidth ? this.elModal.clientWidth : this.elBody.clientWidth; + const min = Math.max(this.elModal.clientWidth, this.elBody.clientWidth); this.elBackground.style.minWidth = min + 'px'; this.elBackground.style.minHeight = this.elModal.offsetTop + this.elBody.clientHeight + 'px'; }, @@ -116,27 +133,26 @@ export default { } }, template: ` -
            -